diff --git a/cyperpunk.de/public/blog.png b/cyperpunk.de/public/blog.png new file mode 100644 index 0000000..b17e462 Binary files /dev/null and b/cyperpunk.de/public/blog.png differ diff --git a/cyperpunk.de/src/components/Sidebar.astro b/cyperpunk.de/src/components/Sidebar.astro index 3cd8b97..e4ec845 100644 --- a/cyperpunk.de/src/components/Sidebar.astro +++ b/cyperpunk.de/src/components/Sidebar.astro @@ -1,4 +1,12 @@ --- +import type { Props as AstroProps } from 'astro'; + +interface Props { + tags?: string[]; +} +const { tags = [] } = Astro.props; +const selectedTag = Astro.url.searchParams.get('tag'); + const links = [ { label: "github", href: "https://github.com/DerGrumpf", icon: "/github.png" }, { label: "gitea", href: "https://git.cyperpunk.de", icon: "/git.png" }, @@ -30,13 +38,15 @@ const links = [
diff --git a/cyperpunk.de/src/components/Snake.astro b/cyperpunk.de/src/components/Snake.astro new file mode 100644 index 0000000..8ff3402 --- /dev/null +++ b/cyperpunk.de/src/components/Snake.astro @@ -0,0 +1,243 @@ +--- +--- + + + diff --git a/cyperpunk.de/src/components/Topbar.astro b/cyperpunk.de/src/components/Topbar.astro index c73768a..7a3d490 100644 --- a/cyperpunk.de/src/components/Topbar.astro +++ b/cyperpunk.de/src/components/Topbar.astro @@ -1,6 +1,7 @@ --- const navItems = [ { label: "Home", href: "/" }, + { label: "Blog", href: "/blog" }, { label: "About", href: "/about" }, ]; @@ -8,7 +9,7 @@ const currentPath = Astro.url.pathname; ---
- +
+ + + diff --git a/cyperpunk.de/src/styles/global.css b/cyperpunk.de/src/styles/global.css index e7633c8..926f1a9 100644 --- a/cyperpunk.de/src/styles/global.css +++ b/cyperpunk.de/src/styles/global.css @@ -201,14 +201,14 @@ --ctp-accent: var(--ctp-mauve); } -[data-theme="latte"] .icon-mono { - filter: none; -} - .icon-mono { filter: invert(1); } +[data-theme="latte"] .icon-mono { + filter: none; +} + body { background-color: var(--ctp-base); color: var(--ctp-text); @@ -284,6 +284,18 @@ article a:hover { color: var(--ctp-peach); } +/* Images */ +article img { + max-width: 100%; + max-height: 500px; + object-fit: contain; + border-radius: 0.5rem; + display: block; + margin: 1rem auto; + padding: 2px; + background: linear-gradient(to right, var(--ctp-red), var(--ctp-peach), var(--ctp-yellow), var(--ctp-green), var(--ctp-teal), var(--ctp-blue), var(--ctp-mauve)); +} + /* Horizontal Line */ article hr { border: none; @@ -304,8 +316,7 @@ article hr { /* Code Block*/ article pre code { background-color: transparent; - padding: 0; -} + padding: 0} article code { background-color: var(--ctp-surface);