diff --git a/src/components/Card.jsx b/src/components/Card.jsx
index 279c70f..ab14539 100644
--- a/src/components/Card.jsx
+++ b/src/components/Card.jsx
@@ -2,93 +2,94 @@ import Link from 'next/link'
import clsx from 'clsx'
function ChevronRightIcon(props) {
- return (
-
- )
+ return (
+
+ )
}
-export function Card({ as: Component = 'div', className, children }) {
- return (
-
- {children}
-
- )
+export function Card({as: Component = 'div', className, small, children}) {
+ return (
+
+ {children}
+
+ )
}
-Card.Link = function CardLink({ children, ...props }) {
- return (
- <>
-
-
-
- {children}
-
- >
- )
+Card.Link = function CardLink({children, ...props}) {
+ return (
+ <>
+
+
+
+ {children}
+
+ >
+ )
}
-Card.Title = function CardTitle({ as: Component = 'h2', href, children }) {
- return (
-
- {href ? {children} : children}
-
- )
+Card.Title = function CardTitle({as: Component = 'h2', href, children}) {
+ return (
+
+ {href ? {children} : children}
+
+ )
}
-Card.Description = function CardDescription({ children }) {
- return (
-
- {children}
-
- )
+Card.Description = function CardDescription({children}) {
+ return (
+
+ {children}
+
+ )
}
-Card.Cta = function CardCta({ children }) {
- return (
-
- {children}
-
-
- )
+Card.Cta = function CardCta({children}) {
+ return (
+
+ {children}
+
+
+ )
}
Card.Eyebrow = function CardEyebrow({
- as: Component = 'p',
- decorate = false,
- className,
- children,
- ...props
-}) {
- return (
-
- {decorate && (
-
-
+ {decorate && (
+
+
- )}
- {children}
-
- )
+ )}
+ {children}
+
+ )
}
diff --git a/src/pages/index.jsx b/src/pages/index.jsx
index 7c0baa2..04643b2 100644
--- a/src/pages/index.jsx
+++ b/src/pages/index.jsx
@@ -245,7 +245,7 @@ export async function getStaticProps() {
return {
props: {
articles: (await getAllArticles())
- .slice(0, 2)
+ .slice(0, 1)
.map(({component, ...meta}) => meta),
},
}
diff --git a/src/pages/writing/index.jsx b/src/pages/writing/index.jsx
index 7c6d259..c9601c3 100644
--- a/src/pages/writing/index.jsx
+++ b/src/pages/writing/index.jsx
@@ -7,29 +7,20 @@ import {formatDate} from '@/lib/formatDate'
function Article({article}) {
return (
-
-
+
+
{article.title}
{formatDate(article.date)}
- {article.description}
- Read article
-
- {formatDate(article.date)}
-
)
}
@@ -57,8 +48,8 @@ export default function ArticlesIndex({articles}) {
intro="All of my long-form thoughts on software engineering, and more, displayed in chronological order."
gradient="bg-gradient-to-r from-pink-500 to-violet-500"
>
-
-
+
+
{articles.map((article) => (
))}