Skip to content

Commit

Permalink
card stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
mudkipdev committed May 24, 2024
1 parent a9ea43d commit fc1da54
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions src/components/Card.astro → src/components/cards/Card.astro
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,15 @@ interface Props {
url?: string;
}
const { title, description, url } = Astro.props
const { title, description, url } = Astro.props;
---
<div class="card">
<slot name="before" />
<h2>{
url == null
? title
: <a href={url}>{title}</a>
}</h2>

<p>{description}</p>
<slot name="after" />
</div>
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
import Card from "@components/Card.astro";
import Card from "@components/cards/Card.astro";
import Date from "@components/Date.astro";
import { remark } from 'remark'
Expand Down
4 changes: 2 additions & 2 deletions src/pages/blog.astro
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
import Page from "@layouts/Page.astro";
import Post from "@components/Post.astro";
import Cards from "@components/Cards.astro";
import Post from "@components/cards/Post.astro";
import Cards from "@components/cards/Cards.astro";
import { getCollection } from "astro:content";
const posts = await getCollection("blog");
Expand Down
8 changes: 4 additions & 4 deletions src/pages/projects.astro
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
---
import Page from "@layouts/Page.astro";
import Card from "@components/Card.astro";
import Cards from "@components/Cards.astro";
import Card from "@components/cards/Card.astro";
import Cards from "@components/cards/Cards.astro";
---
<Page title="projects">
<Cards>
<Card
title="website"
description="My personal website written with Astro and TypeScript."
url = "https://github.com/mudkipdev/website"
url="https://github.com/mudkipdev/website"
/>

<Card
title="scnewsbot"
description="A bot for the r/starcitizen Discord server."
url = "https://github.com/mudkipdev/scnewsbot"
url="https://github.com/mudkipdev/scnewsbot"
/>
</Cards>
</Page>

0 comments on commit fc1da54

Please sign in to comment.