Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add new features and fix minor bugs #253

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added assets/client-4.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/session-5.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/session-6.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
85 changes: 66 additions & 19 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
</head>

<body>

<!-- Nav bar begins -->
<nav>
<div class="nav__bar">
<div class="nav__header">
Expand All @@ -36,8 +36,9 @@
</ul>
</div>
</nav>
<!-- Nav bar ends -->


<!-- Hero section starts -->
<header class="header" id="header">
<div class="section__container header__container">
<div class="header__content">
Expand All @@ -57,7 +58,9 @@ <h2>IS THE KEY TO EVERY SUCCESS</h2>
</div>
</div>
</header>
<!-- Hero section ends -->

<!-- About section starts -->
<section class="section__container about__container" id="about">
<div class="about__header">
<h2 class="section__header">ABOUT US</h2>
Expand Down Expand Up @@ -91,6 +94,7 @@ <h4>MODERN EQUIPMENTS</h4>
</div>
</div>
</section>
<!-- About section ends-->

<section class="session">
<div class="session__card">
Expand Down Expand Up @@ -133,6 +137,25 @@ <h4>CROSSFIT</h4>
READ MORE <i class="ri-arrow-right-line"></i>
</button>
</div>
<div class="session__card">
<h4>YOGA</h4>
<p>
Experience the flexibility that yoga brings with our exclusive
classes at FitPhysique.
</p>
<button class="btn btn__secondary">
READ MORE <i class="ri-arrow-right-line"></i>
</button>
</div>
<div class="session__card">
<h4>BOXING</h4>
<p>
Engage in some hardcore boxing routines with our special trainers at FitPhysique.
</p>
<button class="btn btn__secondary">
READ MORE <i class="ri-arrow-right-line"></i>
</button>
</div>
</section>

<section class="section__container trainer__container" id="trainer">
Expand Down Expand Up @@ -282,6 +305,7 @@ <h3><sup>$</sup>60<span>/month</span></h3>
</div>
</section>

<!-- Testimonial section starts -->
<section class="section__container client__container" id="client">
<section class="section__container client__container" id="client">
<h2 class="section__header">OUR TESTIMONIALS</h2>
Expand Down Expand Up @@ -325,11 +349,22 @@ <h4>Michael Wong</h4>
<h4>Emily Davis</h4>
</div>
</div>
<div class="swiper-slide">
<div class="client__card">
<img src="assets/client-4.png" alt="client" />
<div><i class="ri-double-quotes-r"></i></div>
<p>
FitPhysique is my home away from home. 10/10 would recommend.
</p>
<h4>Anonymous User</h4>
</div>
</div>
</section>

<footer class="footer" id="contact">
<div class="section__container footer__container">
<div class="footer__col">
<!-- Testimonial section end -->

<!-- <footer class="footer" id="contact">
<div class="section__container footer__container"> -->
<!-- <div class="footer__col">
<div class="footer__logo">
<a href="#"><img src="assets/logo.png" alt="logo" /></a>
</div>
Expand Down Expand Up @@ -357,8 +392,8 @@ <h4>Emily Davis</h4>
</a>
</li>
</ul>
</div>
<div class="footer__col">
</div> -->
<!-- <div class="footer__col">
<h4>GALLERY</h4>
<div class="gallery__grid">
<img src="assets/gallery-1.jpg" alt="gallery" />
Expand All @@ -371,8 +406,8 @@ <h4>GALLERY</h4>
<img src="assets/gallery-8.jpg" alt="gallery" />
<img src="assets/gallery-9.jpg" alt="gallery" />
</div>
</div>
<div class="footer__col">
</div> -->
<!-- <div class="footer__col">
<h4>NEWSLETTER</h4>
<p>
Don't miss out on the latest news and offers - sign up today and
Expand All @@ -397,7 +432,7 @@ <h4>NEWSLETTER</h4>
<span class="swiper-pagination-bullet swiper-pagination-bullet-active"></span>
</div>
</div>
</section>
</section> -->


<script src="https://cdn.jsdelivr.net/npm/swiper@9/swiper-bundle.min.js"></script>
Expand All @@ -416,7 +451,7 @@ <h4>NEWSLETTER</h4>
},
});
</script>

<!-- Blog section begins -->
<section class="blog" id="blog">
<div class="section__container blog__container">
<h2 class="section__header">BLOGS</h2>
Expand All @@ -437,13 +472,19 @@ <h4>Tips and Techniques for Efficient Exercise</h4>
<img src="assets/blog-4.jpg" alt="blog" />
<h4>A Beginner's Guide to Starting Your Running Journey</h4>
</div>
<div class="blog__card">
<img src="assets/session-5.jpg" alt="blog" />
<h4>Why warmup and cooldown is important</h4>
</div>
</div>
<div class="blog__btn">
<button class="btn btn__primary">VIEW ALL</button>
</div>
</div>
</section>
<!-- Blog section ends -->

<!-- BMI Calculator -->
<section class="section__container bmi__container">

<div class="wrapper">
Expand All @@ -456,7 +497,7 @@ <h2 class="bmi__header">BMI CALCULATOR</h2>
<input type="text" id="weight"><br><span id="weight_error"></span>
</p>

