Login
Dashboard
Saved Stitches
Stitch Catalog
Demo
All
E-Commerce
All
(4)
Collections
(3)
Featured Products
(0)
Hero
(0)
Pop Up Modals
(0)
Promotional CTA
(1)
Store Products
(0)
Buttons
All
(1)
Non Standard
(0)
Squared
(1)
Navigation
All
(2)
+ Dropdown
(1)
+ Top Bar
(0)
Double Dropdown
(0)
Standard
(1)
Top Bar + Dropdown
(0)
Hero Section
All
(7)
Centered
(2)
Grid
(0)
Landing + Services
(3)
Left Aligned
(1)
Right Aligned
(1)
Services
All
(16)
3 Card
(4)
4 Card
(4)
5 Card
(1)
6 Card
(2)
8 Card
(1)
Combo
(2)
Side By Side
(2)
Content Flair
All
(3)
Button Boxes
(1)
Content Groups
(1)
Lists
(1)
Quotes
(0)
Stats
(0)
Toppers
(0)
Side By Side
All
(34)
Combo
(0)
Non Standard
(1)
Reverse
(11)
Reverse Pair
(5)
Reverse Triplet
(3)
Standard
(14)
Gallery
All
(7)
4 Images
(1)
5 Images
(1)
6 Images
(1)
8 Images
(2)
Full Width
(0)
Mosaic
(0)
Multi Gallery
(1)
Simple
(1)
Meet Our Team
All
(5)
2 Card
(0)
3 Card
(1)
4 Card
(2)
5 Card
(1)
6 Card
(0)
7 Card
(0)
8 Card
(1)
Combo
(0)
Steps
All
(4)
3 Steps
(2)
4 Steps
(2)
5 Steps
(0)
Stats
All
(5)
2 Stats
(0)
3 Stats
(0)
4 Stats
(3)
Combos
(1)
Timeline
(1)
Pricing
All
(7)
2 Card
(0)
3 Card
(3)
Menu's
(2)
Price List
(0)
w/ Toggles
(2)
FAQ
All
(4)
Multi FAQ's
(0)
Side By Side
(2)
Standard
(2)
Why Choose Us
All
(11)
3 Card
(1)
4 Card
(1)
6 Card
(0)
Side By Side
(9)
Quotes
All
(0)
Single Quotes
(0)
MISC
All
(5)
Careers
(0)
Content
(0)
Locations
(1)
Logos
(1)
Maps
(0)
Popups
(0)
Tables
(1)
Video
(2)
Reviews
All
(14)
2 Card
(4)
3 Card
(3)
4 Card
(0)
8 Card
(0)
Full Width
(0)
Single Review
(7)
Slideshow
(0)
Forms & Contact
All
(8)
Contact Forms
(8)
Contact Info
(0)
Subscribe
(0)
Events
All
(3)
3 Card
(1)
4 Card
(0)
Side By Side
(2)
Blog
All
(3)
Recent Posts
(3)
Call To Action
All
(4)
Combos
(1)
Contained
(0)
Full Width
(2)
Subscribe Forms
(1)
Footer
All
(6)
2 Column
(0)
3 Column
(1)
4 Column
(2)
5 Column
(1)
Combo
(0)
Simple
(2)
Dark Mode
All
(1)
Standard
(1)
Interior Pages
All
(3)
About Page
(0)
Contact Page
(0)
Content Page
(1)
FAQ Page
(1)
Menus
(0)
Page Banners
(1)
Service Page
(0)
Side By Side
HTML
CSS
JS
Core Styles
Choose your preferred CSS
CSS
LESS
SCSS
CSS Dark
LESS Dark
SCSS Dark
Choose your preferred Core Styles CSS
CSS
LESS
SCSS
-
Dark Mode
+
Dark Mode
Copy
to Clipboard
<!-- ============================================ --> <!-- Why Choose Us --> <!-- ============================================ --> <section id="why-choose-2058"> <div class="cs-container"> <div class="cs-flex1"> <div class="cs-content"> <span class="cs-topper">Why Choose Us</span> <h2 class="cs-title">Smiles More Radiant and Healthy is Our Passion</h2> <p class="cs-text"> Orci eu lobortis elementum nibh tellus. Vulputate eu scelerisque felis imperdiet proin fermentum leo vel. Luctus accumsan tortor posuere ac ut consequat semper. Et pharetra pharetra massa massa ultricies mi quis. </p> <a class="cs-link" href="">Learn More</a> </div> <div class="cs-video-wrapper"> <!--Compress your video and upload it to a CDN like Digital Oceans Spaces so the video file doesn't cause load time issues. You can also remove the video tag and uncomment the picture tag to use a image instead of a video. Don't forget to remove the cs-play button!--> <video loading="lazy" src="https://csimg.nyc3.cdn.digitaloceanspaces.com/Images/Videos/gym.mp4" autoplay="false"></video> <!-- <picture class="cs-picture"> <source media="(max-width: 600px)" srcset="https://csimg.nyc3.cdn.digitaloceanspaces.com/Images/People/dental-sbs-1.png"> <source media="(min-width: 601px)" srcset="https://csimg.nyc3.cdn.digitaloceanspaces.com/Images/People/dental-sbs-1.png"> <img loading="lazy" decoding="async" src="https://csimg.nyc3.cdn.digitaloceanspaces.com/Images/People/dental-sbs-1.png" alt="body builder" width="630" height="877"> </picture> --> <button class="cs-play" aria-label="click to play video"> <img class="cs-icon" src="https://csimg.nyc3.cdn.digitaloceanspaces.com/Images/Icons/play-right.svg" alt="play icon" width="24" height="24" aria-hidden="true" decoding="async"> </button> </div> <div class="cs-flex2"> <picture class="cs-small-picture"> <source media="(max-width: 600px)" srcset="https://csimg.nyc3.cdn.digitaloceanspaces.com/Images/People/patient1.png"> <source media="(min-width: 601px)" srcset="https://csimg.nyc3.cdn.digitaloceanspaces.com/Images/People/patient1.png"> <img loading="lazy" decoding="async" src="https://csimg.nyc3.cdn.digitaloceanspaces.com/Images/People/patient1.png" alt="body builder" width="630" height="877"> </picture> <ul class="cs-services"> <li class="cs-item"> <h3 class="cs-h3">Gum Surgery</h3> <p class="cs-item-text">Dentitch provides the best service and has won many awards. Our mission is to make everyone confident to give their best smile.</p> </li> <li class="cs-item"> <h3 class="cs-h3">Dental Sealants</h3> <p class="cs-item-text">Dentitch provides the best service and has won many awards. Our mission is to make everyone confident to give their best smile.</p> </li> </ul> </div> </div> </div> </section>
/*-- -------------------------- --> <--- Why Choose Us --> <--- -------------------------- -*/ /* Mobile - 360px */ @media only screen and (min-width: 0rem) { #why-choose-2058 { background-color: #f5fcfb; position: relative; z-index: 1; } #why-choose-2058 .cs-container { width: 100%; max-width: 120rem; margin: auto; display: grid; grid-auto-flow: row; } #why-choose-2058 .cs-flex1, #why-choose-2058 .cs-flex2 { /* breaks up the container so its children can be children of the cs-container and arrange themselves with the other children of the cs-container */ display: contents; position: relative; z-index: 1; } #why-choose-2058 .cs-content { width: 100%; max-width: 43.75rem; padding: var(--sectionPadding); display: flex; flex-direction: column; justify-content: center; justify-self: center; } #why-choose-2058 .cs-text { margin: 0 0 2rem; } #why-choose-2058 .cs-link { font-size: 1rem; font-weight: 700; line-height: 1.2em; width: max-content; color: var(--secondary); display: inline-block; } #why-choose-2058 .cs-small-picture { width: 100%; /* 388px - 420px */ height: 24.25rem; display: block; position: relative; } #why-choose-2058 .cs-small-picture img { width: 100%; height: 100%; object-fit: cover; display: block; position: absolute; top: 0; left: 0; } #why-choose-2058 .cs-services { margin: 0; /* 32px - 100px top & bottom*/ /* 16px - 60px left & right */ padding: clamp(2rem, 6vw, 6.25rem) clamp(1rem, 3vw, 3.75rem); background-color: #1a1a1a; display: flex; flex-direction: column; align-items: center; gap: 2rem; } #why-choose-2058 .cs-item { list-style: none; } #why-choose-2058 .cs-item-text { /* 14px - 16px */ font-size: clamp(0.875rem, 1.5vw, 1rem); font-weight: 400; line-height: 1.5em; margin: 0; color: var(--bodyTextColorWhite); } #why-choose-2058 .cs-h3 { font-size: 1.25rem; font-weight: 700; line-height: 1.2em; margin: 0 0 1rem; color: var(--bodyTextColorWhite); } #why-choose-2058 .cs-video-wrapper { width: 100%; height: 95vw; max-height: 21.25rem; display: block; grid-row: 4; position: relative; z-index: 1; } #why-choose-2058 .cs-video-wrapper:hover { cursor: pointer; } #why-choose-2058 .cs-video-wrapper:hover .cs-play { transform: translate(-50%, -50%) scale(1.2); } #why-choose-2058 .cs-video-wrapper video, #why-choose-2058 .cs-video-wrapper .cs-picture { width: 100%; height: 100%; /* makes image act as a background image */ object-fit: cover; position: absolute; top: 0; left: 0; } #why-choose-2058 .cs-video-wrapper video img, #why-choose-2058 .cs-video-wrapper .cs-picture img { width: 100%; height: 100%; /* makes image act as a background image */ object-fit: cover; position: absolute; top: 0; left: 0; } #why-choose-2058 .cs-play { /* 80px - 120px */ width: clamp(5rem, 10vw, 7.5rem); height: clamp(5rem, 10vw, 7.5rem); background-color: rgba(255, 255, 255, 0.2); pointer-events: none; border: none; border-radius: 50%; display: flex; justify-content: center; align-items: center; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); transition: transform 0.3s, opacity 0.3s; backdrop-filter: blur(8px); } #why-choose-2058 .cs-play.cs-hide { opacity: 0; transform: translate(-50%, -50%) scale(0) !important; } #why-choose-2058 .cs-icon { width: 1.25rem; height: auto; } } /* Tablet - 768px */ @media only screen and (min-width: 48rem) { #why-choose-2058 { padding: var(--sectionPadding); padding-left: 0; padding-right: 0; padding-bottom: 0; } #why-choose-2058 .cs-container { grid-template-columns: repeat(12, 1fr); grid-template-rows: repeat(2, 1fr); } #why-choose-2058 .cs-content { /* 48px - 100px */ padding-top: clamp(3rem, 6vw, 6.25rem); /* 60px - 80px */ padding-bottom: clamp(3.75rem, 5vw, 5rem); grid-column: span 8; grid-row: 1 / 1; } #why-choose-2058 .cs-small-picture { height: 100%; grid-column: span 4; grid-row: 2 / 2; } #why-choose-2058 .cs-services { justify-content: center; grid-column: span 4; grid-row: 2 / 2; } #why-choose-2058 .cs-video-wrapper { height: 100%; max-height: none; grid-column: span 4; grid-row: span 2; } } /* Large Desktop - 1920px */ @media only screen and (min-width: 120rem) { #why-choose-2058 .cs-container { max-width: 80rem; display: block; } #why-choose-2058 .cs-content { width: 100%; max-width: 54.1875rem; padding-left: 0; padding-right: 0; flex: none; } #why-choose-2058 .cs-flex2 { width: 100%; display: flex; max-width: 40.625rem; position: relative; z-index: 1; } #why-choose-2058 .cs-small-picture { position: absolute; height: 100%; width: 36vw; right: 100%; top: 0; } #why-choose-2058 .cs-flex1 { width: 100%; max-width: 54.1875rem; display: flex; flex-direction: column; align-items: flex-end; } #why-choose-2058 .cs-video-wrapper { position: absolute; height: 100%; left: 100%; top: 0; width: 43vw; } }
/*-- -------------------------- --> <--- Why Choose Us --> <--- -------------------------- -*/ /* Mobile - 360px */ @media only screen and (min-width: 0rem) { #why-choose-2058 { background-color: #f5fcfb; position: relative; z-index: 1; } #why-choose-2058 .cs-container { width: 100%; max-width: 120rem; margin: auto; display: grid; grid-auto-flow: row; } #why-choose-2058 .cs-flex1, #why-choose-2058 .cs-flex2 { /* breaks up the container so its children can be children of the cs-container and arrange themselves with the other children of the cs-container */ display: contents; position: relative; z-index: 1; } #why-choose-2058 .cs-content { width: 100%; max-width: 43.75rem; padding: var(--sectionPadding); display: flex; flex-direction: column; justify-content: center; justify-self: center; } #why-choose-2058 .cs-text { margin: 0 0 2rem; } #why-choose-2058 .cs-link { font-size: 1rem; font-weight: 700; line-height: 1.2em; width: max-content; color: var(--secondary); display: inline-block; } #why-choose-2058 .cs-small-picture { width: 100%; /* 388px - 420px */ height: 24.25rem; display: block; position: relative; } #why-choose-2058 .cs-small-picture img { width: 100%; height: 100%; object-fit: cover; display: block; position: absolute; top: 0; left: 0; } #why-choose-2058 .cs-services { margin: 0; /* 32px - 100px top & bottom*/ /* 16px - 60px left & right */ padding: clamp(2rem, 6vw, 6.25rem) clamp(1rem, 3vw, 3.75rem); background-color: #1a1a1a; display: flex; flex-direction: column; align-items: center; gap: 2rem; } #why-choose-2058 .cs-item { list-style: none; } #why-choose-2058 .cs-item-text { /* 14px - 16px */ font-size: clamp(0.875rem, 1.5vw, 1rem); font-weight: 400; line-height: 1.5em; margin: 0; color: var(--bodyTextColorWhite); } #why-choose-2058 .cs-h3 { font-size: 1.25rem; font-weight: 700; line-height: 1.2em; margin: 0 0 1rem; color: var(--bodyTextColorWhite); } #why-choose-2058 .cs-video-wrapper { width: 100%; height: 95vw; max-height: 21.25rem; display: block; grid-row: 4; position: relative; z-index: 1; } #why-choose-2058 .cs-video-wrapper:hover { cursor: pointer; } #why-choose-2058 .cs-video-wrapper:hover .cs-play { transform: translate(-50%, -50%) scale(1.2); } #why-choose-2058 .cs-video-wrapper video, #why-choose-2058 .cs-video-wrapper .cs-picture { width: 100%; height: 100%; /* makes image act as a background image */ object-fit: cover; position: absolute; top: 0; left: 0; } #why-choose-2058 .cs-video-wrapper video img, #why-choose-2058 .cs-video-wrapper .cs-picture img { width: 100%; height: 100%; /* makes image act as a background image */ object-fit: cover; position: absolute; top: 0; left: 0; } #why-choose-2058 .cs-play { /* 80px - 120px */ width: clamp(5rem, 10vw, 7.5rem); height: clamp(5rem, 10vw, 7.5rem); background-color: rgba(255, 255, 255, 0.2); pointer-events: none; border: none; border-radius: 50%; display: flex; justify-content: center; align-items: center; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); transition: transform 0.3s, opacity 0.3s; backdrop-filter: blur(8px); } #why-choose-2058 .cs-play.cs-hide { opacity: 0; transform: translate(-50%, -50%) scale(0) !important; } #why-choose-2058 .cs-icon { width: 1.25rem; height: auto; } } /* Tablet - 768px */ @media only screen and (min-width: 48rem) { #why-choose-2058 { padding: var(--sectionPadding); padding-left: 0; padding-right: 0; padding-bottom: 0; } #why-choose-2058 .cs-container { grid-template-columns: repeat(12, 1fr); grid-template-rows: repeat(2, 1fr); } #why-choose-2058 .cs-content { /* 48px - 100px */ padding-top: clamp(3rem, 6vw, 6.25rem); /* 60px - 80px */ padding-bottom: clamp(3.75rem, 5vw, 5rem); grid-column: span 8; grid-row: 1 / 1; } #why-choose-2058 .cs-small-picture { height: 100%; grid-column: span 4; grid-row: 2 / 2; } #why-choose-2058 .cs-services { justify-content: center; grid-column: span 4; grid-row: 2 / 2; } #why-choose-2058 .cs-video-wrapper { height: 100%; max-height: none; grid-column: span 4; grid-row: span 2; } } /* Large Desktop - 1920px */ @media only screen and (min-width: 120rem) { #why-choose-2058 .cs-container { max-width: 80rem; display: block; } #why-choose-2058 .cs-content { width: 100%; max-width: 54.1875rem; padding-left: 0; padding-right: 0; flex: none; } #why-choose-2058 .cs-flex2 { width: 100%; display: flex; max-width: 40.625rem; position: relative; z-index: 1; } #why-choose-2058 .cs-small-picture { position: absolute; height: 100%; width: 36vw; right: 100%; top: 0; } #why-choose-2058 .cs-flex1 { width: 100%; max-width: 54.1875rem; display: flex; flex-direction: column; align-items: flex-end; } #why-choose-2058 .cs-video-wrapper { position: absolute; height: 100%; left: 100%; top: 0; width: 43vw; } } /* Dark Mode */ @media only screen and (min-width: 0rem) { body.dark-mode #why-choose-2058 { background-color: rgba(0, 0, 0, 0.2); } body.dark-mode #why-choose-2058 .cs-services { background-color: rgba(0, 0, 0, 0.6); } }
/*-- -------------------------- --> <--- Why Choose Us --> <--- -------------------------- -*/ /* Mobile - 360px */ @media only screen and (min-width: 0rem) { #why-choose-2058 { background-color: #f5fcfb; position: relative; z-index: 1; .cs-container { width: 100%; max-width: (1920/16rem); margin: auto; display: grid; grid-auto-flow: row; } .cs-flex1, .cs-flex2 { /* breaks up the container so its children can be children of the cs-container and arrange themselves with the other children of the cs-container */ display: contents; position: relative; z-index: 1; } .cs-content { width: 100%; max-width: (700/16rem); padding: var(--sectionPadding); display: flex; flex-direction: column; justify-content: center; justify-self: center; } .cs-text { margin: 0 0 (32/16rem); } .cs-link { font-size: (16/16rem); font-weight: 700; line-height: 1.2em; width: max-content; color: var(--secondary); display: inline-block; } .cs-small-picture { width: 100%; /* 388px - 420px */ height: (388/16rem); display: block; position: relative; img { width: 100%; height: 100%; object-fit: cover; display: block; position: absolute; top: 0; left: 0; } } .cs-services { margin: 0; /* 32px - 100px top & bottom*/ /* 16px - 60px left & right */ padding: clamp(2rem, 6vw, 6.25rem) clamp(1rem, 3vw, 3.75rem); background-color: #1a1a1a; display: flex; flex-direction: column; align-items: center; gap: (32/16rem); } .cs-item { list-style: none; } .cs-item-text { /* 14px - 16px */ font-size: clamp(0.875rem, 1.5vw, 1rem); font-weight: 400; line-height: 1.5em; margin: 0; color: var(--bodyTextColorWhite); } .cs-h3 { font-size: (20/16rem); font-weight: 700; line-height: 1.2em; margin: 0 0 (16/16rem); color: var(--bodyTextColorWhite); } .cs-video-wrapper { width: 100%; height: 95vw; max-height: (340/16rem); display: block; grid-row: 4; position: relative; z-index: 1; &:hover { cursor: pointer; .cs-play { transform: translate(-50%, -50%) scale(1.2); } } video, .cs-picture { width: 100%; height: 100%; /* makes image act as a background image */ object-fit: cover; position: absolute; top: 0; left: 0; img { width: 100%; height: 100%; /* makes image act as a background image */ object-fit: cover; position: absolute; top: 0; left: 0; } } } .cs-play { /* 80px - 120px */ width: clamp(5rem, 10vw, 7.5rem); height: clamp(5rem, 10vw, 7.5rem); background-color: rgba(255, 255, 255, 0.2); pointer-events: none; border: none; border-radius: 50%; display: flex; justify-content: center; align-items: center; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); transition: transform 0.3s, opacity 0.3s; backdrop-filter: blur(8px); &.cs-hide { opacity: 0; transform: translate(-50%, -50%) scale(0) !important; } } .cs-icon { width: (20/16rem); height: auto; } } } /* Tablet - 768px */ @media only screen and (min-width: 48rem) { #why-choose-2058 { padding: var(--sectionPadding); padding-left: 0; padding-right: 0; padding-bottom: 0; .cs-container { grid-template-columns: repeat(12, 1fr); grid-template-rows: repeat(2, 1fr); } .cs-content { /* 48px - 100px */ padding-top: clamp(3rem, 6vw, 6.25rem); /* 60px - 80px */ padding-bottom: clamp(3.75rem, 5vw, 5rem); grid-column: span 8; grid-row: 1 / 1; } .cs-small-picture { height: 100%; grid-column: span 4; grid-row: 2 / 2; } .cs-services { justify-content: center; grid-column: span 4; grid-row: 2 / 2; } .cs-video-wrapper { height: 100%; max-height: none; grid-column: span 4; grid-row: span 2; } } } /* Large Desktop - 1920px */ @media only screen and (min-width: 120rem) { #why-choose-2058 { .cs-container { max-width: (1280/16rem); display: block; } .cs-content { width: 100%; max-width: (867/16rem); padding-left: 0; padding-right: 0; flex: none; } .cs-flex2 { width: 100%; display: flex; max-width: (650/16rem); position: relative; z-index: 1; } .cs-small-picture { position: absolute; height: 100%; width: 36vw; right: 100%; top: 0; } .cs-flex1 { width: 100%; max-width: (867/16rem); display: flex; flex-direction: column; align-items: flex-end; } .cs-video-wrapper { position: absolute; height: 100%; left: 100%; top: 0; width: 43vw; } } }
/*-- -------------------------- --> <--- Why Choose Us --> <--- -------------------------- -*/ /* Mobile - 360px */ @media only screen and (min-width: 0rem) { #why-choose-2058 { background-color: #f5fcfb; position: relative; z-index: 1; .cs-container { width: 100%; max-width: (1920/16rem); margin: auto; display: grid; grid-auto-flow: row; } .cs-flex1, .cs-flex2 { /* breaks up the container so its children can be children of the cs-container and arrange themselves with the other children of the cs-container */ display: contents; position: relative; z-index: 1; } .cs-content { width: 100%; max-width: (700/16rem); padding: var(--sectionPadding); display: flex; flex-direction: column; justify-content: center; justify-self: center; } .cs-text { margin: 0 0 (32/16rem); } .cs-link { font-size: (16/16rem); font-weight: 700; line-height: 1.2em; width: max-content; color: var(--secondary); display: inline-block; } .cs-small-picture { width: 100%; /* 388px - 420px */ height: (388/16rem); display: block; position: relative; img { width: 100%; height: 100%; object-fit: cover; display: block; position: absolute; top: 0; left: 0; } } .cs-services { margin: 0; /* 32px - 100px top & bottom*/ /* 16px - 60px left & right */ padding: clamp(2rem, 6vw, 6.25rem) clamp(1rem, 3vw, 3.75rem); background-color: #1a1a1a; display: flex; flex-direction: column; align-items: center; gap: (32/16rem); } .cs-item { list-style: none; } .cs-item-text { /* 14px - 16px */ font-size: clamp(0.875rem, 1.5vw, 1rem); font-weight: 400; line-height: 1.5em; margin: 0; color: var(--bodyTextColorWhite); } .cs-h3 { font-size: (20/16rem); font-weight: 700; line-height: 1.2em; margin: 0 0 (16/16rem); color: var(--bodyTextColorWhite); } .cs-video-wrapper { width: 100%; height: 95vw; max-height: (340/16rem); display: block; grid-row: 4; position: relative; z-index: 1; &:hover { cursor: pointer; .cs-play { transform: translate(-50%, -50%) scale(1.2); } } video, .cs-picture { width: 100%; height: 100%; /* makes image act as a background image */ object-fit: cover; position: absolute; top: 0; left: 0; img { width: 100%; height: 100%; /* makes image act as a background image */ object-fit: cover; position: absolute; top: 0; left: 0; } } } .cs-play { /* 80px - 120px */ width: clamp(5rem, 10vw, 7.5rem); height: clamp(5rem, 10vw, 7.5rem); background-color: rgba(255, 255, 255, 0.2); pointer-events: none; border: none; border-radius: 50%; display: flex; justify-content: center; align-items: center; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); transition: transform 0.3s, opacity 0.3s; backdrop-filter: blur(8px); &.cs-hide { opacity: 0; transform: translate(-50%, -50%) scale(0) !important; } } .cs-icon { width: (20/16rem); height: auto; } } } /* Tablet - 768px */ @media only screen and (min-width: 48rem) { #why-choose-2058 { padding: var(--sectionPadding); padding-left: 0; padding-right: 0; padding-bottom: 0; .cs-container { grid-template-columns: repeat(12, 1fr); grid-template-rows: repeat(2, 1fr); } .cs-content { /* 48px - 100px */ padding-top: clamp(3rem, 6vw, 6.25rem); /* 60px - 80px */ padding-bottom: clamp(3.75rem, 5vw, 5rem); grid-column: span 8; grid-row: 1 / 1; } .cs-small-picture { height: 100%; grid-column: span 4; grid-row: 2 / 2; } .cs-services { justify-content: center; grid-column: span 4; grid-row: 2 / 2; } .cs-video-wrapper { height: 100%; max-height: none; grid-column: span 4; grid-row: span 2; } } } /* Large Desktop - 1920px */ @media only screen and (min-width: 120rem) { #why-choose-2058 { .cs-container { max-width: (1280/16rem); display: block; } .cs-content { width: 100%; max-width: (867/16rem); padding-left: 0; padding-right: 0; flex: none; } .cs-flex2 { width: 100%; display: flex; max-width: (650/16rem); position: relative; z-index: 1; } .cs-small-picture { position: absolute; height: 100%; width: 36vw; right: 100%; top: 0; } .cs-flex1 { width: 100%; max-width: (867/16rem); display: flex; flex-direction: column; align-items: flex-end; } .cs-video-wrapper { position: absolute; height: 100%; left: 100%; top: 0; width: 43vw; } } } /* Dark Mode */ @media only screen and (min-width: 0rem) { body.dark-mode { #why-choose-2058 { background-color: rgba(0, 0, 0, 0.2); .cs-services { background-color: rgba(0, 0, 0, .6); } } } }
/*-- -------------------------- --> <--- Why Choose Us --> <--- -------------------------- -*/ /* Mobile - 360px */ @media only screen and (min-width: 0rem) { #why-choose-2058 { background-color: #f5fcfb; position: relative; z-index: 1; .cs-container { width: 100%; max-width: calc(1920/16 * 1rem); margin: auto; display: grid; grid-auto-flow: row; } .cs-flex1, .cs-flex2 { /* breaks up the container so its children can be children of the cs-container and arrange themselves with the other children of the cs-container */ display: contents; position: relative; z-index: 1; } .cs-content { width: 100%; max-width: calc(700/16 * 1rem); padding: var(--sectionPadding); display: flex; flex-direction: column; justify-content: center; justify-self: center; } .cs-text { margin: 0 0 calc(32/16 * 1rem); } .cs-link { font-size: calc(16/16 * 1rem); font-weight: 700; line-height: 1.2em; width: max-content; color: var(--secondary); display: inline-block; } .cs-small-picture { width: 100%; /* 388px - 420px */ height: calc(388/16 * 1rem); display: block; position: relative; img { width: 100%; height: 100%; object-fit: cover; display: block; position: absolute; top: 0; left: 0; } } .cs-services { margin: 0; /* 32px - 100px top & bottom*/ /* 16px - 60px left & right */ padding: clamp(2rem, 6vw, 6.25rem) clamp(1rem, 3vw, 3.75rem); background-color: #1a1a1a; display: flex; flex-direction: column; align-items: center; gap: calc(32/16 * 1rem); } .cs-item { list-style: none; } .cs-item-text { /* 14px - 16px */ font-size: clamp(0.875rem, 1.5vw, 1rem); font-weight: 400; line-height: 1.5em; margin: 0; color: var(--bodyTextColorWhite); } .cs-h3 { font-size: calc(20/16 * 1rem); font-weight: 700; line-height: 1.2em; margin: 0 0 calc(16/16 * 1rem); color: var(--bodyTextColorWhite); } .cs-video-wrapper { width: 100%; height: 95vw; max-height: calc(340/16 * 1rem); display: block; grid-row: 4; position: relative; z-index: 1; &:hover { cursor: pointer; .cs-play { transform: translate(-50%, -50%) scale(1.2); } } video, .cs-picture { width: 100%; height: 100%; /* makes image act as a background image */ object-fit: cover; position: absolute; top: 0; left: 0; img { width: 100%; height: 100%; /* makes image act as a background image */ object-fit: cover; position: absolute; top: 0; left: 0; } } } .cs-play { /* 80px - 120px */ width: clamp(5rem, 10vw, 7.5rem); height: clamp(5rem, 10vw, 7.5rem); background-color: rgba(255, 255, 255, 0.2); pointer-events: none; border: none; border-radius: 50%; display: flex; justify-content: center; align-items: center; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); transition: transform 0.3s, opacity 0.3s; backdrop-filter: blur(8px); &.cs-hide { opacity: 0; transform: translate(-50%, -50%) scale(0) !important; } } .cs-icon { width: calc(20/16 * 1rem); height: auto; } } } /* Tablet - 768px */ @media only screen and (min-width: 48rem) { #why-choose-2058 { padding: var(--sectionPadding); padding-left: 0; padding-right: 0; padding-bottom: 0; .cs-container { grid-template-columns: repeat(12, 1fr); grid-template-rows: repeat(2, 1fr); } .cs-content { /* 48px - 100px */ padding-top: clamp(3rem, 6vw, 6.25rem); /* 60px - 80px */ padding-bottom: clamp(3.75rem, 5vw, 5rem); grid-column: span 8; grid-row: 1 / 1; } .cs-small-picture { height: 100%; grid-column: span 4; grid-row: 2 / 2; } .cs-services { justify-content: center; grid-column: span 4; grid-row: 2 / 2; } .cs-video-wrapper { height: 100%; max-height: none; grid-column: span 4; grid-row: span 2; } } } /* Large Desktop - 1920px */ @media only screen and (min-width: 120rem) { #why-choose-2058 { .cs-container { max-width: calc(1280/16 * 1rem); display: block; } .cs-content { width: 100%; max-width: calc(867/16 * 1rem); padding-left: 0; padding-right: 0; flex: none; } .cs-flex2 { width: 100%; display: flex; max-width: calc(650/16 * 1rem); position: relative; z-index: 1; } .cs-small-picture { position: absolute; height: 100%; width: 36vw; right: 100%; top: 0; } .cs-flex1 { width: 100%; max-width: calc(867/16 * 1rem); display: flex; flex-direction: column; align-items: flex-end; } .cs-video-wrapper { position: absolute; height: 100%; left: 100%; top: 0; width: 43vw; } } }
/*-- -------------------------- --> <--- Why Choose Us --> <--- -------------------------- -*/ /* Mobile - 360px */ @media only screen and (min-width: 0rem) { #why-choose-2058 { background-color: #f5fcfb; position: relative; z-index: 1; .cs-container { width: 100%; max-width: calc(1920/16 * 1rem); margin: auto; display: grid; grid-auto-flow: row; } .cs-flex1, .cs-flex2 { /* breaks up the container so its children can be children of the cs-container and arrange themselves with the other children of the cs-container */ display: contents; position: relative; z-index: 1; } .cs-content { width: 100%; max-width: calc(700/16 * 1rem); padding: var(--sectionPadding); display: flex; flex-direction: column; justify-content: center; justify-self: center; } .cs-text { margin: 0 0 calc(32/16 * 1rem); } .cs-link { font-size: calc(16/16 * 1rem); font-weight: 700; line-height: 1.2em; width: max-content; color: var(--secondary); display: inline-block; } .cs-small-picture { width: 100%; /* 388px - 420px */ height: calc(388/16 * 1rem); display: block; position: relative; img { width: 100%; height: 100%; object-fit: cover; display: block; position: absolute; top: 0; left: 0; } } .cs-services { margin: 0; /* 32px - 100px top & bottom*/ /* 16px - 60px left & right */ padding: clamp(2rem, 6vw, 6.25rem) clamp(1rem, 3vw, 3.75rem); background-color: #1a1a1a; display: flex; flex-direction: column; align-items: center; gap: calc(32/16 * 1rem); } .cs-item { list-style: none; } .cs-item-text { /* 14px - 16px */ font-size: clamp(0.875rem, 1.5vw, 1rem); font-weight: 400; line-height: 1.5em; margin: 0; color: var(--bodyTextColorWhite); } .cs-h3 { font-size: calc(20/16 * 1rem); font-weight: 700; line-height: 1.2em; margin: 0 0 calc(16/16 * 1rem); color: var(--bodyTextColorWhite); } .cs-video-wrapper { width: 100%; height: 95vw; max-height: calc(340/16 * 1rem); display: block; grid-row: 4; position: relative; z-index: 1; &:hover { cursor: pointer; .cs-play { transform: translate(-50%, -50%) scale(1.2); } } video, .cs-picture { width: 100%; height: 100%; /* makes image act as a background image */ object-fit: cover; position: absolute; top: 0; left: 0; img { width: 100%; height: 100%; /* makes image act as a background image */ object-fit: cover; position: absolute; top: 0; left: 0; } } } .cs-play { /* 80px - 120px */ width: clamp(5rem, 10vw, 7.5rem); height: clamp(5rem, 10vw, 7.5rem); background-color: rgba(255, 255, 255, 0.2); pointer-events: none; border: none; border-radius: 50%; display: flex; justify-content: center; align-items: center; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); transition: transform 0.3s, opacity 0.3s; backdrop-filter: blur(8px); &.cs-hide { opacity: 0; transform: translate(-50%, -50%) scale(0) !important; } } .cs-icon { width: calc(20/16 * 1rem); height: auto; } } } /* Tablet - 768px */ @media only screen and (min-width: 48rem) { #why-choose-2058 { padding: var(--sectionPadding); padding-left: 0; padding-right: 0; padding-bottom: 0; .cs-container { grid-template-columns: repeat(12, 1fr); grid-template-rows: repeat(2, 1fr); } .cs-content { /* 48px - 100px */ padding-top: clamp(3rem, 6vw, 6.25rem); /* 60px - 80px */ padding-bottom: clamp(3.75rem, 5vw, 5rem); grid-column: span 8; grid-row: 1 / 1; } .cs-small-picture { height: 100%; grid-column: span 4; grid-row: 2 / 2; } .cs-services { justify-content: center; grid-column: span 4; grid-row: 2 / 2; } .cs-video-wrapper { height: 100%; max-height: none; grid-column: span 4; grid-row: span 2; } } } /* Large Desktop - 1920px */ @media only screen and (min-width: 120rem) { #why-choose-2058 { .cs-container { max-width: calc(1280/16 * 1rem); display: block; } .cs-content { width: 100%; max-width: calc(867/16 * 1rem); padding-left: 0; padding-right: 0; flex: none; } .cs-flex2 { width: 100%; display: flex; max-width: calc(650/16 * 1rem); position: relative; z-index: 1; } .cs-small-picture { position: absolute; height: 100%; width: 36vw; right: 100%; top: 0; } .cs-flex1 { width: 100%; max-width: calc(867/16 * 1rem); display: flex; flex-direction: column; align-items: flex-end; } .cs-video-wrapper { position: absolute; height: 100%; left: 100%; top: 0; width: 43vw; } } } /* Dark Mode */ @media only screen and (min-width: 0rem) { body.dark-mode { #why-choose-2058 { background-color: rgba(0, 0, 0, 0.2); .cs-services { background-color: rgba(0, 0, 0, .6); } } } }
function togglePlayButton() { // Select all elements with the .cs-picture class const picture = document.querySelector('#why-choose-2058 .cs-video-wrapper'); const playButton = document.querySelector('#why-choose .cs-play'); function togglePlayButton() { playButton.classList.toggle('cs-hide'); } picture.addEventListener('click', togglePlayButton); playButton.addEventListener('click', togglePlayButton); } // Call the function to activate the event listeners togglePlayButton(); function toggleVideoPlayback() { // Select the video element const video = document.querySelector('#why-choose video'); const playButton = document.querySelector('#why-choose .cs-play'); function togglePlay() { // Check if the video is paused if (video.paused) { video.play(); // Play the video if it is paused } else { video.pause(); // Pause the video if it is playing } } video.addEventListener("click", togglePlay); playButton.addEventListener("click", togglePlay); } // Call the function to activate the event listener toggleVideoPlayback();
:root { /* Add these styles to your global stylesheet, which is used across all site pages. You only need to do this once. All elements in the library derive their variables and base styles from this central sheet, simplifying site-wide edits. For instance, if you want to modify how your h2's appear across the site, you just update it once in the global styles, and the changes apply everywhere. */ --primary: #ff6a3e; --primaryLight: #ffba43; --secondary: #ffba43; --secondaryLight: #ffba43; --headerColor: #1a1a1a; --bodyTextColor: #4e4b66; --bodyTextColorWhite: #fafbfc; /* 13px - 16px */ --topperFontSize: clamp(0.8125rem, 1.6vw, 1rem); /* 31px - 49px */ --headerFontSize: clamp(1.9375rem, 3.9vw, 3.0625rem); --bodyFontSize: 1rem; /* 60px - 100px top and bottom */ --sectionPadding: clamp(3.75rem, 7.82vw, 6.25rem) 1rem; } body { margin: 0; padding: 0; } *, *:before, *:after { /* prevents padding from affecting height and width */ box-sizing: border-box; } .cs-topper { font-size: var(--topperFontSize); line-height: 1.2em; text-transform: uppercase; text-align: inherit; letter-spacing: .1em; font-weight: 700; color: var(--primary); margin-bottom: 0.25rem; display: block; } .cs-title { font-size: var(--headerFontSize); font-weight: 900; line-height: 1.2em; text-align: inherit; max-width: 43.75rem; margin: 0 0 1rem 0; color: var(--headerColor); position: relative; } .cs-text { font-size: var(--bodyFontSize); line-height: 1.5em; text-align: inherit; width: 100%; max-width: 40.625rem; margin: 0; color: var(--bodyTextColor); }
:root { /* Add these styles to your global stylesheet, which is used across all site pages. You only need to do this once. All elements in the library derive their variables and base styles from this central sheet, simplifying site-wide edits. For instance, if you want to modify how your h2's appear across the site, you just update it once in the global styles, and the changes apply everywhere. */ --primary: #ff6a3e; --primaryLight: #ffba43; --secondary: #ffba43; --secondaryLight: #ffba43; --headerColor: #1a1a1a; --bodyTextColor: #4e4b66; --bodyTextColorWhite: #fafbfc; /* 13px - 16px */ --topperFontSize: clamp(0.8125rem, 1.6vw, 1rem); /* 31px - 49px */ --headerFontSize: clamp(1.9375rem, 3.9vw, 3.0625rem); --bodyFontSize: 1rem; /* 60px - 100px top and bottom */ --sectionPadding: clamp(3.75rem, 7.82vw, 6.25rem) 1rem; } body { margin: 0; padding: 0; } *, *:before, *:after { /* prevents padding from affecting height and width */ box-sizing: border-box; } .cs-topper { font-size: var(--topperFontSize); line-height: 1.2em; text-transform: uppercase; text-align: inherit; letter-spacing: .1em; font-weight: 700; color: var(--primary); margin-bottom: (4/16rem); display: block; } .cs-title { font-size: var(--headerFontSize); font-weight: 900; line-height: 1.2em; text-align: inherit; max-width: (700/16rem); margin: 0 0 (16/16rem) 0; color: var(--headerColor); position: relative; } .cs-text { font-size: var(--bodyFontSize); line-height: 1.5em; text-align: inherit; width: 100%; max-width: (650/16rem); margin: 0; color: var(--bodyTextColor); }
:root { /* Add these styles to your global stylesheet, which is used across all site pages. You only need to do this once. All elements in the library derive their variables and base styles from this central sheet, simplifying site-wide edits. For instance, if you want to modify how your h2's appear across the site, you just update it once in the global styles, and the changes apply everywhere. */ --primary: #ff6a3e; --primaryLight: #ffba43; --secondary: #ffba43; --secondaryLight: #ffba43; --headerColor: #1a1a1a; --bodyTextColor: #4e4b66; --bodyTextColorWhite: #fafbfc; /* 13px - 16px */ --topperFontSize: clamp(0.8125rem, 1.6vw, 1rem); /* 31px - 49px */ --headerFontSize: clamp(1.9375rem, 3.9vw, 3.0625rem); --bodyFontSize: 1rem; /* 60px - 100px top and bottom */ --sectionPadding: clamp(3.75rem, 7.82vw, 6.25rem) 1rem; } body { margin: 0; padding: 0; } *, *:before, *:after { /* prevents padding from affecting height and width */ box-sizing: border-box; } .cs-topper { font-size: var(--topperFontSize); line-height: 1.2em; text-transform: uppercase; text-align: inherit; letter-spacing: .1em; font-weight: 700; color: var(--primary); margin-bottom: calc(4 / 16 * 1rem); display: block; } .cs-title { font-size: var(--headerFontSize); font-weight: 900; line-height: 1.2em; text-align: inherit; max-width: calc(700 / 16 * 1rem); margin: 0 0 calc(16 / 16 * 1rem) 0; color: var(--headerColor); position: relative; } .cs-text { font-size: var(--bodyFontSize); line-height: 1.5em; text-align: inherit; width: 100%; max-width: calc(650 / 16 * 1rem); margin: 0; color: var(--bodyTextColor); }
Lorem Ipsum
Undo