From b7f98ed3ad4d3a9226ffd157ce4ffda77e52acee Mon Sep 17 00:00:00 2001 From: kertenkerem Date: Thu, 8 Jan 2026 01:33:02 +0300 Subject: [PATCH] style: Redesign the admin registration page, relocating the title to the page component and updating all form element styles. --- src/app/admin/register/RegisterForm.tsx | 3 - src/app/admin/register/page.tsx | 3 + src/app/admin/register/register.module.css | 107 +++++++++------------ 3 files changed, 50 insertions(+), 63 deletions(-) diff --git a/src/app/admin/register/RegisterForm.tsx b/src/app/admin/register/RegisterForm.tsx index 0f75dbe..a6823dd 100644 --- a/src/app/admin/register/RegisterForm.tsx +++ b/src/app/admin/register/RegisterForm.tsx @@ -36,9 +36,6 @@ export function RegisterForm({ branches }: { branches: any[] }) { return (
-

Dance School

-

Öğrenci Kayıt Formu

- {status === 'success' &&
Kayıt başarıyla oluşturuldu!
} {status === 'error' &&
Bir hata oluştu. Lütfen tekrar deneyin.
} diff --git a/src/app/admin/register/page.tsx b/src/app/admin/register/page.tsx index 3d8bc7f..252bd9e 100644 --- a/src/app/admin/register/page.tsx +++ b/src/app/admin/register/page.tsx @@ -9,6 +9,9 @@ export default async function RegisterPage() { return (
+
+

Yeni Öğrenci Kaydı

+
); diff --git a/src/app/admin/register/register.module.css b/src/app/admin/register/register.module.css index bc43518..514f462 100644 --- a/src/app/admin/register/register.module.css +++ b/src/app/admin/register/register.module.css @@ -1,103 +1,90 @@ .container { - min-height: 100vh; - display: flex; - align-items: center; - justify-content: center; - background: linear-gradient(135deg, #1e1e2f 0%, #2a2a40 100%); - padding: 2rem; + padding: 1rem; } -.card { - background: rgba(255, 255, 255, 0.05); - backdrop-filter: blur(10px); - border: 1px solid rgba(255, 255, 255, 0.1); - padding: 3rem; - border-radius: 20px; - width: 100%; - max-width: 500px; - box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3); - color: white; +.header { + display: flex; + justify-content: space-between; + align-items: center; + margin-bottom: 2rem; } .title { - text-align: center; font-size: 2rem; - margin-bottom: 0.5rem; - background: linear-gradient(90deg, #ff8a00, #e52e71); - -webkit-background-clip: text; - background-clip: text; - -webkit-text-fill-color: transparent; - font-weight: 700; + font-weight: 600; + color: #333; } -.subtitle { - text-align: center; - color: #aaa; - margin-bottom: 2rem; +.card { + background: white; + padding: 2rem; + border-radius: 8px; + box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05); + max-width: 800px; } .formGroup { margin-bottom: 1.5rem; + display: flex; + flex-direction: column; + gap: 0.5rem; } .label { - display: block; - margin-bottom: 0.5rem; - color: #ddd; - font-size: 0.9rem; - letter-spacing: 0.5px; + font-weight: 500; + color: #555; + font-size: 0.95rem; } .input, .select { - width: 100%; - padding: 1rem; - background: rgba(0, 0, 0, 0.2); - border: 1px solid rgba(255, 255, 255, 0.1); - border-radius: 10px; - color: white; + padding: 0.75rem; + border: 1px solid #ddd; + border-radius: 6px; font-size: 1rem; - transition: all 0.3s ease; + color: #333; + background-color: #fff; + transition: border-color 0.2s; } .input:focus, .select:focus { outline: none; - border-color: #e52e71; - background: rgba(0, 0, 0, 0.4); + border-color: #333; } .button { - width: 100%; - padding: 1rem; - background: linear-gradient(90deg, #ff8a00, #e52e71); - border: none; - border-radius: 10px; + padding: 0.75rem 2rem; + background: #333; color: white; - font-size: 1.1rem; - font-weight: 600; + border: none; + border-radius: 6px; + font-size: 1rem; + font-weight: 500; cursor: pointer; - transition: transform 0.2s, box-shadow 0.2s; + transition: background-color 0.2s; margin-top: 1rem; + align-self: flex-start; } .button:hover { - transform: translateY(-2px); - box-shadow: 0 10px 20px rgba(229, 46, 113, 0.3); + background: #000; } .success { - text-align: center; - color: #4caf50; - background: rgba(76, 175, 80, 0.1); + background-color: #e8f5e9; + color: #2e7d32; padding: 1rem; - border-radius: 10px; - margin-bottom: 1rem; - border: 1px solid rgba(76, 175, 80, 0.3); + border-radius: 6px; + margin-bottom: 1.5rem; + border: 1px solid #c8e6c9; } .error { - text-align: center; - color: #ff5252; - margin-bottom: 1rem; + background-color: #ffebee; + color: #c62828; + padding: 1rem; + border-radius: 6px; + margin-bottom: 1.5rem; + border: 1px solid #ffcdd2; } \ No newline at end of file