### SCSS Responsive Breakpoints Definition and Usage Source: https://context7.com/uideck/play-bootstrap/llms.txt Defines SCSS variables for various screen sizes (e.g., desktop, laptop, tablet, mobile) and demonstrates their usage in media queries for responsive styling. These variables help maintain a consistent responsive design across different devices. No external dependencies are required. ```scss /* assets/scss/_variables.scss */ $xl-desktop: "only screen and (min-width: 1921px)"; $desktop: "only screen and (min-width: 1400px) and (max-width: 1920px)"; $laptop: "only screen and (min-width: 1200px) and (max-width: 1399px)"; $lg: "only screen and (min-width: 992px) and (max-width: 1199px)"; $md: "only screen and (min-width: 768px) and (max-width: 991px)"; $xs: "(max-width: 767px)"; $sm: "only screen and (min-width: 576px) and (max-width: 767px)"; /* Usage example */ .container { @media #{$xs} { padding-left: 40px; padding-right: 40px; } @media #{$sm} { padding-left: 20px; padding-right: 20px; } } ``` -------------------------------- ### Features Section Component (HTML) Source: https://context7.com/uideck/play-bootstrap/llms.txt Displays product features in a responsive grid layout. It includes a section title and individual feature cards with icons, titles, descriptions, and links. Designed for easy integration into web pages. ```html
Features

Main Features of Play

There are many variations of passages available.

Free and Open-Source

Lorem Ipsum is simply dummy text of the printing and industry.

Learn More
``` -------------------------------- ### FAQ Accordion Component (HTML) Source: https://context7.com/uideck/play-bootstrap/llms.txt Implements an interactive Frequently Asked Questions section using Bootstrap's collapse functionality. It features a section title and individual accordion items, each with a toggle button and collapsible content panel. Ideal for support or information pages. ```html
FAQ

Any Questions? Answered

Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s.
``` -------------------------------- ### HTML Page Structure - Play Bootstrap Source: https://context7.com/uideck/play-bootstrap/llms.txt Demonstrates the basic HTML page structure for the Play Bootstrap template. It includes the head section with meta tags, title, favicon, and CSS dependencies, as well as the body with header navigation, content placeholders, and footer. It also includes essential JavaScript includes. ```html Play | Free Startup and SaaS Landing Page Template
``` -------------------------------- ### Pricing Section Component (HTML) Source: https://context7.com/uideck/play-bootstrap/llms.txt Presents different pricing tiers in a responsive layout using Bootstrap grid. It highlights a 'popular' option and includes pricing headers, feature lists, and call-to-action buttons. Suitable for SaaS products or service offerings. ```html
Pricing

Our Pricing Plans

STARTING FROM

$ 19.99/mo

  • 5 User
  • All UI components
  • Lifetime access
  • Free updates
POPULAR

STARTING FROM

$ 30.99/mo

  • 5 User
  • All UI components
  • Lifetime access
``` -------------------------------- ### JavaScript Core Functionality: Sticky Header, Nav Toggle, Smooth Scroll Source: https://context7.com/uideck/play-bootstrap/llms.txt Implements core JavaScript functionalities including a sticky header that changes logo on scroll, a mobile navigation toggle for responsive menus, and smooth scrolling to page sections. It also handles the visibility of a 'back-to-top' button and initializes WOW.js for animations. Relies on DOM manipulation and event listeners. ```javascript // assets/js/main.js - Core functionality (function () { "use strict"; // Sticky header on scroll window.onscroll = function () { const ud_header = document.querySelector(".ud-header"); const sticky = ud_header.offsetTop; const logo = document.querySelector(".navbar-brand img"); if (window.pageYOffset > sticky) { ud_header.classList.add("sticky"); logo.src = "assets/images/logo/logo-2.svg"; // Dark logo for sticky } else { ud_header.classList.remove("sticky"); logo.src = "assets/images/logo/logo.svg"; // Light logo for transparent } // Back-to-top button visibility const backToTop = document.querySelector(".back-to-top"); if (document.body.scrollTop > 50 || document.documentElement.scrollTop > 50) { backToTop.style.display = "flex"; } else { backToTop.style.display = "none"; } }; // Mobile navbar toggle let navbarToggler = document.querySelector(".navbar-toggler"); const navbarCollapse = document.querySelector(".navbar-collapse"); navbarToggler.addEventListener("click", function () { navbarToggler.classList.toggle("active"); navbarCollapse.classList.toggle("show"); }); // Close mobile menu when menu item clicked document.querySelectorAll(".ud-menu-scroll").forEach((e) => e.addEventListener("click", () => { navbarToggler.classList.remove("active"); navbarCollapse.classList.remove("show"); }) ); // Submenu dropdown toggle const submenuButton = document.querySelectorAll(".nav-item-has-children"); submenuButton.forEach((elem) => { elem.querySelector("a").addEventListener("click", () => { elem.querySelector(".ud-submenu").classList.toggle("show"); }); }); // Initialize WOW.js animations new WOW().init(); })(); ``` -------------------------------- ### CSS Variables and Theming (CSS) Source: https://context7.com/uideck/play-bootstrap/llms.txt Defines essential CSS custom properties (variables) for global styling and theming within the template, located in `_common.scss`. It also includes styling for a primary button (`.ud-main-btn`), demonstrating the use of these variables for consistent design. ```css /* assets/scss/_common.scss - CSS Variables */ :root { --font: "Inter", sans-serif; --body-color: #637381; --heading-color: #212b36; --primary-color: #3056d3; --white: #ffffff; } /* Custom button styling */ .ud-main-btn { display: inline-block; text-align: center; font-weight: 500; font-size: 16px; border-radius: 5px; padding: 15px 25px; border: 1px solid transparent; color: var(--white); cursor: pointer; transition: 0.4s; background: var(--primary-color); } .ud-main-btn:hover { color: var(--white); background: var(--heading-color); } ``` -------------------------------- ### Login Page Component (HTML) Source: https://context7.com/uideck/play-bootstrap/llms.txt A self-contained HTML structure for a login page. It features input fields for email and password, social login options, and links for password recovery and sign-up. This component is suitable for standalone authentication pages. ```html
``` -------------------------------- ### Contact Form Component (HTML) Source: https://context7.com/uideck/play-bootstrap/llms.txt A complete HTML structure for a contact form section. It includes fields for name, email, and message, along with contact information display. This component is designed for easy integration into web pages. ```html
CONTACT US

