Build a Responsive Sport Website Design HTML CSS and JAVASCRIPT Tutorial With Source Code

Hi everybody! Using HTML, CSS, and JavaScript, you will learn

how to create a responsive website sports website design using HTML CSS, And JAVASCRIPT in this Blog.

Using standard JavaScript, users can use the navigation buttons on the web design moving car animation  website design to navigate through each slide. The clip-path property is utilized for the transition on the slide. I hope that when you design a website with online moving car animation , this video will be helpful.

You can download all of the source files and codes from this location. The code from the text editors must be copied and pasted. Try it out first by watching the video tutorial. It will assist you in comprehending everything. After that, if your code isn’t working right, look at the source codes provided and compare them to your own. It will assist you in comprehending everything, including your errors.

Index.html

				
					<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Complete resposive sport design dailywebdesign</title>

    <!-- font awesome cdn link -->
    <link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.2.0/css/all.min.css">

    <!-- custom css file links -->
    <link rel="stylesheet" href="style.css">
</head>
<body>

<!-- header section start page -->

<header class="header">
    <a href="#" class="logo"> <i class="fa-solid fa-baseball-bat-ball"></i> sporteyz </a>

    <nav class="navbar">
        <a href="#">Home</a>
        <a href="#">Shop</a>
        <a href="#">About</a>
        <a href="#">Review</a>
        <a href="#">Blog</a>
        <a href="#">Contact</a>
    </nav>

    <div class="icons">
        <div id="menu-btn" class="fas fa-bars"></div>
        <div id="search-btn" class="fas fa-search"></div>
    </div>

</header>

<!-- home section start -->

<section class="home" id="home">
    <div class="slides-container">

        <div class="slide active">
            <div class="content">
                <span>Never Stop</span>
                <h3>upto 50% off</h3>
                <a href="#" class="btn">Shop Now</a>
            </div>
            <div class="img">
                <img decoding="async" src="img/cricket_img0.png">
            </div>
        </div>


        <div class="slide">
            <div class="content">
                <span>Never Stop</span>
                <h3>upto 50% off</h3>
                <a href="#" class="btn">Shop Now</a>
            </div>
            <div class="img">
                <img decoding="async" src="img/cricket_img2.png">
            </div>
        </div>

    </div>
    <div id="next-slide" class="fas fa-angle-right" onclick="next()"></div>
    <div id="prev-slide" class="fas fa-angle-left" onclick="next()"></div>
</section>


<section class="banner-container">

<div class="banner">
    <img decoding="async" src="img/ne1.jpeg" alt="">
    <div class="content">
    <span>limited sales</span>
    <h3>upto 50% off</h3>
    <a href="#" class="btn">Shop Now</a>
</div>
</div>

<div class="banner">
    <img decoding="async" src="img/ne2.jpeg" alt="">
    <div class="content">
    <span>limited sales</span>
    <h3>upto 50% off</h3>
    <a href="#" class="btn">Shop Now</a>
</div>
</div>

<div class="banner">
    <img decoding="async" src="img/ne3.jpeg" alt="">
    <div class="content">
    <span>limited sales</span>
    <h3>upto 50% off</h3>
    <a href="#" class="btn">Shop Now</a>
</div>
</div>

</section>

<!-- category start -->

<div class="heading">
    <h1>Our Shop</h1>
</div>

<section class="category">
    <br>
    <h1 class="title"> our <span>category</span> <a href="#"> view all >> </a> </h1>

    <div class="box-container">

        <a href="#" class="box">
            <img decoding="async" src="img/bx1.jpeg" alt="">
            <h3>night stadium</h3>
        </a>

        <a href="#" class="box">
            <img decoding="async" src="img/home-bg.jpg" alt="">
            <h3>day stadium</h3>
        </a>

        <a href="#" class="box">
            <img decoding="async" src="img/home-bg2.jpg" alt="">
            <h3>day stadium</h3>
        </a>

        <a href="#" class="box">
            <img decoding="async" src="img/pic7.jpeg" alt="">
            <h3>day stadium</h3>
        </a>

        <a href="#" class="box">
            <img decoding="async" src="img/upmatch.jpeg" alt="">
            <h3>evening stadium</h3>
        </a>

    </div>
</section>