<button class="btn" id="btn">Calculate</button>
<button class="btn" id="btn" onclick="">Calculate</button>
<p id="output"></p>
</div>
</section>
Expand All @@ -476,7 +517,7 @@ <h2 class="protein__header">Protein Intake Calculator</h2>
<option value="muscle-gain">Muscle Gain</option>
<option value="fat-loss">Fat Loss</option>
</select>

<br>
<button class="btn" id="protein-btn">Calculate Protein Intake</button>
<p id="protein-output"></p>
</div>
Expand Down Expand Up @@ -504,7 +545,7 @@ <h2 class="macro__header">Macronutrient Calculator</h2>

<label for="macro-calories">Daily Calories:</label>
<input type="number" id="macro-calories" placeholder="Your daily calorie intake">

<br>
<button class="btn" id="macro-btn">Calculate Macros</button>
<p id="macro-output"></p>
</div>
Expand All @@ -515,6 +556,7 @@ <h2 class="macro__header">Macronutrient Calculator</h2>
<br>
<br>
<br>
<!-- Footer section -->
<footer class="footer" id="contact">
<div class="section__container footer__container">
<div class="footer__col">
Expand Down Expand Up @@ -566,12 +608,12 @@ <h4>NEWSLETTER</h4>
Don't miss out on the latest news and offers - sign up today and
join our thriving fitness community!
</p>
<form onsubmit="sendEmail(); reset(); return false;">
<span id="join">Join</span>
<form onsubmit="sendEmail(); reset(); return false;" id="form-bg">
<!-- <span id="join">Join</span> -->
<input type="text" id="name" placeholder="Enter Name" />
<input type="text" id="email" placeholder="Enter Email" />
<input type="text" id="phone" placeholder="Enter Phone no." />
<textarea id="message" name="message" rows="8" cols="33">Write your message...</textarea>
<textarea id="message" name="message" rows="8" cols="40">Write your message...</textarea>
<button type="submit" class="btn btn__primary">SEND</button>
</form>
<div class="footer__socials">
Expand All @@ -581,12 +623,17 @@ <h4>NEWSLETTER</h4>
</div>
</div>
</div>
<div class="swiper-pagination">
<span class="swiper-pagination-bullet"></span>
<span class="swiper-pagination-bullet"></span>
<span class="swiper-pagination-bullet swiper-pagination-bullet-active"></span>
</div>
<div class="footer__bar">
Copyright © 2024 Web Design Mastery. All rights reserved.
</div>
</footer>


<!-- Footer section end -->

<script src="https://unpkg.com/scrollreveal"></script>
<script src="https://cdn.jsdelivr.net/npm/swiper@11/swiper-bundle.min.js"></script>
Expand Down
31 changes: 24 additions & 7 deletions style.css
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
box-sizing: border-box;
margin: auto;
overflow-x: hidden;
scroll-snap-type: none;
}

.section__container {
Expand Down Expand Up @@ -254,6 +255,7 @@ nav {
.about__header .section__description {
max-width: 350px;
margin-inline: auto;
height: auto;
}

.about__grid {
Expand Down Expand Up @@ -333,6 +335,17 @@ nav {
url("assets/session-4.jpg");
}

/* added two more sections for more features */
.session__card:nth-child(5) {
background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
url("assets/session-5.jpg");
}

.session__card:nth-child(6) {
background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
url("assets/session-6.jpg");
}

.session__card h4 {
position: relative;
isolation: isolate;
Expand Down Expand Up @@ -490,6 +503,7 @@ nav {
max-width: 600px;
margin-inline: auto;
text-align: center;
background-color: var(--white);
}

.client__card img {
Expand All @@ -503,13 +517,13 @@ nav {
.client__card > div {
font-size: 2rem;
line-height: 2rem;
color: var(--text-light);
color: var(--text-dark);
opacity: 0.5;
}

.client__card p {
margin-bottom: 1rem;
color: var(--text-light);
color: var(--text-dark);
}

.client__card h4 {
Expand Down Expand Up @@ -589,8 +603,8 @@ nav {
flex-direction: column;
justify-content: center;
align-items: center;
width: 100%;
height:400px;
width: 50%;
height:500px;
background: white;


Expand Down Expand Up @@ -648,6 +662,7 @@ input[type="text"] {
font-size: 16px;
font-family: Arial, sans-serif;
transition: border-color 0.3s ease, box-shadow 0.3s ease;
height: 30px;
}


Expand Down Expand Up @@ -719,7 +734,8 @@ textarea:hover{
align-items: center;
flex-direction: column;
gap: 1 rem;
width: 100%;
width: 50%;
height: auto;

background: white;
border-radius: 5px;
Expand Down Expand Up @@ -755,7 +771,7 @@ url("assets/banner-2.png");
justify-content: center;
align-items: center;
width: 100%;
height:400px;
height:500px;
background: white;


Expand All @@ -768,7 +784,7 @@ url("assets/banner-2.png");
align-items: center;
flex-direction: column;
gap: 1 rem;
width: 100%;
width: 50%;

background: white;
border-radius: 5px;
Expand Down Expand Up @@ -796,6 +812,7 @@ url("assets/banner-2.png");
display: grid;
gap: 4rem 2rem;
width: 100%;
background-color: var(--text-dark);
}

.footer__logo img {
Expand Down