add metadata

This commit is contained in:
vchikalkin 2024-12-08 20:59:38 +03:00
parent ffb749d3c4
commit 4ee687768c
2 changed files with 20 additions and 0 deletions

View File

@ -3,6 +3,22 @@ import { Contacts } from '@/components/contacts';
import { Person } from '@/components/person';
import { Skills } from '@/components/skills';
import { Work } from '@/components/work';
import { type Metadata } from 'next';
import { getTranslations } from 'next-intl/server';
type Parameters = {
params: {
locale: string;
};
};
export async function generateMetadata({ params: { locale } }: Parameters): Promise<Metadata> {
const t = await getTranslations({ locale, namespace: 'HomePage' });
return {
title: t('title'),
};
}
export default function HomePage() {
return (

View File

@ -1,4 +1,8 @@
{
"HomePage": {
"title": "Влад Чикалкин",
"description": "веб-разработчик React Next.js Typescript"
},
"Person": {
"hello": "Привет! Я Влад 👋",
"description": "Веб-разработчик с широким опытом работы в различных проектах. Люблю технологии и создавать приятный софт"