refactor: simplify Analytics component and update BaseLayout

* style: enhance Header component and update SCSS imports

- Improved the Header component by adding a site title with styling.
- Wrapped navigation links in a div for better structure.
- Updated SCSS imports across multiple components for consistency.

* refactor: simplify Analytics component and update BaseLayout

- Removed props from the Analytics component to streamline its usage.
- Updated BaseLayout to call Analytics without passing the title prop, ensuring default values are used.
This commit is contained in:
2025-06-11 00:12:57 +04:00
committed by GitHub
parent 34ce9f6162
commit 77e65cb92c
2 changed files with 2 additions and 17 deletions
+2 -2
View File
@@ -14,8 +14,8 @@ const { description, title } = Astro.props;
<html lang="ru">
<Head
description={description ?? import.meta.env.DEFAULT_DESCRIPTION}
title={title ?? import.meta.env.DEFAULT_TITLE}
description={description ?? import.meta.env.DEFAULT_DESCRIPTION}
/>
<body>
@@ -26,6 +26,6 @@ const { description, title } = Astro.props;
<slot />
</main>
<Analytics title={title ?? import.meta.env.DEFAULT_TITLE} />
<Analytics />
</body>
</html>