fix: add agreement

This commit is contained in:
2025-06-18 15:41:16 +03:00
parent ec696e7d3e
commit 1bee275d18
7 changed files with 54 additions and 7 deletions

View File

@@ -11,6 +11,7 @@ import { z } from 'zod';
import bgForm from '@public/images/bg-form.jpg';
import { sendFormFn } from '@shared/api/api.service';
import { isValidPhoneNumber } from 'libphonenumber-js/min';
import Link from 'next/link';
const FormSchema = z.object({
name: z

View File

@@ -36,6 +36,23 @@
}
}
.Agreement {
font-family: $font-open-sans;
font-weight: $font-regular;
font-size: rem(14px);
line-height: 100%;
color: $color-darkgray;
a {
color: $color-orange;
&:hover {
color: $color-orange-hover;
text-decoration: underline;
}
}
}
.SendBtn {
align-self: flex-end;
max-width: 33%;

View File

@@ -8,6 +8,7 @@ import { zodResolver } from '@hookform/resolvers/zod';
import { z } from 'zod';
import { sendFormFn } from '@shared/api/api.service';
import { isValidPhoneNumber } from 'libphonenumber-js/min';
import Link from 'next/link';
const FormSchema = z.object({
name: z
@@ -116,6 +117,11 @@ export default function FooterForm() {
/>
)}
/>
<span className={s.Agreement}>
Нажимая на кнопку, вы даете согласие на обработку своих персональных
данных и соглашаетесь с
<Link href={'/privacy-policy'}> Политикой конфиденциальности</Link>
</span>
<Button className={s.SendBtn} variant='orange' fullWidth>
Отправить
</Button>

View File

@@ -8,6 +8,7 @@ import { z } from 'zod';
import toast from 'react-hot-toast';
import { sendFormFn } from '@shared/api/api.service';
import { isValidPhoneNumber } from 'libphonenumber-js/min';
import Link from 'next/link';
const FormSchema = z.object({
name: z