From a36e029a8019951a3efe21b31f7eedbe02f8142a Mon Sep 17 00:00:00 2001 From: liyunze <50455574+liyunze-coding@users.noreply.github.com> Date: Tue, 8 Oct 2024 19:09:58 +1100 Subject: [PATCH] added blog post --- src/components/elements/Card.astro | 116 ++++++++------- .../sections/ContactComponent.svelte | 21 +-- src/components/sections/FooterComponent.astro | 5 + src/components/sections/NavBar.astro | 32 ++-- src/content/blog/welcome.md | 36 +++++ src/content/config.ts | 17 +++ src/env.d.ts | 1 + src/pages/blog/[...slug].astro | 139 ++++++++++++++++++ src/pages/blog/index.astro | 88 +++++++++++ src/pages/contact.astro | 2 + src/pages/experience.astro | 2 + src/pages/faq.astro | 44 ++++-- src/pages/index.astro | 20 +-- src/pages/projects.astro | 2 + src/pages/skills.astro | 134 ++++++++--------- src/pages/socials.astro | 2 + src/pages/what-i-do.astro | 2 + 17 files changed, 491 insertions(+), 172 deletions(-) create mode 100644 src/components/sections/FooterComponent.astro create mode 100644 src/content/blog/welcome.md create mode 100644 src/content/config.ts create mode 100644 src/pages/blog/[...slug].astro create mode 100644 src/pages/blog/index.astro diff --git a/src/components/elements/Card.astro b/src/components/elements/Card.astro index 3574c79..74b18dd 100644 --- a/src/components/elements/Card.astro +++ b/src/components/elements/Card.astro @@ -1,72 +1,78 @@ --- interface Props { - primaryColor: string; - bgColor?: string | undefined; - scaleOnHover?: boolean | undefined; + primaryColor: string; + bgColor?: string | undefined; + scaleOnHover?: boolean | undefined; + pixelHeight?: string | undefined; } -const { primaryColor, bgColor = "#282828", scaleOnHover = false } = Astro.props; +const { + primaryColor, + bgColor = "#282828", + scaleOnHover = false, + pixelHeight = "70px", +} = Astro.props; ---
+ Published + { + new Date(entry.data.pubDate).toLocaleDateString("en-UK", { + day: "numeric", + month: "long", + year: "numeric", + }) + } +
+by {entry.data.author}
+{entry.data.description}
+ ++ This is where I upload my blogs. No paywalls, no ads, no + bullshit. +
++ {blog.data.description} +
+ +