diff --git a/prisma/dev.db b/prisma/dev.db index 021bfad..764d9c2 100644 Binary files a/prisma/dev.db and b/prisma/dev.db differ diff --git a/prisma/schema.prisma b/prisma/schema.prisma index 423aca8..87bfb3a 100644 --- a/prisma/schema.prisma +++ b/prisma/schema.prisma @@ -60,6 +60,7 @@ model Lesson { startTime DateTime endTime DateTime type String + hallNumber Int @default(1) branchId String instructorId String classId String? diff --git a/src/app/page.module.css b/src/app/page.module.css index e370f6d..9508f77 100644 --- a/src/app/page.module.css +++ b/src/app/page.module.css @@ -1,41 +1,37 @@ .page { - --primary: #b21f1f; - --secondary: #1a2a6c; - --accent: #fdbb2d; - --bg-gradient: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%); + --primary: #8ab4f8; + --secondary: #202124; + --accent: #f28b82; + --bg: #000000; --white: #ffffff; - --text: #333333; - --text-muted: #666666; + --text: #e8eaed; + --text-muted: #9aa0a6; min-height: 100vh; display: flex; flex-direction: column; - background: var(--bg-gradient); + background: var(--bg); font-family: var(--font-outfit, 'Outfit', sans-serif); color: var(--text); } .nav { - padding: 1.5rem 4rem; + padding: 0.75rem 2rem; display: flex; justify-content: space-between; align-items: center; - background: rgba(255, 255, 255, 0.9); - backdrop-filter: blur(10px); - box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05); + background: #000000; + border-bottom: 1px solid #3c4043; position: sticky; top: 0; z-index: 1000; } .logo { - font-size: 1.5rem; - font-weight: 800; - background: linear-gradient(to right, var(--secondary), var(--primary)); - -webkit-background-clip: text; - background-clip: text; - -webkit-text-fill-color: transparent; - letter-spacing: -1px; + font-size: 1.2rem; + font-weight: 700; + color: #e8eaed; + letter-spacing: -0.5px; } .adminLink { @@ -56,10 +52,8 @@ .main { flex: 1; - padding: 4rem 2rem; display: flex; flex-direction: column; - gap: 3rem; } .hero { @@ -82,12 +76,7 @@ } .footer { - padding: 2rem; - text-align: center; - background: rgba(255, 255, 255, 0.5); - border-top: 1px solid rgba(0, 0, 0, 0.05); - color: var(--text-muted); - font-size: 0.9rem; + display: none; } @media (max-width: 768px) { diff --git a/src/app/page.tsx b/src/app/page.tsx index cac642d..c5feb9d 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -14,6 +14,10 @@ export default async function Home() { const endOfWeek = new Date(startOfWeek); endOfWeek.setDate(endOfWeek.getDate() + 7); + // Get the first branch to determine hallCount (or you could add a selector) + const branch = await prisma.branch.findFirst(); + const hallCount = branch?.hallCount || 1; + const lessons = await prisma.lesson.findMany({ where: { startTime: { @@ -34,19 +38,15 @@ export default async function Home() { return (
-
-

Dansın Ritmini Keşfedin

-

Haftalık kurs programımızı aşağıdan takip edebilirsiniz.

-
- +