582 lines
10 KiB
CSS
582 lines
10 KiB
CSS
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');
|
|
|
|
:root {
|
|
--radius: 0.5rem;
|
|
--background: 0 0% 100%;
|
|
--foreground: 222.2 84% 4.9%;
|
|
--card: 0 0% 100%;
|
|
--card-foreground: 222.2 84% 4.9%;
|
|
--primary: 222.2 47.4% 11.2%;
|
|
--primary-foreground: 210 40% 98%;
|
|
--secondary: 210 40% 96.1%;
|
|
--secondary-foreground: 222.2 47.4% 11.2%;
|
|
--muted: 210 40% 96.1%;
|
|
--muted-foreground: 215.4 16.3% 46.9%;
|
|
--accent: 210 40% 96.1%;
|
|
--accent-foreground: 222.2 47.4% 11.2%;
|
|
--destructive: 0 84.2% 60.2%;
|
|
--destructive-foreground: 210 40% 98%;
|
|
--border: 214.3 31.8% 91.4%;
|
|
--input: 214.3 31.8% 91.4%;
|
|
--ring: 222.2 84% 4.9%;
|
|
}
|
|
|
|
[data-theme="dark"] {
|
|
--background: 222.2 84% 4.9%;
|
|
--foreground: 210 40% 98%;
|
|
--card: 222.2 84% 4.9%;
|
|
--card-foreground: 210 40% 98%;
|
|
--primary: 210 40% 98%;
|
|
--primary-foreground: 222.2 47.4% 11.2%;
|
|
--secondary: 217.2 32.6% 17.5%;
|
|
--secondary-foreground: 210 40% 98%;
|
|
--muted: 217.2 32.6% 17.5%;
|
|
--muted-foreground: 215 20.2% 65.1%;
|
|
--accent: 217.2 32.6% 17.5%;
|
|
--accent-foreground: 210 40% 98%;
|
|
--destructive: 0 62.8% 30.6%;
|
|
--destructive-foreground: 210 40% 98%;
|
|
--border: 217.2 32.6% 17.5%;
|
|
--input: 217.2 32.6% 17.5%;
|
|
--ring: 212.7 26.8% 83.9%;
|
|
}
|
|
|
|
* {
|
|
margin: 0;
|
|
padding: 0;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
body {
|
|
font-family: 'Inter', system-ui, -apple-system, sans-serif;
|
|
background: hsl(var(--background));
|
|
color: hsl(var(--foreground));
|
|
line-height: 1.6;
|
|
}
|
|
|
|
.container {
|
|
max-width: 1200px;
|
|
margin: 0 auto;
|
|
padding: 0 1rem;
|
|
}
|
|
|
|
header {
|
|
border-bottom: 1px solid hsl(var(--border));
|
|
background: hsl(var(--background));
|
|
position: sticky;
|
|
top: 0;
|
|
z-index: 50;
|
|
}
|
|
|
|
header nav {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 2rem;
|
|
padding: 1rem 0;
|
|
max-width: 1200px;
|
|
margin: 0 auto;
|
|
padding: 1rem;
|
|
}
|
|
|
|
header nav a {
|
|
text-decoration: none;
|
|
color: hsl(var(--foreground));
|
|
font-weight: 500;
|
|
transition: color 0.2s;
|
|
padding: 0.5rem 1rem;
|
|
border-radius: var(--radius);
|
|
}
|
|
|
|
header nav a:hover {
|
|
color: hsl(var(--primary));
|
|
background: hsl(var(--accent));
|
|
}
|
|
|
|
main {
|
|
max-width: 1200px;
|
|
margin: 0 auto;
|
|
padding: 2rem 1rem;
|
|
min-height: calc(100vh - 200px);
|
|
}
|
|
|
|
footer {
|
|
border-top: 1px solid hsl(var(--border));
|
|
padding: 2rem 1rem;
|
|
text-align: center;
|
|
color: hsl(var(--muted-foreground));
|
|
margin-top: 4rem;
|
|
}
|
|
|
|
.hero {
|
|
text-align: center;
|
|
padding: 4rem 1rem;
|
|
}
|
|
|
|
.hero h1 {
|
|
font-size: 3rem;
|
|
font-weight: 700;
|
|
margin-bottom: 1rem;
|
|
line-height: 1.2;
|
|
}
|
|
|
|
.hero p {
|
|
font-size: 1.25rem;
|
|
color: hsl(var(--muted-foreground));
|
|
max-width: 600px;
|
|
margin: 0 auto 2rem;
|
|
}
|
|
|
|
.card {
|
|
background: hsl(var(--card));
|
|
border: 1px solid hsl(var(--border));
|
|
border-radius: calc(var(--radius) + 2px);
|
|
padding: 1.5rem;
|
|
box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1);
|
|
transition: box-shadow 0.2s;
|
|
}
|
|
|
|
.card:hover {
|
|
box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
|
|
}
|
|
|
|
.card-header {
|
|
margin-bottom: 1rem;
|
|
}
|
|
|
|
.card-title {
|
|
font-size: 1.5rem;
|
|
font-weight: 600;
|
|
margin-bottom: 0.5rem;
|
|
}
|
|
|
|
.card-description {
|
|
color: hsl(var(--muted-foreground));
|
|
font-size: 0.875rem;
|
|
}
|
|
|
|
.card-content {
|
|
margin-bottom: 1rem;
|
|
}
|
|
|
|
.card-footer {
|
|
display: flex;
|
|
gap: 0.5rem;
|
|
padding-top: 1rem;
|
|
border-top: 1px solid hsl(var(--border));
|
|
}
|
|
|
|
.grid {
|
|
display: grid;
|
|
gap: 1.5rem;
|
|
}
|
|
|
|
.grid-cols-1 {
|
|
grid-template-columns: repeat(1, 1fr);
|
|
}
|
|
|
|
.grid-cols-2 {
|
|
grid-template-columns: repeat(2, 1fr);
|
|
}
|
|
|
|
.grid-cols-3 {
|
|
grid-template-columns: repeat(3, 1fr);
|
|
}
|
|
|
|
@media (max-width: 768px) {
|
|
.grid-cols-2,
|
|
.grid-cols-3 {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
|
|
.hero h1 {
|
|
font-size: 2rem;
|
|
}
|
|
}
|
|
|
|
.btn {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
border-radius: var(--radius);
|
|
font-size: 0.875rem;
|
|
font-weight: 500;
|
|
padding: 0.5rem 1rem;
|
|
transition: all 0.2s;
|
|
cursor: pointer;
|
|
border: none;
|
|
text-decoration: none;
|
|
}
|
|
|
|
.btn-primary {
|
|
background: hsl(var(--primary));
|
|
color: hsl(var(--primary-foreground));
|
|
}
|
|
|
|
.btn-primary:hover {
|
|
opacity: 0.9;
|
|
}
|
|
|
|
.btn-secondary {
|
|
background: hsl(var(--secondary));
|
|
color: hsl(var(--secondary-foreground));
|
|
}
|
|
|
|
.btn-secondary:hover {
|
|
background: hsl(var(--secondary) / 0.8);
|
|
}
|
|
|
|
.btn-outline {
|
|
border: 1px solid hsl(var(--border));
|
|
background: transparent;
|
|
color: hsl(var(--foreground));
|
|
}
|
|
|
|
.btn-outline:hover {
|
|
background: hsl(var(--accent));
|
|
}
|
|
|
|
.form-group {
|
|
margin-bottom: 1rem;
|
|
}
|
|
|
|
.form-label {
|
|
display: block;
|
|
font-size: 0.875rem;
|
|
font-weight: 500;
|
|
margin-bottom: 0.5rem;
|
|
}
|
|
|
|
.form-input,
|
|
.form-textarea,
|
|
.form-select {
|
|
width: 100%;
|
|
padding: 0.5rem 0.75rem;
|
|
border: 1px solid hsl(var(--input));
|
|
border-radius: var(--radius);
|
|
font-size: 0.875rem;
|
|
background: hsl(var(--background));
|
|
color: hsl(var(--foreground));
|
|
transition: border-color 0.2s;
|
|
}
|
|
|
|
.form-input:focus,
|
|
.form-textarea:focus,
|
|
.form-select:focus {
|
|
outline: none;
|
|
border-color: hsl(var(--ring));
|
|
box-shadow: 0 0 0 3px hsl(var(--ring) / 0.1);
|
|
}
|
|
|
|
.form-textarea {
|
|
min-height: 100px;
|
|
resize: vertical;
|
|
}
|
|
|
|
.badge {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
border-radius: calc(var(--radius) - 2px);
|
|
padding: 0.25rem 0.625rem;
|
|
font-size: 0.75rem;
|
|
font-weight: 600;
|
|
background: hsl(var(--secondary));
|
|
color: hsl(var(--secondary-foreground));
|
|
}
|
|
|
|
/* Header Bar */
|
|
.header-bar {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
padding: 0 1rem;
|
|
height: 4rem;
|
|
border-bottom: 1px solid hsl(var(--border));
|
|
background: hsl(var(--background));
|
|
position: sticky;
|
|
top: 0;
|
|
z-index: 50;
|
|
}
|
|
|
|
.header-brand {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.75rem;
|
|
font-size: 1.125rem;
|
|
font-weight: 600;
|
|
color: hsl(var(--foreground));
|
|
text-decoration: none;
|
|
}
|
|
|
|
.header-brand img {
|
|
width: 32px;
|
|
height: 32px;
|
|
object-fit: contain;
|
|
}
|
|
|
|
.header-nav {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.5rem;
|
|
}
|
|
|
|
.header-nav a {
|
|
padding: 0.5rem 1rem;
|
|
border-radius: var(--radius);
|
|
font-weight: 500;
|
|
font-size: 0.875rem;
|
|
color: hsl(var(--foreground));
|
|
text-decoration: none;
|
|
transition: all 0.2s;
|
|
}
|
|
|
|
.header-nav a:hover {
|
|
background: hsl(var(--accent));
|
|
color: hsl(var(--primary));
|
|
}
|
|
|
|
.header-nav a.active {
|
|
background: hsl(var(--primary));
|
|
color: hsl(var(--primary-foreground));
|
|
}
|
|
|
|
.menu-btn {
|
|
display: none;
|
|
align-items: center;
|
|
justify-content: center;
|
|
width: 2.5rem;
|
|
height: 2.5rem;
|
|
border: none;
|
|
background: transparent;
|
|
cursor: pointer;
|
|
border-radius: var(--radius);
|
|
transition: background 0.2s;
|
|
padding: 0;
|
|
}
|
|
|
|
.menu-btn:hover {
|
|
background: hsl(var(--accent));
|
|
}
|
|
|
|
.menu-icon {
|
|
width: 1.25rem;
|
|
height: 1.25rem;
|
|
display: flex;
|
|
flex-direction: column;
|
|
justify-content: space-between;
|
|
}
|
|
|
|
.menu-icon span {
|
|
display: block;
|
|
height: 2px;
|
|
width: 100%;
|
|
background: hsl(var(--foreground));
|
|
border-radius: 2px;
|
|
transition: all 0.3s;
|
|
}
|
|
|
|
/* Navigation Drawer */
|
|
.drawer {
|
|
position: fixed;
|
|
inset: 0;
|
|
z-index: 100;
|
|
pointer-events: none;
|
|
}
|
|
|
|
.drawer-overlay {
|
|
position: absolute;
|
|
inset: 0;
|
|
background: rgba(0, 0, 0, 0.5);
|
|
opacity: 0;
|
|
transition: opacity 0.3s;
|
|
}
|
|
|
|
.drawer-content {
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
bottom: 0;
|
|
width: 280px;
|
|
max-width: 85vw;
|
|
background: hsl(var(--background));
|
|
box-shadow: 2px 0 8px rgba(0, 0, 0, 0.1);
|
|
transform: translateX(-100%);
|
|
transition: transform 0.3s ease-out;
|
|
display: flex;
|
|
flex-direction: column;
|
|
height: 100vh;
|
|
height: 100dvh;
|
|
}
|
|
|
|
.drawer-open {
|
|
pointer-events: auto;
|
|
}
|
|
|
|
.drawer-open .drawer-overlay {
|
|
opacity: 1;
|
|
}
|
|
|
|
.drawer-open .drawer-content {
|
|
transform: translateX(0);
|
|
}
|
|
|
|
.drawer-header {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
padding: 1rem;
|
|
border-bottom: 1px solid hsl(var(--border));
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.drawer-title {
|
|
font-size: 1.125rem;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.drawer-close {
|
|
width: 2rem;
|
|
height: 2rem;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
border: none;
|
|
background: transparent;
|
|
cursor: pointer;
|
|
border-radius: var(--radius);
|
|
transition: background 0.2s;
|
|
padding: 0;
|
|
color: hsl(var(--foreground));
|
|
}
|
|
|
|
.drawer-close:hover {
|
|
background: hsl(var(--accent));
|
|
}
|
|
|
|
.drawer-body {
|
|
flex: 1;
|
|
overflow-y: auto;
|
|
padding: 1rem;
|
|
}
|
|
|
|
.drawer-nav {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 0.25rem;
|
|
}
|
|
|
|
.drawer-nav a {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.75rem;
|
|
padding: 0.75rem 1rem;
|
|
border-radius: var(--radius);
|
|
color: hsl(var(--foreground));
|
|
text-decoration: none;
|
|
font-weight: 500;
|
|
font-size: 0.875rem;
|
|
transition: all 0.2s;
|
|
}
|
|
|
|
.drawer-nav a:hover {
|
|
background: hsl(var(--accent));
|
|
}
|
|
|
|
.drawer-nav a.active {
|
|
background: hsl(var(--primary));
|
|
color: hsl(var(--primary-foreground));
|
|
}
|
|
|
|
.drawer-nav-icon {
|
|
width: 1.25rem;
|
|
height: 1.25rem;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
@media (max-width: 768px) {
|
|
.menu-btn {
|
|
display: flex;
|
|
}
|
|
|
|
.header-nav {
|
|
display: none;
|
|
}
|
|
|
|
header nav {
|
|
display: none;
|
|
}
|
|
}
|
|
|
|
.carousel {
|
|
position: relative;
|
|
max-width: 900px;
|
|
margin: 0 auto;
|
|
}
|
|
|
|
.carousel-container {
|
|
overflow: hidden;
|
|
border-radius: var(--radius);
|
|
}
|
|
|
|
.carousel-track {
|
|
display: flex;
|
|
transition: transform 0.5s ease-in-out;
|
|
}
|
|
|
|
.carousel-slide {
|
|
min-width: 100%;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.carousel-btn {
|
|
position: absolute;
|
|
top: 50%;
|
|
transform: translateY(-50%);
|
|
background: hsl(var(--background) / 0.8);
|
|
border: 1px solid hsl(var(--border));
|
|
border-radius: 50%;
|
|
width: 3rem;
|
|
height: 3rem;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
cursor: pointer;
|
|
transition: all 0.2s;
|
|
z-index: 10;
|
|
}
|
|
|
|
.carousel-btn:hover {
|
|
background: hsl(var(--background));
|
|
box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
|
|
}
|
|
|
|
.carousel-btn-prev {
|
|
left: 1rem;
|
|
}
|
|
|
|
.carousel-btn-next {
|
|
right: 1rem;
|
|
}
|
|
|
|
.carousel-indicators {
|
|
display: flex;
|
|
gap: 0.5rem;
|
|
justify-content: center;
|
|
margin-top: 1.5rem;
|
|
}
|
|
|
|
.carousel-indicator {
|
|
width: 0.75rem;
|
|
height: 0.75rem;
|
|
border-radius: 50%;
|
|
background: hsl(var(--muted));
|
|
border: none;
|
|
cursor: pointer;
|
|
transition: all 0.2s;
|
|
}
|
|
|
|
.carousel-indicator.active {
|
|
background: hsl(var(--primary));
|
|
width: 2rem;
|
|
border-radius: 0.375rem;
|
|
}
|