little fixes
This commit is contained in:
parent
2fd9645978
commit
d70298aa23
13
src/app/not-found.tsx
Normal file
13
src/app/not-found.tsx
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
'use client';
|
||||||
|
import { useEffect } from 'react';
|
||||||
|
import { useRouter } from 'next/navigation';
|
||||||
|
|
||||||
|
export default function Custom404() {
|
||||||
|
const router = useRouter();
|
||||||
|
|
||||||
|
useEffect(() => {
|
||||||
|
router.replace('/'); // Редирект на главную
|
||||||
|
}, []);
|
||||||
|
|
||||||
|
return null; // Или можно вернуть лоадер
|
||||||
|
}
|
||||||
@ -15,18 +15,20 @@ export default function Home() {
|
|||||||
<div className="grid place-items-center h-screen">
|
<div className="grid place-items-center h-screen">
|
||||||
<main className="font-[family-name:var(--font-geist-sans)]">
|
<main className="font-[family-name:var(--font-geist-sans)]">
|
||||||
|
|
||||||
<header className="text-center">
|
<header className="text-center px-2.5">
|
||||||
<h1 className="text-9xl font-mono">
|
<h1 className="md:text-9xl font-mono text-6xl">
|
||||||
Sergey Krylov
|
Sergey Krylov
|
||||||
</h1>
|
</h1>
|
||||||
|
|
||||||
<h2 className="text-4xl text-slate-500 font-mono">
|
<h2 className="md:text-4xl text-slate-500 font-mono text-2xl">
|
||||||
Fronted Software Engineer
|
Frontend Software Engineer
|
||||||
</h2>
|
</h2>
|
||||||
|
|
||||||
<h3 className="text-2xl text-slate-400 font-mono">
|
<Link href="https://t.me/ksv741" target="_blank">
|
||||||
@ksv741
|
<h3 className="text-2xl text-slate-400 font-mono">
|
||||||
</h3>
|
@ksv741
|
||||||
|
</h3>
|
||||||
|
</Link>
|
||||||
</header>
|
</header>
|
||||||
|
|
||||||
<div className="grid grid-cols-2 grid-rows-2 gap-16 h-64 mt-8">
|
<div className="grid grid-cols-2 grid-rows-2 gap-16 h-64 mt-8">
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user