From 18514846de3270e0c28203a739840094f2cd95f9 Mon Sep 17 00:00:00 2001 From: Dawid Rycerz Date: Mon, 21 Jul 2025 23:53:10 +0300 Subject: Add final general version --- src/components/widgets/Header.astro | 165 ++---------------------------------- 1 file changed, 5 insertions(+), 160 deletions(-) (limited to 'src/components/widgets/Header.astro') diff --git a/src/components/widgets/Header.astro b/src/components/widgets/Header.astro index ff4a3aa..f67ed7e 100644 --- a/src/components/widgets/Header.astro +++ b/src/components/widgets/Header.astro @@ -1,167 +1,12 @@ --- import { Icon } from 'astro-icon/components'; -import Logo from '~/components/Logo.astro'; -import ToggleTheme from '~/components/common/ToggleTheme.astro'; -import ToggleMenu from '~/components/common/ToggleMenu.astro'; -import Button from '~/components/ui/Button.astro'; - -import { getHomePermalink } from '~/utils/permalinks'; -import { trimSlash, getAsset } from '~/utils/permalinks'; -import type { CallToAction } from '~/types'; - -interface Link { - text?: string; - href?: string; - ariaLabel?: string; - icon?: string; -} - -interface MenuLink extends Link { - links?: Array; -} - -export interface Props { - id?: string; - links?: Array; - actions?: Array; - isSticky?: boolean; - isDark?: boolean; - isFullWidth?: boolean; - showToggleTheme?: boolean; - showRssFeed?: boolean; - position?: string; -} - -const { - id = 'header', - links = [], - actions = [], - isSticky = false, - isDark = false, - isFullWidth = false, - showToggleTheme = false, - showRssFeed = false, - position = 'center', -} = Astro.props; - -const currentPath = `/${trimSlash(new URL(Astro.url).pathname)}`; --- -
-
-
-
- - - -
- -
-
- -
-
-
- {showToggleTheme && } - { - showRssFeed && ( - - - - ) - } -
- { - actions?.length ? ( - - {actions.map((btnProps) => ( -
+
+
+
+ + grestech.biuro@gmail.com
-- cgit v1.2.3