From 9edce4dfa5f7c4efecd0f39fb4fd4a4c9863fe6e Mon Sep 17 00:00:00 2001 From: l3wdfut4pwr l3wdfut4pwr Date: Sat, 31 Jan 2026 20:33:22 +0200 Subject: add register and reset dialogs --- src/components/footer/Footer.tsx | 31 ++--- src/components/header/AuthDialog.tsx | 72 +++++++----- src/components/header/NavBar.tsx | 2 +- src/components/header/ProfileOrLogin.tsx | 4 +- src/components/ui/dialog.tsx | 6 +- src/components/ui/inputfield.tsx | 16 +++ src/components/ui/select.tsx | 190 +++++++++++++++++++++++++++++++ src/components/ui/tabs.tsx | 4 +- src/components/ui/textarea.tsx | 18 +++ 9 files changed, 295 insertions(+), 48 deletions(-) create mode 100644 src/components/ui/inputfield.tsx create mode 100644 src/components/ui/select.tsx create mode 100644 src/components/ui/textarea.tsx (limited to 'src/components') diff --git a/src/components/footer/Footer.tsx b/src/components/footer/Footer.tsx index 5e0282f..63dde1e 100644 --- a/src/components/footer/Footer.tsx +++ b/src/components/footer/Footer.tsx @@ -23,29 +23,34 @@ export function Footer() { Terms and Conditions · Privacy Policy - © 2025 artberry.xyz + + © {new Date().getFullYear()} artberry.xyz + -
-
-
+
+
+
- - Загрузить контент + + Загрузить контент - + FAQ - + Премиум @@ -54,7 +59,7 @@ export function Footer() { Сообщество
-
+
Теги Персонажи Категории @@ -62,8 +67,8 @@ export function Footer() { Рандом
-
- English +
+ English
diff --git a/src/components/header/AuthDialog.tsx b/src/components/header/AuthDialog.tsx index c1f359e..c125c66 100644 --- a/src/components/header/AuthDialog.tsx +++ b/src/components/header/AuthDialog.tsx @@ -3,23 +3,18 @@ import { DialogContent } from '@/components/ui/dialog'; import { Input } from '@/components/ui/input'; import { Tabs, TabsContent, TabsList, TabsTrigger } from '@/components/ui/tabs'; import GoogleIcon from '../../../public/icons/google.svg'; +import { InputField } from '../ui/inputfield'; export function AuthDialog() { return (
- - + + Вход - + Регистрация
-
- -
-
- -
+ +
- -
+ +
+ +
+ + + + +
+
+
- -
+ +
+
+ ВОССТАНОВЛЕНИЕ ПАРОЛЯ +
+ + Введите никнейм или почту, с помощью + которых входите в аккаунт. + + +
+
+ +
+
diff --git a/src/components/header/NavBar.tsx b/src/components/header/NavBar.tsx index 217be3a..419f7d8 100644 --- a/src/components/header/NavBar.tsx +++ b/src/components/header/NavBar.tsx @@ -45,7 +45,7 @@ export function NavBar() {
-
+
diff --git a/src/components/header/ProfileOrLogin.tsx b/src/components/header/ProfileOrLogin.tsx index 874e0fc..416418b 100644 --- a/src/components/header/ProfileOrLogin.tsx +++ b/src/components/header/ProfileOrLogin.tsx @@ -13,7 +13,9 @@ export function ProfileOrLogin() { return ( - + diff --git a/src/components/ui/dialog.tsx b/src/components/ui/dialog.tsx index 46fe445..1aaba43 100644 --- a/src/components/ui/dialog.tsx +++ b/src/components/ui/dialog.tsx @@ -60,7 +60,7 @@ function DialogContent({ - Close - + > )} diff --git a/src/components/ui/inputfield.tsx b/src/components/ui/inputfield.tsx new file mode 100644 index 0000000..40d5206 --- /dev/null +++ b/src/components/ui/inputfield.tsx @@ -0,0 +1,16 @@ +import { Input } from '@/components/ui/input'; + +interface InputFIeldProps { + placeholder: string; +} + +export function InputField({ placeholder }: InputFIeldProps) { + return ( +
+ +
+ ); +} diff --git a/src/components/ui/select.tsx b/src/components/ui/select.tsx new file mode 100644 index 0000000..88302a8 --- /dev/null +++ b/src/components/ui/select.tsx @@ -0,0 +1,190 @@ +"use client" + +import * as React from "react" +import * as SelectPrimitive from "@radix-ui/react-select" +import { CheckIcon, ChevronDownIcon, ChevronUpIcon } from "lucide-react" + +import { cn } from "@/lib/utils" + +function Select({ + ...props +}: React.ComponentProps) { + return +} + +function SelectGroup({ + ...props +}: React.ComponentProps) { + return +} + +function SelectValue({ + ...props +}: React.ComponentProps) { + return +} + +function SelectTrigger({ + className, + size = "default", + children, + ...props +}: React.ComponentProps & { + size?: "sm" | "default" +}) { + return ( + + {children} + + + + + ) +} + +function SelectContent({ + className, + children, + position = "item-aligned", + align = "center", + ...props +}: React.ComponentProps) { + return ( + + + + + {children} + + + + + ) +} + +function SelectLabel({ + className, + ...props +}: React.ComponentProps) { + return ( + + ) +} + +function SelectItem({ + className, + children, + ...props +}: React.ComponentProps) { + return ( + + + + + + + {children} + + ) +} + +function SelectSeparator({ + className, + ...props +}: React.ComponentProps) { + return ( + + ) +} + +function SelectScrollUpButton({ + className, + ...props +}: React.ComponentProps) { + return ( + + + + ) +} + +function SelectScrollDownButton({ + className, + ...props +}: React.ComponentProps) { + return ( + + + + ) +} + +export { + Select, + SelectContent, + SelectGroup, + SelectItem, + SelectLabel, + SelectScrollDownButton, + SelectScrollUpButton, + SelectSeparator, + SelectTrigger, + SelectValue, +} diff --git a/src/components/ui/tabs.tsx b/src/components/ui/tabs.tsx index ed26736..f7fadc6 100644 --- a/src/components/ui/tabs.tsx +++ b/src/components/ui/tabs.tsx @@ -26,7 +26,7 @@ function TabsList({ ) { + return ( +