From b3bb15dff730c40655e7b02959b9016d7f25cfdc Mon Sep 17 00:00:00 2001 From: Sergey Elpashev Date: Fri, 6 Jun 2025 15:57:00 +0300 Subject: [PATCH] feat: styles fix --- src/app/page.tsx | 29 ++++++++++++++++++++++------- src/components/Block.tsx | 4 ++-- 2 files changed, 24 insertions(+), 9 deletions(-) diff --git a/src/app/page.tsx b/src/app/page.tsx index 648b6eb..4144c23 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -1,26 +1,41 @@ +"use client"; import { Block } from "@/components/Block"; import { Page } from "@/components/Page"; +import { useState } from "react"; export default function Home() { + const onCopyClick = async () => { + await navigator.clipboard.writeText(window.location.href); + setIsCopied(true); + setTimeout(() => { + setIsCopied(false); + }, 2000); + }; + const [isCopied, setIsCopied] = useState(false); return (
- Nwaifu Proxy + Nwaifu Proxy
- Статус: - Активна + Статус: + Активна
- Активна до: - 01.01.2023 + Активна до: + 01.01.2023
-
- +
+
diff --git a/src/components/Block.tsx b/src/components/Block.tsx index 5aca63c..8754a5e 100644 --- a/src/components/Block.tsx +++ b/src/components/Block.tsx @@ -4,8 +4,8 @@ type BlockProps = PropsWithChildren<{ name?: string }>; const Block: React.FC = ({ children, name = "" }) => { return ( -
- {name && {name}} +
+ {name && {name}} {children}
);