<!-- product section -->


<section class="products">
    <h1 class="title"> our <span>product</span> <a href="#">view all >></a></h1>
    <div class="box-container">

        <div class="box">
            <div class="icons">
                <a href="#" class="fas fa-shopping-cart"></a>
                <a href="#" class="fas fa-heart"></a>
                <a href="#" class="fas fa-eye"></a>
            </div>
            <div class="img">
                <img decoding="async" src="img/prod1.png" alt="">
            </div>
            <div class="content">
                <h3>Bag</h3>
                <div class="price">$19.99</div>
                <div class="stars">
                    <i class="fas fa-star"></i>
                    <i class="fas fa-star"></i>
                    <i class="fas fa-star"></i>
                    <i class="fas fa-star"></i>
                    <i class="fas fa-star-half"></i>
                </div>
            </div>
        </div>

        <div class="box">
            <div class="icons">
                <a href="#" class="fas fa-shopping-cart"></a>
                <a href="#" class="fas fa-heart"></a>
                <a href="#" class="fas fa-eye"></a>
            </div>
            <div class="img">
                <img decoding="async" src="img/prod2.png" alt="">
            </div>
            <div class="content">
                <h3>Cap</h3>
                <div class="price">$19.99</div>
                <div class="stars">
                    <i class="fas fa-star"></i>
                    <i class="fas fa-star"></i>
                    <i class="fas fa-star"></i>
                    <i class="fas fa-star"></i>
                    <i class="fas fa-star-half"></i>
                </div>
            </div>
        </div>

        <div class="box">
            <div class="icons">
                <a href="#" class="fas fa-shopping-cart"></a>
                <a href="#" class="fas fa-heart"></a>
                <a href="#" class="fas fa-eye"></a>
            </div>
            <div class="img">
                <img decoding="async" src="img/prod3.png" alt="">
            </div>
            <div class="content">
                <h3>Shose</h3>
                <div class="price">$19.99</div>
                <div class="stars">
                    <i class="fas fa-star"></i>
                    <i class="fas fa-star"></i>
                    <i class="fas fa-star"></i>
                    <i class="fas fa-star"></i>
                    <i class="fas fa-star-half"></i>
                </div>
            </div>
        </div>

        <div class="box">
            <div class="icons">
                <a href="#" class="fas fa-shopping-cart"></a>
                <a href="#" class="fas fa-heart"></a>
                <a href="#" class="fas fa-eye"></a>
            </div>
            <div class="img">
                <img decoding="async" src="img/prod4.png" alt="">
            </div>
            <div class="content">
                <h3>T-shirt</h3>
                <div class="price">$19.99</div>
                <div class="stars">
                    <i class="fas fa-star"></i>
                    <i class="fas fa-star"></i>
                    <i class="fas fa-star"></i>
                    <i class="fas fa-star"></i>
                    <i class="fas fa-star-half"></i>
                </div>
            </div>
        </div>

        <div class="box">
            <div class="icons">
                <a href="#" class="fas fa-shopping-cart"></a>
                <a href="#" class="fas fa-heart"></a>
                <a href="#" class="fas fa-eye"></a>
            </div>
            <div class="img">
                <img decoding="async" src="img/prod5.png" alt="">
            </div>
            <div class="content">
                <h3>Foot Ball</h3>
                <div class="price">$19.99</div>
                <div class="stars">
                    <i class="fas fa-star"></i>
                    <i class="fas fa-star"></i>
                    <i class="fas fa-star"></i>
                    <i class="fas fa-star"></i>
                    <i class="fas fa-star-half"></i>
                </div>
            </div>
        </div>

        <div class="box">
            <div class="icons">
                <a href="#" class="fas fa-shopping-cart"></a>
                <a href="#" class="fas fa-heart"></a>
                <a href="#" class="fas fa-eye"></a>
            </div>
            <div class="img">
                <img decoding="async" src="img/prod6.png" alt="">
            </div>
            <div class="content">
                <h3>Bat</h3>
                <div class="price">$19.99</div>
                <div class="stars">
                    <i class="fas fa-star"></i>
                    <i class="fas fa-star"></i>
                    <i class="fas fa-star"></i>
                    <i class="fas fa-star"></i>
                    <i class="fas fa-star-half"></i>
                </div>
            </div>
        </div>

        <div class="box">
            <div class="icons">
                <a href="#" class="fas fa-shopping-cart"></a>
                <a href="#" class="fas fa-heart"></a>
                <a href="#" class="fas fa-eye"></a>
            </div>
            <div class="img">
                <img decoding="async" src="img/prod7.png" alt="">
            </div>
            <div class="content">
                <h3>Ball</h3>
                <div class="price">$19.99</div>
                <div class="stars">
                    <i class="fas fa-star"></i>
                    <i class="fas fa-star"></i>
                    <i class="fas fa-star"></i>
                    <i class="fas fa-star"></i>
                    <i class="fas fa-star-half"></i>
                </div>
            </div>
        </div>

        <div class="box">
            <div class="icons">
                <a href="#" class="fas fa-shopping-cart"></a>
                <a href="#" class="fas fa-heart"></a>
                <a href="#" class="fas fa-eye"></a>
            </div>
            <div class="img">
                <img decoding="async" src="img/prod8.png" alt="">
            </div>
            <div class="content">
                <h3>Base Ball</h3>
                <div class="price">$19.99</div>
                <div class="stars">
                    <i class="fas fa-star"></i>
                    <i class="fas fa-star"></i>
                    <i class="fas fa-star"></i>
                    <i class="fas fa-star"></i>
                    <i class="fas fa-star-half"></i>
                </div>
            </div>
        </div>

    </div>
