Skip to content

Commit fe8d146

Browse files
committed
restructure comopnents
1 parent 0670cfc commit fe8d146

File tree

30 files changed

+69
-46
lines changed

30 files changed

+69
-46
lines changed

apps/codingcatdev/src/app.postcss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@
33
@import './styles/app.css';
44
@import './styles/nav-list.css';
55
@import './styles/grid-card.css';
6+
@import './styles/markdown.css';

apps/codingcatdev/src/lib/components/content/ContentCards.svelte renamed to apps/codingcatdev/src/routes/(content-list)/ContentCards.svelte

File renamed without changes.

apps/codingcatdev/src/routes/(content-list)/blog/+page.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<script lang="ts">
2-
import ContentCards from '$lib/components/content/ContentCards.svelte';
2+
import ContentCards from '../ContentCards.svelte';
33
import { ContentType } from '$lib/types/index';
44
import type { PageData } from './$types';
55
export let data: PageData;

apps/codingcatdev/src/routes/(content-list)/courses/+page.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<script lang="ts">
2-
import ContentCards from '$lib/components/content/ContentCards.svelte';
2+
import ContentCards from '../ContentCards.svelte';
33
import { ContentType } from '$lib/types/index';
44
import type { PageData } from './$types';
55
export let data: PageData;

apps/codingcatdev/src/routes/(content-list)/frameworks/+page.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<script lang="ts">
2-
import ContentCards from '$lib/components/content/ContentCards.svelte';
2+
import ContentCards from '../ContentCards.svelte';
33
import { ContentType } from '$lib/types/index';
44
import type { PageData } from './$types';
55
export let data: PageData;

apps/codingcatdev/src/routes/(content-list)/languages/+page.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<script lang="ts">
2-
import ContentCards from '$lib/components/content/ContentCards.svelte';
2+
import ContentCards from '../ContentCards.svelte';
33
import { ContentType } from '$lib/types/index';
44
import type { PageData } from './$types';
55
export let data: PageData;

apps/codingcatdev/src/routes/(content-list)/podcasts/+page.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<script lang="ts">
2-
import ContentCards from '$lib/components/content/ContentCards.svelte';
2+
import ContentCards from '../ContentCards.svelte';
33
import { ContentType } from '$lib/types/index';
44
import type { PageData } from './$types';
55
export let data: PageData;

apps/codingcatdev/src/routes/(content-list)/schedule/+page.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<script>
2-
import ContentCards from '$lib/components/content/ContentCards.svelte';
2+
import ContentCards from '../ContentCards.svelte';
33
import { ContentType } from '$lib/types/index';
44
55
/** @type {import('./$types').PageData} */

apps/codingcatdev/src/routes/(content-list)/tutorials/+page.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<script>
2-
import ContentCards from '$lib/components/content/ContentCards.svelte';
2+
import ContentCards from '../ContentCards.svelte';
33
import { ContentType } from '$lib/types/index';
44
55
/** @type {import('./$types').PageData} */
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
import { listContent } from '$lib/server/content';
2+
import { ContentType } from '$lib/types';
3+
import type { LayoutServerLoad } from './$types';
4+
5+
export const load = (async () => {
6+
return {
7+
course: await (await listContent({ contentType: ContentType.course, limit: 3 })).content,
8+
tutorial: await (await listContent({ contentType: ContentType.tutorial, limit: 3 })).content,
9+
podcast: await (await listContent({ contentType: ContentType.podcast, limit: 3 })).content,
10+
post: await (await listContent({ contentType: ContentType.post, limit: 3 })).content
11+
};
12+
}) satisfies LayoutServerLoad;

0 commit comments

Comments
 (0)