├── CNAME ├── public ├── CNAME ├── logo.png └── index.html ├── src ├── assets │ ├── bgc1.jpg │ ├── faq.webp │ ├── logo.png │ ├── about.webp │ ├── bgc1.webp │ ├── bgc3.webp │ ├── bgc6.webp │ ├── bgc7.webp │ ├── blog1.jpg │ ├── blog1.webp │ ├── blog2.webp │ ├── blog3.webp │ ├── blog4.webp │ ├── blog5.webp │ ├── blog6.webp │ ├── hero.webp │ ├── logo1.png │ ├── logo2.png │ ├── logo3.png │ ├── logo4.png │ ├── m_logo.png │ ├── team1.webp │ ├── team2.jpg │ ├── team2.webp │ ├── team3.jpg │ ├── team3.webp │ ├── aboutus1.jpg │ ├── aboutus1.png │ ├── aboutus2.jpg │ ├── aboutus2.png │ ├── aboutus3.jpg │ ├── aboutus3.png │ ├── blog_big1.jpg │ ├── blog_big2.jpg │ ├── blog_big3.jpg │ ├── blog_big4.jpg │ ├── blog_big5.jpg │ ├── blog_big6.jpg │ ├── client1.webp │ ├── client2.webp │ ├── client3.jpg │ ├── client3.webp │ ├── client4.webp │ ├── client5.webp │ ├── client6.webp │ ├── contact.webp │ ├── counter.webp │ ├── creatine1.png │ ├── creatine2.png │ ├── creatine3.png │ ├── creatine4.png │ ├── creatine5.png │ ├── creatine6.png │ ├── fitness.webp │ ├── header-bg.jpg │ ├── protein1.png │ ├── protein2.png │ ├── protein3.png │ ├── protein4.png │ ├── protein5.png │ ├── protein6.png │ ├── protein7.png │ ├── blog_big1.webp │ ├── blog_big2.webp │ ├── blog_big3.webp │ ├── blog_big4.webp │ ├── blog_big5.webp │ ├── blog_big6.webp │ ├── hero_blog.webp │ ├── preworkout1.png │ ├── preworkout2.png │ ├── preworkout3.png │ ├── preworkout4.png │ ├── preworkout5.png │ ├── blog_big1-m.webp │ ├── fitnessClass.webp │ ├── testimonials.webp │ └── fitnessgym.dawidolko.pl_.png ├── global.scss ├── components │ ├── Hero │ │ ├── Hero.jsx │ │ └── Hero.scss │ ├── NotFound │ │ ├── NotFound.scss │ │ └── NotFound.jsx │ ├── Map │ │ ├── Map.scss │ │ └── Map.jsx │ ├── LogoSlider │ │ ├── LogoSlider.scss │ │ └── LogoSlider.jsx │ ├── ContactContent │ │ ├── ContactBox.jsx │ │ ├── ContactContent.jsx │ │ ├── BoxData.js │ │ ├── ContactContent.scss │ │ └── ContactForm.jsx │ ├── FixedBg │ │ ├── FixedBg.jsx │ │ └── FixedBg.scss │ ├── BlogContent │ │ ├── Article │ │ │ ├── ArticleItem.jsx │ │ │ ├── Article.jsx │ │ │ ├── Article.scss │ │ │ └── ArticleData.js │ │ ├── BlogContent.jsx │ │ ├── BlogItem.jsx │ │ ├── BlogData.js │ │ └── BlogContent.scss │ ├── Testimonials │ │ ├── TestimonialsItem.jsx │ │ ├── Testimonials.jsx │ │ ├── Testimonials.scss │ │ └── TestimonialsData.js │ ├── Pricing │ │ ├── PricingData.js │ │ ├── Pricing.jsx │ │ ├── PricingItem.jsx │ │ └── Pricing.scss │ ├── AnimatedPage │ │ └── AnimatedPage.jsx │ ├── Team │ │ ├── TeamData.js │ │ ├── Team.jsx │ │ └── Team.scss │ ├── Message │ │ ├── Message.scss │ │ └── Message.jsx │ ├── CallBack │ │ ├── CallBack.scss │ │ └── CallBack.jsx │ ├── Counter │ │ ├── Counter.scss │ │ └── Counter.jsx │ ├── ShopContent │ │ ├── ShopProduct.jsx │ │ ├── ShopContent.jsx │ │ ├── ShopContent.scss │ │ └── ShopData.js │ ├── AboutUs │ │ └── AboutUs.jsx │ ├── Modal │ │ ├── Modal.jsx │ │ ├── ModalComponent.jsx │ │ ├── Modal.scss │ │ └── FormComponent.jsx │ ├── Accordion │ │ ├── Accordion.scss │ │ ├── Accordion.jsx │ │ └── AccordionData.js │ ├── CartContent │ │ ├── CartModal.jsx │ │ ├── CartProduct.jsx │ │ ├── TotalAmount.jsx │ │ ├── CartContent.jsx │ │ └── CartContent.scss │ ├── AboutContent │ │ ├── AboutContent.scss │ │ └── AboutContent.jsx │ ├── MainBackground │ │ ├── MainBackgroundData.js │ │ ├── MainBackground.jsx │ │ ├── MainBackgroundItem.jsx │ │ └── MainBackground.scss │ ├── NewProducts │ │ └── NewProducts.jsx │ ├── Fitness │ │ └── Fitness.jsx │ ├── AnimationVariants │ │ └── AnimationVariants.jsx │ ├── ShopContext │ │ └── ShopContext.jsx │ ├── Footer │ │ ├── Footer.scss │ │ └── Footer.jsx │ └── Navbar │ │ ├── Navbar.scss │ │ └── Navbar.jsx ├── pages │ ├── Cart.jsx │ ├── Shop.jsx │ ├── Blog.jsx │ ├── Faq.jsx │ ├── Contact.jsx │ ├── About.jsx │ └── Home.jsx ├── index.js ├── App.js └── index.css ├── .github ├── ISSUE_TEMPLATE │ ├── custom.md │ ├── feature_request.md │ └── bug_report.md └── FUNDING.yml ├── .gitignore ├── LICENSE ├── package.json └── README.md /CNAME: -------------------------------------------------------------------------------- 1 | fitnessgym.dawidolko.pl 2 | -------------------------------------------------------------------------------- /public/CNAME: -------------------------------------------------------------------------------- 1 | fitnessgym.dawidolko.pl 2 | -------------------------------------------------------------------------------- /public/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dawidolko/FitnessGym-Project-React/HEAD/public/logo.png -------------------------------------------------------------------------------- /src/assets/bgc1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dawidolko/FitnessGym-Project-React/HEAD/src/assets/bgc1.jpg -------------------------------------------------------------------------------- /src/assets/faq.webp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dawidolko/FitnessGym-Project-React/HEAD/src/assets/faq.webp -------------------------------------------------------------------------------- /src/assets/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dawidolko/FitnessGym-Project-React/HEAD/src/assets/logo.png -------------------------------------------------------------------------------- /src/assets/about.webp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dawidolko/FitnessGym-Project-React/HEAD/src/assets/about.webp -------------------------------------------------------------------------------- /src/assets/bgc1.webp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dawidolko/FitnessGym-Project-React/HEAD/src/assets/bgc1.webp -------------------------------------------------------------------------------- /src/assets/bgc3.webp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dawidolko/FitnessGym-Project-React/HEAD/src/assets/bgc3.webp -------------------------------------------------------------------------------- /src/assets/bgc6.webp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dawidolko/FitnessGym-Project-React/HEAD/src/assets/bgc6.webp -------------------------------------------------------------------------------- /src/assets/bgc7.webp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dawidolko/FitnessGym-Project-React/HEAD/src/assets/bgc7.webp -------------------------------------------------------------------------------- /src/assets/blog1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dawidolko/FitnessGym-Project-React/HEAD/src/assets/blog1.jpg -------------------------------------------------------------------------------- /src/assets/blog1.webp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dawidolko/FitnessGym-Project-React/HEAD/src/assets/blog1.webp -------------------------------------------------------------------------------- /src/assets/blog2.webp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dawidolko/FitnessGym-Project-React/HEAD/src/assets/blog2.webp -------------------------------------------------------------------------------- /src/assets/blog3.webp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dawidolko/FitnessGym-Project-React/HEAD/src/assets/blog3.webp -------------------------------------------------------------------------------- /src/assets/blog4.webp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dawidolko/FitnessGym-Project-React/HEAD/src/assets/blog4.webp -------------------------------------------------------------------------------- /src/assets/blog5.webp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dawidolko/FitnessGym-Project-React/HEAD/src/assets/blog5.webp -------------------------------------------------------------------------------- /src/assets/blog6.webp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dawidolko/FitnessGym-Project-React/HEAD/src/assets/blog6.webp -------------------------------------------------------------------------------- /src/assets/hero.webp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dawidolko/FitnessGym-Project-React/HEAD/src/assets/hero.webp -------------------------------------------------------------------------------- /src/assets/logo1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dawidolko/FitnessGym-Project-React/HEAD/src/assets/logo1.png -------------------------------------------------------------------------------- /src/assets/logo2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dawidolko/FitnessGym-Project-React/HEAD/src/assets/logo2.png -------------------------------------------------------------------------------- /src/assets/logo3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dawidolko/FitnessGym-Project-React/HEAD/src/assets/logo3.png -------------------------------------------------------------------------------- /src/assets/logo4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dawidolko/FitnessGym-Project-React/HEAD/src/assets/logo4.png -------------------------------------------------------------------------------- /src/assets/m_logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dawidolko/FitnessGym-Project-React/HEAD/src/assets/m_logo.png -------------------------------------------------------------------------------- /src/assets/team1.webp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dawidolko/FitnessGym-Project-React/HEAD/src/assets/team1.webp -------------------------------------------------------------------------------- /src/assets/team2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dawidolko/FitnessGym-Project-React/HEAD/src/assets/team2.jpg -------------------------------------------------------------------------------- /src/assets/team2.webp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dawidolko/FitnessGym-Project-React/HEAD/src/assets/team2.webp -------------------------------------------------------------------------------- /src/assets/team3.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dawidolko/FitnessGym-Project-React/HEAD/src/assets/team3.jpg -------------------------------------------------------------------------------- /src/assets/team3.webp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dawidolko/FitnessGym-Project-React/HEAD/src/assets/team3.webp -------------------------------------------------------------------------------- /src/assets/aboutus1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dawidolko/FitnessGym-Project-React/HEAD/src/assets/aboutus1.jpg -------------------------------------------------------------------------------- /src/assets/aboutus1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dawidolko/FitnessGym-Project-React/HEAD/src/assets/aboutus1.png -------------------------------------------------------------------------------- /src/assets/aboutus2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dawidolko/FitnessGym-Project-React/HEAD/src/assets/aboutus2.jpg -------------------------------------------------------------------------------- /src/assets/aboutus2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dawidolko/FitnessGym-Project-React/HEAD/src/assets/aboutus2.png -------------------------------------------------------------------------------- /src/assets/aboutus3.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dawidolko/FitnessGym-Project-React/HEAD/src/assets/aboutus3.jpg -------------------------------------------------------------------------------- /src/assets/aboutus3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dawidolko/FitnessGym-Project-React/HEAD/src/assets/aboutus3.png -------------------------------------------------------------------------------- /src/assets/blog_big1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dawidolko/FitnessGym-Project-React/HEAD/src/assets/blog_big1.jpg -------------------------------------------------------------------------------- /src/assets/blog_big2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dawidolko/FitnessGym-Project-React/HEAD/src/assets/blog_big2.jpg -------------------------------------------------------------------------------- /src/assets/blog_big3.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dawidolko/FitnessGym-Project-React/HEAD/src/assets/blog_big3.jpg -------------------------------------------------------------------------------- /src/assets/blog_big4.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dawidolko/FitnessGym-Project-React/HEAD/src/assets/blog_big4.jpg -------------------------------------------------------------------------------- /src/assets/blog_big5.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dawidolko/FitnessGym-Project-React/HEAD/src/assets/blog_big5.jpg -------------------------------------------------------------------------------- /src/assets/blog_big6.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dawidolko/FitnessGym-Project-React/HEAD/src/assets/blog_big6.jpg -------------------------------------------------------------------------------- /src/assets/client1.webp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dawidolko/FitnessGym-Project-React/HEAD/src/assets/client1.webp -------------------------------------------------------------------------------- /src/assets/client2.webp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dawidolko/FitnessGym-Project-React/HEAD/src/assets/client2.webp -------------------------------------------------------------------------------- /src/assets/client3.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dawidolko/FitnessGym-Project-React/HEAD/src/assets/client3.jpg -------------------------------------------------------------------------------- /src/assets/client3.webp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dawidolko/FitnessGym-Project-React/HEAD/src/assets/client3.webp -------------------------------------------------------------------------------- /src/assets/client4.webp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dawidolko/FitnessGym-Project-React/HEAD/src/assets/client4.webp -------------------------------------------------------------------------------- /src/assets/client5.webp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dawidolko/FitnessGym-Project-React/HEAD/src/assets/client5.webp -------------------------------------------------------------------------------- /src/assets/client6.webp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dawidolko/FitnessGym-Project-React/HEAD/src/assets/client6.webp -------------------------------------------------------------------------------- /src/assets/contact.webp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dawidolko/FitnessGym-Project-React/HEAD/src/assets/contact.webp -------------------------------------------------------------------------------- /src/assets/counter.webp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dawidolko/FitnessGym-Project-React/HEAD/src/assets/counter.webp -------------------------------------------------------------------------------- /src/assets/creatine1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dawidolko/FitnessGym-Project-React/HEAD/src/assets/creatine1.png -------------------------------------------------------------------------------- /src/assets/creatine2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dawidolko/FitnessGym-Project-React/HEAD/src/assets/creatine2.png -------------------------------------------------------------------------------- /src/assets/creatine3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dawidolko/FitnessGym-Project-React/HEAD/src/assets/creatine3.png -------------------------------------------------------------------------------- /src/assets/creatine4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dawidolko/FitnessGym-Project-React/HEAD/src/assets/creatine4.png -------------------------------------------------------------------------------- /src/assets/creatine5.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dawidolko/FitnessGym-Project-React/HEAD/src/assets/creatine5.png -------------------------------------------------------------------------------- /src/assets/creatine6.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dawidolko/FitnessGym-Project-React/HEAD/src/assets/creatine6.png -------------------------------------------------------------------------------- /src/assets/fitness.webp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dawidolko/FitnessGym-Project-React/HEAD/src/assets/fitness.webp -------------------------------------------------------------------------------- /src/assets/header-bg.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dawidolko/FitnessGym-Project-React/HEAD/src/assets/header-bg.jpg -------------------------------------------------------------------------------- /src/assets/protein1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dawidolko/FitnessGym-Project-React/HEAD/src/assets/protein1.png -------------------------------------------------------------------------------- /src/assets/protein2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dawidolko/FitnessGym-Project-React/HEAD/src/assets/protein2.png -------------------------------------------------------------------------------- /src/assets/protein3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dawidolko/FitnessGym-Project-React/HEAD/src/assets/protein3.png -------------------------------------------------------------------------------- /src/assets/protein4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dawidolko/FitnessGym-Project-React/HEAD/src/assets/protein4.png -------------------------------------------------------------------------------- /src/assets/protein5.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dawidolko/FitnessGym-Project-React/HEAD/src/assets/protein5.png -------------------------------------------------------------------------------- /src/assets/protein6.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dawidolko/FitnessGym-Project-React/HEAD/src/assets/protein6.png -------------------------------------------------------------------------------- /src/assets/protein7.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dawidolko/FitnessGym-Project-React/HEAD/src/assets/protein7.png -------------------------------------------------------------------------------- /src/assets/blog_big1.webp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dawidolko/FitnessGym-Project-React/HEAD/src/assets/blog_big1.webp -------------------------------------------------------------------------------- /src/assets/blog_big2.webp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dawidolko/FitnessGym-Project-React/HEAD/src/assets/blog_big2.webp -------------------------------------------------------------------------------- /src/assets/blog_big3.webp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dawidolko/FitnessGym-Project-React/HEAD/src/assets/blog_big3.webp -------------------------------------------------------------------------------- /src/assets/blog_big4.webp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dawidolko/FitnessGym-Project-React/HEAD/src/assets/blog_big4.webp -------------------------------------------------------------------------------- /src/assets/blog_big5.webp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dawidolko/FitnessGym-Project-React/HEAD/src/assets/blog_big5.webp -------------------------------------------------------------------------------- /src/assets/blog_big6.webp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dawidolko/FitnessGym-Project-React/HEAD/src/assets/blog_big6.webp -------------------------------------------------------------------------------- /src/assets/hero_blog.webp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dawidolko/FitnessGym-Project-React/HEAD/src/assets/hero_blog.webp -------------------------------------------------------------------------------- /src/assets/preworkout1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dawidolko/FitnessGym-Project-React/HEAD/src/assets/preworkout1.png -------------------------------------------------------------------------------- /src/assets/preworkout2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dawidolko/FitnessGym-Project-React/HEAD/src/assets/preworkout2.png -------------------------------------------------------------------------------- /src/assets/preworkout3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dawidolko/FitnessGym-Project-React/HEAD/src/assets/preworkout3.png -------------------------------------------------------------------------------- /src/assets/preworkout4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dawidolko/FitnessGym-Project-React/HEAD/src/assets/preworkout4.png -------------------------------------------------------------------------------- /src/assets/preworkout5.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dawidolko/FitnessGym-Project-React/HEAD/src/assets/preworkout5.png -------------------------------------------------------------------------------- /src/assets/blog_big1-m.webp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dawidolko/FitnessGym-Project-React/HEAD/src/assets/blog_big1-m.webp -------------------------------------------------------------------------------- /src/assets/fitnessClass.webp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dawidolko/FitnessGym-Project-React/HEAD/src/assets/fitnessClass.webp -------------------------------------------------------------------------------- /src/assets/testimonials.webp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dawidolko/FitnessGym-Project-React/HEAD/src/assets/testimonials.webp -------------------------------------------------------------------------------- /src/assets/fitnessgym.dawidolko.pl_.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dawidolko/FitnessGym-Project-React/HEAD/src/assets/fitnessgym.dawidolko.pl_.png -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/custom.md: -------------------------------------------------------------------------------- 1 | --- 2 | name: Custom issue template 3 | about: Describe this issue template's purpose here. 4 | title: '' 5 | labels: '' 6 | assignees: '' 7 | 8 | --- 9 | 10 | 11 | -------------------------------------------------------------------------------- /src/global.scss: -------------------------------------------------------------------------------- 1 | $main: #369669; 2 | $white: #fff; 3 | $dark: #161616; 4 | $darker: #292525; 5 | 6 | @mixin flexCenter($direction) { 7 | display: flex; 8 | flex-direction: $direction; 9 | justify-content: center; 10 | align-items: center; 11 | } 12 | -------------------------------------------------------------------------------- /src/components/Hero/Hero.jsx: -------------------------------------------------------------------------------- 1 | import "./Hero.scss"; 2 | 3 | const Hero = (props) => { 4 | return ( 5 |
6 |
7 |

