diff --git a/app/(main)/[page_id]/page.tsx b/app/(main)/[page_id]/page.tsx index 2019df2..dbd1e16 100644 --- a/app/(main)/[page_id]/page.tsx +++ b/app/(main)/[page_id]/page.tsx @@ -36,7 +36,7 @@ const PageItem = ({ params }: IParams) => { return (
- + {data && }
{data?.data.title ? : }
diff --git a/app/(prizes)/layout.tsx b/app/(prizes)/layout.tsx index b56b388..57aef70 100644 --- a/app/(prizes)/layout.tsx +++ b/app/(prizes)/layout.tsx @@ -3,15 +3,24 @@ import Footer from '@/components/Footer'; import MobileMenu from '@/components/MobileMenu'; import Nav from '@/components/Nav'; import MainProvider from '@/providers/MainProvider'; +import { Roboto } from 'next/font/google'; import React, { PropsWithChildren } from 'react'; +const roboto = Roboto({ + subsets: ['latin'], + weight: ['300', '400', '500', '700'], + variable: '--font-roboto', +}); + const layout = ({ children }: PropsWithChildren) => { return ( -
+

Turkmen TV

diff --git a/app/(prizes)/prizes/[user_id]/page.tsx b/app/(prizes)/prizes/[user_id]/page.tsx new file mode 100644 index 0000000..577fdee --- /dev/null +++ b/app/(prizes)/prizes/[user_id]/page.tsx @@ -0,0 +1,35 @@ +'use client'; +import PrizeCard from '@/components/prizes/PrizeCard'; +import { useRouter } from 'next/router'; + +const page = ({ params }: { params: { user_id: string } }) => { + return ( +
+
+
+

+ Список подарков +

+

+ Поздравляю с победой в викторине! Вы стали победителем и получаете возможность выбрать + подарок по своему выбору. Пожалуйста, ознакомьтесь с доступными вариантами подарков и + сообщите нам ваше предпочтение. С нетерпением ждем вашего выбора, чтобы доставить вам + заслуженный приз! +

+
+

+ Есть вопросы? Обратись XYXYXY! +

+
+
+ {[ + new Array(3) + .fill(' ') + .map((_, i) => 0 ? 'disabled' : 'selected'} key={i} />), + ]} +
+
+ ); +}; + +export default page; diff --git a/app/(prizes)/prizes/auth/page.tsx b/app/(prizes)/prizes/auth/page.tsx index 910125e..38764e7 100644 --- a/app/(prizes)/prizes/auth/page.tsx +++ b/app/(prizes)/prizes/auth/page.tsx @@ -3,11 +3,9 @@ import React from 'react'; const page = () => { return ( -
-
-
- -
+
+
+
); diff --git a/components/prizes/PrizeCard.tsx b/components/prizes/PrizeCard.tsx new file mode 100644 index 0000000..54c2163 --- /dev/null +++ b/components/prizes/PrizeCard.tsx @@ -0,0 +1,47 @@ +import { cn } from '@/lib/utils'; +import Image from 'next/image'; + +interface IProps { + variant: 'default' | 'selected' | 'disabled'; +} + +const PrizeCard = ({ variant }: IProps) => { + return ( +
+
+ prize +
+
+

+ Новый Cadillac Escalade 2025 Premium Luxury Platinun +

+

+ Это роскошный полноразмерный SUV, представленный американским производителем Cadillac. + Этот автомобиль отличается высоким уровнем комфорта, стиля и технологий.{' '} +

+ {variant === 'default' ? ( + + ) : variant === 'disabled' ? ( + + ) : variant === 'selected' ? ( + + ) : null} +
+
+ ); +}; + +export default PrizeCard; diff --git a/components/prizes/SmsForm.tsx b/components/prizes/SmsForm.tsx index 8781838..d41abf8 100644 --- a/components/prizes/SmsForm.tsx +++ b/components/prizes/SmsForm.tsx @@ -1,6 +1,9 @@ -import React from 'react'; +'use client'; +import Link from 'next/link'; +import React, { useState } from 'react'; const SmsForm = () => { + const [inputValue, setInputValue] = useState(''); return (

Вход в «подарошную»

@@ -8,13 +11,17 @@ const SmsForm = () => {

Промокод

setInputValue(e.target.value)} className="px-[16px] py-[12px] bg-lightPrimaryContainer rounded-[12px] outline-none text-lightOnSurfaceVariant text-textSmall leading-textSmall" placeholder="Введите свой промокод" />
- + + + ); }; diff --git a/public/prize.jpg b/public/prize.jpg new file mode 100644 index 0000000..6972c29 Binary files /dev/null and b/public/prize.jpg differ diff --git a/tailwind.config.js b/tailwind.config.js index 1c9bb7f..ff51039 100644 --- a/tailwind.config.js +++ b/tailwind.config.js @@ -71,6 +71,7 @@ export const theme = { // Surface lightSurface: '#FCF8FF', lightOnSurface: '#1B1B21', + lightOnSurfaceDisabled: 'rgba(27, 27, 33, 0.12)', lightSurfaceVariant: '#E4E1EC', lightOnSurfaceVariant: '#46464F', lightSurfaceContainerLowest: '#FFFFFF', @@ -92,6 +93,9 @@ export const theme = { heading1: '36px', heading2: '32px', heading3: '28px', + heading4: '26px', + heading5: '24px', + heading6: '20px', // Text textLarge: '18px', @@ -101,7 +105,7 @@ export const theme = { }, lineHeight: { // Display 1 - display1: '56px', + display1: '64px', // Display 2 display2: '56px', @@ -110,22 +114,22 @@ export const theme = { display3: '56px', // Heading 1 - heading1: '56px', + heading1: '44px', // Heading 2 - heading2: '56px', + heading2: '40px', // Heading 3 - heading3: '56px', + heading3: '36px', // Heading 4 - heading4: '56px', + heading4: '34px', // Heading 5 - heading5: '56px', + heading5: '32px', // Heading 6 - heading6: '56px', + heading6: '28px', // Text large textLarge: '27px',