</section>


<!-- about section -->

<div class="heading">
    <h1>About Us</h1>
</div>

<section class="about">
    <div class="img">
        <img decoding="async" src="img/foter_bg.jpeg" alt="">
    </div>

    <div class="content">
        <span>Welcome to our Products</span>
        <h3>sporteyz</h3>
        <p>"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor 
            incididunt ut labore et dolore farhan aliqua. Ut enim ad minim veniam, quis nostrud exercitation 
            ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit 
            in voluptate </p>
            <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor 
             farhan aliqua. Ut enim ad minim veniam, quis</p>
             <a href="#" class="btn">read more</a>
    </div>
</section>


<!-- client section start -->


<div class="heading">
    <h1>Client's review</h1>
</div>

<section class="info-container">

    <div class="info">
        <img decoding="async" src="img/icon-1.png" alt="">
        <div class="content">
            <h3>fast delivery</h3>
            <span>within 30 minutes</span>
        </div>
    </div>

    <div class="info">
        <img decoding="async" src="img/icon-2.png" alt="">
        <div class="content">
            <h3>24/7 available</h3>
            <span>within 30 minutes</span>
        </div>
    </div>

    <div class="info">
        <img decoding="async" src="img/icon-3.png" alt="">
        <div class="content">
            <h3>easy payments</h3>
            <span>within 30 minutes</span>
        </div>
    </div>
</section>


<!-- review section start -->

<section class="review">

    <div class="box">
        <div class="user">
            <img decoding="async" src="img/pic-1.png" alt="">
            <div class="info">
                <h3>edward bey</h3>
                <span>happy client</span>
            </div>
        </div>
        <p>Lorem ipsum dolor sit amet, farhan aliqua. Ut enim ad minim veniam, quis</p>
    </div>

    <div class="box">
        <div class="user">
            <img decoding="async" src="img/pic-2.png" alt="">
            <div class="info">
                <h3>jenna bey</h3>
                <span>happy client</span>
            </div>
        </div>
        <p>Lorem ipsum dolor sit amet, farhan aliqua. Ut enim ad minim veniam, quis</p>
    </div>

    <div class="box">
        <div class="user">
            <img decoding="async" src="img/pic-3.png" alt="">
            <div class="info">
                <h3>jhon bey</h3>
                <span>happy client</span>
            </div>
        </div>
        <p>Lorem ipsum dolor sit amet, farhan aliqua. Ut enim ad minim veniam, quis</p>
    </div>

    <div class="box">
        <div class="user">
            <img decoding="async" src="img/pic-4.png" alt="">
            <div class="info">
                <h3>linda bey</h3>
                <span>happy client</span>
            </div>
        </div>
        <p>Lorem ipsum dolor sit amet, farhan aliqua. Ut enim ad minim veniam, quis</p>
    </div>

    <div class="box">
        <div class="user">
            <img decoding="async" src="img/pic-5.png" alt="">
            <div class="info">
                <h3>kennay bey</h3>
                <span>happy client</span>
            </div>
        </div>
        <p>Lorem ipsum dolor sit amet, farhan aliqua. Ut enim ad minim veniam, quis</p>
    </div>

    <div class="box">
        <div class="user">
            <img decoding="async" src="img/pic-6.png" alt="">
            <div class="info">
                <h3>lalisa bey</h3>
                <span>happy client</span>
            </div>
        </div>
        <p>Lorem ipsum dolor sit amet, farhan aliqua. Ut enim ad minim veniam, quis</p>
    </div>
