style: Redesign the admin registration page, relocating the title to the page component and updating all form element styles.
This commit is contained in:
@@ -36,9 +36,6 @@ export function RegisterForm({ branches }: { branches: any[] }) {
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<form onSubmit={handleSubmit} className={styles.card}>
|
<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 === '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>}
|
{status === 'error' && <div className={styles.error}>Bir hata oluştu. Lütfen tekrar deneyin.</div>}
|
||||||
|
|
||||||
|
|||||||
@@ -9,6 +9,9 @@ export default async function RegisterPage() {
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<div className={styles.container}>
|
<div className={styles.container}>
|
||||||
|
<div className={styles.header}>
|
||||||
|
<h1 className={styles.title}>Yeni Öğrenci Kaydı</h1>
|
||||||
|
</div>
|
||||||
<RegisterForm branches={branches} />
|
<RegisterForm branches={branches} />
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -1,103 +1,90 @@
|
|||||||
.container {
|
.container {
|
||||||
min-height: 100vh;
|
padding: 1rem;
|
||||||
display: flex;
|
|
||||||
align-items: center;
|
|
||||||
justify-content: center;
|
|
||||||
background: linear-gradient(135deg, #1e1e2f 0%, #2a2a40 100%);
|
|
||||||
padding: 2rem;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.card {
|
.header {
|
||||||
background: rgba(255, 255, 255, 0.05);
|
display: flex;
|
||||||
backdrop-filter: blur(10px);
|
justify-content: space-between;
|
||||||
border: 1px solid rgba(255, 255, 255, 0.1);
|
align-items: center;
|
||||||
padding: 3rem;
|
margin-bottom: 2rem;
|
||||||
border-radius: 20px;
|
|
||||||
width: 100%;
|
|
||||||
max-width: 500px;
|
|
||||||
box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
|
|
||||||
color: white;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.title {
|
.title {
|
||||||
text-align: center;
|
|
||||||
font-size: 2rem;
|
font-size: 2rem;
|
||||||
margin-bottom: 0.5rem;
|
font-weight: 600;
|
||||||
background: linear-gradient(90deg, #ff8a00, #e52e71);
|
color: #333;
|
||||||
-webkit-background-clip: text;
|
|
||||||
background-clip: text;
|
|
||||||
-webkit-text-fill-color: transparent;
|
|
||||||
font-weight: 700;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.subtitle {
|
.card {
|
||||||
text-align: center;
|
background: white;
|
||||||
color: #aaa;
|
padding: 2rem;
|
||||||
margin-bottom: 2rem;
|
border-radius: 8px;
|
||||||
|
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
|
||||||
|
max-width: 800px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.formGroup {
|
.formGroup {
|
||||||
margin-bottom: 1.5rem;
|
margin-bottom: 1.5rem;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
gap: 0.5rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
.label {
|
.label {
|
||||||
display: block;
|
font-weight: 500;
|
||||||
margin-bottom: 0.5rem;
|
color: #555;
|
||||||
color: #ddd;
|
font-size: 0.95rem;
|
||||||
font-size: 0.9rem;
|
|
||||||
letter-spacing: 0.5px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.input,
|
.input,
|
||||||
.select {
|
.select {
|
||||||
width: 100%;
|
padding: 0.75rem;
|
||||||
padding: 1rem;
|
border: 1px solid #ddd;
|
||||||
background: rgba(0, 0, 0, 0.2);
|
border-radius: 6px;
|
||||||
border: 1px solid rgba(255, 255, 255, 0.1);
|
|
||||||
border-radius: 10px;
|
|
||||||
color: white;
|
|
||||||
font-size: 1rem;
|
font-size: 1rem;
|
||||||
transition: all 0.3s ease;
|
color: #333;
|
||||||
|
background-color: #fff;
|
||||||
|
transition: border-color 0.2s;
|
||||||
}
|
}
|
||||||
|
|
||||||
.input:focus,
|
.input:focus,
|
||||||
.select:focus {
|
.select:focus {
|
||||||
outline: none;
|
outline: none;
|
||||||
border-color: #e52e71;
|
border-color: #333;
|
||||||
background: rgba(0, 0, 0, 0.4);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.button {
|
.button {
|
||||||
width: 100%;
|
padding: 0.75rem 2rem;
|
||||||
padding: 1rem;
|
background: #333;
|
||||||
background: linear-gradient(90deg, #ff8a00, #e52e71);
|
|
||||||
border: none;
|
|
||||||
border-radius: 10px;
|
|
||||||
color: white;
|
color: white;
|
||||||
font-size: 1.1rem;
|
border: none;
|
||||||
font-weight: 600;
|
border-radius: 6px;
|
||||||
|
font-size: 1rem;
|
||||||
|
font-weight: 500;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
transition: transform 0.2s, box-shadow 0.2s;
|
transition: background-color 0.2s;
|
||||||
margin-top: 1rem;
|
margin-top: 1rem;
|
||||||
|
align-self: flex-start;
|
||||||
}
|
}
|
||||||
|
|
||||||
.button:hover {
|
.button:hover {
|
||||||
transform: translateY(-2px);
|
background: #000;
|
||||||
box-shadow: 0 10px 20px rgba(229, 46, 113, 0.3);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.success {
|
.success {
|
||||||
text-align: center;
|
background-color: #e8f5e9;
|
||||||
color: #4caf50;
|
color: #2e7d32;
|
||||||
background: rgba(76, 175, 80, 0.1);
|
|
||||||
padding: 1rem;
|
padding: 1rem;
|
||||||
border-radius: 10px;
|
border-radius: 6px;
|
||||||
margin-bottom: 1rem;
|
margin-bottom: 1.5rem;
|
||||||
border: 1px solid rgba(76, 175, 80, 0.3);
|
border: 1px solid #c8e6c9;
|
||||||
}
|
}
|
||||||
|
|
||||||
.error {
|
.error {
|
||||||
text-align: center;
|
background-color: #ffebee;
|
||||||
color: #ff5252;
|
color: #c62828;
|
||||||
margin-bottom: 1rem;
|
padding: 1rem;
|
||||||
|
border-radius: 6px;
|
||||||
|
margin-bottom: 1.5rem;
|
||||||
|
border: 1px solid #ffcdd2;
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user