style: Redesign the admin registration page, relocating the title to the page component and updating all form element styles.

This commit is contained in:
kertenkerem
2026-01-08 01:33:02 +03:00
parent 9bb5ec46ce
commit b7f98ed3ad
3 changed files with 50 additions and 63 deletions

View File

@@ -36,9 +36,6 @@ export function RegisterForm({ branches }: { branches: any[] }) {
return (
<form onSubmit={handleSubmit} className={styles.card}>
<h1 className={styles.title}>Dance School</h1>
<p className={styles.subtitle}>Öğrenci Kayıt Formu</p>
{status === 'success' && <div className={styles.success}>Kayıt başarıyla oluşturuldu!</div>}
{status === 'error' && <div className={styles.error}>Bir hata oluştu. Lütfen tekrar deneyin.</div>}

View File

@@ -9,6 +9,9 @@ export default async function RegisterPage() {
return (
<div className={styles.container}>
<div className={styles.header}>
<h1 className={styles.title}>Yeni Öğrenci Kaydı</h1>
</div>
<RegisterForm branches={branches} />
</div>
);

View File

@@ -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;
}