</section>


<!-- blog section start -->

<div class="heading">
    <h1>our blog</h1>
</div>

<section class="blog">
    <h1 class="title"> our <span>blog</span><a href="#">view all>></a></h1>

    <div class="box-container">

        <div class="box">
            <div class="img">
                <img decoding="async" src="img/blog1.jpeg" alt="">
            </div>
            <div class="content">
                <div class="icons">
                    <a href="#"> <i class="fsa fa-clender"></i> 12 jan, 2023 </a>
                    <a href="#"> <i class="fsa fa-user"></i> by administrator</a>
                </div>
                <h3>blog title page</h3>
                <p>Lorem ipsum dolor sit amet, farhan aliqua. Ut enim ad minim veniam, quis</p>
                <a  href="#" class="btn">read more...</a>
            </div>
        </div>

        <div class="box">
            <div class="img">
                <img decoding="async" src="img/blog2.jpeg" alt="">
            </div>
            <div class="content">
                <div class="icons">
                    <a href="#"> <i class="fsa fa-clender"></i> 12 jan, 2023 </a>
                    <a href="#"> <i class="fsa fa-user"></i> by administrator</a>
                </div>
                <h3>blog title page</h3>
                <p>Lorem ipsum dolor sit amet, farhan aliqua. Ut enim ad minim veniam, quis</p>
                <a  href="#" class="btn">read more...</a>
            </div>
        </div>

        <div class="box">
            <div class="img">
                <img decoding="async" src="img/blog3.jpeg" alt="">
            </div>
            <div class="content">
                <div class="icons">
                    <a href="#"> <i class="fsa fa-clender"></i> 12 jan, 2023 </a>
                    <a href="#"> <i class="fsa fa-user"></i> by administrator</a>
                </div>
                <h3>blog title page</h3>
                <p>Lorem ipsum dolor sit amet, farhan aliqua. Ut enim ad minim veniam, quis</p>
                <a  href="#" class="btn">read more...</a>
            </div>
        </div>

        <div class="box">
            <div class="img">
                <img decoding="async" src="img/blog4.jpeg" alt="">
            </div>
            <div class="content">
                <div class="icons">
                    <a href="#"> <i class="fsa fa-clender"></i> 12 jan, 2023 </a>
                    <a href="#"> <i class="fsa fa-user"></i> by administrator</a>
                </div>
                <h3>blog title page</h3>
                <p>Lorem ipsum dolor sit amet, farhan aliqua. Ut enim ad minim veniam, quis</p>
                <a  href="#" class="btn">read more...</a>
            </div>
        </div>

        <div class="box">
            <div class="img">
                <img decoding="async" src="img/blog5.jpeg" alt="">
            </div>
            <div class="content">
                <div class="icons">
                    <a href="#"> <i class="fsa fa-clender"></i> 12 jan, 2023 </a>
                    <a href="#"> <i class="fsa fa-user"></i> by administrator</a>
                </div>
                <h3>blog title page</h3>
                <p>Lorem ipsum dolor sit amet, farhan aliqua. Ut enim ad minim veniam, quis</p>
                <a  href="#" class="btn">read more...</a>
            </div>
        </div>

        <div class="box">
            <div class="img">
                <img decoding="async" src="img/blog6.jpeg" alt="">
            </div>
            <div class="content">
                <div class="icons">
                    <a href="#"> <i class="fsa fa-clender"></i> 12 jan, 2023 </a>
                    <a href="#"> <i class="fsa fa-user"></i> by administrator</a>
                </div>
                <h3>blog title page</h3>
                <p>Lorem ipsum dolor sit amet, farhan aliqua. Ut enim ad minim veniam, quis</p>
                <a  href="#" class="btn">read more...</a>
            </div>
        </div>




    </div>
