МеÐлкие улучшения
This commit is contained in:
parent
70e75dc11b
commit
0678c81284
2 changed files with 31 additions and 39 deletions
|
|
@ -7,10 +7,6 @@ import { SITE_URL } from '@constants';
|
|||
title="Вход в аккаунт"
|
||||
description="Войдите в свой аккаунт для доступа к личному кабинету"
|
||||
canonicalLink={`${SITE_URL}/auth/sign-in`}
|
||||
breadcrumbs={[
|
||||
{ label: 'Главная', href: '/' },
|
||||
{ label: 'Вход' }
|
||||
]}
|
||||
>
|
||||
<div class="auth-page">
|
||||
<div class="auth-container">
|
||||
|
|
@ -59,7 +55,7 @@ import { SITE_URL } from '@constants';
|
|||
</form>
|
||||
|
||||
<div class="auth-footer">
|
||||
<p>Нет аккаунта? <a href="/auth/sig-up">Зарегистрироваться</a></p>
|
||||
<p>Нет аккаунта? <a href="/auth/sign-up">Зарегистрироваться</a></p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
@ -74,7 +70,7 @@ import { SITE_URL } from '@constants';
|
|||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
padding: 8rem 2rem 2rem;
|
||||
padding: 2rem;
|
||||
}
|
||||
|
||||
.auth-container {
|
||||
|
|
|
|||
|
|
@ -6,11 +6,7 @@ import { SITE_URL } from '@constants';
|
|||
<Layout
|
||||
title="Регистрация"
|
||||
description="Создайте аккаунт для доступа к личному кабинету"
|
||||
canonicalLink={`${SITE_URL}/auth/sig-up`}
|
||||
breadcrumbs={[
|
||||
{ label: 'Главная', href: '/' },
|
||||
{ label: 'Регистрация' }
|
||||
]}
|
||||
canonicalLink={`${SITE_URL}/auth/sign-up`}
|
||||
>
|
||||
<div class="auth-page">
|
||||
<div class="auth-container">
|
||||
|
|
@ -23,48 +19,48 @@ import { SITE_URL } from '@constants';
|
|||
<form class="auth-form" id="sign-up-form">
|
||||
<div class="form-group">
|
||||
<label for="name">ФИО</label>
|
||||
<input
|
||||
type="text"
|
||||
id="name"
|
||||
name="name"
|
||||
<input
|
||||
type="text"
|
||||
id="name"
|
||||
name="name"
|
||||
placeholder="Иванов Иван Иванович"
|
||||
required
|
||||
required
|
||||
autocomplete="name"
|
||||
/>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="email">Email</label>
|
||||
<input
|
||||
type="email"
|
||||
id="email"
|
||||
name="email"
|
||||
<input
|
||||
type="email"
|
||||
id="email"
|
||||
name="email"
|
||||
placeholder="example@mail.ru"
|
||||
required
|
||||
required
|
||||
autocomplete="email"
|
||||
/>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="phone">Телефон</label>
|
||||
<input
|
||||
type="tel"
|
||||
id="phone"
|
||||
name="phone"
|
||||
<input
|
||||
type="tel"
|
||||
id="phone"
|
||||
name="phone"
|
||||
placeholder="+7 (999) 000-00-00"
|
||||
required
|
||||
required
|
||||
autocomplete="tel"
|
||||
/>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="password">Пароль</label>
|
||||
<input
|
||||
type="password"
|
||||
id="password"
|
||||
name="password"
|
||||
<input
|
||||
type="password"
|
||||
id="password"
|
||||
name="password"
|
||||
placeholder="••••••••"
|
||||
required
|
||||
required
|
||||
autocomplete="new-password"
|
||||
minlength="6"
|
||||
/>
|
||||
|
|
@ -72,12 +68,12 @@ import { SITE_URL } from '@constants';
|
|||
|
||||
<div class="form-group">
|
||||
<label for="confirmPassword">Подтвердите пароль</label>
|
||||
<input
|
||||
type="password"
|
||||
id="confirmPassword"
|
||||
name="confirmPassword"
|
||||
<input
|
||||
type="password"
|
||||
id="confirmPassword"
|
||||
name="confirmPassword"
|
||||
placeholder="••••••••"
|
||||
required
|
||||
required
|
||||
autocomplete="new-password"
|
||||
minlength="6"
|
||||
/>
|
||||
|
|
@ -281,10 +277,10 @@ import { SITE_URL } from '@constants';
|
|||
// Обработка отправки формы
|
||||
document.getElementById('sign-up-form')?.addEventListener('submit', async (e) => {
|
||||
e.preventDefault();
|
||||
|
||||
|
||||
const form = e.target as HTMLFormElement;
|
||||
const formData = new FormData(form);
|
||||
|
||||
|
||||
const name = formData.get('name') as string;
|
||||
const email = formData.get('email') as string;
|
||||
const phone = formData.get('phone') as string;
|
||||
|
|
@ -299,7 +295,7 @@ import { SITE_URL } from '@constants';
|
|||
|
||||
// Здесь будет логика отправки на сервер
|
||||
console.log('Регистрация:', { name, email, phone, password });
|
||||
|
||||
|
||||
// Пример: await fetch('/api/auth/signup', { method: 'POST', body: JSON.stringify({ name, email, phone, password }) });
|
||||
});
|
||||
</script>
|
||||
Loading…
Add table
Add a link
Reference in a new issue