@import './variables.scss'; .header { background-color: $header-bg; color: white;…
- User
@import './variables.scss';
.header { background-color: $header-bg; color: white;
.header-top { height: 35px; width: 100%;
.header-top-text { display: flex; justify-content: center; align-items: center; padding: 8px 10px; color: $highlight-color; height: 35px; text-align: center; font-size: 14px; @media (min-width: 768px) { font-size: 16px; } }}
.header-middle { display: flex; justify-content: space-between; align-items: center; padding: 10px 15px; background-color: #2C2E3A; flex-wrap: wrap; // Allow wrapping on smaller screens
@media (min-width: 380px) { padding: 10px 15px; // Maintain padding on small screens } @media (min-width: 768px) { padding: 16px 52px; } .logo { height: 27px; width: auto; // Allow automatic width max-width: 100%; // Prevent overflow } .search-bar-container { display: flex; flex: 1 1 auto; max-width: calc(100% - 100px); // Adjust based on logo and toggle button width height: 42px; border-radius: 10px; border: 1px solid #555; overflow: hidden; margin: 10px 0; // Add margin on top and bottom for spacing @media (min-width: 380px) { max-width: calc(100% - 80px); // Adjust width to fit smaller screens } @media (min-width: 768px) { max-width: 662px; margin: 0 20px; // Adjust for larger screens flex: 1 1 auto; } } .search-bar { flex: 1; background-color: $search-bg; color: #ccc; border: none; outline: none; padding: 0 10px; font-size: 14px; // Smaller font size for mobile &::placeholder { color: #888; } @media (min-width: 768px) { font-size: 16px; // Larger font size for desktop } } .search-button { display: flex; align-items: center; justify-content: center; padding: 0 10px; background-color: #fff; color: $search-bg; font-size: 14px; cursor: pointer; border: none; min-width: 40px; // Ensure minimum width for tappability @media (min-width: 768px) { font-size: 17px; padding: 0 15px; } .social-icon { width: 14px; height: 14px; color: #888; @media (min-width: 768px) { width: 16px; height: 16px; margin-right: 10px; } } .search-text { display: none; @media (min-width: 768px) { display: inline; } } } .nav-toggle { display: flex; // Make toggle button flex for proper alignment background: none; border: none; color: white; font-size: 20px; cursor: pointer; padding: 5px; margin: 5px 0; // Add margin to separate from search bar @media (min-width: 768px) { display: none; // Hide on larger screens } }}
.header-icons { display: none;
@media (min-width: 768px) { display: flex; font-size: 17px; align-items: center; } .login-register { display: flex; align-items: center; gap: 10px; padding-right: 20px; &:hover { color: $highlight-color; } } .icon { display: flex; align-items: center; margin-left: 15px; &:hover { svg { color: $highlight-color; } } } a.social-icon { color: white; font-size: 20px; transition: color 0.3s ease; } - Assistant