├── images ├── icon-arrow-down.svg ├── icon-arrow-up.svg ├── favicon-32x32.png ├── image-hero-mobile.png ├── icon-menu.svg ├── image-hero-desktop.png ├── icon-close-menu.svg ├── icon-todo.svg ├── icon-calendar.svg ├── icon-planning.svg ├── icon-reminders.svg ├── client-audiophile.svg ├── client-meet.svg ├── client-maker.svg ├── logo.svg └── client-databiz.svg ├── design ├── active-states.jpg ├── desktop-design.jpg ├── desktop-preview.jpg ├── mobile-design.jpg ├── mobile-menu-expanded.jpg └── mobile-menu-collapsed.jpg ├── style-guide.md ├── .gitignore ├── script.js ├── LICENSE ├── README.md ├── index.html └── style.css /images/icon-arrow-down.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /images/icon-arrow-up.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /design/active-states.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/all-my-frontend-mini-projects/Intro-section-with-dropdown-navigation_frontend_project/HEAD/design/active-states.jpg -------------------------------------------------------------------------------- /design/desktop-design.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/all-my-frontend-mini-projects/Intro-section-with-dropdown-navigation_frontend_project/HEAD/design/desktop-design.jpg -------------------------------------------------------------------------------- /design/desktop-preview.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/all-my-frontend-mini-projects/Intro-section-with-dropdown-navigation_frontend_project/HEAD/design/desktop-preview.jpg -------------------------------------------------------------------------------- /design/mobile-design.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/all-my-frontend-mini-projects/Intro-section-with-dropdown-navigation_frontend_project/HEAD/design/mobile-design.jpg -------------------------------------------------------------------------------- /images/favicon-32x32.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/all-my-frontend-mini-projects/Intro-section-with-dropdown-navigation_frontend_project/HEAD/images/favicon-32x32.png -------------------------------------------------------------------------------- /images/image-hero-mobile.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/all-my-frontend-mini-projects/Intro-section-with-dropdown-navigation_frontend_project/HEAD/images/image-hero-mobile.png -------------------------------------------------------------------------------- /design/mobile-menu-expanded.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/all-my-frontend-mini-projects/Intro-section-with-dropdown-navigation_frontend_project/HEAD/design/mobile-menu-expanded.jpg -------------------------------------------------------------------------------- /images/icon-menu.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /images/image-hero-desktop.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/all-my-frontend-mini-projects/Intro-section-with-dropdown-navigation_frontend_project/HEAD/images/image-hero-desktop.png -------------------------------------------------------------------------------- /design/mobile-menu-collapsed.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/all-my-frontend-mini-projects/Intro-section-with-dropdown-navigation_frontend_project/HEAD/design/mobile-menu-collapsed.jpg -------------------------------------------------------------------------------- /images/icon-close-menu.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /images/icon-todo.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /images/icon-calendar.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /images/icon-planning.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /images/icon-reminders.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /style-guide.md: -------------------------------------------------------------------------------- 1 | # Front-end Style Guide 2 | 3 | ## Layout 4 | 5 | The designs were created to the following widths: 6 | 7 | - Mobile: 375px 8 | - Desktop: 1440px 9 | 10 | ## Colors 11 | 12 | ### Neutral 13 | 14 | - Almost White: hsl(0, 0%, 98%) 15 | - Medium Gray: hsl(0, 0%, 41%) 16 | - Almost Black: hsl(0, 0%, 8%) 17 | 18 | ## Typography 19 | 20 | ### Body Copy 21 | 22 | - Font size (paragraph): 18px 23 | 24 | ### Font 25 | 26 | - Family: [Epilogue](https://fonts.google.com/specimen/Epilogue) 27 | - Weights: 500, 700 28 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # Avoid accidental upload of the Sketch and Figma design files 2 | ##################################################### 3 | ## Please do not remove lines 5 and 6 - thanks! 🙂 ## 4 | ##################################################### 5 | *.sketch 6 | *.fig 7 | 8 | # Avoid accidental XD upload if you convert the design file 9 | ############################################### 10 | ## Please do not remove line 12 - thanks! 🙂 ## 11 | ############################################### 12 | *.xd 13 | 14 | # Avoid your project being littered with annoying .DS_Store files! 15 | .DS_Store 16 | .prettierignore -------------------------------------------------------------------------------- /script.js: -------------------------------------------------------------------------------- 1 | const navLinkTitles = document.querySelectorAll(".nav-link-title"); 2 | const navBar = document.getElementById("navBar"); 3 | const btnHamburger = document.getElementById("btnHamburger"); 4 | const btnClose = document.getElementById("btnClose"); 5 | 6 | const toggleSubNavs = (navLinkTitle, i) => { 7 | const subNavLink = navLinkTitle.nextElementSibling; 8 | !navLinkTitle.parentElement.classList.contains("open") 9 | ? (subNavLink.style.maxHeight = `${subNavLink.scrollHeight + 32}px`) 10 | : (subNavLink.style.maxHeight = "0px"); 11 | navLinkTitles.forEach((_navLinkTitle, _i) => { 12 | if (i !== _i) { 13 | const subNavLink = _navLinkTitle.nextElementSibling; 14 | _navLinkTitle.parentElement.classList.remove("open"); 15 | if (subNavLink) subNavLink.style.maxHeight = "0px"; 16 | } 17 | }); 18 | navLinkTitle.parentElement.classList.toggle("open"); 19 | }; 20 | 21 | navLinkTitles.forEach((navLinkTitle, i) => { 22 | navLinkTitle.addEventListener("click", () => { 23 | toggleSubNavs(navLinkTitle, i); 24 | }); 25 | }); 26 | 27 | btnHamburger.addEventListener("click", () => navBar.classList.add("open")); 28 | btnClose.addEventListener("click", () => navBar.classList.remove("open")); -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | BSD 3-Clause License 2 | 3 | Copyright (c) 2024, Sarthak Sachdev 4 | 5 | Redistribution and use in source and binary forms, with or without 6 | modification, are permitted provided that the following conditions are met: 7 | 8 | 1. Redistributions of source code must retain the above copyright notice, this 9 | list of conditions and the following disclaimer. 10 | 11 | 2. Redistributions in binary form must reproduce the above copyright notice, 12 | this list of conditions and the following disclaimer in the documentation 13 | and/or other materials provided with the distribution. 14 | 15 | 3. Neither the name of the copyright holder nor the names of its 16 | contributors may be used to endorse or promote products derived from 17 | this software without specific prior written permission. 18 | 19 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 20 | AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 21 | IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 22 | DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE 23 | FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 24 | DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR 25 | SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER 26 | CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, 27 | OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 28 | OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 29 | -------------------------------------------------------------------------------- /images/client-audiophile.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /images/client-meet.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /images/client-maker.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /images/logo.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /images/client-databiz.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Intro Section with Dropdown Navigation 2 | 3 | ## Welcome! 👋 4 | 5 | ## Table of contents 6 | 7 | - [Overview](#overview) 8 | - [The challenge](#the-challenge) 9 | - [How to setup the project](#how-to-setup-the-project) 10 | - [Screenshot](#screenshot) 11 | - [Links](#links) 12 | - [My process](#my-process) 13 | - [Built with](#built-with) 14 | - [What I learned](#what-i-learned) 15 | - [Continued development](#continued-development) 16 | - [Useful resources](#useful-resources) 17 | - [Author](#author) 18 | - [Acknowledgments](#acknowledgments) 19 | 20 | ## Overview 21 | 22 | ### The challenge 23 | 24 | Explore our website seamlessly with the Intro Section featuring Dropdown Navigation! 25 | 26 | This component allows users to:- 27 | - View the relevant dropdown menus on desktop and mobile when interacting with the navigation links 28 | - Ensuring an optimal layout for the content depending on their device's screen size. 29 | - Users can also see hover states for all interactive elements on the page. 30 | 31 | ### How to setup the project 32 | 33 | To set up the project locally, follow these steps: 34 | 35 | 1. Clone the repository using GitHub Desktop or Git Bash: 36 | ```bash 37 | git clone https://github.com/SartHak-0-Sach/Intro-section-with-dropdown-navigation_frontend_project.git 38 | ``` 39 | 2. Open the project folder in your code editor. 40 | 3. Run the project using a live server extension or deploy it using Netlify, Vercel, or another web hosting and deployment service. 41 | 42 | ### Screenshot 43 | 44 | ![Design Preview](./design/active-states.jpg) 45 | 46 | ### Links 47 | 48 | - Solution URL: [GitHub Repository](https://github.com/SartHak-0-Sach/Intro-section-with-dropdown-navigation_frontend_project) 49 | - Live Site URL: [Live Site](https://dropdown-nav-intro-section.netlify.app/) 50 | 51 | ## My process 52 | 53 | ### Built with 54 | 55 | - HTML5 56 | - CSS3 57 | - JavaScript 58 | 59 | You will find all the required assets in the `/design` folder. The assets are already optimized. 60 | 61 | There is also a `style-guide.md` file containing the information you'll need, such as color palette and fonts. 62 | 63 | ### What I learned 64 | 65 | This project can be of great help if one is looking for a kind of project that can help us revise a large variety of CSS and JS concepts all in one as implementing it successfully means knowing all fundamental concepts of programming well. One such example snippet is as shown below- 66 | 67 | ```js 68 | const toggleSubNavs = (navLinkTitle, i) => { 69 | const subNavLink = navLinkTitle.nextElementSibling; 70 | !navLinkTitle.parentElement.classList.contains("open") 71 | ? (subNavLink.style.maxHeight = `${subNavLink.scrollHeight + 32}px`) 72 | : (subNavLink.style.maxHeight = "0px"); 73 | navLinkTitles.forEach((_navLinkTitle, _i) => { 74 | if (i !== _i) { 75 | const subNavLink = _navLinkTitle.nextElementSibling; 76 | _navLinkTitle.parentElement.classList.remove("open"); 77 | if (subNavLink) subNavLink.style.maxHeight = "0px"; 78 | } 79 | }); 80 | navLinkTitle.parentElement.classList.toggle("open"); 81 | }; 82 | 83 | navLinkTitles.forEach((navLinkTitle, i) => { 84 | navLinkTitle.addEventListener("click", () => { 85 | toggleSubNavs(navLinkTitle, i); 86 | }); 87 | }); 88 | ``` 89 | 90 | ### Continued development 91 | 92 | The continuously learning journey of a programmer never ends. This project made me realize that there are many concepts that I need to work upon including fundamentals like flex-box and its properties, to more complex concepts like working with fetch and async await in JavaScript. These areas are some that I think I need to work more upon in the upcoming future as they highlight some of the most significant regions of web development that are important for every developer to know of. 93 | 94 | These key points mentioned here will help me grow accountable and consistent towards improving at writing good quality code and be a successful full stack developer one day. 95 | 96 | ### Useful resources 97 | 98 | - [Harkirat Singh course notes](https://github.com/SartHak-0-Sach/harkirat-singh-course_code_and_notes) - I have added notes of all lectures along with code and lecture insights of all weeks along with bonus lectures to help you all as much as I can. 99 | - [My development code and notes](https://github.com/SartHak-0-Sach/cwh-web-dev-playlist_code_and_notes) - These are my notes that I made while working on my development skills in initial days and did these courses. Make sure to star the repository if you like it.✨💫 100 | - [MDN documentation hover state for CSS](https://developer.mozilla.org/en-US/docs/Web/CSS/:hover) - This is an amazing article which helped me finally understand hover states. I'd recommend it to anyone still learning this concept. 101 | 102 | ## Author 103 | 104 | Sarthak Sachdev 105 | - Website - [Sarthak Sachdev](https://itsmesarthak.netlify.app/) 106 | - LeetCode - [@sarthak_sachdev](https://leetcode.com/u/sarthak_sachdev/) 107 | - Twitter - [@sarthak_sach69](https://www.twitter.com/sarthak_sach69) 108 | 109 | ## Acknowledgments 110 | 111 | I feel like the solutions provided on the website and the continuous doubt solving by industry experts on discord for free is something that is unmatched by anyone else and need to be acknowledged for their efforts in improving me as a developer by suggesting the best practices in your respective tech stack. 112 | 113 | ## Got feedback for me? 114 | 115 | I love receiving feedback! I am always looking to improve my code and take up new innovative ideas to work upon. So if you have anything you'd like to mention, please email 'hi' at saarsaach30[at]gmail[dot]com. 116 | 117 | If you liked this project make sure to spread the word and share it with all your friends. 118 | 119 | **Happy coding!** ☺️🚀 120 | -------------------------------------------------------------------------------- /index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 13 | 14 | 15 | 16 | Intro section 17 | 18 | 19 |
20 | 21 |
22 | snap logo 23 | 24 | 25 | 102 |
103 | 104 | 105 |
106 | 107 | 111 | man with laptop in his hands 115 | 116 |
117 |