</section>


<!-- contect section start -->

<div class="heading">
    <h1>Contact us</h1>
</div>

<section class="contact">
    <div class="icons-container">

        <div class="icons">
            <i class="fas fa-phone"></i>
            <h3>our number</h3>
            <p>+111-222-3333</p>
            <p>+456-786-7890</p>
        </div>

        <div class="icons">
            <i class="fas fa-envelope"></i>
            <h3>our email</h3>
            <p>shaikhfarhan@gmail.com</p>
            <p>xyzemail@gmail.com</p>
        </div>

        <div class="icons">
            <i class="fas fa-map-marker-alt"></i>
            <h3>our address</h3>
            <p>mumbai, india - 401203</p>
        </div>

    </div>
    </section>



    <section class="footer">
        <div class="box-container">
            <div class="box">
                <h3>quick links</h3>
                <a href="#"><i class="fas fa-arrow-right"></i>Home</a>
                <a href="#"><i class="fas fa-arrow-right"></i>Shop</a>
                <a href="#"><i class="fas fa-arrow-right"></i>About</a>
                <a href="#"><i class="fas fa-arrow-right"></i>Review</a>
                <a href="#"><i class="fas fa-arrow-right"></i>Blog</a>
                <a href="#"><i class="fas fa-arrow-right"></i>Contact</a>
            </div>

            <div class="box">
                <h3>extra links</h3>
                <a href="#"><i class="fas fa-arrow-right"></i>my order</a>
                <a href="#"><i class="fas fa-arrow-right"></i>my favorite</a>
                <a href="#"><i class="fas fa-arrow-right"></i>my wishlist</a>
                <a href="#"><i class="fas fa-arrow-right"></i>my account</a>
                <a href="#"><i class="fas fa-arrow-right"></i>terms or use</a>
            </div>

            <div class="box">
                <h3>follow us</h3>
                <a href="#"> <i class="fab fa-facebook-f"></i> facebook </a>
                <a href="#"> <i class="fab fa-twitter"></i> twitter </a>
                <a href="#"> <i class="fab fa-instagram"></i> instagram </a>
                <a href="#"> <i class="fab fa-linkedin"></i> linkedin </a>
                <a href="#"> <i class="fab fa-pinterest"></i> pinterest </a>
            </div>

            <div class="box">
                <h3>newsletter</h3>
                <p>subscribe for lastest update</p>
                <form action="">
                    <input type="email" placeholder="enter your email address">
                    <input type="submit" value="subscribe" class="btn">
                </form>
                <img decoding="async" src="img/payment.png" class="payments" alt="">
            </div>
        </div>
    </section>

<div class="credit">created by dailywebdesign || all right reserved</div>
















    <!-- custom js file link -->
    <script src="main.js"></script>
    
</body>
</html>

				
			

style.css

				
					@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;400;500;600&display=swap');

:root{
    --yellow:#FFEF2B;
}

*{
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    outline: none;
    border: none;
    text-transform: capitalize;
    text-decoration: none;
    transition: .2s linear;
}
body{
    background:#FFEF2B;
}

.btn{
    margin-top: 1rem;
    display: inline-block;
    padding: .8rem 3rem;
    background: var(--yellow);
    color: #01411C;
    font-size: 1.7rem;
    cursor: pointer;
    font-weight: bold;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.7);
    border:0.1rem solid rgba(0,0,0,0.7);
}
.btn:hover{
    background: #01411C;
    color: #FFEF2B;
    box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.1);
}

html{
    font-size: 62.5%;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

section{
    padding: 3rem 9%;
}

.heading{
    background: url(img/foter_bg.jpeg) no-repeat;
    background-size: cover;
    background-position: center;
    padding-top: 12rem;
    padding-bottom: 8rem;
    position: relative;
    text-align: center;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.7);
    border:0.1rem solid rgba(0,0,0,0.7);
}

.heading h1{
    color:#FFEF2B;
    font-size: 5rem;
   font-weight: bold;
   
}

