From 1ecdf57df81df866b97d6ba5919e1175bcf8fd71 Mon Sep 17 00:00:00 2001 From: Jan-Marlon Leibl Date: Fri, 25 Apr 2025 13:44:27 +0200 Subject: [PATCH] refactor: remove blog section and update navigation items --- src/components/layout/Header.astro | 4 +- src/components/layout/MobileMenu.astro | 1 - src/components/sections/BlogPreview.astro | 150 ---------------------- src/pages/index.astro | 2 - 4 files changed, 2 insertions(+), 155 deletions(-) delete mode 100644 src/components/sections/BlogPreview.astro diff --git a/src/components/layout/Header.astro b/src/components/layout/Header.astro index b806365..e2a03d1 100644 --- a/src/components/layout/Header.astro +++ b/src/components/layout/Header.astro @@ -37,10 +37,10 @@ import MobileMenu from "./MobileMenu.astro"; class="flex bg-black/5 backdrop-blur-md overflow-hidden theme-border border divide-x divide-white/5 shadow-sm rounded-xl" > { - ["About", "Work", "Blog", "Contact"].map((item, index) => ( + ["About", "Work", "Contact"].map((item, index) => ( {item} diff --git a/src/components/layout/MobileMenu.astro b/src/components/layout/MobileMenu.astro index a9685ce..dbe0be1 100644 --- a/src/components/layout/MobileMenu.astro +++ b/src/components/layout/MobileMenu.astro @@ -4,7 +4,6 @@ import { FaGithub, FaLinkedin, FaEnvelope } from "react-icons/fa"; const navItems = [ { label: "About", href: "#about" }, { label: "Work", href: "#work" }, - { label: "Blog", href: "#blog" }, { label: "Contact", href: "#contact" }, ]; --- diff --git a/src/components/sections/BlogPreview.astro b/src/components/sections/BlogPreview.astro deleted file mode 100644 index 3c7dc80..0000000 --- a/src/components/sections/BlogPreview.astro +++ /dev/null @@ -1,150 +0,0 @@ ---- -import FadeIn from "../ui/FadeIn.astro"; - -const blogPosts = [ - { - title: "Best Practices for Modern PHP Development", - excerpt: - "Explore how to leverage PHP 8.x features and modern tools to create maintainable and performant PHP applications.", - date: "May 15, 2023", - slug: "best-practices-modern-php-development", - tags: ["PHP", "Development", "Best Practices"], - }, - { - title: "Building Type-Safe APIs with TypeScript", - excerpt: - "How to use TypeScript's powerful type system to create robust and maintainable API integrations in your frontend applications.", - date: "April 3, 2023", - slug: "building-type-safe-apis-typescript", - tags: ["TypeScript", "API", "Frontend"], - }, - { - title: "Performance Optimization Techniques for Web Applications", - excerpt: - "A comprehensive guide to identifying and solving performance bottlenecks in modern web applications.", - date: "March 12, 2023", - slug: "performance-optimization-web-applications", - tags: ["Performance", "Web", "Optimization"], - }, -]; ---- - -
-
- -
-
- diff --git a/src/pages/index.astro b/src/pages/index.astro index 1dae21e..23f7735 100644 --- a/src/pages/index.astro +++ b/src/pages/index.astro @@ -5,7 +5,6 @@ import SkipToContent from "../components/ui/SkipToContent.astro"; import Hero from "../components/sections/Hero.astro"; import About from "../components/sections/About.astro"; import Work from "../components/sections/Work.astro"; -import BlogPreview from "../components/sections/BlogPreview.astro"; import Contact from "../components/sections/Contact.astro"; import Footer from "../components/layout/Footer.astro"; @@ -32,7 +31,6 @@ import "@fontsource/instrument-sans/500.css"; -