From 824c6876b8e848169543bb29a74d5c720281819f Mon Sep 17 00:00:00 2001 From: Lukas Trombach Date: Tue, 31 Dec 2024 14:59:40 +0100 Subject: [PATCH] add styles for hero text --- src/components/AppLink.astro | 1 + src/components/ExternalLink.astro | 4 ++-- src/components/Home/About/AboutText.astro | 5 +++-- src/components/Home/About/ProseAbout.astro | 19 +++++++++++++++++++ src/components/Home/About/Tech.astro | 10 +++------- src/data/about/about-me.mdx | 4 ++-- src/data/about/tech.mdx | 4 ++-- 7 files changed, 32 insertions(+), 15 deletions(-) create mode 100644 src/components/Home/About/ProseAbout.astro diff --git a/src/components/AppLink.astro b/src/components/AppLink.astro index 7c99b217..4a5f3d70 100644 --- a/src/components/AppLink.astro +++ b/src/components/AppLink.astro @@ -17,6 +17,7 @@ const { {position === "before" && ( <> - + @@ -56,7 +56,7 @@ const imageProps = { - + )} diff --git a/src/components/Home/About/AboutText.astro b/src/components/Home/About/AboutText.astro index cb6c9b5a..8e1e8afd 100644 --- a/src/components/Home/About/AboutText.astro +++ b/src/components/Home/About/AboutText.astro @@ -1,6 +1,7 @@ --- import { getEntry, render } from "astro:content"; import Heading from "@components/Heading.astro"; +import ProseAbout from "./ProseAbout.astro"; const aboutMe = await getEntry("about", "about-me"); @@ -14,7 +15,7 @@ const { Content } = await render(aboutMe);
{title} -
+ -
+
diff --git a/src/components/Home/About/ProseAbout.astro b/src/components/Home/About/ProseAbout.astro new file mode 100644 index 00000000..9b592138 --- /dev/null +++ b/src/components/Home/About/ProseAbout.astro @@ -0,0 +1,19 @@ +--- +type Props = { + class?: string; +}; + +const { class: className } = Astro.props; +--- + +
*:not(:first-child)]:mt-6", + "motion-safe:*:timeline-slide-in-bottom", + className, + ]} +> + +
diff --git a/src/components/Home/About/Tech.astro b/src/components/Home/About/Tech.astro index b3b5c088..0e29e311 100644 --- a/src/components/Home/About/Tech.astro +++ b/src/components/Home/About/Tech.astro @@ -2,6 +2,7 @@ import { getEntry, render } from "astro:content"; import Heading from "@components/Heading.astro"; import TechGrid from "@components/Home/About/TechGrid.astro"; +import ProseAbout from "./ProseAbout.astro"; const tech = await getEntry("about", "tech"); @@ -21,14 +22,9 @@ const { Content } = await render(tech);
-
+ -
+
diff --git a/src/data/about/about-me.mdx b/src/data/about/about-me.mdx index ce49291c..31597e85 100644 --- a/src/data/about/about-me.mdx +++ b/src/data/about/about-me.mdx @@ -18,6 +18,6 @@ also familiar with low-level languages such as [Golang](https://go.dev), [Rust]( In my free time I like to code 🧑🏻‍💻, tinker with my NAS 🛠️, play my guitar 🎸 or go snowboarding 🏂. - - Download CV + + <>Download CV diff --git a/src/data/about/tech.mdx b/src/data/about/tech.mdx index 564c7e5b..0881708e 100644 --- a/src/data/about/tech.mdx +++ b/src/data/about/tech.mdx @@ -17,7 +17,7 @@ programming languages and frameworks. My background in high-performance computing has also given me a solid understanding of computer hardware and linux administration. - - Learn more about my work + + <>Learn more about my work