Create a join our community design with responsive design following the same code…
- User
Create a join our community design with responsive design following the same code structure i will bring you from the following scss code. @use 'sass:map'; @import 'variable'; @import 'typography_mixins'; @import 'fonts';
// Mixins for responsiveness @mixin mobile { @media (max-width: 768px) { @content; } }
@mixin tablet { @media (min-width: 769px) and (max-width: 1024px) { @content; } }
// Reset and base styles
- { margin: 0; padding: 0; box-sizing: border-box; }
body { line-height: 1.6; color: white; background-color: black; font-family: $font-family-base; @include font-size('base'); @include font-weight('regular');
}
// Navbar and Burger Menu .navbar { position: fixed; top: 0; left: 0; width: 100%; z-index: 100; display: flex; justify-content: space-between; align-items: center; padding: 1rem 5%; background-color: rgba(0,0,0,0.9); box-shadow: 0 2px 4px rgba(0,0,0,0.1);
.navbar-brand { display: flex; align-items: center; justify-content: space-between; width: 100%; } .navbar-brand a { text-decoration: none; color: $background-color; font-size: 1.5rem; font-weight: bold; font-family: $font-family-logo; } .burger-menu { display: none; flex-direction: column; cursor: pointer; z-index: 200; @include mobile { display: flex; } .bar { width: 25px; height: 3px; background-color: $primary-color; margin: 3px 0; transition: 0.4s; &.active:nth-child(1) { transform: rotate(-45deg) translate(-5px, 6px); } &.active:nth-child(2) { opacity: 0; } &.active:nth-child(3) { transform: rotate(45deg) translate(-5px, -6px); } } } .nav-menu { display: flex; align-items: center; list-style: none; @include mobile { position: fixed; top: 0; left: 0; width: 100%; height: 100vh; background-color: rgba(255, 255, 255, 0.95); flex-direction: column; justify-content: center; align-items: center; transform: translateX(100%); transition: transform 0.3s ease-in-out; z-index: 150; &.active { transform: translateX(0); } .nav-item { margin: 20px 0; font-size: 1.5rem; a { text-decoration: none; color: $primary-color; transition: color 0.3s; &:hover { color: darken($primary-color, 10%); } } } } .nav-item { margin: 0 15px; a { text-decoration: none; color: $background-color; transition: color 0.3s; &:hover { color: $primary-color; } } } }}
// Adjust hero section for fixed navbar .hero { padding-top: 70px; // Height of the navbar position: relative; height: 100vh; overflow: hidden;
- Assistant