From 0678c81284ed289d734d198f2fbea24e9837b481 Mon Sep 17 00:00:00 2001 From: Web-serfer Date: Tue, 7 Apr 2026 23:07:46 +0500 Subject: [PATCH] =?UTF-8?q?=D0=9C=D0=B5=C3=90=D0=BB=D0=BA=D0=B8=D0=B5=20?= =?UTF-8?q?=D1=83=D0=BB=D1=83=D1=87=D1=88=D0=B5=D0=BD=D0=B8=D1=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/pages/auth/sign-in.astro | 8 +-- .../auth/{sig-up.astro => sign-up.astro} | 62 +++++++++---------- 2 files changed, 31 insertions(+), 39 deletions(-) rename frontend/src/pages/auth/{sig-up.astro => sign-up.astro} (86%) diff --git a/frontend/src/pages/auth/sign-in.astro b/frontend/src/pages/auth/sign-in.astro index 17a77e5..3c896ee 100644 --- a/frontend/src/pages/auth/sign-in.astro +++ b/frontend/src/pages/auth/sign-in.astro @@ -7,10 +7,6 @@ import { SITE_URL } from '@constants'; title="Вход в аккаунт" description="Войдите в свой аккаунт для доступа к личному кабинету" canonicalLink={`${SITE_URL}/auth/sign-in`} - breadcrumbs={[ - { label: 'Главная', href: '/' }, - { label: 'Вход' } - ]} >
@@ -59,7 +55,7 @@ import { SITE_URL } from '@constants';
@@ -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 { diff --git a/frontend/src/pages/auth/sig-up.astro b/frontend/src/pages/auth/sign-up.astro similarity index 86% rename from frontend/src/pages/auth/sig-up.astro rename to frontend/src/pages/auth/sign-up.astro index 82ddd02..bc1086c 100644 --- a/frontend/src/pages/auth/sig-up.astro +++ b/frontend/src/pages/auth/sign-up.astro @@ -6,11 +6,7 @@ import { SITE_URL } from '@constants';
@@ -23,48 +19,48 @@ import { SITE_URL } from '@constants';
-
-
-
- @@ -72,12 +68,12 @@ import { SITE_URL } from '@constants';
- @@ -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 }) }); });