.title{
    display: flex;
    align-items: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    padding: 1.2rem 0;

    border-bottom:0.1rem solid rgba(0,0,0,0.7);
}

.title span{
    color: #01411C;
    padding-left:  .7rem;
}

.title a{
    margin-left: auto;
    color: #01411C;
    font-size: 1.5rem;
}

.header{
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--yellow);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 2rem 9%;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
}

.header .logo{
    font-size: 2.5rem;
    font-weight: bolder;
    color: #01411C;
}

.header .logo i{
    color: #01411C;
    padding-right: .5rem;
}

.header .navbar a{
    font-size: 1.7rem;
    color: #01411C;
    margin: 0 1rem;
    font-weight: bold;
}

.header .navbar a:hover{
    color: #01411C;
}

.header .icons div{
    font-size: 2.5rem;
    margin-left: 1.7rem;
    cursor: pointer;
    color: #01411C;
}

.header .icons div:hover{
    color: #01411C;
}

#menu-btn{
    display: none;
}

@keyframes fadeLeft{
    0% {
        opacity: 0;
        transform: translateX(-5rem);
    }
}

@keyframes fadeup {
    0%{
        opacity: 0;
        transform:  scale(0.5);
    }
}

.home{
    padding-top: 14rem;
    background: url(img/home-bg2.jpg) no-repeat;
    background-size: cover;
    background-position: center;
    position: relative;
}

.home .slides-container .slide{
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    display: none;
}
.home .slides-container .slide.active{
    display: flex;
}

.home .slides-container .slide .content{
    flex: 1 1 40rem;
    animation: fadeLeft .4s linear .4s backwards;
}

.home .slides-container .slide .content span{
    color: #FFEF2B;
    font-size: 3rem;
    font-weight: bolder;
}

.home .slides-container .slide .content h3{
    font-size: 6rem;
    color: #FFEF2B;
    padding:  .5rem 0;
}

.home .slides-container .slide .img{
    flex: 1 1 40rem;
    margin: 3rem 0;
}

.home .slides-container .slide .img img{
    width: 100%;
    animation: fadeup .4s linear;
}

.home #next-slide,
.home #prev-slide{
    position: absolute;
    top: 50%;
    transform: translateY(-50);
    height: 5rem;
    width: 5rem;
    line-height: 5rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
    text-align: center;
    background: #FFEF2B;
    font-size: 2rem;
    color: #01411C;
    cursor: pointer;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.7);
    border:0.1rem solid rgba(0,0,0,0.7);
}

.home #next-slide:hover,
.home #prev-slide:hover{
    background: #01411C;
    color: #FFEF2B;
    box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.1);
}

.home #prev-slide{
    left: 2rem;
}

.home #next-slide{
    right: 2rem;
}

.banner-container{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(32rem, 1fr));
    gap: 1.5rem;
}

.banner-container .banner{
    position: relative;
    height: 25rem;
    overflow: hidden;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.7);
    border:0.1rem solid rgba(0,0,0,0.7);
}

.banner-container .banner img{
    height: 100%;
    width: 100%;
    object-fit: cover;
}

.banner-container .banner .content{
    position: absolute;
    top: 50%;
    left: 2rem;
    transform: translateY(-50%);
}

.banner-container .banner .content span{
    color: #FFEF2B;
    font-size: 1.5rem;
}

.banner-container .banner .content h3{
    font-size: 2rem;
    padding-top: .5rem;
    color: #FFEF2B;
}

.banner-container .banner .content .btn{
    padding: .8rem 2.5rem;
}

.banner-container .banner:hover img{
    transform: scale(1.2);
}


.category .box-container{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
    gap: 1.5rem;
    padding: 4rem 0;
}

.category .box-container .box{
    text-align: center;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.7);
    border:0.1rem solid rgba(0,0,0,0.7);
}

.category .box-container .box img{
    width: 100%;
    height: 100%;
    
}

.category .box-container .box:hover img{
    transform: scale(1.2);
}

.category .box-container .box h3{
    font-size: 2rem;
    margin: 1rem 0;
    color: #01411C;
}

.category .box-container .box:hover h3{
     color: #01411C;
}