{props.title}

8 |
9 |
10 | ); 11 | }; 12 | 13 | export default Hero; 14 | -------------------------------------------------------------------------------- /src/pages/Cart.jsx: -------------------------------------------------------------------------------- 1 | import CartContent from "../components/CartContent/CartContent"; 2 | import Hero from "../components/Hero/Hero"; 3 | 4 | const Cart = () => { 5 | return ( 6 | <> 7 | 8 | 9 | 10 | ); 11 | }; 12 | 13 | export default Cart; 14 | -------------------------------------------------------------------------------- /src/pages/Shop.jsx: -------------------------------------------------------------------------------- 1 | import ShopContent from "../components/ShopContent/ShopContent"; 2 | import Hero from "../components/Hero/Hero"; 3 | 4 | const Shop = () => { 5 | return ( 6 |
7 | 8 | 9 |
10 | ); 11 | }; 12 | 13 | export default Shop; 14 | -------------------------------------------------------------------------------- /src/components/NotFound/NotFound.scss: -------------------------------------------------------------------------------- 1 | .notFound { 2 | height: 100vh; 3 | display: flex; 4 | flex-direction: column; 5 | justify-content: center; 6 | align-items: center; 7 | gap: 1em; 8 | background-color: #2e2e2e; 9 | 10 | &__icon { 11 | font-size: 20rem; 12 | } 13 | 14 | &__error { 15 | font-size: 8rem; 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /src/pages/Blog.jsx: -------------------------------------------------------------------------------- 1 | import AnimatedPage from "../components/AnimatedPage/AnimatedPage"; 2 | import Hero from "../components/Hero/Hero"; 3 | import BlogContent from "../components/BlogContent/BlogContent"; 4 | 5 | const Blog = () => { 6 | return ( 7 | 8 | 9 | 10 | 11 | ); 12 | }; 13 | 14 | export default Blog; 15 | -------------------------------------------------------------------------------- /src/index.js: -------------------------------------------------------------------------------- 1 | import React from "react"; 2 | import ReactDOM from "react-dom/client"; 3 | import "./index.css"; 4 | import App from "./App"; 5 | import { BrowserRouter } from "react-router-dom"; 6 | 7 | const root = ReactDOM.createRoot(document.getElementById("root")); 8 | root.render( 9 | 10 | 11 | 12 | 13 | 14 | ); 15 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # See https://help.github.com/articles/ignoring-files/ for more about ignoring files. 2 | 3 | # dependencies 4 | /node_modules 5 | /.pnp 6 | .pnp.js 7 | 8 | # testing 9 | /coverage 10 | 11 | # production 12 | /build 13 | 14 | # misc 15 | .DS_Store 16 | .env.local 17 | .env.development.local 18 | .env.test.local 19 | .env.production.local 20 | 21 | npm-debug.log* 22 | yarn-debug.log* 23 | yarn-error.log* 24 | -------------------------------------------------------------------------------- /src/components/Map/Map.scss: -------------------------------------------------------------------------------- 1 | .map { 2 | position: relative; 3 | height: 0; 4 | overflow: hidden; 5 | padding-bottom: 55%; 6 | 7 | &__frame { 8 | position: absolute; 9 | left: 0; 10 | top: 0; 11 | height: 100%; 12 | width: 100%; 13 | border: 0; 14 | } 15 | } 16 | 17 | @media (min-width: 796px) { 18 | .map { 19 | padding-bottom: 40%; 20 | } 21 | } 22 | 23 | @media (min-width: 1024px) { 24 | .map { 25 | padding-bottom: 25%; 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /src/pages/Faq.jsx: -------------------------------------------------------------------------------- 1 | import AnimatedPage from "../components/AnimatedPage/AnimatedPage"; 2 | import Hero from "../components/Hero/Hero"; 3 | import Accordion from "../components/Accordion/Accordion"; 4 | import Message from "../components/Message/Message"; 5 | 6 | const Faq = () => { 7 | return ( 8 | 9 | 10 | 11 | 12 | 13 | ); 14 | }; 15 | 16 | export default Faq; 17 | -------------------------------------------------------------------------------- /src/components/LogoSlider/LogoSlider.scss: -------------------------------------------------------------------------------- 1 | .slider { 2 | display: flex; 3 | justify-content: center; 4 | align-items: center; 5 | 6 | &__wrapper { 7 | width: 70%; 8 | margin: 0 auto; 9 | } 10 | 11 | &__box { 12 | height: 200px; 13 | display: flex !important; 14 | justify-content: center; 15 | align-items: center; 16 | background-color: #fff; 17 | 18 | img { 19 | filter: grayscale(1); 20 | opacity: 0.7; 21 | object-fit: cover; 22 | } 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /src/pages/Contact.jsx: -------------------------------------------------------------------------------- 1 | import AnimatedPage from "../components/AnimatedPage/AnimatedPage"; 2 | import Hero from "../components/Hero/Hero"; 3 | import ContactContent from "../components/ContactContent/ContactContent"; 4 | import Map from "../components/Map/Map"; 5 | 6 | const Contact = () => { 7 | return ( 8 | 9 | 10 | 11 | 12 | 13 | ); 14 | }; 15 | 16 | export default Contact; 17 | -------------------------------------------------------------------------------- /src/components/ContactContent/ContactBox.jsx: -------------------------------------------------------------------------------- 1 | const ContactBox = (props) => { 2 | return ( 3 |
4 | 10 | {props.icon} 11 |

{props.boxTitle}

12 |

{props.details}

13 |
14 |
15 | ); 16 | }; 17 | 18 | export default ContactBox; 19 | -------------------------------------------------------------------------------- /src/components/FixedBg/FixedBg.jsx: -------------------------------------------------------------------------------- 1 | import "./FixedBg.scss"; 2 | import { Link } from "react-router-dom"; 3 | 4 | const FixedBg = (props) => { 5 | return ( 6 |
7 |
8 |

{props.text}

9 |

{props.title}

10 | 11 | JOIN US 12 | 13 |
14 |
15 | ); 16 | }; 17 | 18 | export default FixedBg; 19 | -------------------------------------------------------------------------------- /src/components/BlogContent/Article/ArticleItem.jsx: -------------------------------------------------------------------------------- 1 | const ArticleItem = (props) => { 2 | return ( 3 |
4 | {props.alt} 5 |
6 |

{props.title}

7 |

{props.text}

8 |

{props.highlight}

9 |

{props.text2}

10 |
11 |
12 | ); 13 | }; 14 | 15 | export default ArticleItem; 16 | -------------------------------------------------------------------------------- /src/components/Testimonials/TestimonialsItem.jsx: -------------------------------------------------------------------------------- 1 | const TestimonialsItem = (props) => { 2 | return ( 3 |
4 |
5 | {props.alt} 6 |
7 |

{props.name}

8 |

Our Client

9 |
10 |
11 |

{props.review}

12 |
13 | ); 14 | }; 15 | 16 | export default TestimonialsItem; 17 | -------------------------------------------------------------------------------- /src/components/BlogContent/BlogContent.jsx: -------------------------------------------------------------------------------- 1 | import "./BlogContent.scss"; 2 | import blogData from "./BlogData"; 3 | import BlogItem from "./BlogItem"; 4 | 5 | const BlogContent = () => { 6 | return ( 7 |
8 |

9 | Explore the Latest Fitness Insights & News 10 |

11 |
12 | {blogData.map((item) => ( 13 | 14 | ))} 15 |
16 |
17 | ); 18 | }; 19 | 20 | export default BlogContent; 21 | -------------------------------------------------------------------------------- /src/components/Pricing/PricingData.js: -------------------------------------------------------------------------------- 1 | const pricingData = [ 2 | { 3 | id: 1, 4 | title: "Basic Plan", 5 | price: "59", 6 | yoga: false, 7 | fashion: false, 8 | swimming: false, 9 | }, 10 | { 11 | id: 2, 12 | title: "Standard Plan", 13 | price: "99", 14 | yoga: true, 15 | fashion: true, 16 | swimming: false, 17 | bestOffer: true, 18 | }, 19 | { 20 | id: 3, 21 | title: "Premium Plan", 22 | price: "156", 23 | yoga: true, 24 | fashion: true, 25 | swimming: true, 26 | }, 27 | ]; 28 | 29 | export default pricingData; 30 | -------------------------------------------------------------------------------- /src/components/AnimatedPage/AnimatedPage.jsx: -------------------------------------------------------------------------------- 1 | import { motion } from "framer-motion"; 2 | 3 | const animation = { 4 | initial: { opacity: 0, y: 50 }, 5 | animate: { opacity: 1, y: 0 }, 6 | exit: { 7 | opacity: 0, 8 | y: -50, 9 | transition: { duration: 0.3, ease: "easeInOut" }, 10 | }, 11 | }; 12 | 13 | const AnimatedPage = ({ children }) => { 14 | return ( 15 | 20 | {children} 21 | 22 | ); 23 | }; 24 | 25 | export default AnimatedPage; 26 | -------------------------------------------------------------------------------- /src/components/ContactContent/ContactContent.jsx: -------------------------------------------------------------------------------- 1 | import "./ContactContent.scss"; 2 | import boxData from "./BoxData"; 3 | import ContactBox from "./ContactBox"; 4 | import ContactForm from "./ContactForm"; 5 | 6 | const ContactContent = () => { 7 | return ( 8 |
9 |
10 |
11 | {boxData.map((box) => ( 12 | 13 | ))} 14 |
15 |
16 | 17 |
18 |
19 |
20 | ); 21 | }; 22 | 23 | export default ContactContent; 24 | -------------------------------------------------------------------------------- /src/components/Team/TeamData.js: -------------------------------------------------------------------------------- 1 | import team1 from "../../assets/team1.webp"; 2 | import team2 from "../../assets/team2.webp"; 3 | import team3 from "../../assets/team3.webp"; 4 | 5 | const teamData = [ 6 | { 7 | id: 1, 8 | img: team1, 9 | alt: "Photo of the fitness coach - John Carter.", 10 | name: "John Carter", 11 | }, 12 | { 13 | id: 2, 14 | img: team2, 15 | alt: "Photo of the personal trainer - Emily Brown.", 16 | name: "Emily Brown", 17 | }, 18 | { 19 | id: 3, 20 | img: team3, 21 | alt: "Photo of the fitness expert - Michael Green.", 22 | name: "Michael Green", 23 | }, 24 | ]; 25 | 26 | export default teamData; 27 | -------------------------------------------------------------------------------- /src/components/Hero/Hero.scss: -------------------------------------------------------------------------------- 1 | @import "../../global.scss"; 2 | 3 | .hero { 4 | &__img { 5 | height: 50vh; 6 | background: url("../../assets/hero.webp") rgba(0, 0, 0, 0.8); 7 | background-blend-mode: darken; 8 | background-size: cover; 9 | background-position: center; 10 | } 11 | 12 | &__title { 13 | @include flexCenter(row); 14 | height: 100%; 15 | color: rgb(66, 66, 66); 16 | font-size: 5rem; 17 | font-style: italic; 18 | } 19 | 20 | &__img-blog { 21 | height: 50vh; 22 | background: url("../../assets/hero_blog.webp") rgba(0, 0, 0, 0.8); 23 | background-blend-mode: darken; 24 | background-size: cover; 25 | background-position: top; 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/feature_request.md: -------------------------------------------------------------------------------- 1 | --- 2 | name: Feature request 3 | about: Suggest an idea for this project 4 | title: '' 5 | labels: '' 6 | assignees: '' 7 | 8 | --- 9 | 10 | **Is your feature request related to a problem? Please describe.** 11 | A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] 12 | 13 | **Describe the solution you'd like** 14 | A clear and concise description of what you want to happen. 15 | 16 | **Describe alternatives you've considered** 17 | A clear and concise description of any alternative solutions or features you've considered. 18 | 19 | **Additional context** 20 | Add any other context or screenshots about the feature request here. 21 | -------------------------------------------------------------------------------- /src/components/Map/Map.jsx: -------------------------------------------------------------------------------- 1 | import "./Map.scss"; 2 | 3 | const Map = () => { 4 | return ( 5 |
6 | 15 |
16 | ); 17 | }; 18 | 19 | export default Map; 20 | -------------------------------------------------------------------------------- /src/components/BlogContent/Article/Article.jsx: -------------------------------------------------------------------------------- 1 | import "./Article.scss"; 2 | import Hero from "../../Hero/Hero"; 3 | import articleData from "./ArticleData"; 4 | import ArticleItem from "./ArticleItem"; 5 | import { useParams } from "react-router-dom"; 6 | 7 | const Article = () => { 8 | const { id } = useParams(); 9 | 10 | const selectedArticle = articleData.find((item) => item.id === Number(id)); 11 | 12 | if (!selectedArticle) { 13 | return

Article not found

; 14 | } 15 | 16 | return ( 17 | <> 18 | 19 |
20 | 21 |
22 | 23 | ); 24 | }; 25 | 26 | export default Article; 27 | -------------------------------------------------------------------------------- /src/components/Message/Message.scss: -------------------------------------------------------------------------------- 1 | @import "../../global.scss"; 2 | 3 | .message { 4 | @include flexCenter(column); 5 | gap: 1em; 6 | padding: 3em 1em 2em; 7 | background-color: rgb(230, 229, 228); 8 | 9 | &__title { 10 | font-size: 4rem; 11 | text-align: center; 12 | } 13 | 14 | &__link { 15 | display: flex; 16 | align-items: center; 17 | gap: 0.5em; 18 | margin-top: 0.5em; 19 | padding: 0.8em 1.8em; 20 | background-color: $main; 21 | color: $white; 22 | border-radius: 5px; 23 | } 24 | 25 | &__icon { 26 | font-size: 2.2rem; 27 | } 28 | } 29 | 30 | @media (min-width: 768px) { 31 | .message { 32 | &__link { 33 | transition: background-color 0.3s ease; 34 | &:hover { 35 | background-color: $dark; 36 | } 37 | } 38 | } 39 | } 40 | -------------------------------------------------------------------------------- /src/components/NotFound/NotFound.jsx: -------------------------------------------------------------------------------- 1 | import "./NotFound.scss"; 2 | import { useEffect } from "react"; 3 | import { FaRegFaceFrown } from "react-icons/fa6"; 4 | import { useNavigate } from "react-router-dom"; 5 | 6 | const NotFound = () => { 7 | const navigate = useNavigate(); 8 | 9 | useEffect(() => { 10 | setTimeout(() => { 11 | navigate(-1); 12 | }, 8000); 13 | }); 14 | 15 | return ( 16 |
17 | 18 |

404

19 |

Page not found

20 |

21 | We're sorry, the page you requsted could not be found. 22 |

23 |
24 | ); 25 | }; 26 | 27 | export default NotFound; 28 | -------------------------------------------------------------------------------- /src/components/Message/Message.jsx: -------------------------------------------------------------------------------- 1 | import "./Message.scss"; 2 | import { Link } from "react-router-dom"; 3 | import { AiOutlineMail } from "react-icons/ai"; 4 | 5 | const Message = () => { 6 | return ( 7 |
8 |

Experience Your First Session for Free

9 |

10 | Try our services at no cost and discover the workout that suits you 11 | best. Let us know your preferences, and we’ll guide you to the perfect 12 | training plan. 13 |

14 | 15 | 16 | CONTACT US 17 | 18 |
19 | ); 20 | }; 21 | 22 | export default Message; 23 | -------------------------------------------------------------------------------- /src/components/ContactContent/BoxData.js: -------------------------------------------------------------------------------- 1 | import { FaMapLocationDot, FaPhoneVolume } from "react-icons/fa6"; 2 | import { LuMails } from "react-icons/lu"; 3 | 4 | const boxData = [ 5 | { 6 | id: 1, 7 | link: "https://maps.app.goo.gl/jKPN2oKWiUrcJuuD9", 8 | icon: , 9 | boxTitle: "Our Location", 10 | details: "38 Fitness Street, New York", 11 | target: "_blank", 12 | }, 13 | { 14 | id: 2, 15 | link: "tel:+1234567890", 16 | icon: , 17 | boxTitle: "Contact Us", 18 | details: "(123) 456 7890", 19 | }, 20 | { 21 | id: 3, 22 | link: "mailto:contact@fitnessgym.com", 23 | icon: , 24 | boxTitle: "Email Us", 25 | details: "contact@fitnessgym.com", 26 | }, 27 | ]; 28 | 29 | export default boxData; 30 | -------------------------------------------------------------------------------- /src/components/BlogContent/Article/Article.scss: -------------------------------------------------------------------------------- 1 | @import "../../../global.scss"; 2 | 3 | .article { 4 | @include flexCenter(column); 5 | padding: 3em 0; 6 | background-color: aliceblue; 7 | 8 | &__container { 9 | max-width: 800px; 10 | padding: 1em 1em 3em; 11 | box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.2); 12 | } 13 | 14 | &__img { 15 | width: 100%; 16 | margin-bottom: 1em; 17 | } 18 | 19 | &__title { 20 | margin-bottom: 1em; 21 | font-size: 3rem; 22 | line-height: 1.3; 23 | } 24 | 25 | &__text-highlight { 26 | margin: 2em 0; 27 | padding: 1.5em; 28 | color: rgb(54, 54, 54); 29 | background-color: rgb(233, 233, 233); 30 | font-style: italic; 31 | border-left: 4px solid $main; 32 | } 33 | } 34 | 35 | @media (min-width: 996px) { 36 | .article { 37 | padding: 4em 0 6em; 38 | } 39 | } 40 | -------------------------------------------------------------------------------- /src/components/CallBack/CallBack.scss: -------------------------------------------------------------------------------- 1 | @import "../../global.scss"; 2 | 3 | .callBack { 4 | @include flexCenter(column); 5 | gap: 1em; 6 | padding: 3em 0.5em; 7 | background-color: $main; 8 | color: $white; 9 | text-align: center; 10 | 11 | &__title { 12 | font-size: 4rem; 13 | } 14 | 15 | &__icon { 16 | font-size: 5rem; 17 | } 18 | 19 | &__text { 20 | font-size: 3rem; 21 | } 22 | 23 | &__btn { 24 | margin-top: 1em; 25 | padding: 1em 2em; 26 | border-radius: 6px; 27 | background-color: $dark; 28 | color: $white; 29 | font-weight: 500; 30 | border: none; 31 | font-size: 1.4rem; 32 | } 33 | } 34 | 35 | @media (min-width: 768px) { 36 | .callBack { 37 | &__btn { 38 | transition: background-color 0.3s ease, color 0.3s ease; 39 | 40 | &:hover { 41 | background-color: #fff; 42 | color: #000; 43 | } 44 | } 45 | } 46 | } 47 | -------------------------------------------------------------------------------- /src/pages/About.jsx: -------------------------------------------------------------------------------- 1 | import AnimatedPage from "../components/AnimatedPage/AnimatedPage"; 2 | import Hero from "../components/Hero/Hero"; 3 | import AboutUs from "../components/AboutUs/AboutUs"; 4 | import Testimonials from "../components/Testimonials/Testimonials"; 5 | import Team from "../components/Team/Team"; 6 | import FixedBg from "../components/FixedBg/FixedBg"; 7 | import Message from "../components/Message/Message"; 8 | 9 | const About = () => { 10 | return ( 11 | 12 | 13 | 14 | 15 | 16 | 21 | 22 | 23 | ); 24 | }; 25 | 26 | export default About; 27 | -------------------------------------------------------------------------------- /.github/FUNDING.yml: -------------------------------------------------------------------------------- 1 | # These are supported funding model platforms 2 | 3 | github: [dawidolko] 4 | patreon: # Replace with a single Patreon username 5 | open_collective: # Replace with a single Open Collective username 6 | ko_fi: # Replace with a single Ko-fi username 7 | tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel 8 | community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry 9 | liberapay: # Replace with a single Liberapay username 10 | issuehunt: # Replace with a single IssueHunt username 11 | lfx_crowdfunding: # Replace with a single LFX Crowdfunding project-name e.g., cloud-foundry 12 | polar: # Replace with a single Polar username 13 | buy_me_a_coffee: # Replace with a single Buy Me a Coffee username 14 | thanks_dev: # Replace with a single thanks.dev username 15 | custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2'] 16 | -------------------------------------------------------------------------------- /src/components/Counter/Counter.scss: -------------------------------------------------------------------------------- 1 | @import "../../global.scss"; 2 | 3 | .counter { 4 | @include flexCenter(column); 5 | gap: 4em; 6 | padding: 3em 0; 7 | background: url("../../assets/counter.webp") rgba(0, 0, 0, 0.8); 8 | background-blend-mode: darken; 9 | background-size: cover; 10 | background-position: center; 11 | 12 | &__box { 13 | @include flexCenter(column); 14 | } 15 | 16 | &__number { 17 | font-size: 7rem; 18 | color: $main; 19 | font-weight: 500; 20 | } 21 | 22 | &__text { 23 | color: $white; 24 | font-size: 2rem; 25 | font-weight: 500; 26 | letter-spacing: 1px; 27 | } 28 | } 29 | 30 | @media (min-width: 778px) { 31 | .counter { 32 | flex-direction: row; 33 | gap: 3em; 34 | padding: 8em 0.5em; 35 | background-attachment: fixed; 36 | 37 | &__number { 38 | font-size: 8rem; 39 | } 40 | } 41 | } 42 | 43 | @media (min-width: 996px) { 44 | .counter { 45 | gap: 5em; 46 | } 47 | } 48 | -------------------------------------------------------------------------------- /src/components/ShopContent/ShopProduct.jsx: -------------------------------------------------------------------------------- 1 | import React, { useContext } from "react"; 2 | import { CartContext } from "../ShopContext/ShopContext"; 3 | 4 | const ShopProduct = (props) => { 5 | const { id, img, name, price, isNew } = props; 6 | const { items, addToCart } = useContext(CartContext); 7 | const itemsInfo = items[id]; 8 | 9 | return ( 10 |
11 | {isNew && NEW} 12 |
13 | {name} 14 |
15 |
16 |

{name}

17 |

${price}

18 | 21 |
22 |
23 | ); 24 | }; 25 | 26 | export default ShopProduct; 27 | -------------------------------------------------------------------------------- /src/components/Pricing/Pricing.jsx: -------------------------------------------------------------------------------- 1 | import "./Pricing.scss"; 2 | import pricingData from "./PricingData"; 3 | import PricingItem from "./PricingItem"; 4 | import AnimationVariants from "../AnimationVariants/AnimationVariants"; 5 | import { motion, useInView } from "framer-motion"; 6 | import { useRef } from "react"; 7 | 8 | const Pricing = () => { 9 | const ref = useRef(); 10 | const isInView = useInView(ref, { once: true }); 11 | 12 | return ( 13 | 20 |

Best Pricing Plan For You

21 |
22 | {pricingData.map((data) => ( 23 | 24 | ))} 25 |
26 |
27 | ); 28 | }; 29 | 30 | export default Pricing; 31 | -------------------------------------------------------------------------------- /src/components/CallBack/CallBack.jsx: -------------------------------------------------------------------------------- 1 | import "./CallBack.scss"; 2 | import Modal from "../Modal/Modal"; 3 | import { FaPhoneVolume } from "react-icons/fa6"; 4 | import { useState } from "react"; 5 | 6 | const CallBack = () => { 7 | const [openModal, setOpenModal] = useState(false); 8 | 9 | return ( 10 |
11 |

Your Fitness Journey Starts With Us

12 | 13 |

Get a FREE consultation call

14 |

15 | Our dedicated team is ready to guide you on your path to fitness 16 | success. 17 |

18 | 21 | setOpenModal(false)} /> 22 |
23 | ); 24 | }; 25 | 26 | export default CallBack; 27 | -------------------------------------------------------------------------------- /src/components/AboutUs/AboutUs.jsx: -------------------------------------------------------------------------------- 1 | import AboutContent from "../AboutContent/AboutContent"; 2 | import about from "../../assets/about.webp"; 3 | 4 | const AboutUs = () => { 5 | return ( 6 | <> 7 | 14 | 15 | ); 16 | }; 17 | 18 | export default AboutUs; 19 | -------------------------------------------------------------------------------- /src/components/Modal/Modal.jsx: -------------------------------------------------------------------------------- 1 | import "./Modal.scss"; 2 | import { useState } from "react"; 3 | import { AnimatePresence } from "framer-motion"; 4 | import ModalComponent from "./ModalComponent"; 5 | 6 | const Modal = ({ open, onClose }) => { 7 | const [message, setMessage] = useState(""); 8 | const [isMessageSent, setIsMessageSent] = useState(false); 9 | 10 | const handleSubmit = (_, { resetForm }) => { 11 | setIsMessageSent(true); 12 | setMessage("Message sent successfully!"); 13 | resetForm(); 14 | setTimeout(() => { 15 | setMessage(""); 16 | onClose(); 17 | }, 2000); 18 | }; 19 | 20 | return ( 21 | 22 | {open && ( 23 | 32 | )} 33 | 34 | ); 35 | }; 36 | 37 | export default Modal; 38 | -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/bug_report.md: -------------------------------------------------------------------------------- 1 | --- 2 | name: Bug report 3 | about: Create a report to help us improve 4 | title: '' 5 | labels: '' 6 | assignees: '' 7 | 8 | --- 9 | 10 | **Describe the bug** 11 | A clear and concise description of what the bug is. 12 | 13 | **To Reproduce** 14 | Steps to reproduce the behavior: 15 | 1. Go to '...' 16 | 2. Click on '....' 17 | 3. Scroll down to '....' 18 | 4. See error 19 | 20 | **Expected behavior** 21 | A clear and concise description of what you expected to happen. 22 | 23 | **Screenshots** 24 | If applicable, add screenshots to help explain your problem. 25 | 26 | **Desktop (please complete the following information):** 27 | - OS: [e.g. iOS] 28 | - Browser [e.g. chrome, safari] 29 | - Version [e.g. 22] 30 | 31 | **Smartphone (please complete the following information):** 32 | - Device: [e.g. iPhone6] 33 | - OS: [e.g. iOS8.1] 34 | - Browser [e.g. stock browser, safari] 35 | - Version [e.g. 22] 36 | 37 | **Additional context** 38 | Add any other context about the problem here. 39 | -------------------------------------------------------------------------------- /src/components/Accordion/Accordion.scss: -------------------------------------------------------------------------------- 1 | @import "../../global.scss"; 2 | 3 | .accordion { 4 | @include flexCenter(column); 5 | gap: 2em; 6 | padding: 3em 1em; 7 | 8 | &__img { 9 | max-width: 500px; 10 | width: 100%; 11 | height: 100%; 12 | } 13 | 14 | &__title { 15 | margin-bottom: 1.5em; 16 | text-align: center; 17 | font-size: 4rem; 18 | font-style: italic; 19 | } 20 | 21 | &__item { 22 | max-width: 500px; 23 | margin-bottom: 10px; 24 | overflow: hidden; 25 | } 26 | 27 | &__box { 28 | display: flex; 29 | justify-content: space-between; 30 | align-items: center; 31 | padding: 1em; 32 | cursor: pointer; 33 | background-color: #d8d8d8cc; 34 | } 35 | 36 | &__answer { 37 | padding: 10px; 38 | background-color: rgba(253, 253, 253, 0.678); 39 | } 40 | } 41 | 42 | @media (min-width: 1024px) { 43 | .accordion { 44 | flex-direction: row; 45 | padding: 5em 0.5em; 46 | 47 | &__box { 48 | transition: color 0.3s ease; 49 | 50 | &:hover { 51 | color: $main; 52 | } 53 | } 54 | } 55 | } 56 | -------------------------------------------------------------------------------- /src/components/BlogContent/BlogItem.jsx: -------------------------------------------------------------------------------- 1 | import { FaUser, FaCalendarAlt } from "react-icons/fa"; 2 | import { Link } from "react-router-dom"; 3 | 4 | const BlogItem = (props) => { 5 | return ( 6 |
7 |
8 | {props.alt} 9 |
10 |
11 |
12 | 13 | By FitnessGym Team 14 | 15 | 16 | {props.month} 2023 17 | 18 |
19 |
20 |

{props.title}

21 |

{props.text}

22 | 23 | Read More 24 | 25 |
26 |
27 | ); 28 | }; 29 | 30 | export default BlogItem; 31 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2024 Dawid Olko 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /src/components/CartContent/CartModal.jsx: -------------------------------------------------------------------------------- 1 | import "./CartContent.scss"; 2 | import { motion } from "framer-motion"; 3 | import AnimationVariants from "../AnimationVariants/AnimationVariants"; 4 | 5 | const CartModal = ({ isOpen, closeModal }) => { 6 | return ( 7 | isOpen && ( 8 | 15 | 21 |

Order Confirmed!

22 |

23 | Your order has been successfully placed. 24 |

25 | 28 |
29 |
30 | ) 31 | ); 32 | }; 33 | 34 | export default CartModal; 35 | -------------------------------------------------------------------------------- /src/components/AboutContent/AboutContent.scss: -------------------------------------------------------------------------------- 1 | @import "../../global.scss"; 2 | 3 | .about { 4 | padding: 4em 0; 5 | 6 | &__container { 7 | @include flexCenter(column); 8 | gap: 2em; 9 | max-width: 500px; 10 | padding: 0 0.5em; 11 | } 12 | 13 | &__img { 14 | object-fit: cover; 15 | height: 400px; 16 | } 17 | 18 | &__title { 19 | margin-bottom: 0.7em; 20 | font-size: 4rem; 21 | line-height: 1.2; 22 | } 23 | 24 | &__span { 25 | color: $main; 26 | } 27 | 28 | &__text { 29 | margin-bottom: 2em; 30 | line-height: 1.8; 31 | } 32 | 33 | &__marks { 34 | display: flex; 35 | gap: 0.3em; 36 | margin-bottom: 0.5em; 37 | color: #383737; 38 | } 39 | 40 | &__mark { 41 | color: #000; 42 | } 43 | } 44 | 45 | @media (min-width: 1024px) { 46 | .about { 47 | padding: 6em 0; 48 | 49 | &__container { 50 | flex-direction: row; 51 | gap: 3em; 52 | max-width: unset; 53 | } 54 | 55 | &__img { 56 | height: 100%; 57 | } 58 | 59 | &__img-container { 60 | height: 600px; 61 | } 62 | 63 | &__content { 64 | max-width: 500px; 65 | } 66 | 67 | &__title { 68 | font-size: 5rem; 69 | } 70 | } 71 | } 72 | -------------------------------------------------------------------------------- /src/components/MainBackground/MainBackgroundData.js: -------------------------------------------------------------------------------- 1 | import bgc1 from "../../assets/bgc1.webp"; 2 | import bgc2 from "../../assets/blog_big1.jpg"; 3 | import bgc3 from "../../assets/bgc3.webp"; 4 | 5 | const sliderItems = [ 6 | { 7 | id: 1, 8 | img: bgc1, 9 | alt: "Man pushing his limits during a gym session", 10 | title: "KEEP PUSHING FORWARD", 11 | text: "Building strength and endurance requires dedication and hard work. We provide the tools and support to help you achieve your fitness goals.", 12 | }, 13 | { 14 | id: 2, 15 | img: bgc2, 16 | alt: "Woman pushing her boundaries in a fitness class", 17 | title: "NO EXCUSES, JUST RESULTS", 18 | text: "A healthy body and mind come from consistent training. Let us guide you through your fitness journey with tailored programs and expert advice.", 19 | }, 20 | { 21 | id: 3, 22 | img: bgc3, 23 | alt: "Woman receiving support during a workout", 24 | title: "TRAIN WITH CONFIDENCE", 25 | text: "Our gym provides not only top-notch equipment but also a supportive environment to help you conquer your fitness goals with ease.", 26 | }, 27 | ]; 28 | 29 | export default sliderItems; 30 | -------------------------------------------------------------------------------- /src/components/Testimonials/Testimonials.jsx: -------------------------------------------------------------------------------- 1 | import "./Testimonials.scss"; 2 | import TestimonialsItem from "./TestimonialsItem"; 3 | import testimonialsData from "./TestimonialsData"; 4 | import Slider from "react-slick"; 5 | import "slick-carousel/slick/slick.css"; 6 | import "slick-carousel/slick/slick-theme.css"; 7 | 8 | const Testimonials = () => { 9 | const sliderSettings = { 10 | infinite: true, 11 | speed: 2000, 12 | slidesToShow: 3, 13 | slidesToScroll: 1, 14 | arrows: false, 15 | autoplay: true, 16 | autoplaySpeed: 4000, 17 | 18 | responsive: [ 19 | { 20 | breakpoint: 1124, 21 | settings: { 22 | slidesToShow: 2, 23 | }, 24 | }, 25 | { 26 | breakpoint: 768, 27 | settings: { 28 | slidesToShow: 1, 29 | }, 30 | }, 31 | ], 32 | }; 33 | 34 | return ( 35 |
36 |
37 |

What Our Client Say's About Us

38 | 39 | {testimonialsData.map((item) => ( 40 | 41 | ))} 42 | 43 |
44 |
45 | ); 46 | }; 47 | 48 | export default Testimonials; 49 | -------------------------------------------------------------------------------- /src/components/NewProducts/NewProducts.jsx: -------------------------------------------------------------------------------- 1 | import shopData from "../ShopContent/ShopData"; 2 | import ShopProduct from "../ShopContent/ShopProduct"; 3 | import { useNavigate } from "react-router-dom"; 4 | import { useRef } from "react"; 5 | import { motion, useInView } from "framer-motion"; 6 | import AnimationVariants from "../AnimationVariants/AnimationVariants"; 7 | 8 | const NewProducts = () => { 9 | const ref = useRef(); 10 | const isInView = useInView(ref, { once: true }); 11 | const navigate = useNavigate(); 12 | 13 | return ( 14 | 20 |

Latest Arrivals

21 |
22 | {shopData 23 | .filter((product) => product.isNew) 24 | .map((product) => ( 25 | 26 | ))} 27 |
28 | 31 |
32 | ); 33 | }; 34 | 35 | export default NewProducts; 36 | -------------------------------------------------------------------------------- /src/components/Fitness/Fitness.jsx: -------------------------------------------------------------------------------- 1 | import AboutContent from "../AboutContent/AboutContent"; 2 | import { motion, useInView } from "framer-motion"; 3 | import { useRef } from "react"; 4 | import AnimationVariants from "../AnimationVariants/AnimationVariants"; 5 | import fitness from "../../assets/fitness.webp"; 6 | 7 | const Fitness = () => { 8 | const ref = useRef(); 9 | const isInView = useInView(ref, { once: true }); 10 | 11 | return ( 12 | 17 | 25 | 26 | ); 27 | }; 28 | 29 | export default Fitness; 30 | -------------------------------------------------------------------------------- /public/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 9 | 10 | Logo 11 | 12 | 13 | 16 | 19 | 22 | FitnessGym 23 | 24 | 25 |
26 | 27 | 28 | -------------------------------------------------------------------------------- /src/components/CartContent/CartProduct.jsx: -------------------------------------------------------------------------------- 1 | import React, { useContext } from "react"; 2 | import { CartContext } from "../ShopContext/ShopContext"; 3 | import { AiOutlinePlus, AiOutlineMinus } from "react-icons/ai"; 4 | 5 | const CartProduct = (props) => { 6 | const { id, img, name, price } = props; 7 | const { items, addToCart, removeFromCart, singleProductAmount } = 8 | useContext(CartContext); 9 | const quantity = items[id]; 10 | 11 | return ( 12 | 13 | 14 | {name} 15 | 16 | {name} 17 | ${parseFloat(price).toFixed(2)} 18 | 19 | 22 | {quantity} 23 | 26 | 27 | 28 | ${(singleProductAmount(id) || 0).toFixed(2)} 29 | 30 | 31 | ); 32 | }; 33 | 34 | export default CartProduct; 35 | -------------------------------------------------------------------------------- /src/components/Counter/Counter.jsx: -------------------------------------------------------------------------------- 1 | import "./Counter.scss"; 2 | import CountUp from "react-countup"; 3 | import { useInView } from "react-intersection-observer"; 4 | 5 | const Counter = () => { 6 | const [ref, inView] = useInView({ 7 | triggerOnce: true, 8 | threshold: 0.5, 9 | }); 10 | 11 | return ( 12 |
13 | {inView && ( 14 |
15 | 16 |

Total Member

17 |
18 | )} 19 | {inView && ( 20 |
21 | 22 |

Equipment

23 |
24 | )} 25 | {inView && ( 26 |
27 | 28 |

Total Trainer

29 |
30 | )} 31 | {inView && ( 32 |
33 | 34 |

Win Awards

35 |
36 | )} 37 |
38 | ); 39 | }; 40 | 41 | export default Counter; 42 | -------------------------------------------------------------------------------- /src/components/MainBackground/MainBackground.jsx: -------------------------------------------------------------------------------- 1 | import "./MainBackground.scss"; 2 | import sliderItems from "./MainBackgroundData"; 3 | import MainBackgroundItem from "./MainBackgroundItem"; 4 | import { useState } from "react"; 5 | import { AiOutlineArrowLeft, AiOutlineArrowRight } from "react-icons/ai"; 6 | 7 | const MainBackground = () => { 8 | const [currentSlide, setCurrentSlide] = useState(0); 9 | 10 | const prevSlide = () => { 11 | setCurrentSlide((prev) => (prev === 0 ? sliderItems.length - 1 : prev - 1)); 12 | }; 13 | 14 | const nextSlide = () => { 15 | setCurrentSlide((prev) => (prev === sliderItems.length - 1 ? 0 : prev + 1)); 16 | }; 17 | 18 | return ( 19 |
20 | 21 | 22 | 23 |
24 | {sliderItems.map((item) => ( 25 | 30 | ))} 31 |
32 | 36 | 37 | 38 |
39 | ); 40 | }; 41 | 42 | export default MainBackground; 43 | -------------------------------------------------------------------------------- /src/App.js: -------------------------------------------------------------------------------- 1 | import { Route, Routes, useLocation } from "react-router-dom"; 2 | import Navbar from "./components/Navbar/Navbar"; 3 | import Home from "./pages/Home"; 4 | import About from "./pages/About"; 5 | import Faq from "./pages/Faq"; 6 | import Blog from "./pages/Blog"; 7 | import BlogId from "./components/BlogContent/Article/Article"; 8 | import Contact from "./pages/Contact"; 9 | import Footer from "./components/Footer/Footer"; 10 | import NotFound from "./components/NotFound/NotFound"; 11 | import Shop from "./pages/Shop"; 12 | import Cart from "./pages/Cart"; 13 | import ShopContext from "./components/ShopContext/ShopContext"; 14 | 15 | function App() { 16 | const location = useLocation(); 17 | 18 | return ( 19 | 20 | 21 | 22 | } /> 23 | } /> 24 | } /> 25 | } /> 26 | } /> 27 | } /> 28 | } /> 29 | } /> 30 | } /> 31 | 32 |