summaryrefslogtreecommitdiff
path: root/src/components/header/NavBar.tsx
blob: f18690444e1d3e6b3838afe9e4f787b4ab03373a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
//import { ShuffleIcon } from 'lucide-react';
import ShuffleIcon from '@icons/ShuffleIcon.svg';
import Image from 'next/image';
import { Button, Input } from '../ui';
import { ProfileOrLogin } from './ProfileOrLogin';
import Link from 'next/link';
import DiscordIcon from '@icons/discord.svg';
import { Switch } from '@/components/ui/switch';
export function NavBar() {
    return (
        <div className="flex w-full justify-between py-7.5 h-[110] items-center">
            <div className="flex min-w-[267] max-w-[750] grow items-center gap-7.5">
                <Link href="/" className="shrink-0 ">
                    <Image
                        src="/icons/logo.svg"
                        alt="ARTBERRY"
                        width={46}
                        height={50}
                        className="h-[50]"
                    />
                </Link>
                <div className="flex gap-3.75 grow items-center">
                    <Search />
                    <Button variant={'icon'} size={'icon'} asChild>
                        <ShuffleIcon width={20} height={19} strokeWidth={2} />
                    </Button>
                    <div className="gap-[20] flex items-center shrink-0 w-[185]">
                        <div className="flex h-[22] gap-2.5 opacity-100 items-center w-[66]">
                            <span>AI</span>
                            <Switch />
                        </div>
                        <div className="flex h-[22] gap-2.5 opacity-100 items-center w-[66]">
                            <span>NSFW</span>
                            <Switch />
                        </div>
                    </div>
                </div>
            </div>

            <Sections />
            <div className="flex gap-3.75 items-center shrink-0">
                <Link href={'#'} className="hover:[&_path]:fill-light-violet">
                    <DiscordIcon />
                </Link>
                <ProfileOrLogin />
            </div>
        </div>
    );
}

function Search() {
    return (
        <div className="flex w-[409] h-[50] border-2 items-center rounded-4xl p-3.75">
            <div className="flex w-full gap-1.25">
                <Image
                    src="/icons/search.svg"
                    alt=""
                    width={24}
                    height={24}
                    className="h-[24] w-[24]"
                />
                <Input
                    placeholder="Поиск"
                    className="text-light-violet placeholder:text-light-violet text-sm"
                />
            </div>
        </div>
    );
}

function Sections() {
    return (
        <div className="flex grow min-w-75 max-w-[450] justify-between px-7.5 font-medium"></div>
    );
}