Compare commits
8 Commits
master
...
5288637d19
| Author | SHA1 | Date | |
|---|---|---|---|
| 5288637d19 | |||
| ae73b5d256 | |||
| a2b1f761ac | |||
| a00ec135f1 | |||
| 1b1c45935b | |||
| 9d6f0ce73d | |||
| 860b628834 | |||
| af335ab4a8 |
@@ -1,13 +1,13 @@
|
|||||||
@reference "../index.scss";
|
@reference "../index.scss";
|
||||||
|
|
||||||
#container {
|
#container {
|
||||||
@apply flex min-h-auto w-screen flex-col items-center gap-4 px-2 py-3 md:min-h-screen md:w-[30rem];
|
@apply flex min-h-auto w-screen flex-col items-center gap-4 px-2 py-3 md:min-h-screen md:w-[20rem];
|
||||||
}
|
}
|
||||||
|
|
||||||
.menu_container {
|
.menu_container {
|
||||||
@apply fixed right-0 bottom-0 left-0 flex h-[4rem] w-full flex-1 flex-row items-center gap-1 rounded-[44px] bg-[rgba(167,213,246,0.3)] px-1 py-5 md:sticky md:top-0 md:right-0 md:bottom-auto md:left-auto md:h-full md:flex-col md:gap-4 md:border-t-0 md:px-5 md:py-5;
|
@apply fixed right-0 bottom-0 left-0 flex h-[4rem] w-full flex-1 flex-row items-center gap-1 rounded-[3rem] bg-[rgba(167,213,246,0.3)] px-1 py-5 md:sticky md:top-0 md:right-0 md:bottom-auto md:left-auto md:h-full md:flex-col md:gap-4 md:border-t-0 md:px-5 md:py-5;
|
||||||
}
|
}
|
||||||
|
|
||||||
.menu_item {
|
.menu_item {
|
||||||
@apply flex w-full cursor-pointer flex-row items-center gap-3 rounded-full px-3 py-2 text-center hover:bg-gray-200 md:px-6;
|
@apply flex w-full flex-1/3 cursor-pointer flex-row items-center justify-center gap-3 rounded-full px-3 py-2 text-center hover:bg-gray-200 md:flex-initial md:justify-start md:px-6;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -29,7 +29,7 @@ const MenuItem: FunctionComponent<MenuItemProps> = ({ title, link, icon }: MenuI
|
|||||||
return (
|
return (
|
||||||
<div class={menuItemClasses({ activity: active ? "active" : "inactive" })} onClick={() => route(link, true)}>
|
<div class={menuItemClasses({ activity: active ? "active" : "inactive" })} onClick={() => route(link, true)}>
|
||||||
{icon}
|
{icon}
|
||||||
{title}
|
<div class="hidden md:block">{title}</div>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
@@ -40,19 +40,19 @@ const Avatar: FunctionComponent = () => {
|
|||||||
return (
|
return (
|
||||||
<button
|
<button
|
||||||
onClick={() => route("/profile/settings")}
|
onClick={() => route("/profile/settings")}
|
||||||
class={cn("hidden h-32 w-full cursor-pointer overflow-hidden transition-[height] md:block", {
|
class={cn("hidden h-32 w-full cursor-pointer overflow-hidden opacity-100 transition-[height,opacity] md:block", {
|
||||||
"h-0": path === "/profile/settings",
|
"h-0 opacity-0": path === "/profile/settings",
|
||||||
})}
|
})}
|
||||||
>
|
>
|
||||||
<div
|
<div
|
||||||
class={cn(
|
class={cn(
|
||||||
"h-full flex-row items-center justify-around rounded-[44px] bg-[linear-gradient(180.00deg,rgba(249,134,143,0.5)_3.053%,rgb(228,242,252)_96.183%)] px-5 py-5 md:flex"
|
"h-full flex-row items-center justify-around rounded-[3rem] bg-[linear-gradient(180.00deg,rgba(249,134,143,0.5)_3.053%,rgb(228,242,252)_96.183%)] px-5 py-5 md:flex"
|
||||||
)}
|
)}
|
||||||
>
|
>
|
||||||
<div class="my-5 aspect-square h-full rounded-full bg-white"></div>
|
<div class="my-5 aspect-square h-full rounded-full bg-white"></div>
|
||||||
<div class="flex flex-col items-center justify-center">
|
<div class="flex flex-col items-center justify-center">
|
||||||
<p class="text-3xl font-semibold">Никнейм</p>
|
<p class="text-3xl font-semibold">никнейм</p>
|
||||||
<p class="text-xl font-light">Статус</p>
|
<div class="rounded-[1rem] bg-white px-5 leading-5 font-light italic">статус</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</button>
|
</button>
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
@reference "../index.scss";
|
@reference "../index.scss";
|
||||||
|
|
||||||
.task {
|
.task {
|
||||||
@apply flex h-24 w-[300px] cursor-pointer flex-row items-center justify-start gap-4 rounded-[39px] bg-[rgba(251,194,199,0.53)] px-5 py-6 text-xl shadow-[0px_4px_4px_0px_rgba(0,0,0,0.25)] transition-transform hover:scale-[1.05] hover:bg-[rgba(251,194,199,0.7)] active:scale-[1.05] md:w-[500px];
|
@apply flex h-24 w-full cursor-pointer flex-row items-center justify-start gap-4 rounded-[3rem] bg-[rgba(251,194,199,0.53)] px-5 py-6 text-xl shadow-[0px_4px_4px_0px_rgba(0,0,0,0.25)] transition-transform hover:scale-[1.05] hover:bg-[rgba(251,194,199,0.7)] active:scale-[1.05] md:w-[500px];
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,16 +1,40 @@
|
|||||||
import { FunctionComponent } from "preact";
|
import { FunctionComponent } from "preact";
|
||||||
|
import { tv } from "tailwind-variants";
|
||||||
import classes from "./task.module.scss";
|
import classes from "./task.module.scss";
|
||||||
|
|
||||||
interface TaskProps {
|
interface TaskProps {
|
||||||
name: string;
|
name: string;
|
||||||
|
checked?: boolean;
|
||||||
}
|
}
|
||||||
|
|
||||||
const Task: FunctionComponent<TaskProps> = ({ name }: TaskProps) => {
|
const taskStyle = tv({
|
||||||
|
base: "flex aspect-square h-full flex-col items-center justify-center rounded-full border",
|
||||||
|
variants: {
|
||||||
|
checked: {
|
||||||
|
true: "bg-black",
|
||||||
|
false: "bg-white",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
});
|
||||||
|
|
||||||
|
const markStyle = tv({
|
||||||
|
base: "text-4xl font-light text-white",
|
||||||
|
variants: {
|
||||||
|
checked: {
|
||||||
|
true: "block",
|
||||||
|
false: "hidden",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
});
|
||||||
|
|
||||||
|
const Task: FunctionComponent<TaskProps> = ({ name, checked = false }: TaskProps) => {
|
||||||
return (
|
return (
|
||||||
// Временное действие для тестирования
|
// Временное действие для тестирования
|
||||||
<button onClick={() => alert(name)}>
|
<button onClick={() => alert(name)} class="w-[95%]">
|
||||||
<div class={classes.task}>
|
<div class={classes.task}>
|
||||||
<div class="aspect-square h-full rounded-full border bg-white"></div>
|
<div class={taskStyle({ checked })}>
|
||||||
|
<p class={markStyle({ checked })}>✓</p>
|
||||||
|
</div>
|
||||||
{name}
|
{name}
|
||||||
</div>
|
</div>
|
||||||
</button>
|
</button>
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
@reference '../../index.scss';
|
@reference '../../index.scss';
|
||||||
|
|
||||||
.button {
|
.button {
|
||||||
@apply rounded-[23px] px-4 py-3 text-xl text-black shadow-[0px_4px_4px_0px_rgba(0,0,0,0.25)] transition-colors hover:cursor-pointer;
|
@apply rounded-4xl px-4 py-3 text-xl text-black shadow-[0px_4px_4px_0px_rgba(0,0,0,0.25)] transition-colors hover:cursor-pointer;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -5,8 +5,8 @@ const button = tv({
|
|||||||
base: classes.button,
|
base: classes.button,
|
||||||
variants: {
|
variants: {
|
||||||
color: {
|
color: {
|
||||||
primary: "bg-[rgba(206,232,251,0.7)] hover:bg-[rgba(206,232,251,0.9)]",
|
primary: "bg-[rgba(206,232,251,0.7)] hover:bg-[rgba(206,232,251,0.9)] active:bg-[rgba(206,232,251,0.9)]",
|
||||||
secondary: "bg-[rgba(255,251,197,0.68)] hover:bg-[rgba(255,251,197,0.9)]",
|
secondary: "bg-[rgba(255,251,197,0.68)] hover:bg-[rgba(255,251,197,0.9)] active:bg-[rgba(255,251,197,0.9)]",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
@reference "../../index.scss";
|
@reference "../../index.scss";
|
||||||
|
|
||||||
.input_field {
|
.input_field {
|
||||||
@apply rounded-[23px] border border-gray-300 bg-white p-2 leading-8 placeholder:transition focus:outline-0 focus:placeholder:opacity-25;
|
@apply w-full rounded-[4rem] border bg-white p-2 leading-8 placeholder:transition focus:outline-0 focus:placeholder:opacity-25;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
import { FunctionComponent } from "preact";
|
import { cn } from "@/utils/class-merge";
|
||||||
|
import { FunctionComponent, Ref } from "preact";
|
||||||
import { tv } from "tailwind-variants";
|
import { tv } from "tailwind-variants";
|
||||||
import classes from "./Input.module.scss";
|
import classes from "./Input.module.scss";
|
||||||
|
|
||||||
@@ -9,6 +10,10 @@ const input = tv({
|
|||||||
center: "text-center",
|
center: "text-center",
|
||||||
left: "text-left",
|
left: "text-left",
|
||||||
},
|
},
|
||||||
|
"border-error": {
|
||||||
|
true: "border-red-500 placeholder:text-red-500",
|
||||||
|
false: "border-gray-300",
|
||||||
|
},
|
||||||
},
|
},
|
||||||
defaultVariants: {
|
defaultVariants: {
|
||||||
"text-align": "left",
|
"text-align": "left",
|
||||||
@@ -19,15 +24,33 @@ interface InputProps {
|
|||||||
isPassword?: boolean;
|
isPassword?: boolean;
|
||||||
placeholder?: string;
|
placeholder?: string;
|
||||||
textAlign?: "center" | "left";
|
textAlign?: "center" | "left";
|
||||||
|
error?: string;
|
||||||
|
textRef?: Ref<HTMLInputElement> | null;
|
||||||
}
|
}
|
||||||
|
|
||||||
const Input: FunctionComponent<InputProps> = ({ isPassword = false, placeholder = "", textAlign }: InputProps) => {
|
const Input: FunctionComponent<InputProps> = ({
|
||||||
|
isPassword = false,
|
||||||
|
placeholder = "",
|
||||||
|
textAlign,
|
||||||
|
error = "",
|
||||||
|
textRef = null,
|
||||||
|
}: InputProps) => {
|
||||||
return (
|
return (
|
||||||
|
<div class="flex w-full flex-col items-center gap-1">
|
||||||
<input
|
<input
|
||||||
type={isPassword ? "password" : "text"}
|
type={isPassword ? "password" : "text"}
|
||||||
class={input({ "text-align": textAlign })}
|
class={input({ "text-align": textAlign, "border-error": error !== "" })}
|
||||||
placeholder={placeholder}
|
placeholder={placeholder}
|
||||||
|
ref={textRef}
|
||||||
/>
|
/>
|
||||||
|
<p
|
||||||
|
class={cn("invisible h-10 w-[80%] text-center text-[0.7rem] break-words text-red-500", {
|
||||||
|
visible: error !== "",
|
||||||
|
})}
|
||||||
|
>
|
||||||
|
{error}
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -5,9 +5,9 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.login_card {
|
.login_card {
|
||||||
@apply flex min-h-[50vh] w-[95%] min-w-[300px] flex-col justify-around gap-2 rounded-[103px] bg-[linear-gradient(180.00deg,_rgba(239,251,194,0.53),rgb(206,232,251)_100%)] p-7 shadow-[0px_4px_4px_0px_rgba(0,0,0,0.25)] md:w-[350px];
|
@apply flex h-fit w-[95%] min-w-[300px] flex-col justify-around rounded-[3rem] bg-[linear-gradient(180.00deg,_rgba(239,251,194,0.53),rgb(206,232,251)_100%)] p-7 shadow-[0px_4px_4px_0px_rgba(0,0,0,0.25)] md:w-[350px];
|
||||||
}
|
}
|
||||||
|
|
||||||
.login_card_name {
|
.login_card_name {
|
||||||
@apply text-center text-2xl font-semibold;
|
@apply mb-8 text-center text-2xl font-semibold;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -5,28 +5,52 @@ import { UrlsTitle } from "@/enums/urls";
|
|||||||
import { useAppContext } from "@/providers/AuthProvider";
|
import { useAppContext } from "@/providers/AuthProvider";
|
||||||
import { FunctionComponent } from "preact";
|
import { FunctionComponent } from "preact";
|
||||||
import { useLocation } from "preact-iso";
|
import { useLocation } from "preact-iso";
|
||||||
|
import "preact/debug";
|
||||||
|
import { useRef, useState } from "preact/hooks";
|
||||||
import classes from "./login.module.scss";
|
import classes from "./login.module.scss";
|
||||||
|
|
||||||
|
const testUser = {
|
||||||
|
login: "test",
|
||||||
|
password: "test",
|
||||||
|
};
|
||||||
const LoginPage: FunctionComponent = () => {
|
const LoginPage: FunctionComponent = () => {
|
||||||
const { isLoggedIn } = useAppContext();
|
const { isLoggedIn } = useAppContext();
|
||||||
const { route } = useLocation();
|
const { route } = useLocation();
|
||||||
return (
|
const loginRef = useRef<HTMLInputElement | null>(null);
|
||||||
<div class={classes.login_container}>
|
const passwordRef = useRef<HTMLInputElement | null>(null);
|
||||||
<div class={classes.login_card}>
|
const [loginError, setLoginError] = useState("");
|
||||||
<p class={classes.login_card_name}>Антихвост</p>
|
const [passwordError, setPasswordError] = useState("");
|
||||||
<Input placeholder="Логин" textAlign="center" />
|
const login = async () => {
|
||||||
<Input isPassword placeholder="Пароль" textAlign="center" />
|
if (!loginRef.current || !passwordRef.current) return;
|
||||||
<Button
|
setLoginError("");
|
||||||
color="secondary"
|
setPasswordError("");
|
||||||
onClick={() => {
|
if (!loginRef.current.value.length || !passwordRef.current.value.length) {
|
||||||
|
if (!loginRef.current.value.length) setLoginError("Введите логин");
|
||||||
|
if (!passwordRef.current.value.length) setPasswordError("Введите пароль");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
if (loginRef.current.value !== testUser.login || passwordRef.current.value !== testUser.password) {
|
||||||
|
setLoginError("Неправильный логин или пароль");
|
||||||
|
return;
|
||||||
|
}
|
||||||
isLoggedIn.value = true;
|
isLoggedIn.value = true;
|
||||||
localStorage.setItem("loggedIn", "true");
|
localStorage.setItem("loggedIn", "true");
|
||||||
route("/profile/tasks", true);
|
route("/profile/tasks", true);
|
||||||
}}
|
};
|
||||||
>
|
if (isLoggedIn.value) route("/profile/tasks", true);
|
||||||
|
return !isLoggedIn.value ? (
|
||||||
|
<div class={classes.login_container}>
|
||||||
|
<div class={classes.login_card}>
|
||||||
|
<p class={classes.login_card_name}>Антихвост</p>
|
||||||
|
<Input placeholder="Логин" textAlign="center" textRef={loginRef} error={loginError} />
|
||||||
|
<Input isPassword placeholder="Пароль" textAlign="center" textRef={passwordRef} error={passwordError} />
|
||||||
|
<Button color="secondary" onClick={login}>
|
||||||
Войти
|
Войти
|
||||||
</Button>
|
</Button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
) : (
|
||||||
|
<p>Redirecting...</p>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -1,11 +1,11 @@
|
|||||||
@reference "../index.scss";
|
@reference "../index.scss";
|
||||||
|
|
||||||
.container {
|
.container {
|
||||||
@apply flex h-full w-full flex-col items-center px-6 pt-3 md:flex-row md:items-start;
|
@apply flex h-full w-full flex-col items-center px-6 pt-8 md:items-start;
|
||||||
}
|
}
|
||||||
|
|
||||||
#avatar {
|
#avatar {
|
||||||
@apply flex aspect-square h-40 flex-col items-center justify-center rounded-md border;
|
@apply flex aspect-square h-[7rem] flex-col items-center justify-center rounded-full bg-white;
|
||||||
}
|
}
|
||||||
|
|
||||||
.profile_container {
|
.profile_container {
|
||||||
@@ -17,7 +17,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.header_block__name {
|
.header_block__name {
|
||||||
@apply mt-5 flex h-fit w-full flex-col items-center justify-start gap-3;
|
@apply flex h-fit w-full flex-1 flex-col items-center justify-start gap-3 px-10;
|
||||||
}
|
}
|
||||||
.settings_block {
|
.settings_block {
|
||||||
@apply mt-12 flex h-full w-full flex-col items-center justify-start md:mt-0 md:justify-center;
|
@apply mt-12 flex h-full w-full flex-col items-center justify-start md:mt-0 md:justify-center;
|
||||||
|
|||||||
@@ -2,6 +2,7 @@ import Button from "@/components/ui/Button";
|
|||||||
import { withTitle } from "@/constructors/Component";
|
import { withTitle } from "@/constructors/Component";
|
||||||
import { UrlsTitle } from "@/enums/urls";
|
import { UrlsTitle } from "@/enums/urls";
|
||||||
import { useAppContext } from "@/providers/AuthProvider";
|
import { useAppContext } from "@/providers/AuthProvider";
|
||||||
|
import { cn } from "@/utils/class-merge";
|
||||||
import { FunctionComponent } from "preact";
|
import { FunctionComponent } from "preact";
|
||||||
import { useLocation } from "preact-iso";
|
import { useLocation } from "preact-iso";
|
||||||
import classes from "./profile_settings.module.scss";
|
import classes from "./profile_settings.module.scss";
|
||||||
@@ -9,15 +10,27 @@ import classes from "./profile_settings.module.scss";
|
|||||||
const ProfileSettings: FunctionComponent = () => {
|
const ProfileSettings: FunctionComponent = () => {
|
||||||
const { isLoggedIn } = useAppContext();
|
const { isLoggedIn } = useAppContext();
|
||||||
const { route } = useLocation();
|
const { route } = useLocation();
|
||||||
|
const status = 12;
|
||||||
|
const maxStatus = 100;
|
||||||
return (
|
return (
|
||||||
<div class={classes.container}>
|
<div class={classes.container}>
|
||||||
|
<div class="flex w-full flex-col items-center rounded-[4rem] bg-[linear-gradient(180.00deg,rgb(251,194,199),rgba(206,232,251,0.72)_100%)] px-7 py-5 shadow-[0px_4px_4px_0px_rgba(0,0,0,0.25)] md:flex-row">
|
||||||
<div id={classes.avatar}>Аватар</div>
|
<div id={classes.avatar}>Аватар</div>
|
||||||
<div class={classes.profile_container}>
|
|
||||||
<div class={classes.header_block__name}>
|
<div class={classes.header_block__name}>
|
||||||
<p class="text-5xl font-semibold">Никнейм</p>
|
<p class="text-4xl font-semibold">Никнейм</p>
|
||||||
<p class="text-2xl font-light">Статус</p>
|
<p class="text-2xl font-light">Статус</p>
|
||||||
|
<div class="h-1.5 w-full overflow-hidden rounded-2xl bg-white">
|
||||||
|
<div
|
||||||
|
class={cn("relative top-0 left-0 h-2 bg-black")}
|
||||||
|
style={{ width: `${(status / maxStatus) * 100}%` }}
|
||||||
|
></div>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="-mt-3 self-end text-sm font-light">
|
||||||
|
{status}/{maxStatus}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class={classes.profile_container}>
|
||||||
<div class={classes.settings_block}>
|
<div class={classes.settings_block}>
|
||||||
<div class={classes.settings_block__buttons}>
|
<div class={classes.settings_block__buttons}>
|
||||||
<Button>Сменить тему</Button>
|
<Button>Сменить тему</Button>
|
||||||
|
|||||||
@@ -1,13 +1,13 @@
|
|||||||
@reference "../index.scss";
|
@reference "../index.scss";
|
||||||
|
|
||||||
.container {
|
.container {
|
||||||
@apply flex h-fit w-full flex-col items-center gap-4 px-6 pt-3;
|
@apply flex h-fit min-h-full w-full flex-col items-center gap-4 pt-3 md:px-6;
|
||||||
}
|
}
|
||||||
|
|
||||||
.header {
|
.header {
|
||||||
@apply mb-12 w-full text-3xl font-semibold md:text-5xl;
|
@apply mb-3 w-full text-3xl font-semibold md:mb-12 md:text-5xl;
|
||||||
}
|
}
|
||||||
|
|
||||||
.tasks_container {
|
.tasks_container {
|
||||||
@apply flex w-full flex-col items-center gap-10 md:items-start;
|
@apply flex w-full flex-col items-center gap-3 md:items-start md:gap-10;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,6 +1,8 @@
|
|||||||
import Task from "@/components/task";
|
import Task from "@/components/task";
|
||||||
import { withTitle } from "@/constructors/Component";
|
import { withTitle } from "@/constructors/Component";
|
||||||
import { UrlsTitle } from "@/enums/urls";
|
import { UrlsTitle } from "@/enums/urls";
|
||||||
|
import { PlusIcon } from "@heroicons/react/20/solid";
|
||||||
|
import { FunnelIcon, MagnifyingGlassIcon } from "@heroicons/react/24/outline";
|
||||||
import { FunctionComponent } from "preact";
|
import { FunctionComponent } from "preact";
|
||||||
import { useMemo } from "preact/hooks";
|
import { useMemo } from "preact/hooks";
|
||||||
import classes from "./profile_tasks.module.scss";
|
import classes from "./profile_tasks.module.scss";
|
||||||
@@ -15,12 +17,38 @@ const ProfileTasks: FunctionComponent = () => {
|
|||||||
}, []);
|
}, []);
|
||||||
return (
|
return (
|
||||||
<div class={classes.container}>
|
<div class={classes.container}>
|
||||||
|
{example_tasks.length > 0 ? (
|
||||||
|
<>
|
||||||
<div class={classes.header}>Сегодня: {getDate}</div>
|
<div class={classes.header}>Сегодня: {getDate}</div>
|
||||||
<div class={classes.tasks_container}>
|
<div class={classes.tasks_container}>
|
||||||
{example_tasks.map((task, index) => (
|
{example_tasks.map((task, index) => (
|
||||||
<Task name={task} key={index} />
|
<Task name={task} key={index} checked={index % 2 === 0} />
|
||||||
))}
|
))}
|
||||||
</div>
|
</div>
|
||||||
|
<div class="group fixed right-[22rem] bottom-4 hidden flex-row items-center justify-start space-x-3 overflow-x-hidden py-2 md:flex">
|
||||||
|
<div class="flex aspect-square h-20 cursor-pointer items-center justify-center rounded-full bg-[rgb(251,194,199,0.53)] text-9xl text-white shadow-[0px_4px_4px_0px_rgba(0,0,0,0.25)] transition-all duration-300 ease-out group-hover:ml-[12rem] hover:bg-[rgb(251,194,199,0.7)]">
|
||||||
|
<PlusIcon />
|
||||||
|
</div>
|
||||||
|
<div class="absolute left-0 my-auto flex flex-row space-x-3 opacity-0 transition-opacity duration-100 group-hover:opacity-100">
|
||||||
|
<div class="pointer-events-none flex aspect-square h-20 cursor-pointer flex-col items-center justify-center rounded-full bg-[rgba(206,232,251,0.7)] text-xl text-gray-600 shadow-[0px_4px_4px_0px_rgba(0,0,0,0.25)] group-hover:pointer-events-auto hover:bg-[rgba(206,232,251,0.9)]">
|
||||||
|
<MagnifyingGlassIcon class="size-12" />
|
||||||
|
</div>
|
||||||
|
<div class="pointer-events-none flex aspect-square h-20 cursor-pointer flex-col items-center justify-center rounded-full bg-[rgba(206,232,251,0.7)] text-xl text-gray-600 shadow-[0px_4px_4px_0px_rgba(0,0,0,0.25)] group-hover:pointer-events-auto hover:bg-[rgba(206,232,251,0.9)]">
|
||||||
|
<FunnelIcon class="size-12" />
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</>
|
||||||
|
) : (
|
||||||
|
<>
|
||||||
|
<div class="flex w-full flex-1 flex-col items-center justify-center text-2xl">Начни уже сегодня!</div>
|
||||||
|
<div class="fixed right-[22rem] bottom-4 hidden flex-row items-center justify-start overflow-x-hidden py-2 md:flex">
|
||||||
|
<div class="flex aspect-square h-20 cursor-pointer items-center justify-center rounded-full bg-[rgb(251,194,199,0.53)] text-9xl text-white shadow-[0px_4px_4px_0px_rgba(0,0,0,0.25)] transition-all duration-300 ease-out hover:bg-[rgb(251,194,199,0.7)]">
|
||||||
|
<PlusIcon />
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</>
|
||||||
|
)}
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user