fill most content + improve ux

This commit is contained in:
Salam-vsem
2025-05-13 17:00:04 +03:00
parent 0fe2520261
commit f59c0085a3
41 changed files with 307 additions and 169 deletions

View File

@@ -1,4 +1,5 @@
---
import { useTranslations } from '@/i18n/utils'
import '@/styles/global.css'
type Props = {
@@ -6,6 +7,7 @@ type Props = {
}
const { title } = Astro.props
const t = useTranslations(Astro.currentLocale)
---
<!doctype html>
@@ -13,9 +15,17 @@ const { title } = Astro.props
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width" />
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
<!-- <link rel="icon" type="image/svg+xml" href="/favicon.svg" /> -->
<meta name="generator" content={Astro.generator} />
<title>{title}</title>
<meta name="description" content={t('seo.meta.description')} />
<meta name="keywords" content={t('seo.meta.keywords')} />
<meta property="og:title" content={`${title} | ${t('seo.og.title')}`} />
<meta property="og:description" content={t('seo.og.description')} />
<meta property="og:type" content="website" />
<meta property="og:locale" content={Astro.currentLocale} />
<meta name="robots" content="index, follow" />
<link rel="canonical" href={Astro.url} />
<title>{`${title} | ${t('seo.og.title')}`}</title>
</head>
<body class="flex flex-col">
<slot />