8bitkick
Refactor index.html and style.css for improved layout and styling; enhance hero and technical sections with new content and responsive design
e954a13 | *, *::before, *::after { | |
| box-sizing: border-box; | |
| margin: 0; | |
| padding: 0; | |
| } | |
| :root { | |
| --background: hsl(220, 13%, 8%); | |
| --foreground: hsl(210, 40%, 98%); | |
| --card: hsl(220, 13%, 12%); | |
| --card-foreground: hsl(210, 40%, 98%); | |
| --primary: hsl(174, 72%, 46%); | |
| --primary-foreground: hsl(0, 0%, 100%); | |
| --muted: hsl(220, 13%, 18%); | |
| --muted-foreground: hsl(215, 16%, 60%); | |
| --border: hsl(220, 13%, 20%); | |
| --radius: 0.5rem; | |
| } | |
| body { | |
| font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; | |
| background-color: var(--background); | |
| color: var(--foreground); | |
| line-height: 1.6; | |
| -webkit-font-smoothing: antialiased; | |
| } | |
| .container { | |
| max-width: 1200px; | |
| margin: 0 auto; | |
| padding: 0 1.5rem; | |
| } | |
| /* Hero Section */ | |
| .hero { | |
| padding: 4rem 0; | |
| } | |
| .hero-grid { | |
| display: grid; | |
| grid-template-columns: 1fr; | |
| gap: 3rem; | |
| align-items: center; | |
| } | |
| @media (min-width: 768px) { | |
| .hero-grid { | |
| grid-template-columns: 1fr 1fr; | |
| } | |
| } | |
| .hero video { | |
| display: block; | |
| margin: 0 auto; | |
| width: auto; | |
| max-height: 480px; | |
| border-radius: 0.5rem; | |
| box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5); | |
| } | |
| .hero-content { | |
| text-align: center; | |
| } | |
| @media (min-width: 768px) { | |
| .hero-content { | |
| text-align: left; | |
| } | |
| } | |
| .hero-title { | |
| display: flex; | |
| align-items: center; | |
| justify-content: center; | |
| gap: 1rem; | |
| margin-bottom: 1.5rem; | |
| } | |
| @media (min-width: 768px) { | |
| .hero-title { | |
| justify-content: flex-start; | |
| } | |
| } | |
| .hero-title span { | |
| font-size: 3rem; | |
| } | |
| .hero-title h1 { | |
| font-size: 2.5rem; | |
| font-weight: 700; | |
| } | |
| .tags { | |
| display: flex; | |
| flex-wrap: wrap; | |
| justify-content: center; | |
| gap: 0.5rem; | |
| margin-bottom: 1.5rem; | |
| } | |
| @media (min-width: 768px) { | |
| .tags { | |
| justify-content: flex-start; | |
| } | |
| } | |
| .tag { | |
| display: inline-flex; | |
| align-items: center; | |
| padding: 0.25rem 0.75rem; | |
| font-size: 0.75rem; | |
| font-weight: 500; | |
| border-radius: 9999px; | |
| background-color: hsla(174, 72%, 46%, 0.15); | |
| color: var(--primary); | |
| } | |
| .hero-description { | |
| font-size: 1rem; | |
| color: var(--muted-foreground); | |
| max-width: 36rem; | |
| } | |
| .hero-description strong { | |
| color: var(--foreground); | |
| } | |
| /* Technical Section */ | |
| .technical { | |
| padding: 4rem 0; | |
| background-color: var(--card); | |
| } | |
| .technical-grid { | |
| display: grid; | |
| grid-template-columns: 1fr; | |
| gap: 4rem; | |
| align-items: flex-start; | |
| } | |
| @media (min-width: 768px) { | |
| .technical-grid { | |
| grid-template-columns: 1fr 1fr; | |
| } | |
| } | |
| .technical h2 { | |
| font-size: 1.3rem; | |
| font-weight: 700; | |
| margin-bottom: 1rem; | |
| margin-top: 2rem; | |
| } | |
| .technical h2:first-child { | |
| margin-top: 0; | |
| } | |
| .technical h3 { | |
| font-size: 1rem; | |
| font-weight: 600; | |
| margin-bottom: 0.75rem; | |
| margin-top: 1.5rem; | |
| color: var(--primary); | |
| } | |
| .steps { | |
| display: flex; | |
| flex-direction: column; | |
| gap: 1rem; | |
| list-style: none; | |
| } | |
| .step { | |
| display: flex; | |
| align-items: flex-start; | |
| gap: 1rem; | |
| } | |
| .step-number { | |
| display: flex; | |
| align-items: center; | |
| justify-content: center; | |
| min-width: 1.75rem; | |
| height: 1.75rem; | |
| border-radius: 9999px; | |
| background-color: var(--primary); | |
| color: var(--primary-foreground); | |
| font-size: 0.875rem; | |
| font-weight: 600; | |
| } | |
| .step-content { | |
| display: flex; | |
| flex-direction: column; | |
| gap: 0.25rem; | |
| } | |
| .step-title { | |
| font-size: 0.8125rem; | |
| font-weight: 600; | |
| } | |
| .step-body { | |
| font-size: 0.8125rem; | |
| color: var(--muted-foreground); | |
| } | |
| .step-body a { | |
| text-decoration: underline; | |
| color: var(--muted-foreground); | |
| transition: color 0.2s; | |
| } | |
| .step-body a:hover { | |
| color: var(--primary); | |
| } | |
| .step-body code { | |
| background: var(--muted); | |
| padding: 0.125rem 0.375rem; | |
| border-radius: 0.25rem; | |
| font-size: 0.8125rem; | |
| } | |
| .technical video { | |
| width: 100%; | |
| border-radius: 0.5rem; | |
| box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.4); | |
| } | |
| /* Footer */ | |
| footer { | |
| border-top: 1px solid var(--border); | |
| padding: 3rem 0; | |
| } | |
| .footer-grid { | |
| display: grid; | |
| grid-template-columns: 1fr; | |
| gap: 2rem; | |
| margin-bottom: 2rem; | |
| } | |
| @media (min-width: 768px) { | |
| .footer-grid { | |
| grid-template-columns: repeat(3, 1fr); | |
| } | |
| } | |
| .footer-column { | |
| display: flex; | |
| flex-direction: column; | |
| gap: 1rem; | |
| } | |
| .author-section { | |
| display: flex; | |
| align-items: center; | |
| gap: 1.25rem; | |
| } | |
| .author-link { | |
| display: flex; | |
| align-items: center; | |
| gap: 0.75rem; | |
| text-decoration: none; | |
| color: inherit; | |
| } | |
| .author-link:hover .author-name { | |
| color: var(--primary); | |
| } | |
| .author-link:hover .author-avatar { | |
| border-color: var(--primary); | |
| } | |
| .author-avatar { | |
| width: 3.5rem; | |
| height: 3.5rem; | |
| border-radius: 9999px; | |
| border: 2px solid white; | |
| transition: border-color 0.2s; | |
| } | |
| .author-intro { | |
| font-size: 0.875rem; | |
| color: var(--muted-foreground); | |
| } | |
| .author-name { | |
| font-size: 1.125rem; | |
| font-weight: 600; | |
| transition: color 0.2s; | |
| } | |
| .follow-btn { | |
| display: inline-flex; | |
| align-items: center; | |
| padding: 0.375rem 0.75rem; | |
| font-size: 0.75rem; | |
| font-weight: 500; | |
| border-radius: 9999px; | |
| border: 1px solid var(--border); | |
| background-color: var(--card); | |
| color: var(--foreground); | |
| text-decoration: none; | |
| transition: background-color 0.2s; | |
| } | |
| .follow-btn:hover { | |
| background-color: var(--muted); | |
| } | |
| .social-links { | |
| display: flex; | |
| gap: 0.75rem; | |
| } | |
| .social-link { | |
| display: flex; | |
| align-items: center; | |
| justify-content: center; | |
| width: 2.25rem; | |
| height: 2.25rem; | |
| border-radius: 9999px; | |
| background-color: var(--muted); | |
| color: var(--muted-foreground); | |
| text-decoration: none; | |
| transition: all 0.2s; | |
| } | |
| .social-link:hover { | |
| background-color: var(--primary); | |
| color: var(--primary-foreground); | |
| } | |
| .social-link svg { | |
| width: 1.25rem; | |
| height: 1.25rem; | |
| } | |
| .footer-title { | |
| font-size: 0.875rem; | |
| font-weight: 600; | |
| } | |
| .footer-links { | |
| list-style: none; | |
| display: flex; | |
| flex-direction: column; | |
| gap: 0.5rem; | |
| } | |
| .footer-link { | |
| font-size: 0.875rem; | |
| color: var(--muted-foreground); | |
| text-decoration: none; | |
| transition: color 0.2s; | |
| } | |
| .footer-link:hover { | |
| color: var(--primary); | |
| } | |
| /* Responsive */ | |
| @media (max-width: 768px) { | |
| .hero { | |
| padding: 2rem 0; | |
| } | |
| .hero-title h1 { | |
| font-size: 1.75rem; | |
| } | |
| .hero-title span { | |
| font-size: 2rem; | |
| } | |
| } | |