Let's talk about
Love to hear from you!

Our Location

401 Broadway, 24th Floor, London

How Can We Help?

info@yourdomain.com

Send us a Message

``` -------------------------------- ### JavaScript Smooth Scrolling for Anchor Links Source: https://context7.com/uideck/play-bootstrap/llms.txt Implements smooth scrolling behavior for anchor links on the homepage, allowing users to navigate to different sections of the page with a smooth animation. It also manages the active state of navigation links based on the user's scroll position. Requires HTML anchor links with the class 'ud-menu-scroll'. ```javascript // Add to page script section for smooth scrolling const pageLink = document.querySelectorAll(".ud-menu-scroll"); pageLink.forEach((elem) => { elem.addEventListener("click", (e) => { e.preventDefault(); document.querySelector(elem.getAttribute("href")).scrollIntoView({ behavior: "smooth", offsetTop: 1 - 60, }); }); }); // Section menu active state on scroll function onScroll(event) { const sections = document.querySelectorAll(".ud-menu-scroll"); const scrollPos = window.pageYOffset || document.documentElement.scrollTop || document.body.scrollTop; for (let i = 0; i < sections.length; i++) { const currLink = sections[i]; const val = currLink.getAttribute("href"); const refElement = document.querySelector(val); const scrollTopMinus = scrollPos + 73; if ( refElement.offsetTop <= scrollTopMinus && refElement.offsetTop + refElement.offsetHeight > scrollTopMinus ) { document.querySelector(".ud-menu-scroll").classList.remove("active"); currLink.classList.add("active"); } else { currLink.classList.remove("active"); } } } window.document.addEventListener("scroll", onScroll); ``` -------------------------------- ### Hero Section Component - Play Bootstrap Source: https://context7.com/uideck/play-bootstrap/llms.txt Illustrates the HTML structure for the hero section component. This section is designed to be a prominent landing area, featuring a title, descriptive text, call-to-action buttons, and decorative images. It utilizes Bootstrap grid classes and custom classes for styling. ```html

Open-Source Web Template for SaaS, Startup, Apps, and More

Multidisciplinary Web Template Built with Your Favourite Technology - HTML Bootstrap, Tailwind and React NextJS.

hero-image shape
``` -------------------------------- ### Smooth Scrolling for Menu Navigation (JavaScript) Source: https://github.com/uideck/play-bootstrap/blob/main/index.html This JavaScript code enables smooth scrolling to different sections of the page when menu links are clicked. It prevents the default anchor jump and smoothly animates the scroll to the target element. The offsetTop value is used to adjust the scroll position, accounting for fixed headers. ```javascript // ==== for menu scroll const pageLink = document.querySelectorAll(".ud-menu-scroll"); pageLink.forEach((elem) => { elem.addEventListener("click", (e) => { e.preventDefault(); document.querySelector(elem.getAttribute("href")).scrollIntoView({ behavior: "smooth", offsetTop: 1 - 60, }); }); }); ``` -------------------------------- ### Active Menu Item Highlighting on Scroll (JavaScript) Source: https://github.com/uideck/play-bootstrap/blob/main/index.html This JavaScript function, `onScroll`, dynamically adds and removes an 'active' class to menu items based on the user's current scroll position. It determines which section is currently in view and highlights the corresponding navigation link. This provides visual feedback to the user about their location on the page. ```javascript // section menu active function onScroll(event) { const sections = document.querySelectorAll(".ud-menu-scroll"); const scrollPos = window.pageYOffset || document.documentElement.scrollTop || document.body.scrollTop; for (let i = 0; i < sections.length; i++) { const currLink = sections[i]; const val = currLink.getAttribute("href"); const refElement = document.querySelector(val); const scrollTopMinus = scrollPos + 73; if ( refElement.offsetTop <= scrollTopMinus && refElement.offsetTop + refElement.offsetHeight > scrollTopMinus ) { document .querySelector(".ud-menu-scroll") .classList.remove("active"); currLink.classList.add("active"); } else { currLink.classList.remove("active"); } } } window.document.addEventListener("scroll", onScroll); ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.