Skip to content

Commit 6d9b308

Browse files
committed
Add first article
1 parent e704fec commit 6d9b308

File tree

3 files changed

+483
-42
lines changed

3 files changed

+483
-42
lines changed

src/lib/constants/articles.ts

Lines changed: 2 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -21,46 +21,9 @@ export const addArticle = (article: Article) => {
2121
};
2222

2323
export const NUMWORKS_PROGRAMMING = addArticle({
24-
title: 'Programming with a numworks calculator',
24+
title: 'Programming with a NumWorks calculator',
2525
id: 'numworks-programming',
26-
description: 'oaisjfiauhsefiu hsoiufh oiasehf iosf uahf iushf',
26+
description: 'An introduction on programming with Python and C on a NumWorks calculator',
2727
tags: [ArticleTag.Python, ArticleTag.CCpp, ArticleTag.Embedded],
2828
date: new Date(2025, 5, 28)
2929
});
30-
31-
export const BLEBLE = addArticle({
32-
title: 'ADBASBD',
33-
id: 'numworks-programming',
34-
description: 'wqfeiu hsofh aoiewhf oiashdfoi aheoifh aoishf adsf hf jahljf ',
35-
tags: [ArticleTag.Embedded],
36-
date: new Date(2025, 5, 28)
37-
});
38-
39-
addArticle({
40-
title: 'ADBASBD',
41-
id: 'numworks-programming',
42-
description: 'wqfeiu hsofh aoiewhf oiashdfoi aheoifh aoishf ',
43-
tags: [ArticleTag.Embedded],
44-
date: new Date(2025, 5, 28)
45-
});
46-
addArticle({
47-
title: 'ADBASBD',
48-
id: 'numworks-programming',
49-
description: 'wqfeiu hsofh aoiewhf oiashdfoi aheoifh aoishf ',
50-
tags: [ArticleTag.Embedded],
51-
date: new Date(2025, 5, 28)
52-
});
53-
addArticle({
54-
title: 'ADBASBD',
55-
id: 'numworks-programming',
56-
description: 'wqfeiu hsofh aoiewhf oiashdfoi aheoifh aoishf ',
57-
tags: [ArticleTag.Embedded],
58-
date: new Date(2025, 5, 28)
59-
});
60-
addArticle({
61-
title: 'ADBASBD',
62-
id: 'numworks-programming',
63-
description: 'wqfeiu hsofh aoiewhf oiashdfoi aheoifh aoishf ',
64-
tags: [ArticleTag.Embedded],
65-
date: new Date(2025, 5, 28)
66-
});

src/routes/blog/+page.svelte

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
11
<script lang="ts">
22
import ArticleCard from '$lib/components/blog/ArticleCard.svelte';
3-
import type { Article } from '$lib/constants/articles';
43
import { articles } from '$lib/constants/articles';
54
</script>
65

76
<div class="flex flex-col space-y-4">
87
<p class="text-foreground text-2xl font-bold">Blog</p>
9-
<div class="grid grid-cols-2 gap-4">
8+
<div class="grid grid-cols-1 gap-4 md:grid-cols-2">
109
{#each articles as article}
1110
<ArticleCard {article} />
1211
{/each}

0 commit comments

Comments
 (0)