.products .box-container {
    display: -ms-grid;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(25rem, 1fr));
    gap: 1.5rem;
  }

  

  .products .box-container .box {
    position: relative;
    background: #FFEF2B;
    text-align: center;
    overflow: hidden;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.7);
    border:0.1rem solid rgba(0,0,0,0.7);
  }



.products .box-container .box:hover  .icons{
    top: 0;
}

  .products .box-container .box .icons {
   position: absolute;
    top: -105%;
    left: 0;
    height: 100%;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #01411C;
    gap: 1rem;
  }

  

  .products .box-container .box .icons a {
    font-size: 2rem;
    height: 5rem;
    width: 5rem;
    line-height: 5rem;
    background: #FFEF2B;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
    color: #01411C;
  }

  

.products .box-container .box .icons a:hover{
    background: #01411C;
    color:#FFEF2B;
}  

  

  .products .box-container .box .img {
    overflow: hidden;
  }

  

  .products .box-container .box .img img {
    height:100%;
    width:100%;
    object-fit: cover;
  }

  

  .products .box-container .box .content {
    padding: 1.5rem;
  }

  

  .products .box-container .box .content h3 {
    font-size: 2rem;
    color: #01411C;
  }

  

  .products .box-container .box .content .price {
    font-size: 2rem;
    color: #01411C;
    padding: 1rem 0;
  }

  

  .products .box-container .box .content .stars i {
    font-size: 1.7rem;
    color: #01411C;
  }


.about{
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.about img{
    flex: 1 1 40rem;
}

.about .img img{
    width: 545.59px;
    height: 364.39px;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.7);
    border:0.1rem solid rgba(0,0,0,0.7);
}

.about .content{
    flex: 1 1 40rem;
}

.about .content span{
    color: #01411C;
    font-size: 2.5rem;
    font-weight: bold;
}

.about .content h3{
    color: #01411C;
    font-size: 3rem;
    padding-top: .5rem;
    font-weight: bold;
}

.about .content p{
    color: #01411C;
    font-size: 1.4rem;
    line-height: 2;
    padding: 1rem 0;
    font-weight: bold;
}


.info-container{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(27rem, 1fr));
    gap: 1.5rem;
}

.info-container .info{
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 2rem 0;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.7);
    border:0.1rem solid rgba(0,0,0,0.7);
    background: #FFEF2B;
    
}

.info-container .info:hover{
    background: #01411C;
    
}

.info-container .info img{
    height: 7rem;
}

.info-container .info .content h3{
    font-size: 2rem;
    color: #01411C;
    padding-bottom: .5rem;
}
.info-container .info .content:hover h3{
    color: #FFEF2B;
}
.info-container .info .content span{
    font-size: 1.5rem;
    color: #01411C;
    font-weight: bold;
}

.info-container .info .content span:hover{
    color: #FFEF2B;
    font-weight: bold;
}


.review{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(30rem, 1fr));
    gap: 1.5rem;
}

.review .box{
    padding: 2rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.7);
    border: 0.1rem solid rgba(0,0,0,0.7);
}

.review .box .user{
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.review .box .user img{
    height: 7rem;
    width: 7rem;
    border-radius: 50%;
}

.review .box .user h3{
    font-size: 2.2rem;
    color: #01411C;
}

.review .box .user span{
    font-size: 1.4rem;
    color: #01411C;
}

.review .box p{
    font-size: 1.4rem;
    color: #01411C;
    line-height: 2;
}


.blog .box-container{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(30rem, 1fr));
    gap: 1.5rem;
}

.blog .box-container .box{
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.7);
    border: 0.1rem solid rgba(0,0,0,0.7);
}


.blog .box-container .box .img:hover img{
    transform: scale(1.2);
}

.blog .box-container .box .img{
    height: 25rem;
    width: 100%;
    overflow: hidden;
}

.blog .box-container .box .img img{
    height: 100%;
    width: 100%;
    object-fit: cover;
}


.blog .box-container .box .content{
    padding: 2rem 1.5rem;
}

