little fixes

This commit is contained in:
Sergey Krylov 2025-04-01 11:46:32 +03:00
parent 2fd9645978
commit d70298aa23
2 changed files with 22 additions and 7 deletions

13
src/app/not-found.tsx Normal file
View 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; // Или можно вернуть лоадер
}

View File

@ -15,18 +15,20 @@ export default function Home() {
<div className="grid place-items-center h-screen">
<main className="font-[family-name:var(--font-geist-sans)]">
<header className="text-center">
<h1 className="text-9xl font-mono">
<header className="text-center px-2.5">
<h1 className="md:text-9xl font-mono text-6xl">
Sergey Krylov
</h1>
<h2 className="text-4xl text-slate-500 font-mono">
Fronted Software Engineer
<h2 className="md:text-4xl text-slate-500 font-mono text-2xl">
Frontend Software Engineer
</h2>
<Link href="https://t.me/ksv741" target="_blank">
<h3 className="text-2xl text-slate-400 font-mono">
@ksv741
</h3>
</Link>
</header>
<div className="grid grid-cols-2 grid-rows-2 gap-16 h-64 mt-8">