diff options
author | Valentin Popov <valentin@popov.link> | 2024-10-24 22:16:56 +0300 |
---|---|---|
committer | Valentin Popov <valentin@popov.link> | 2024-10-24 22:16:56 +0300 |
commit | 2aa8042e3db6d7bdb72cf14669bcd27c74620911 (patch) | |
tree | f5cb0f63bf6b0fcebdcda203f2fb1d698e164f54 /src/components | |
parent | f8d98d29337cebb28a324f6f0aa8b67c5f9727c8 (diff) | |
download | popov.link-2aa8042e3db6d7bdb72cf14669bcd27c74620911.tar.xz popov.link-2aa8042e3db6d7bdb72cf14669bcd27c74620911.zip |
Deleted the page headers
Diffstat (limited to 'src/components')
-rw-r--r-- | src/components/Header.astro | 64 |
1 files changed, 0 insertions, 64 deletions
diff --git a/src/components/Header.astro b/src/components/Header.astro deleted file mode 100644 index a42ff2a..0000000 --- a/src/components/Header.astro +++ /dev/null @@ -1,64 +0,0 @@ ---- -import { Icon } from "astro-icon/components"; - -const { pathname } = Astro.url; ---- - -<style lang="scss"> - @import "../scss/_variables.scss"; - - [data-icon] { - vertical-align: middle; - } - - header { - background-color: $colorBg; - left: 0; - line-height: 3.5em; - opacity: 0.975; - position: absolute; - right: 0; - top: 0; - } - - nav { - margin: auto; - max-width: 52em; - padding: 0 4em; - } - - a { - color: $colorText; - - &:visited { - color: $colorText; - } - } - - @media (width <=684px) { - header { - position: fixed; - text-align: center; - } - } -</style> - -<header> - <nav> - <a href="/"> - { - pathname !== "/" ? ( - <> - <Icon name="hugeicons:arrow-left-01" /> - <span>Home</span> - </> - ) : ( - <> - <Icon name="hugeicons:source-code" /> - <span>{import.meta.env.DEFAULT_TITLE}</span> - </> - ) - } - </a> - </nav> -</header> |