.blog .box-container .box .content .icons{
    border-bottom: 0.1rem solid rgba(0, 0, 0, 0.1);
    padding-bottom: 1.7rem;
    margin-bottom: 1.7rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.blog .box-container .box .content .icons a{
    font-size: 1.4rem;
    color: #01411C;
}

.blog .box-container .box .content .icons a:hover{
    color: #FFEF2B;
}

.blog .box-container .box .content .icons a i{
    color: #01411C;
    padding-right: .5rem;
}

.blog .box-container .box .content h3{
    font-size: 2.2rem;
    color: #01411C;
}

.blog .box-container .box .content p{
    font-size: 1.4rem;
    color: #01411C;
    line-height: 2;
    padding: 1rem 0;
}


.contact .icons-container{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(29rem, 1fr));
    gap: 1.5rem;
}



.contact .icons-container .icons{
    text-align: center;
    border: 0.1rem solid rgba(0,0,0,0.7);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.7);
    padding:2rem;
}



.contact .icons-container .icons i{
    height:6rem;
    width:6rem;
    line-height: 6rem;
    font-size: 2.5rem;
    background: var(--yellow);
    color:#01411C;
    border-radius: 50%;
}



.contact .icons-container .icons h3{
    color:#01411C;
    font-size: 2rem;
    padding:1rem 0;
}



.contact .icons-container .icons p{
    color:#01411C;
    font-size: 1.5rem;
    line-height: 2;
}


.footer{
    background: var(--yellow);
}

.footer .box-container{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(25rem, 1fr));
    gap: 1.5rem;
}

.footer .box-container .box h3{
    font-size: 2.2rem;
    color: #01411C;
    padding: 1rem 0;
}

.footer .box-container .box p{
    font-size: 1.5rem;
    color: #01411C;
    padding-bottom: .5rem;
}

.footer .box-container .box a{
    font-size: 1.4rem;
    color: #01411C;
    padding: 1rem 0;
    display: block;
}

.footer .box-container .box a:hover{
    color: #01411C;
}

.footer .box-container .box a:hover i{
    padding-right: 2rem;
}

.footer .box-container .box a i{
    padding-right: .5rem;
    color: #01411C;
}

.footer .box-container .box form input[type="email"]{
    width: 100%;
    padding: 1rem 1.2rem;
    font-size: 1.6rem;
    color: #01411C;
    margin: 1rem 0;
    text-transform: none;
}

.footer .box-container .box .payments{
    width: 100%;
    margin-top: 2rem;
}

.credit{
    text-align: center;
    background: var(--yellow);
    color: #01411C;
    font-size: 2rem;
}























/* media queries */
@media (max-width: 991px){
    html{
        font-size: 55%;
    }
    .header{
        padding: 2rem;
    }
    section{
        padding: 3rem 2rem;
    }
    .home #next-slide,
    .home #prev-slide{
        transform: translateY(0);
        top: 88%;
    }
    .home #prev-slide{
        left:auto;
        right: 8rem;
    }
}

@media (max-width: 786px){
    #menu-btn{
        display: inline-block;
    }
    .header .navbar{
        position: absolute;
        top: 90%;
        left: 0;
        right: 0;
        background: #01411C;
        border-top: 0.1rem solid rgba(0, 0, 0, 0.1);
        border-bottom: 0.1rem solid rgba(0, 0, 0, 0.1);
        clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
    }
    .header .navbar.active{
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0% 100%);
    }

    .header .navbar a{
        margin: 1.5rem;
        padding: 1.5rem;
        background: var(--yellow);
        font-size: 2rem;
        display: block;
        border-radius: .5rem;
    }
}

@media (max-width:450px){
    html{
        font-size: 50%;
    }
    .home .slides-container .slide h3{
        font-size: 4rem;
    }
    .products .box-container .box .img{
        width: 100%;
    }

    .category .box-container .box img{
        width: 100%;
    }
}
				
			

main.js

				
					let navbar = document.querySelector('.navbar');



document.querySelector('#menu-btn').onclick = () => {

    navbar.classList.toggle('active');

}


window.onscroll = () => {

    navbar.classList.remove('active');

}


let slides = document.querySelectorAll('.home .slides-container .slide');

let index = 0;


function next(){

    slides[index].classList.remove('active');

    index = (index + 1) % slides.length;

    slides[index].classList.add('active');

}


function prev(){

    slides[index].classList.remove('active');

    index = (index - 1 + slides.length) % slides.length;

    slides[index].classList.add('active');

}

				
			

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top