HTML preprocessors can make writing HTML more powerful or convenient. For instance, Markdown is designed to be easier to write and read for text documents and you could write a loop in Pug.
In CodePen, whatever you write in the HTML editor is what goes within the <body>
tags in a basic HTML5 template. So you don't have access to higher-up elements like the <html>
tag. If you want to add classes there that can affect the whole document, this is the place to do it.
In CodePen, whatever you write in the HTML editor is what goes within the <body>
tags in a basic HTML5 template. If you need things in the <head>
of the document, put that code here.
The resource you are linking to is using the 'http' protocol, which may not work when the browser is using https.
CSS preprocessors help make authoring CSS easier. All of them offer things like variables and mixins to provide convenient abstractions.
It's a common practice to apply CSS to a page that styles elements such that they are consistent across all browsers. We offer two of the most popular choices: normalize.css and a reset. Or, choose Neither and nothing will be applied.
To get the best cross-browser support, it is a common practice to apply vendor prefixes to CSS properties and values that require them to work. For instance -webkit-
or -moz-
.
We offer two popular choices: Autoprefixer (which processes your CSS server-side) and -prefix-free (which applies prefixes via a script, client-side).
Any URLs added here will be added as <link>
s in order, and before the CSS in the editor. You can use the CSS from another Pen by using its URL and the proper URL extension.
You can apply CSS to your Pen from any stylesheet on the web. Just put a URL to it here and we'll apply it, in the order you have them, before the CSS in the Pen itself.
You can also link to another Pen here (use the .css
URL Extension) and we'll pull the CSS from that Pen and include it. If it's using a matching preprocessor, use the appropriate URL Extension and we'll combine the code before preprocessing, so you can use the linked Pen as a true dependency.
JavaScript preprocessors can help make authoring JavaScript easier and more convenient.
Babel includes JSX processing.
Any URL's added here will be added as <script>
s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.
You can apply a script from anywhere on the web to your Pen. Just put a URL to it here and we'll add it, in the order you have them, before the JavaScript in the Pen itself.
If the script you link to has the file extension of a preprocessor, we'll attempt to process it before applying.
You can also link to another Pen here, and we'll pull the JavaScript from that Pen and include it. If it's using a matching preprocessor, we'll combine the code before preprocessing, so you can use the linked Pen as a true dependency.
Search for and use JavaScript packages from npm here. By selecting a package, an import
statement will be added to the top of the JavaScript editor for this package.
Using packages here is powered by esm.sh, which makes packages from npm not only available on a CDN, but prepares them for native JavaScript ESM usage.
All packages are different, so refer to their docs for how they work.
If you're using React / ReactDOM, make sure to turn on Babel for the JSX processing.
If active, Pens will autosave every 30 seconds after being saved once.
If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.
If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.
Visit your global Editor Settings.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta content="width=device-width, initial-scale=1.0" name="viewport">
<title>Class-18 Video Assignments</title>
<meta content="" name="description">
<meta content="" name="keywords">
<!-- Favicons -->
<link href="assets/img/favicon.png" rel="icon">
<link href="assets/img/apple-touch-icon.png" rel="apple-touch-icon">
<!-- Google Fonts -->
<link href="https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,600;1,700&family=Amatic+SC:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,500;1,600;1,700&family=Inter:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,500;1,600;1,700&display=swap" rel="stylesheet">
<!-- Vendor CSS Files -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap/5.2.3/css/bootstrap.min.css" integrity="sha512-SbiR/eusphKoMVVXysTKG/7VseWii+Y3FdHrt0EpKgpToZeemhqHeZeLWLhJutz/2ut2Vw1uQEj2MbRF+TVBUA==" crossorigin="anonymous" referrerpolicy="no-referrer" />
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.10.2/font/bootstrap-icons.css">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/swiper@8/swiper-bundle.min.css"/>
<!-- Template Main CSS File -->
<link href="css/style.css" rel="stylesheet">
</head>
<body>
<!-- ======= Header ======= -->
<header id="header" class="header fixed-top d-flex align-items-center">
<div class="container d-flex align-items-center justify-content-between">
<a href="index.html" class="logo d-flex align-items-center me-auto me-lg-0">
<img src="https://i0.wp.com/sorobindu.com/wp-content/uploads/2022/03/Sorobindu-logo-1.png" alt="">
</a>
<nav id="navbar" class="navbar">
<ul>
<li><a href="#hero">Home</a></li>
<li><a href="#about">About</a></li>
<li><a href="#events">Events</a></li>
<li><a href="#chefs">Chefs</a></li>
<li><a href="#gallery">Gallery</a></li>
<li class="dropdown"><a href="#"><span>Drop Down</span> <i class="bi bi-chevron-down dropdown-indicator"></i></a>
<ul>
<li><a href="#">Drop Down 1</a></li>
<li class="dropdown"><a href="#"><span>Deep Drop Down</span> <i class="bi bi-chevron-down dropdown-indicator"></i></a>
<ul>
<li><a href="#">Deep Drop Down 1</a></li>
<li><a href="#">Deep Drop Down 2</a></li>
<li><a href="#">Deep Drop Down 3</a></li>
<li><a href="#">Deep Drop Down 4</a></li>
<li><a href="#">Deep Drop Down 5</a></li>
</ul>
</li>
<li><a href="#">Drop Down 2</a></li>
<li><a href="#">Drop Down 3</a></li>
<li><a href="#">Drop Down 4</a></li>
</ul>
</li>
<li><a href="#contact">Contact</a></li>
</ul>
</nav><!-- .navbar -->
<a class="btn-book-a-table" href="#book-a-table">Book a Table</a>
<i class="mobile-nav-toggle mobile-nav-show bi bi-list"></i>
<i class="mobile-nav-toggle mobile-nav-hide d-none bi bi-x"></i>
</div>
</header><!-- End Header -->
<!-- ======= Hero Section ======= -->
<section id="hero" class="hero d-flex align-items-center section-bg">
<div class="container">
<div class="row justify-content-between gy-5">
<div class="col-lg-5 order-2 order-lg-1 d-flex flex-column justify-content-center align-items-center align-items-lg-start text-center text-lg-start">
<h2 data-aos="fade-up">Enjoy Your Healthy<br>Delicious Food</h2>
<p data-aos="fade-up" data-aos-delay="100">Sed autem laudantium dolores. Voluptatem itaque ea consequatur eveniet. Eum quas beatae cumque eum quaerat.</p>
<div class="d-flex" data-aos="fade-up" data-aos-delay="200">
<a href="#book-a-table" class="btn-book-a-table">Book a Table</a>
<a href="https://www.youtube.com/watch?v=LXb3EKWsInQ" class="glightbox btn-watch-video d-flex align-items-center"><i class="bi bi-play-circle"></i><span>Watch Video</span></a>
</div>
</div>
<div class="col-lg-5 order-1 order-lg-2 text-center text-lg-start">
<img src="https://i.postimg.cc/x1kt5fjh/hero-img.png" class="img-fluid" alt="" data-aos="zoom-out" data-aos-delay="300">
</div>
</div>
</div>
</section><!-- End Hero Section -->
<main id="main">
<!-- ======= About Section ======= -->
<section id="about" class="about">
<div class="container" data-aos="fade-up">
<div class="section-header">
<h2>About Us</h2>
<p>Learn More <span>About Us</span></p>
</div>
<div class="row gy-4">
<div class="col-lg-7 position-relative about-img" style="background-image: url(https://i.postimg.cc/FskWvyw1/about.jpg) ;" data-aos="fade-up" data-aos-delay="150">
<div class="call-us position-absolute">
<h4>Book a Table</h4>
<p>+1 5589 55488 55</p>
</div>
</div>
<div class="col-lg-5 d-flex align-items-end" data-aos="fade-up" data-aos-delay="300">
<div class="content ps-0 ps-lg-5">
<p class="fst-italic">
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore
magna aliqua.
</p>
<ul>
<li><i class="bi bi-check2-all"></i> Ullamco laboris nisi ut aliquip ex ea commodo consequat.</li>
<li><i class="bi bi-check2-all"></i> Duis aute irure dolor in reprehenderit in voluptate velit.</li>
<li><i class="bi bi-check2-all"></i> Ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate trideta storacalaperda mastiro dolore eu fugiat nulla pariatur.</li>
</ul>
<p>
Ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate
velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident
</p>
<div class="position-relative mt-4">
<img src="https://i.postimg.cc/rwLvYZzq/about-2.jpg" class="img-fluid" alt="">
<a href="https://www.youtube.com/watch?v=LXb3EKWsInQ" class="glightbox play-btn"></a>
</div>
</div>
</div>
</div>
</div>
</section><!-- End About Section -->
<!-- ======= Why Us Section ======= -->
<section id="why-us" class="why-us section-bg">
<div class="container" data-aos="fade-up">
<div class="row gy-4">
<div class="col-lg-4" data-aos="fade-up" data-aos-delay="100">
<div class="why-box">
<h3>Why Choose Yummy?</h3>
<p>
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Duis aute irure dolor in reprehenderit
Asperiores dolores sed et. Tenetur quia eos. Autem tempore quibusdam vel necessitatibus optio ad corporis.
</p>
<div class="text-center">
<a href="#" class="more-btn">Learn More <i class="bx bx-chevron-right"></i></a>
</div>
</div>
</div><!-- End Why Box -->
<div class="col-lg-8 d-flex align-items-center">
<div class="row gy-4">
<div class="col-xl-4" data-aos="fade-up" data-aos-delay="200">
<div class="icon-box d-flex flex-column justify-content-center align-items-center">
<i class="bi bi-clipboard-data"></i>
<h4>Corporis voluptates officia eiusmod</h4>
<p>Consequuntur sunt aut quasi enim aliquam quae harum pariatur laboris nisi ut aliquip</p>
</div>
</div><!-- End Icon Box -->
<div class="col-xl-4" data-aos="fade-up" data-aos-delay="300">
<div class="icon-box d-flex flex-column justify-content-center align-items-center">
<i class="bi bi-gem"></i>
<h4>Ullamco laboris ladore pan</h4>
<p>Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt</p>
</div>
</div><!-- End Icon Box -->
<div class="col-xl-4" data-aos="fade-up" data-aos-delay="400">
<div class="icon-box d-flex flex-column justify-content-center align-items-center">
<i class="bi bi-inboxes"></i>
<h4>Labore consequatur incidid dolore</h4>
<p>Aut suscipit aut cum nemo deleniti aut omnis. Doloribus ut maiores omnis facere</p>
</div>
</div><!-- End Icon Box -->
</div>
</div>
</div>
</div>
</section><!-- End Why Us Section -->
<!-- ======= Testimonials Section ======= -->
<section id="testimonials" class="testimonials section-bg">
<div class="container" data-aos="fade-up">
<div class="section-header">
<h2>Testimonials</h2>
<p>What Are They <span>Saying About Us</span></p>
</div>
<div class="slides-1 swiper" data-aos="fade-up" data-aos-delay="100">
<div class="swiper-wrapper">
<div class="swiper-slide">
<div class="testimonial-item">
<div class="row gy-4 justify-content-center">
<div class="col-lg-6">
<div class="testimonial-content">
<p>
<i class="bi bi-quote quote-icon-left"></i>
Proin iaculis purus consequat sem cure digni ssim donec porttitora entum suscipit rhoncus. Accusantium quam, ultricies eget id, aliquam eget nibh et. Maecen aliquam, risus at semper.
<i class="bi bi-quote quote-icon-right"></i>
</p>
<h3>Saul Goodman</h3>
<h4>Ceo & Founder</h4>
<div class="stars">
<i class="bi bi-star-fill"></i><i class="bi bi-star-fill"></i><i class="bi bi-star-fill"></i><i class="bi bi-star-fill"></i><i class="bi bi-star-fill"></i>
</div>
</div>
</div>
<div class="col-lg-2 text-center">
<img src="https://i.postimg.cc/LXTt2X3y/testimonials-1.jpg" class="img-fluid testimonial-img" alt="">
</div>
</div>
</div>
</div><!-- End testimonial item -->
<div class="swiper-slide">
<div class="testimonial-item">
<div class="row gy-4 justify-content-center">
<div class="col-lg-6">
<div class="testimonial-content">
<p>
<i class="bi bi-quote quote-icon-left"></i>
Export tempor illum tamen malis malis eram quae irure esse labore quem cillum quid cillum eram malis quorum velit fore eram velit sunt aliqua noster fugiat irure amet legam anim culpa.
<i class="bi bi-quote quote-icon-right"></i>
</p>
<h3>Sara Wilsson</h3>
<h4>Designer</h4>
<div class="stars">
<i class="bi bi-star-fill"></i><i class="bi bi-star-fill"></i><i class="bi bi-star-fill"></i><i class="bi bi-star-fill"></i><i class="bi bi-star-fill"></i>
</div>
</div>
</div>
<div class="col-lg-2 text-center">
<img src="https://i.postimg.cc/xdGH3Ch0/testimonials-2.jpg" class="img-fluid testimonial-img" alt="">
</div>
</div>
</div>
</div><!-- End testimonial item -->
<div class="swiper-slide">
<div class="testimonial-item">
<div class="row gy-4 justify-content-center">
<div class="col-lg-6">
<div class="testimonial-content">
<p>
<i class="bi bi-quote quote-icon-left"></i>
Enim nisi quem export duis labore cillum quae magna enim sint quorum nulla quem veniam duis minim tempor labore quem eram duis noster aute amet eram fore quis sint minim.
<i class="bi bi-quote quote-icon-right"></i>
</p>
<h3>Jena Karlis</h3>
<h4>Store Owner</h4>
<div class="stars">
<i class="bi bi-star-fill"></i><i class="bi bi-star-fill"></i><i class="bi bi-star-fill"></i><i class="bi bi-star-fill"></i><i class="bi bi-star-fill"></i>
</div>
</div>
</div>
<div class="col-lg-2 text-center">
<img src="https://i.postimg.cc/YCKhD71j/testimonials-3.jpg" class="img-fluid testimonial-img" alt="">
</div>
</div>
</div>
</div><!-- End testimonial item -->
<div class="swiper-slide">
<div class="testimonial-item">
<div class="row gy-4 justify-content-center">
<div class="col-lg-6">
<div class="testimonial-content">
<p>
<i class="bi bi-quote quote-icon-left"></i>
Quis quorum aliqua sint quem legam fore sunt eram irure aliqua veniam tempor noster veniam enim culpa labore duis sunt culpa nulla illum cillum fugiat legam esse veniam culpa fore nisi cillum quid.
<i class="bi bi-quote quote-icon-right"></i>
</p>
<h3>John Larson</h3>
<h4>Entrepreneur</h4>
<div class="stars">
<i class="bi bi-star-fill"></i><i class="bi bi-star-fill"></i><i class="bi bi-star-fill"></i><i class="bi bi-star-fill"></i><i class="bi bi-star-fill"></i>
</div>
</div>
</div>
<div class="col-lg-2 text-center">
<img src="https://i.postimg.cc/YStjkxDH/testimonials-4.jpg" class="img-fluid testimonial-img" alt="">
</div>
</div>
</div>
</div><!-- End testimonial item -->
</div>
<div class="swiper-pagination"></div>
</div>
</div>
</section><!-- End Testimonials Section -->
<!-- ======= Chefs Section ======= -->
<section id="chefs" class="chefs section-bg">
<div class="container" data-aos="fade-up">
<div class="section-header">
<h2>Chefs</h2>
<p>Our <span>Proffesional</span> Chefs</p>
</div>
<div class="row gy-4">
<div class="col-lg-4 col-md-6 d-flex align-items-stretch" data-aos="fade-up" data-aos-delay="100">
<div class="chef-member">
<div class="member-img">
<img src="https://i.postimg.cc/J7xNRzLB/chefs-1.jpg" class="img-fluid" alt="">
<div class="social">
<a href=""><i class="bi bi-twitter"></i></a>
<a href=""><i class="bi bi-facebook"></i></a>
<a href=""><i class="bi bi-instagram"></i></a>
<a href=""><i class="bi bi-linkedin"></i></a>
</div>
</div>
<div class="member-info">
<h4>Walter White</h4>
<span>Master Chef</span>
<p>Velit aut quia fugit et et. Dolorum ea voluptate vel tempore tenetur ipsa quae aut. Ipsum exercitationem iure minima enim corporis et voluptate.</p>
</div>
</div>
</div><!-- End Chefs Member -->
<div class="col-lg-4 col-md-6 d-flex align-items-stretch" data-aos="fade-up" data-aos-delay="200">
<div class="chef-member">
<div class="member-img">
<img src="https://i.postimg.cc/zXmyZmLR/chefs-2.jpg" class="img-fluid" alt="">
<div class="social">
<a href=""><i class="bi bi-twitter"></i></a>
<a href=""><i class="bi bi-facebook"></i></a>
<a href=""><i class="bi bi-instagram"></i></a>
<a href=""><i class="bi bi-linkedin"></i></a>
</div>
</div>
<div class="member-info">
<h4>Sarah Jhonson</h4>
<span>Patissier</span>
<p>Quo esse repellendus quia id. Est eum et accusantium pariatur fugit nihil minima suscipit corporis. Voluptate sed quas reiciendis animi neque sapiente.</p>
</div>
</div>
</div><!-- End Chefs Member -->
<div class="col-lg-4 col-md-6 d-flex align-items-stretch" data-aos="fade-up" data-aos-delay="300">
<div class="chef-member">
<div class="member-img">
<img src="https://i.postimg.cc/J41WBKv2/chefs-3.jpg" class="img-fluid" alt="">
<div class="social">
<a href=""><i class="bi bi-twitter"></i></a>
<a href=""><i class="bi bi-facebook"></i></a>
<a href=""><i class="bi bi-instagram"></i></a>
<a href=""><i class="bi bi-linkedin"></i></a>
</div>
</div>
<div class="member-info">
<h4>William Anderson</h4>
<span>Cook</span>
<p>Vero omnis enim consequatur. Voluptas consectetur unde qui molestiae deserunt. Voluptates enim aut architecto porro aspernatur molestiae modi.</p>
</div>
</div>
</div><!-- End Chefs Member -->
</div>
</div>
</section><!-- End Chefs Section -->
<!-- ======= Gallery Section ======= -->
<section id="gallery" class="gallery section-bg">
<div class="container" data-aos="fade-up">
<div class="section-header">
<h2>gallery</h2>
<p>Check <span>Our Gallery</span></p>
</div>
<div class="gallery-slider swiper">
<div class="swiper-wrapper align-items-center">
<div class="swiper-slide"><a ><img src="https://i.postimg.cc/j2cNpQ7g/gallery-1.jpg" class="img-fluid" alt=""></a></div>
<div class="swiper-slide"><a ><img src="https://i.postimg.cc/VvSxRH9q/gallery-8.jpg" class="img-fluid" alt=""></a></div>
<div class="swiper-slide"><a ><img src="https://i.postimg.cc/j5LWHP5p/gallery-7.jpg" class="img-fluid" alt=""></a></div>
<div class="swiper-slide"><a ><img src="https://i.postimg.cc/hP6fnf2s/gallery-6.jpg" class="img-fluid" alt=""></a></div>
<div class="swiper-slide"><a ><img src="https://i.postimg.cc/VsbNRYfb/gallery-5.jpg" class="img-fluid" alt=""></a></div>
</div>
<div class="swiper-pagination"></div>
</div>
</div>
</section><!-- End Gallery Section -->
<!-- ======= Contact Section ======= -->
<section id="contact" class="contact">
<div class="container" data-aos="fade-up">
<div class="section-header">
<h2>Contact</h2>
<p>Need Help? <span>Contact Us</span></p>
</div>
<div class="mb-3">
<iframe style="border:0; width: 100%; height: 350px;" src="https://www.google.com/maps/embed?pb=!1m14!1m8!1m3!1d12097.433213460943!2d-74.0062269!3d40.7101282!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x0%3A0xb89d1fe6bc499443!2sDowntown+Conference+Center!5e0!3m2!1smk!2sbg!4v1539943755621" frameborder="0" allowfullscreen></iframe>
</div><!-- End Google Maps -->
<div class="row gy-4">
<div class="col-md-6">
<div class="info-item d-flex align-items-center">
<i class="icon bi bi-map flex-shrink-0"></i>
<div>
<h3>Our Address</h3>
<p>A108 Adam Street, New York, NY 535022</p>
</div>
</div>
</div><!-- End Info Item -->
<div class="col-md-6">
<div class="info-item d-flex align-items-center">
<i class="icon bi bi-envelope flex-shrink-0"></i>
<div>
<h3>Email Us</h3>
<p>contact@example.com</p>
</div>
</div>
</div><!-- End Info Item -->
<div class="col-md-6">
<div class="info-item d-flex align-items-center">
<i class="icon bi bi-telephone flex-shrink-0"></i>
<div>
<h3>Call Us</h3>
<p>+1 5589 55488 55</p>
</div>
</div>
</div><!-- End Info Item -->
<div class="col-md-6">
<div class="info-item d-flex align-items-center">
<i class="icon bi bi-share flex-shrink-0"></i>
<div>
<h3>Opening Hours</h3>
<div><strong>Mon-Sat:</strong> 11AM - 23PM;
<strong>Sunday:</strong> Closed
</div>
</div>
</div>
</div><!-- End Info Item -->
</div>
<form action="forms/contact.php" method="post" role="form" class="php-email-form p-3 p-md-4">
<div class="row">
<div class="col-xl-6 form-group">
<input type="text" name="name" class="form-control" id="name" placeholder="Your Name" required>
</div>
<div class="col-xl-6 form-group">
<input type="email" class="form-control" name="email" id="email" placeholder="Your Email" required>
</div>
</div>
<div class="form-group">
<input type="text" class="form-control" name="subject" id="subject" placeholder="Subject" required>
</div>
<div class="form-group">
<textarea class="form-control" name="message" rows="5" placeholder="Message" required></textarea>
</div>
<div class="my-3">
<div class="loading">Loading</div>
<div class="error-message"></div>
<div class="sent-message">Your message has been sent. Thank you!</div>
</div>
<div class="text-center"><button type="submit">Send Message</button></div>
</form>
<!--End Contact Form -->
</div>
</section><!-- End Contact Section -->
</main><!-- End #main -->
<!-- ======= Footer ======= -->
<footer id="footer" class="footer">
<div class="container">
<div class="copyright">
© Copyright <strong><span>Devrima</span></strong>. All Rights Reserved
</div>
</div>
</footer><!-- End Footer -->
<!-- End Footer -->
<a href="#" class="scroll-top d-flex align-items-center justify-content-center"><i class="bi bi-arrow-up-short"></i></a>
<div id="preloader"></div>
<!-- Vendor JS Files -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/bootstrap/5.2.3/js/bootstrap.bundle.min.js" integrity="sha512-i9cEfJwUwViEPFKdC1enz4ZRGBj8YQo6QByFTF92YXHi7waCqyexvRD75S5NVTsSiTv7rKWqG9Y5eFxmRsOn0A==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
<script src="https://cdn.jsdelivr.net/npm/swiper@8/swiper-bundle.min.js"></script>
<script src="assets/vendor/php-email-form/validate.js"></script>
<!-- Template Main JS File -->
<script src="js/script.js"></script>
</body>
</html>
/**
* Template Name: Yummy - v1.2.1
* Template URL: https://bootstrapmade.com/yummy-bootstrap-restaurant-website-template/
* Author: BootstrapMade.com
* License: https://bootstrapmade.com/license/
*/
/*--------------------------------------------------------------
# Set main reusable colors and fonts using CSS variables
# Learn more about CSS variables at https://developer.mozilla.org/en-US/docs/Web/CSS/Using_CSS_custom_properties
--------------------------------------------------------------*/
/* Fonts */
:root {
--font-default: "Open Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
--font-primary: "Amatic SC", sans-serif;
--font-secondary: "Inter", sans-serif;
}
/* Colors */
:root {
--color-default: #212529;
--color-primary: #CB1C8D;
--color-secondary: #460C68;
}
/* Smooth scroll behavior */
:root {
scroll-behavior: smooth;
}
/*--------------------------------------------------------------
# General
--------------------------------------------------------------*/
body {
font-family: var(--font-default);
color: var(--color-default);
}
a {
color: var(--color-primary);
text-decoration: none;
}
a:hover {
color: #ec2727;
text-decoration: none;
}
h1,
h2,
h3,
h4,
h5,
h6 {
font-family: var(--font-secondary);
}
/*--------------------------------------------------------------
# Sections & Section Header
--------------------------------------------------------------*/
section {
overflow: hidden;
padding: 80px 0;
}
.section-bg {
background-color: #eee;
}
.section-header {
text-align: center;
padding-bottom: 30px;
}
.section-header h2 {
font-size: 13px;
letter-spacing: 1px;
font-weight: 400;
margin: 0;
padding: 0;
color: #7f7f90;
text-transform: uppercase;
font-family: var(--font-default);
}
.section-header p {
margin: 0;
font-size: 48px;
font-weight: 400;
font-family: var(--font-primary);
}
.section-header p span {
color: var(--color-primary);
}
/*--------------------------------------------------------------
# Header
--------------------------------------------------------------*/
.header {
background: #fff;
transition: all 0.5s;
z-index: 997;
height: 90px;
border-bottom: 1px solid #fff;
}
@media (max-width: 575px) {
.header {
height: 70px;
}
}
.header.sticked {
border-color: #fff;
border-color: #eee;
}
.header .logo img {
max-height: 40px;
margin-right: 6px;
}
.header .logo h1 {
font-size: 28px;
font-weight: 700;
color: #000;
margin: 0;
font-family: var(--font-secondary);
}
.header .logo h1 span {
color: var(--color-primary);
}
.header .btn-book-a-table,
.header .btn-book-a-table:focus {
font-size: 14px;
color: #fff;
background: var(--color-primary);
padding: 8px 20px;
margin-left: 30px;
border-radius: 50px;
transition: 0.3s;
}
.header .btn-book-a-table:hover,
.header .btn-book-a-table:focus:hover {
color: #fff;
background: rgba(206, 18, 18, 0.8);
}
section {
scroll-margin-top: 90px;
}
/*--------------------------------------------------------------
# Desktop Navigation
--------------------------------------------------------------*/
@media (min-width: 1280px) {
.navbar {
padding: 0;
}
.navbar ul {
margin: 0;
padding: 0;
display: flex;
list-style: none;
align-items: center;
}
.navbar li {
position: relative;
}
.navbar>ul>li {
white-space: nowrap;
padding: 10px 0 10px 28px;
}
.navbar a,
.navbar a:focus {
display: flex;
align-items: center;
justify-content: space-between;
padding: 0 3px;
font-family: var(--font-secondary);
font-size: 16px;
font-weight: 600;
color: #7f7f90;
white-space: nowrap;
transition: 0.3s;
position: relative;
}
.navbar a i,
.navbar a:focus i {
font-size: 12px;
line-height: 0;
margin-left: 5px;
}
.navbar>ul>li>a:before {
content: "";
position: absolute;
width: 100%;
height: 2px;
bottom: -6px;
left: 0;
background-color: var(--color-primary);
visibility: hidden;
width: 0px;
transition: all 0.3s ease-in-out 0s;
}
.navbar a:hover:before,
.navbar li:hover>a:before,
.navbar .active:before {
visibility: visible;
width: 100%;
}
.navbar a:hover,
.navbar .active,
.navbar .active:focus,
.navbar li:hover>a {
color: #000;
}
.navbar .dropdown ul {
display: block;
position: absolute;
left: 28px;
top: calc(100% + 30px);
margin: 0;
padding: 10px 0;
z-index: 99;
opacity: 0;
visibility: hidden;
background: #fff;
box-shadow: 0px 0px 30px rgba(127, 137, 161, 0.25);
transition: 0.3s;
border-radius: 4px;
}
.navbar .dropdown ul li {
min-width: 200px;
}
.navbar .dropdown ul a {
padding: 10px 20px;
font-size: 15px;
text-transform: none;
font-weight: 600;
}
.navbar .dropdown ul a i {
font-size: 12px;
}
.navbar .dropdown ul a:hover,
.navbar .dropdown ul .active:hover,
.navbar .dropdown ul li:hover>a {
color: var(--color-primary);
}
.navbar .dropdown:hover>ul {
opacity: 1;
top: 100%;
visibility: visible;
}
.navbar .dropdown .dropdown ul {
top: 0;
left: calc(100% - 30px);
visibility: hidden;
}
.navbar .dropdown .dropdown:hover>ul {
opacity: 1;
top: 0;
left: 100%;
visibility: visible;
}
}
@media (min-width: 1280px) and (max-width: 1366px) {
.navbar .dropdown .dropdown ul {
left: -90%;
}
.navbar .dropdown .dropdown:hover>ul {
left: -100%;
}
}
@media (min-width: 1280px) {
.mobile-nav-show,
.mobile-nav-hide {
display: none;
}
}
/*--------------------------------------------------------------
# About Section
--------------------------------------------------------------*/
.about .about-img {
min-height: 500px;
}
.about h3 {
font-weight: 700;
font-size: 36px;
margin-bottom: 30px;
font-family: var(--font-secondary);
}
.about .call-us {
left: 10%;
right: 10%;
bottom: 10%;
background-color: #fff;
box-shadow: 0px 2px 25px rgba(0, 0, 0, 0.08);
padding: 20px;
text-align: center;
}
.about .call-us h4 {
font-size: 24px;
font-weight: 700;
margin-bottom: 5px;
font-family: var(--font-default);
}
.about .call-us p {
font-size: 28px;
font-weight: 700;
color: var(--color-primary);
}
.about .content ul {
list-style: none;
padding: 0;
}
.about .content ul li {
padding: 0 0 8px 26px;
position: relative;
}
.about .content ul i {
position: absolute;
font-size: 20px;
left: 0;
top: -3px;
color: var(--color-primary);
}
.about .content p:last-child {
margin-bottom: 0;
}
.about .play-btn {
width: 94px;
height: 94px;
background: radial-gradient(var(--color-primary) 50%, rgba(206, 18, 18, 0.4) 52%);
border-radius: 50%;
display: block;
position: absolute;
left: calc(50% - 47px);
top: calc(50% - 47px);
overflow: hidden;
}
.about .play-btn:before {
content: "";
position: absolute;
width: 120px;
height: 120px;
-webkit-animation-delay: 0s;
animation-delay: 0s;
-webkit-animation: pulsate-btn 2s;
animation: pulsate-btn 2s;
-webkit-animation-direction: forwards;
animation-direction: forwards;
-webkit-animation-iteration-count: infinite;
animation-iteration-count: infinite;
-webkit-animation-timing-function: steps;
animation-timing-function: steps;
opacity: 1;
border-radius: 50%;
border: 5px solid rgba(206, 18, 18, 0.7);
top: -15%;
left: -15%;
background: rgba(198, 16, 0, 0);
}
.about .play-btn:after {
content: "";
position: absolute;
left: 50%;
top: 50%;
transform: translateX(-40%) translateY(-50%);
width: 0;
height: 0;
border-top: 10px solid transparent;
border-bottom: 10px solid transparent;
border-left: 15px solid #fff;
z-index: 100;
transition: all 400ms cubic-bezier(0.55, 0.055, 0.675, 0.19);
}
.about .play-btn:hover:before {
content: "";
position: absolute;
left: 50%;
top: 50%;
transform: translateX(-40%) translateY(-50%);
width: 0;
height: 0;
border: none;
border-top: 10px solid transparent;
border-bottom: 10px solid transparent;
border-left: 15px solid #fff;
z-index: 200;
-webkit-animation: none;
animation: none;
border-radius: 0;
}
.about .play-btn:hover:after {
border-left: 15px solid var(--color-primary);
transform: scale(20);
}
@-webkit-keyframes pulsate-btn {
0% {
transform: scale(0.6, 0.6);
opacity: 1;
}
100% {
transform: scale(1, 1);
opacity: 0;
}
}
@keyframes pulsate-btn {
0% {
transform: scale(0.6, 0.6);
opacity: 1;
}
100% {
transform: scale(1, 1);
opacity: 0;
}
}
/*--------------------------------------------------------------
# Why Us Section
--------------------------------------------------------------*/
.why-us .why-box {
padding: 30px;
background: var(--color-primary);
color: #fff;
}
.why-us .why-box h3 {
font-weight: 700;
font-size: 34px;
margin-bottom: 30px;
}
.why-us .why-box p {
margin-bottom: 30px;
}
.why-us .why-box .more-btn {
display: inline-block;
background: rgba(255, 255, 255, 0.3);
padding: 6px 30px 8px 30px;
color: #fff;
border-radius: 50px;
transition: all ease-in-out 0.4s;
}
.why-us .why-box .more-btn i {
font-size: 14px;
}
.why-us .why-box .more-btn:hover {
color: var(--color-primary);
background: #fff;
}
.why-us .icon-box {
text-align: center;
background: #fff;
padding: 40px 30px;
width: 100%;
height: 100%;
border: 1px solid rgba(55, 55, 63, 0.1);
transition: 0.3s;
}
.why-us .icon-box i {
color: var(--color-primary);
margin-bottom: 30px;
font-size: 32px;
margin-bottom: 30px;
background: rgba(206, 18, 18, 0.1);
border-radius: 50px;
display: flex;
align-items: center;
justify-content: center;
width: 64px;
height: 64px;
}
.why-us .icon-box h4 {
font-size: 20px;
font-weight: 400;
margin: 0 0 30px 0;
font-family: var(--font-secondary);
}
.why-us .icon-box p {
font-size: 15px;
color: #6c757d;
}
@media (min-width: 1200px) {
.why-us .icon-box:hover {
transform: scale(1.1);
}
}
/*--------------------------------------------------------------
# Testimonials Section
--------------------------------------------------------------*/
.testimonials .section-header {
margin-bottom: 40px;
}
.testimonials .testimonials-carousel,
.testimonials .testimonials-slider {
overflow: hidden;
}
.testimonials .testimonial-item .testimonial-content {
border-left: 3px solid var(--color-primary);
padding-left: 30px;
}
.testimonials .testimonial-item .testimonial-img {
border-radius: 50%;
border: 4px solid #fff;
margin: 0 auto;
}
.testimonials .testimonial-item h3 {
font-size: 20px;
font-weight: bold;
margin: 10px 0 5px 0;
color: var(--color-default);
font-family: var(--font-secondary);
}
.testimonials .testimonial-item h4 {
font-size: 14px;
color: #6c757d;
margin: 0 0 10px 0;
font-family: var(--font-secondary);
}
.testimonials .testimonial-item .stars i {
color: #ffc107;
margin: 0 1px;
}
.testimonials .testimonial-item .quote-icon-left,
.testimonials .testimonial-item .quote-icon-right {
color: #f05656;
font-size: 26px;
line-height: 0;
}
.testimonials .testimonial-item .quote-icon-left {
display: inline-block;
left: -5px;
position: relative;
}
.testimonials .testimonial-item .quote-icon-right {
display: inline-block;
right: -5px;
position: relative;
top: 10px;
transform: scale(-1, -1);
}
.testimonials .testimonial-item p {
font-style: italic;
}
.testimonials .swiper-pagination {
margin-top: 40px;
position: relative;
}
.testimonials .swiper-pagination .swiper-pagination-bullet {
width: 12px;
height: 12px;
background-color: #d1d1d7;
opacity: 1;
}
.testimonials .swiper-pagination .swiper-pagination-bullet-active {
background-color: var(--color-primary);
}
/*--------------------------------------------------------------
# Events Section
--------------------------------------------------------------*/
.events .container-fluid {
padding: 0;
}
.events .event-item {
background-size: cover;
background-position: cente;
min-height: 600px;
padding: 30px;
}
@media (max-width: 575px) {
.events .event-item {
min-height: 500px;
}
}
.events .event-item:before {
content: "";
background: rgba(0, 0, 0, 0.6);
position: absolute;
inset: 0;
}
.events .event-item h3 {
font-size: 24px;
font-weight: 700;
margin-bottom: 5px;
color: #fff;
position: relative;
}
.events .event-item .price {
color: #fff;
border-bottom: 2px solid var(--color-primary);
font-size: 32px;
font-weight: 700;
margin-bottom: 15px;
position: relative;
}
.events .event-item .description {
margin-bottom: 0;
color: rgba(255, 255, 255, 0.9);
position: relative;
}
@media (min-width: 1200px) {
.events .swiper-slide-active+.swiper-slide {
border-left: 1px solid rgba(255, 255, 255, 0.5);
border-right: 1px solid rgba(255, 255, 255, 0.5);
z-index: 1;
}
}
.events .swiper-pagination {
margin-top: 20px;
position: relative;
}
.events .swiper-pagination .swiper-pagination-bullet {
width: 10px;
height: 10px;
background-color: #d1d1d7;
opacity: 1;
}
.events .swiper-pagination .swiper-pagination-bullet-active {
background-color: var(--color-primary);
}
/*--------------------------------------------------------------
# Chefs Section
--------------------------------------------------------------*/
.chefs .chef-member {
overflow: hidden;
text-align: center;
border-radius: 5px;
background: #fff;
box-shadow: 0px 0 30px rgba(55, 55, 63, 0.08);
transition: 0.3s;
}
.chefs .chef-member .member-img {
position: relative;
overflow: hidden;
}
.chefs .chef-member .member-img:after {
position: absolute;
content: "";
left: 0;
bottom: 0;
height: 100%;
width: 100%;
background: url(../img/team-shape.svg) no-repeat center bottom;
background-size: contain;
z-index: 1;
}
.chefs .chef-member .social {
position: absolute;
right: -100%;
top: 30px;
opacity: 0;
border-radius: 4px;
transition: 0.5s;
background: rgba(255, 255, 255, 0.3);
z-index: 2;
}
.chefs .chef-member .social a {
transition: color 0.3s;
color: rgba(55, 55, 63, 0.4);
margin: 15px 12px;
display: block;
line-height: 0;
text-align: center;
}
.chefs .chef-member .social a:hover {
color: rgba(55, 55, 63, 0.9);
}
.chefs .chef-member .social i {
font-size: 18px;
}
.chefs .chef-member .member-info {
padding: 10px 15px 20px 15px;
}
.chefs .chef-member .member-info h4 {
font-weight: 700;
margin-bottom: 5px;
font-size: 20px;
color: var(--color-secondary);
}
.chefs .chef-member .member-info span {
display: block;
font-size: 14px;
font-weight: 400;
color: rgba(33, 37, 41, 0.4);
}
.chefs .chef-member .member-info p {
font-style: italic;
font-size: 14px;
padding-top: 15px;
line-height: 26px;
color: rgba(33, 37, 41, 0.7);
}
.chefs .chef-member:hover {
transform: scale(1.08);
box-shadow: 0px 0 30px rgba(55, 55, 63, 0.15);
}
.chefs .chef-member:hover .social {
right: 8px;
opacity: 1;
}
/*--------------------------------------------------------------
# Gallery Section
--------------------------------------------------------------*/
.gallery {
overflow: hidden;
}
.gallery .swiper-pagination {
margin-top: 20px;
position: relative;
}
.gallery .swiper-pagination .swiper-pagination-bullet {
width: 12px;
height: 12px;
background-color: #d1d1d7;
opacity: 1;
}
.gallery .swiper-pagination .swiper-pagination-bullet-active {
background-color: var(--color-primary);
}
.gallery .swiper-slide-active {
text-align: center;
}
@media (min-width: 992px) {
.gallery .swiper-wrapper {
padding: 40px 0;
}
.gallery .swiper-slide-active {
border: 6px solid var(--color-primary);
padding: 4px;
background: #fff;
z-index: 1;
transform: scale(1.2);
}
}
/*--------------------------------------------------------------
# Contact Section
--------------------------------------------------------------*/
.contact .info-item {
background: #f4f4f4;
padding: 30px;
height: 100%;
}
.contact .info-item .icon {
display: flex;
align-items: center;
justify-content: center;
width: 56px;
height: 56px;
font-size: 24px;
line-height: 0;
color: #fff;
background: var(--color-primary);
border-radius: 50%;
margin-right: 15px;
}
.contact .info-item h3 {
font-size: 20px;
color: #6c757d;
font-weight: 700;
margin: 0 0 5px 0;
}
.contact .info-item p {
padding: 0;
margin: 0;
line-height: 24px;
font-size: 14px;
}
.contact .info-item .social-links a {
font-size: 24px;
display: inline-block;
color: rgba(55, 55, 63, 0.7);
line-height: 1;
margin: 4px 6px 0 0;
transition: 0.3s;
}
.contact .info-item .social-links a:hover {
color: var(--color-primary);
}
.contact .php-email-form {
width: 100%;
margin-top: 30px;
background: #fff;
box-shadow: 0 0 30px rgba(0, 0, 0, 0.08);
}
.contact .php-email-form .form-group {
padding-bottom: 20px;
}
.contact .php-email-form .error-message {
display: none;
color: #fff;
background: #df1529;
text-align: left;
padding: 15px;
font-weight: 600;
}
.contact .php-email-form .error-message br+br {
margin-top: 25px;
}
.contact .php-email-form .sent-message {
display: none;
color: #fff;
background: #059652;
text-align: center;
padding: 15px;
font-weight: 600;
}
.contact .php-email-form .loading {
display: none;
background: #fff;
text-align: center;
padding: 15px;
}
.contact .php-email-form .loading:before {
content: "";
display: inline-block;
border-radius: 50%;
width: 24px;
height: 24px;
margin: 0 10px -6px 0;
border: 3px solid #059652;
border-top-color: #fff;
-webkit-animation: animate-loading 1s linear infinite;
animation: animate-loading 1s linear infinite;
}
.contact .php-email-form input,
.contact .php-email-form textarea {
border-radius: 0;
box-shadow: none;
font-size: 14px;
}
.contact .php-email-form input:focus,
.contact .php-email-form textarea:focus {
border-color: var(--color-primary);
}
.contact .php-email-form input {
height: 48px;
}
.contact .php-email-form textarea {
padding: 10px 12px;
}
.contact .php-email-form button[type=submit] {
background: var(--color-primary);
border: 0;
padding: 12px 40px;
color: #fff;
transition: 0.4s;
border-radius: 50px;
}
.contact .php-email-form button[type=submit]:hover {
background: #ec2727;
}
@keyframes animate-loading {
0% {
transform: rotate(0deg);
}
100% {
transform: rotate(360deg);
}
}
/*--------------------------------------------------------------
# Hero Section
--------------------------------------------------------------*/
.hero {
width: 100%;
background-size: cover;
position: relative;
min-height: 60vh;
padding: 160px 0 60px 0;
}
.hero h2 {
font-size: 64px;
font-weight: 700;
margin-bottom: 20px;
color: var(--color-secondary);
font-family: var(--font-primary);
}
.hero h2 span {
color: var(--color-primary);
}
.hero p {
color: #4f4f5a;
font-weight: 400;
margin-bottom: 30px;
}
.hero .btn-book-a-table {
font-weight: 500;
font-size: 14px;
letter-spacing: 1px;
display: inline-block;
padding: 12px 36px;
border-radius: 50px;
transition: 0.5s;
color: #fff;
background: var(--color-primary);
box-shadow: 0 8px 28px rgba(206, 18, 18, 0.2);
}
.hero .btn-book-a-table:hover {
background: rgba(206, 18, 18, 0.8);
box-shadow: 0 8px 28px rgba(206, 18, 18, 0.45);
}
.hero .btn-watch-video {
font-size: 16px;
transition: 0.5s;
margin-left: 25px;
color: var(--font-secondary);
font-weight: 600;
}
.hero .btn-watch-video i {
color: var(--color-primary);
font-size: 32px;
transition: 0.3s;
line-height: 0;
margin-right: 8px;
}
.hero .btn-watch-video:hover {
color: var(--color-primary);
}
.hero .btn-watch-video:hover i {
color: rgba(206, 18, 18, 0.8);
}
@media (max-width: 640px) {
.hero h2 {
font-size: 36px;
}
.hero .btn-get-started,
.hero .btn-watch-video {
font-size: 14px;
}
}
/*--------------------------------------------------------------
# Footer
--------------------------------------------------------------*/
.footer {
font-size: 14px;
background-color: #1f1f24;
padding: 50px 0;
color: rgba(255, 255, 255, 0.7);
}
.footer .icon {
margin-right: 15px;
font-size: 24px;
line-height: 0;
}
.footer h4 {
font-size: 16px;
font-weight: bold;
position: relative;
padding-bottom: 5px;
color: #fff;
}
.footer .footer-links {
margin-bottom: 30px;
}
.footer .footer-links ul {
list-style: none;
padding: 0;
margin: 0;
}
.footer .footer-links ul li {
padding: 10px 0;
display: flex;
align-items: center;
}
.footer .footer-links ul li:first-child {
padding-top: 0;
}
.footer .footer-links ul a {
color: rgba(255, 255, 255, 0.6);
transition: 0.3s;
display: inline-block;
line-height: 1;
}
.footer .footer-links ul a:hover {
color: #fff;
}
.footer .social-links a {
display: flex;
align-items: center;
justify-content: center;
width: 40px;
height: 40px;
border-radius: 50%;
border: 1px solid rgba(255, 255, 255, 0.2);
font-size: 16px;
color: rgba(255, 255, 255, 0.7);
margin-right: 10px;
transition: 0.3s;
}
.footer .social-links a:hover {
color: #fff;
border-color: #fff;
}
.footer .copyright {
text-align: center;
padding-top: 30px;
border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.footer .credits {
padding-top: 4px;
text-align: center;
font-size: 13px;
}
.footer .credits a {
color: #fff;
}
/**
* Template Name: Yummy - v1.2.1
* Template URL: https://bootstrapmade.com/yummy-bootstrap-restaurant-website-template/
* Author: BootstrapMade.com
* License: https://bootstrapmade.com/license/
*/
document.addEventListener('DOMContentLoaded', () => {
"use strict";
/**
* Preloader
*/
const preloader = document.querySelector('#preloader');
if (preloader) {
window.addEventListener('load', () => {
preloader.remove();
});
}
/**
* Sticky header on scroll
*/
const selectHeader = document.querySelector('#header');
if (selectHeader) {
document.addEventListener('scroll', () => {
window.scrollY > 100 ? selectHeader.classList.add('sticked') : selectHeader.classList.remove('sticked');
});
}
/**
* Navbar links active state on scroll
*/
let navbarlinks = document.querySelectorAll('#navbar a');
function navbarlinksActive() {
navbarlinks.forEach(navbarlink => {
if (!navbarlink.hash) return;
let section = document.querySelector(navbarlink.hash);
if (!section) return;
let position = window.scrollY + 200;
if (position >= section.offsetTop && position <= (section.offsetTop + section.offsetHeight)) {
navbarlink.classList.add('active');
} else {
navbarlink.classList.remove('active');
}
})
}
window.addEventListener('load', navbarlinksActive);
document.addEventListener('scroll', navbarlinksActive);
/**
* Mobile nav toggle
*/
const mobileNavShow = document.querySelector('.mobile-nav-show');
const mobileNavHide = document.querySelector('.mobile-nav-hide');
document.querySelectorAll('.mobile-nav-toggle').forEach(el => {
el.addEventListener('click', function(event) {
event.preventDefault();
mobileNavToogle();
})
});
function mobileNavToogle() {
document.querySelector('body').classList.toggle('mobile-nav-active');
mobileNavShow.classList.toggle('d-none');
mobileNavHide.classList.toggle('d-none');
}
/**
* Hide mobile nav on same-page/hash links
*/
document.querySelectorAll('#navbar a').forEach(navbarlink => {
if (!navbarlink.hash) return;
let section = document.querySelector(navbarlink.hash);
if (!section) return;
navbarlink.addEventListener('click', () => {
if (document.querySelector('.mobile-nav-active')) {
mobileNavToogle();
}
});
});
/**
* Toggle mobile nav dropdowns
*/
const navDropdowns = document.querySelectorAll('.navbar .dropdown > a');
navDropdowns.forEach(el => {
el.addEventListener('click', function(event) {
if (document.querySelector('.mobile-nav-active')) {
event.preventDefault();
this.classList.toggle('active');
this.nextElementSibling.classList.toggle('dropdown-active');
let dropDownIndicator = this.querySelector('.dropdown-indicator');
dropDownIndicator.classList.toggle('bi-chevron-up');
dropDownIndicator.classList.toggle('bi-chevron-down');
}
})
});
/**
* Scroll top button
*/
const scrollTop = document.querySelector('.scroll-top');
if (scrollTop) {
const togglescrollTop = function() {
window.scrollY > 100 ? scrollTop.classList.add('active') : scrollTop.classList.remove('active');
}
window.addEventListener('load', togglescrollTop);
document.addEventListener('scroll', togglescrollTop);
scrollTop.addEventListener('click', window.scrollTo({
top: 0,
behavior: 'smooth'
}));
}
/**
* Init swiper slider with 1 slide at once in desktop view
*/
new Swiper('.slides-1', {
speed: 600,
loop: true,
autoplay: {
delay: 5000,
disableOnInteraction: false
},
slidesPerView: 'auto',
pagination: {
el: '.swiper-pagination',
type: 'bullets',
clickable: true
},
navigation: {
nextEl: '.swiper-button-next',
prevEl: '.swiper-button-prev',
}
});
/**
* Init swiper slider with 3 slides at once in desktop view
*/
new Swiper('.slides-3', {
speed: 600,
loop: true,
autoplay: {
delay: 5000,
disableOnInteraction: false
},
slidesPerView: 'auto',
pagination: {
el: '.swiper-pagination',
type: 'bullets',
clickable: true
},
navigation: {
nextEl: '.swiper-button-next',
prevEl: '.swiper-button-prev',
},
breakpoints: {
320: {
slidesPerView: 1,
spaceBetween: 40
},
1200: {
slidesPerView: 3,
}
}
});
/**
* Gallery Slider
*/
new Swiper('.gallery-slider', {
speed: 400,
loop: true,
centeredSlides: true,
autoplay: {
delay: 5000,
disableOnInteraction: false
},
slidesPerView: 'auto',
pagination: {
el: '.swiper-pagination',
type: 'bullets',
clickable: true
},
breakpoints: {
320: {
slidesPerView: 1,
spaceBetween: 20
},
640: {
slidesPerView: 3,
spaceBetween: 20
},
992: {
slidesPerView: 5,
spaceBetween: 20
}
}
});
});
Also see: Tab Triggers