From 949f5432a9fc17ccbe2819e011a9ebd710c3d3c1 Mon Sep 17 00:00:00 2001 From: Sivert Date: Sat, 28 Oct 2023 14:16:17 +0200 Subject: [PATCH] Massive styling update --- components/ArticleCard.tsx | 6 ++-- components/FeaturedCard.tsx | 18 ++++++----- posts/introduction.mdx | 1 - posts/websockets-superpower.mdx | 57 ++++++++++++++++++++++++++++++--- 4 files changed, 65 insertions(+), 17 deletions(-) diff --git a/components/ArticleCard.tsx b/components/ArticleCard.tsx index 19b0e0e..3ed55a4 100644 --- a/components/ArticleCard.tsx +++ b/components/ArticleCard.tsx @@ -25,15 +25,15 @@ export default function ArticleCard({ variants={ArticleCardVariant} className={`w-full h-fit border-0 ${className}`} > - + {post.image && ( -
+
diff --git a/components/FeaturedCard.tsx b/components/FeaturedCard.tsx index 335b0be..3bbc70c 100644 --- a/components/FeaturedCard.tsx +++ b/components/FeaturedCard.tsx @@ -15,7 +15,7 @@ export async function getStaticProps() { export default function FeaturedCard({ post, - className, + className = '', }: { post: Post; className?: string; @@ -23,15 +23,17 @@ export default function FeaturedCard({ return ( {post.image && ( - -
+ +
@@ -40,10 +42,10 @@ export default function FeaturedCard({ -

{post.title}

-

{post.description}

+

{post.title}

+

{post.description}