118 | Make
119 | remote work 120 |

121 |

122 | Get your team in sync, no matter your location. Streamline 123 | processes, create team rituals, and watch productivity soar. 124 |

125 | 126 | 127 | 128 |
129 | databiz logo 134 | audiophile logo 139 | meet logo 144 | maker logo 149 |
150 |
151 |
152 | 155 |
156 | 157 | 158 | 159 | -------------------------------------------------------------------------------- /style.css: -------------------------------------------------------------------------------- 1 | * { 2 | margin: 0; 3 | padding: 0; 4 | text-decoration: 0; 5 | } 6 | 7 | html { 8 | font-size: 100%; 9 | box-sizing: border-box; 10 | height: 100%; 11 | } 12 | 13 | html:focus-within { 14 | scroll-behavior: smooth; 15 | } 16 | 17 | *, 18 | *::before, 19 | *::after { 20 | box-sizing: inherit; 21 | } 22 | 23 | a:not([class]) { 24 | color: inherit; 25 | } 26 | 27 | img, 28 | picture { 29 | max-width: 100%; 30 | display: block; 31 | line-height: 0; 32 | } 33 | 34 | input, 35 | button, 36 | textarea, 37 | select { 38 | font-family: inherit; 39 | } 40 | 41 | button { 42 | background: none; 43 | outline: none; 44 | border: none; 45 | display: block; 46 | cursor: pointer; 47 | transition: all ease 0.2s; 48 | } 49 | 50 | h1, 51 | h2, 52 | h3, 53 | p { 54 | padding: 0; 55 | margin: 0; 56 | } 57 | 58 | ul, 59 | li { 60 | list-style: none; 61 | padding: 0; 62 | } 63 | 64 | svg { 65 | max-width: 100%; 66 | cursor: pointer; 67 | } 68 | 69 | @import url("https://fonts.googleapis.com/css2?family=Epilogue:wght@400;500;600;700&display=swap"); 70 | 71 | :root { 72 | /* COLORS */ 73 | 74 | --clr-white: hsl(0, 0%, 98%); 75 | --clr-medium-gray: hsl(0, 0%, 41%); 76 | --clr-black: hsl(0, 0%, 8%); 77 | 78 | /* TYPOGRAPHY */ 79 | 80 | --ff-epilogue: "Epilogue", sans-serif; 81 | 82 | /* FONT SIZES */ 83 | 84 | /* 16px / 18px / 35px / 80px / 18px */ 85 | --fs-body-sm: 1rem; 86 | --fs-body-med: 1.125rem; 87 | --fs-heading-sm: 2.18rem; 88 | --fs-heading-l: 5rem; 89 | --fs-body-btn: 1.125rem; 90 | 91 | /* LINE HEIGHTS */ 92 | 93 | /* 26px / 28px / 41px / 80px */ 94 | --lh-body-sm: 1.625rem; 95 | --lh-body-med: 1.75rem; 96 | --lh-heading-sm: 2.56rem; 97 | --lh-heading-l: 5rem; 98 | 99 | /* FONT WEIGHTS */ 100 | 101 | --fw-regular: 500; 102 | --fw-semibold: 600; 103 | --fw-bold: 700; 104 | 105 | /* BORDER RADIUS */ 106 | 107 | --br-btn: 1rem; 108 | --br-nav: 0.5rem; 109 | } 110 | 111 | body { 112 | margin: 0; 113 | padding: 0; 114 | font-family: var(--ff-epilogue); 115 | font-size: var(--fs-body-med); 116 | line-height: var(--lh-body-med); 117 | color: var(--clr-blackblack); 118 | background-color: var(--clr-white); 119 | } 120 | 121 | /* HELPER CLASSES */ 122 | 123 | .p-inline { 124 | padding: 0 1rem; 125 | } 126 | 127 | .btn { 128 | font-size: var(--fs-body-med); 129 | padding: 1.125rem 1.875rem; 130 | } 131 | 132 | .scale-down { 133 | transform: scale(0.7); 134 | } 135 | 136 | /* HEADER */ 137 | 138 | .header { 139 | display: flex; 140 | justify-content: space-between; 141 | align-items: center; 142 | margin-top: 2rem; 143 | } 144 | 145 | /* NAVBAR */ 146 | 147 | .navbar-bg { 148 | position: fixed; 149 | z-index: 1; 150 | background-color: hsla(0, 0%, 8%, 0.7); 151 | inset: 0; 152 | opacity: 0; 153 | transition: opacity 0.3s; 154 | pointer-events: none; 155 | } 156 | 157 | .navbar-bg.open { 158 | opacity: 1; 159 | pointer-events: all; 160 | } 161 | 162 | .navbar-links { 163 | display: flex; 164 | flex-direction: column; 165 | } 166 | 167 | .navbar-links button:hover { 168 | color: var(--clr-black); 169 | } 170 | 171 | .nav-link:last-of-type { 172 | margin-top: 1.875rem; 173 | } 174 | 175 | .navbar-menu { 176 | background-color: var(--clr-white); 177 | width: 65%; 178 | margin-left: auto; 179 | height: 100vh; 180 | padding: 1.56rem 1.125rem 1.56rem 1.56rem; 181 | color: var(--clr-medium-gray); 182 | transform: translateX(100%); 183 | transition: transform 0.3s; 184 | } 185 | 186 | .navbar-bg.open .navbar-menu { 187 | opacity: 1; 188 | pointer-events: all; 189 | transform: translateX(0); 190 | } 191 | 192 | .nav-link-title { 193 | display: flex; 194 | align-items: center; 195 | gap: 1rem; 196 | font-size: var(--fs-body-sm); 197 | font-weight: var(--fw-regular); 198 | color: var(--clr-medium-gray); 199 | } 200 | 201 | .nav-link .nav-link-title span { 202 | transition: transform 0.3s ease-in-out; 203 | } 204 | 205 | .nav-link.open .nav-link-title span { 206 | transform: rotate(180deg); 207 | } 208 | 209 | /* SUBNAV */ 210 | 211 | .subnav-menu { 212 | margin: 0 0 1.875rem 1.875rem; 213 | font-weight: var(--fw-regular); 214 | overflow: hidden; 215 | max-height: 0; 216 | transition: max-height 0.3s ease-out; 217 | } 218 | 219 | .subnav-menu img { 220 | height: 100%; 221 | width: 1.2rem; 222 | } 223 | 224 | .subnav-link { 225 | display: flex; 226 | align-items: center; 227 | font-size: var(--fs-body-sm); 228 | gap: 1rem; 229 | padding-bottom: 0.75rem; 230 | cursor: pointer; 231 | } 232 | 233 | .subnav-link:hover { 234 | color: var(--clr-black); 235 | } 236 | 237 | .subnav-link:first-of-type { 238 | margin-top: 1.56rem; 239 | } 240 | 241 | /* NAVBAR ACTIONS */ 242 | 243 | .btn-login, 244 | .btn-register { 245 | margin: 0 auto; 246 | font-size: var(--fs-body-sm); 247 | font-weight: var(--fw-regular); 248 | color: var(--clr-medium-gray); 249 | } 250 | 251 | .btn-login { 252 | margin-top: 3.125rem; 253 | } 254 | 255 | .btn-register { 256 | margin-top: 1.25rem; 257 | border: 2px solid var(--clr-medium-gray); 258 | border-radius: var(--br-btn); 259 | width: 100%; 260 | padding: 0.9rem 0.9rem 0.8rem 0.9rem; 261 | } 262 | 263 | .btn-login:hover { 264 | color: var(--clr-black); 265 | } 266 | 267 | .btn-register:hover { 268 | border: 2px solid var(--clr-black); 269 | background-color: var(--clr-black); 270 | color: var(--clr-white); 271 | } 272 | 273 | .btn-close { 274 | margin-top: 0.31rem; 275 | margin-left: auto; 276 | margin-bottom: 2.5rem; 277 | } 278 | 279 | /* HERO */ 280 | 281 | .hero { 282 | margin-top: 1.875rem; 283 | } 284 | 285 | .hero-content { 286 | margin-top: 3.125rem; 287 | text-align: center; 288 | } 289 | 290 | .hero-content h1 { 291 | font-size: var(--fs-heading-sm); 292 | line-height: var(--lh-heading-sm); 293 | } 294 | 295 | .heading-lb { 296 | display: none; 297 | } 298 | 299 | .hero-content p { 300 | margin-top: 10px; 301 | font-size: var(--fs-body-sm); 302 | line-height: var(--lh-body-sm); 303 | color: var(--clr-medium-gray); 304 | } 305 | 306 | .btn-cta { 307 | margin: 1.56rem auto; 308 | background-color: var(--clr-black); 309 | color: var(--clr-white); 310 | font-weight: var(--fw-semibold); 311 | border-radius: var(--br-btn); 312 | border: 2px solid var(--clr-black); 313 | } 314 | 315 | .btn-cta:hover { 316 | background-color: var(--clr-white); 317 | color: var(--clr-black); 318 | border: 2px solid var(--clr-black); 319 | } 320 | 321 | /* CLIENTS */ 322 | 323 | .clients { 324 | margin: 0 auto; 325 | display: flex; 326 | justify-content: space-between; 327 | align-items: center; 328 | flex-shrink: 1; 329 | gap: 1rem; 330 | width: 85vw; 331 | } 332 | 333 | .clients-img { 334 | width: 20%; 335 | } 336 | 337 | .clients-img svg { 338 | width: auto; 339 | height: 100%; 340 | cursor: pointer; 341 | } 342 | 343 | .clients-img:hover { 344 | filter: brightness(0%) contrast(0%); 345 | } 346 | 347 | /* Footer */ 348 | .attribution { 349 | position: absolute; 350 | bottom: .8rem; 351 | left: 50%; 352 | transform: translateX(-50%); 353 | font-size: 11px; 354 | text-align: center; 355 | color: black; 356 | } 357 | 358 | .attribution a { 359 | color: blue !important; 360 | text-decoration: underline; 361 | } 362 | 363 | /* Tablet Styles / 640px */ 364 | 365 | @media only screen and (min-width: 40em) { 366 | .p-inline { 367 | padding: 0 4rem; 368 | } 369 | 370 | .header { 371 | margin-top: 3rem; 372 | } 373 | 374 | .hero { 375 | display: flex; 376 | flex-direction: column; 377 | justify-content: center; 378 | margin-top: 3.125rem; 379 | } 380 | 381 | .hero-img { 382 | margin: 0 auto; 383 | width: 80%; 384 | } 385 | 386 | .hero-content h1 { 387 | font-size: 3.75rem; 388 | line-height: 4.375rem; 389 | } 390 | 391 | .hero-content p { 392 | font-size: var(--fs-body-med); 393 | line-height: var(--lh-body-med); 394 | padding: 0 6.25rem; 395 | } 396 | 397 | .clients { 398 | margin: 4.375rem auto; 399 | width: 28.125rem; 400 | } 401 | } 402 | 403 | /* Small Screen Styles / 1024px */ 404 | 405 | @media only screen and (min-width: 64em) { 406 | .btn-hamburger, 407 | .btn-close { 408 | display: none; 409 | } 410 | 411 | /* NAVBAR */ 412 | 413 | .navbar { 414 | width: 100%; 415 | } 416 | 417 | .navbar-bg { 418 | position: relative; 419 | opacity: 1; 420 | background: none; 421 | margin-top: -0.5rem; 422 | } 423 | 424 | .navbar-menu { 425 | width: 100%; 426 | display: flex; 427 | align-items: center; 428 | justify-content: space-between; 429 | padding: 0; 430 | max-height: 2.81rem; 431 | pointer-events: all; 432 | transform: initial; 433 | } 434 | 435 | .navbar-links { 436 | flex-direction: row; 437 | align-items: center; 438 | gap: 0rem; 439 | } 440 | 441 | .nav-link { 442 | position: relative; 443 | display: inline-block; 444 | } 445 | 446 | .nav-link:last-of-type { 447 | margin-top: 0px; 448 | } 449 | 450 | .nav-link-title { 451 | margin-left: 2.5rem; 452 | } 453 | 454 | .navbar-actions { 455 | display: flex; 456 | gap: 2rem; 457 | } 458 | 459 | /* SUBNAV */ 460 | 461 | .subnav-menu { 462 | position: absolute; 463 | top: 2.5rem; 464 | right: 0; 465 | background-color: var(--clr-white); 466 | box-shadow: 0 0 2rem 0px rgb(24 50 67 / 16%); 467 | border-radius: var(--br-nav); 468 | pointer-events: all; 469 | width: max-content; 470 | } 471 | 472 | .subnav-link { 473 | padding: 0 1.56rem 0.625rem 1.56rem; 474 | } 475 | 476 | .subnav-link:last-child { 477 | padding-bottom: 1.56rem; 478 | } 479 | 480 | /* NAVBAR ACTIONS */ 481 | 482 | .btn-login, 483 | .btn-register { 484 | margin-top: 0.625rem; 485 | } 486 | 487 | .btn-register { 488 | width: 7.81rem; 489 | } 490 | 491 | /* HERO */ 492 | 493 | .hero { 494 | display: grid; 495 | grid-template-columns: minmax(25rem, auto) 31.25rem; 496 | } 497 | 498 | .hero-content { 499 | order: -1; 500 | text-align: start; 501 | margin-top: 9.4rem; 502 | } 503 | 504 | .hero-content h1 { 505 | font-size: var(--fs-heading-l); 506 | line-height: var(--fs-heading-l); 507 | } 508 | 509 | .heading-lb { 510 | display: initial; 511 | } 512 | 513 | .hero-content p { 514 | padding: 0; 515 | } 516 | 517 | .btn-cta { 518 | margin: 1.875rem 0; 519 | } 520 | } 521 | 522 | /* Medium Screen Styles / 1440px */ 523 | 524 | @media only screen and (min-width: 88em) { 525 | .p-inline { 526 | padding: 0; 527 | } 528 | 529 | .header { 530 | margin: 1.875rem 2.5rem; 531 | } 532 | 533 | .hero { 534 | margin: 3.44rem 5rem 0 9.375rem; 535 | display: grid; 536 | grid-template-columns: minmax(25rem, auto) 39.4rem; 537 | } 538 | 539 | .hero-content p { 540 | margin-top: 3.75rem; 541 | padding-right: 9.375rem; 542 | font-size: var(--fs-body-med); 543 | line-height: var(--lh-body-med); 544 | } 545 | 546 | .btn-cta { 547 | margin-top: 2.81rem; 548 | } 549 | 550 | .clients { 551 | width: 29.87rem; 552 | margin: 8.125rem 0; 553 | } 554 | 555 | .clients img { 556 | width: 19%; 557 | } 558 | } 559 | 560 | /* Large Screen Styles / 1700px */ 561 | 562 | @media only screen and (min-width: 106em) { 563 | body { 564 | margin: 2.5rem 9.375rem; 565 | } 566 | } 567 | --------------------------------------------------------------------------------