From e3eede4d496a4a8b8f9ad870d195a189dcc065bd Mon Sep 17 00:00:00 2001 From: Tanner Heffner Date: Tue, 23 Jan 2024 20:26:14 -0800 Subject: [PATCH 1/3] refactor to use text-secondary --- .github/ISSUE_TEMPLATE/new-gallery-post.md | 1 + src/lib/components/Header.svelte | 2 +- src/lib/components/Icon.svelte | 4 ++-- src/lib/components/PostItem.svelte | 2 +- src/lib/components/ProjectItem.svelte | 2 +- src/lib/components/Slice.svelte | 3 ++- src/lib/content.js | 3 ++- src/routes/(main)/gallery/+page.svelte | 8 ++++++-- src/tailwind.css | 5 +++++ 9 files changed, 21 insertions(+), 9 deletions(-) diff --git a/.github/ISSUE_TEMPLATE/new-gallery-post.md b/.github/ISSUE_TEMPLATE/new-gallery-post.md index 5e95b74..0afa1ac 100644 --- a/.github/ISSUE_TEMPLATE/new-gallery-post.md +++ b/.github/ISSUE_TEMPLATE/new-gallery-post.md @@ -12,6 +12,7 @@ date: 2022-01-16 00:00:00 description: "will show underneath title on list page" image: upload cover image here alt: image alt text +warn: true *** post content goes here, underneath diff --git a/src/lib/components/Header.svelte b/src/lib/components/Header.svelte index c5893b3..d794486 100644 --- a/src/lib/components/Header.svelte +++ b/src/lib/components/Header.svelte @@ -33,7 +33,7 @@ class="flex mr-3 h-9 w-9 items-center justify-center rounded-lg" > diff --git a/src/lib/components/PostItem.svelte b/src/lib/components/PostItem.svelte index 4fe6322..6b8d88c 100644 --- a/src/lib/components/PostItem.svelte +++ b/src/lib/components/PostItem.svelte @@ -40,7 +40,7 @@ diff --git a/src/lib/components/ProjectItem.svelte b/src/lib/components/ProjectItem.svelte index 4633591..beb1f7e 100644 --- a/src/lib/components/ProjectItem.svelte +++ b/src/lib/components/ProjectItem.svelte @@ -21,7 +21,7 @@ diff --git a/src/lib/components/Slice.svelte b/src/lib/components/Slice.svelte index 7b56da1..7a74894 100644 --- a/src/lib/components/Slice.svelte +++ b/src/lib/components/Slice.svelte @@ -3,6 +3,7 @@ export let date = false export let prose = true export let full = false + export let warn = false let sliceClasses = "slice mb-6 grid w-full grid-cols-4 gap-4 py-8 md:mb-8 md:gap-8 md:py-12 lg:gap-12 xl:gap-16" @@ -29,7 +30,7 @@ " > - {title} + {title}{#if warn}*{/if} {#if date} diff --git a/src/lib/content.js b/src/lib/content.js index 896ce1d..16fce4f 100644 --- a/src/lib/content.js +++ b/src/lib/content.js @@ -111,7 +111,8 @@ function parseIssue(issue, label) { type: 'gallery', ...base, alt: data.alt, - images: data.images + images: data.images, + warn: data.warn || false } break case 'Published': diff --git a/src/routes/(main)/gallery/+page.svelte b/src/routes/(main)/gallery/+page.svelte index 2f0935e..ccc1530 100644 --- a/src/routes/(main)/gallery/+page.svelte +++ b/src/routes/(main)/gallery/+page.svelte @@ -27,18 +27,22 @@ details, photos*, etc. from past adventures

- *advance warning many of the pages are very image heavy + * advance warning many of the pages are very image heavy

{#each items as trip} - + {trip.alt} {'>> ' + trip.description + ' <<'} {/each} + +

+ * seriously, this page has at least 40 MB worth of images. +