Create a complete website header for a Persian brand called "ایزی تریدینگ". Follow these detailed specifications and generate all necessary files (HTML, CSS, and JavaScript):
0c853c1 verified Download style.css from ARADSAMANI/persiantradingpeacock: direct link, hf CLI and curl.
- Browser
- Download file 3.27 kB
-
https://huggingface.co/spaces/ARADSAMANI/persiantradingpeacock/resolve/main/style.css
- Command line
-
hf download hf://spaces/ARADSAMANI/persiantradingpeacock/style.css
-
curl -L -o style.css https://huggingface.co/spaces/ARADSAMANI/persiantradingpeacock/resolve/main/style.css
3.27 kB
| ```css | |
| /* Base Styles */ | |
| * { | |
| margin: 0; | |
| padding: 0; | |
| box-sizing: border-box; | |
| font-family: 'Vazirmatn', sans-serif; | |
| } | |
| :root { | |
| --primary-color: #3B0E8A; | |
| --secondary-color: #A475FF; | |
| --text-dark: #3B0E8A; | |
| --text-light: #FFFFFF; | |
| --transition: all 0.3s ease; | |
| } | |
| /* Header Styles */ | |
| .header { | |
| position: sticky; | |
| top: 0; | |
| width: 100%; | |
| padding: 20px 0; | |
| box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); | |
| transition: var(--transition); | |
| z-index: 1000; | |
| } | |
| .header-container { | |
| display: flex; | |
| justify-content: space-between; | |
| align-items: center; | |
| max-width: 1200px; | |
| margin: 0 auto; | |
| padding: 0 20px; | |
| } | |
| .brand { | |
| font-size: 24px; | |
| font-weight: 700; | |
| color: var(--text-light); | |
| transition: var(--transition); | |
| } | |
| .nav-menu ul { | |
| display: flex; | |
| list-style: none; | |
| gap: 30px; | |
| } | |
| .nav-menu a { | |
| text-decoration: none; | |
| font-weight: 500; | |
| font-size: 16px; | |
| color: var(--text-light); | |
| transition: var(--transition); | |
| position: relative; | |
| } | |
| .nav-menu a:hover { | |
| color: var(--secondary-color); | |
| } | |
| .header-actions { | |
| display: flex; | |
| align-items: center; | |
| gap: 20px; | |
| } | |
| .theme-toggle { | |
| background: none; | |
| border: none; | |
| cursor: pointer; | |
| font-size: 20px; | |
| color: var(--text-light); | |
| transition: var(--transition); | |
| } | |
| .hamburger { | |
| display: none; | |
| background: none; | |
| border: none; | |
| cursor: pointer; | |
| flex-direction: column; | |
| justify-content: space-between; | |
| height: 20px; | |
| width: 30px; | |
| padding: 0; | |
| } | |
| .hamburger span { | |
| display: block; | |
| width: 100%; | |
| height: 3px; | |
| background-color: var(--text-light); | |
| transition: var(--transition); | |
| } | |
| /* Light Theme */ | |
| .light-theme .header { | |
| background-color: #FFFFFF; | |
| box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); | |
| } | |
| .light-theme .brand, | |
| .light-theme .nav-menu a, | |
| .light-theme .theme-toggle { | |
| color: var(--text-dark); | |
| } | |
| .light-theme .nav-menu a:hover { | |
| color: var(--primary-color); | |
| opacity: 0.8; | |
| } | |
| .light-theme .hamburger span { | |
| background-color: var(--text-dark); | |
| } | |
| /* Dark Theme */ | |
| .dark-theme .header { | |
| background-color: var(--primary-color); | |
| box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3); | |
| } | |
| .dark-theme .brand, | |
| .dark-theme .nav-menu a, | |
| .dark-theme .theme-toggle { | |
| color: var(--text-light); | |
| } | |
| .dark-theme .nav-menu a:hover { | |
| color: var(--secondary-color); | |
| } | |
| /* Responsive Styles */ | |
| @media (max-width: 768px) { | |
| .nav-menu { | |
| position: absolute; | |
| top: 80px; | |
| right: 0; | |
| width: 100%; | |
| background-color: inherit; | |
| padding: 20px; | |
| box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1); | |
| opacity: 0; | |
| visibility: hidden; | |
| transition: var(--transition); | |
| } | |
| .nav-menu.active { | |
| opacity: 1; | |
| visibility: visible; | |
| } | |
| .nav-menu ul { | |
| flex-direction: column; | |
| gap: 15px; | |
| align-items: flex-start; | |
| } | |
| .hamburger { | |
| display: flex; | |
| } | |
| .hamburger.active span:nth-child(1) { | |
| transform: translateY(8px) rotate(45deg); | |
| } | |
| .hamburger.active span:nth-child(2) { | |
| opacity: 0; | |
| } | |
| .hamburger.active span:nth-child(3) { | |
| transform: translateY(-8px) rotate(-45deg); | |
| } | |
| } | |
| ``` |