-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
57 additions
and
86 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
<script lang="ts"> | ||
import Post from './Post.svelte' | ||
export let data: any | ||
let non_md = [ | ||
{ | ||
title: 'Containerise', | ||
author: 'Racoda', | ||
url: 'https://www.nationstates.net/page=dispatch/id=1383002', | ||
keywords: ['guides'], | ||
description: 'Containers? What? Why? A detailed guide.', | ||
}, | ||
{ | ||
title: 'North Pacific Cards Guide', | ||
author: 'The Northern light', | ||
url: 'https://www.nationstates.net/page=dispatch/id=1301085', | ||
keywords: ['guides'], | ||
description: 'Interested in Building Your Dream Deck?', | ||
}, | ||
{ | ||
title: 'West Pacific Cards Guide', | ||
author: 'The West Pacific', | ||
url: 'https://www.nationstates.net/page=dispatch/id=1399925', | ||
keywords: ['guides'], | ||
description: "The West Pacific's guide to Trading Cards", | ||
}, | ||
] | ||
</script> | ||
|
||
<div class="mb-20"> | ||
<h2 class="mb-1 text-center text-3xl font-bold">Guides</h2> | ||
|
||
<p class="mb-16 text-center text-lg lg:w-auto"> | ||
Various guides for setting up tools and prerequisites. | ||
</p> | ||
|
||
<div class="mx-auto grid max-w-lg grid-cols-1 justify-center gap-4 sm:grid-cols-2 lg:max-w-5xl"> | ||
{#each data.posts as post} | ||
<Post author={post.author} description={post.description} title={post.title} url={post.url} /> | ||
{/each} | ||
{#each non_md as post} | ||
<Post author={post.author} description={post.description} title={post.title} url={post.url} /> | ||
{/each} | ||
</div> | ||
</div> |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
42 changes: 2 additions & 40 deletions
42
src/routes/(cards-resources)/resources/guides/+page.svelte
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,50 +1,12 @@ | ||
<script lang="ts"> | ||
import Guides from '$lib/components/Guides.svelte' | ||
import Head from '$lib/components/Head.svelte' | ||
import Post from '$lib/components/Post.svelte' | ||
import type { PageData } from './$types' | ||
export let data: PageData | ||
let non_md = [ | ||
{ | ||
title: 'Containerise', | ||
author: 'Racoda', | ||
url: 'https://www.nationstates.net/page=dispatch/id=1383002', | ||
keywords: ['guides'], | ||
description: 'Containers? What? Why? A detailed guide.', | ||
}, | ||
{ | ||
title: 'North Pacific Cards Guide', | ||
author: 'The Northern light', | ||
url: 'https://www.nationstates.net/page=dispatch/id=1301085', | ||
keywords: ['guides'], | ||
description: 'Interested in Building Your Dream Deck?', | ||
}, | ||
{ | ||
title: 'West Pacific Cards Guide', | ||
author: 'The West Pacific', | ||
url: 'https://www.nationstates.net/page=dispatch/id=1399925', | ||
keywords: ['guides'], | ||
description: "The West Pacific's guide to Trading Cards", | ||
}, | ||
] | ||
</script> | ||
|
||
<Head title={'Hare - Guides'} description={'Various guides for NationStates cards.'} /> | ||
|
||
<div class="mb-20"> | ||
<h2 class="mb-1 text-center text-3xl font-bold">Guides</h2> | ||
|
||
<p class="mb-16 text-center text-lg lg:w-auto"> | ||
Various guides for setting up tools and prerequisites. | ||
</p> | ||
|
||
<div class="grid max-w-lg grid-cols-2 justify-center gap-4 lg:max-w-5xl"> | ||
{#each data.posts as post} | ||
<Post author={post.author} description={post.description} title={post.title} url={post.url} /> | ||
{/each} | ||
{#each non_md as post} | ||
<Post author={post.author} description={post.description} title={post.title} url={post.url} /> | ||
{/each} | ||
</div> | ||
</div> | ||
<Guides {data} /> |