Skip to content

Commit

Permalink
Merge pull request #76 from tjheffner/add-gallery
Browse files Browse the repository at this point in the history
Add gallery
  • Loading branch information
tjheffner authored Jan 20, 2024
2 parents ab9d5ce + c07def5 commit a0b922c
Show file tree
Hide file tree
Showing 22 changed files with 568 additions and 296 deletions.
18 changes: 18 additions & 0 deletions .github/ISSUE_TEMPLATE/new-gallery-post.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
---
name: New Gallery post
about: Template with front matter for gallery posts
title: ''
labels: Gallery
assignees: ''

---

*** swap these for dashes for front matter
title: "post title"
date: 2022-01-16 00:00:00
description: "will show underneath title on list page"
image: upload cover image here
alt: image alt text
***

post content goes here, underneath
96 changes: 40 additions & 56 deletions src/lib/components/MobileMenu.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,41 @@
}, 300);
}
}
export const links = [
{
name: 'Home',
href: '/'
},
{
name: 'Posts',
href: '/blog'
},
{
name: 'Work',
href: '/work'
},
{
name: 'Gallery',
href: '/gallery'
},
{
name: 'Blogroll',
href: '/blogroll'
},
{
name: 'About',
href: '/about'
},
{
name: 'Github',
href: 'https://github.com/tjheffner'
},
{
name: 'Tweets',
href: 'https://twitter.com/foodpyramids'
},
]
</script>

<div class="ml-[-0.60rem] md:hidden">
Expand Down Expand Up @@ -60,73 +95,22 @@
</button>
{#if isOpen}
<ul
class="menu absolute flex flex-col bg-lime-300 text-2xl uppercase dark:bg-gray-900"
class="menu absolute flex flex-col bg-red-300 text-2xl uppercase dark:bg-orange-900"
class:menuRendered={isMenuRendered}
>
{#each links as link, index}
<li
class="border-b border-indigo-700 font-semibold text-gray-900 dark:border-yellow-400 dark:text-gray-100"
style="transition-delay: 150ms;"
>
<a
class="flex w-auto pb-4"
data-sveltekit-prefetch
on:click={() => setTimeout(() => (isOpen = false), 300)}
href="/">Home</a
>
</li>
<li
class="border-b border-indigo-700 font-semibold text-gray-900 dark:border-yellow-400 dark:text-gray-100"
style="transition-delay: 250ms;"
>
<a
class="flex w-auto pb-4"
data-sveltekit-prefetch
on:click={() => setTimeout(() => (isOpen = false), 300)}
href="/blog">Posts</a
>
</li>
<li
class="border-b border-indigo-700 font-semibold text-gray-900 dark:border-yellow-400 dark:text-gray-100"
style="transition-delay: 250ms;"
style="transition-delay: {(index * 50) + 50}ms"
>
<a
class="flex w-auto pb-4"
data-sveltekit-prefetch
on:click={() => setTimeout(() => (isOpen = false), 300)}
href="/work">Work</a
>
</li>
<li
class="border-b border-indigo-700 font-semibold text-gray-900 dark:border-yellow-400 dark:text-gray-100"
style="transition-delay: 350ms;"
>
<a
class="flex w-auto pb-4"
data-sveltekit-prefetch
on:click={() => setTimeout(() => (isOpen = false), 300)}
href="/about">About</a
>
</li>
<li
class="border-b border-indigo-700 font-semibold text-gray-900 dark:border-yellow-400 dark:text-gray-100"
style="transition-delay: 400ms;"
>
<a
class="flex w-auto pb-4"
on:click={() => setTimeout(() => (isOpen = false), 300)}
href="https://github.com/tjheffner">GitHub</a
>
</li>
<li
class="border-b border-indigo-700 font-semibold text-gray-900 dark:border-yellow-400 dark:text-gray-100"
style="transition-delay: 325ms;"
>
<a
class="flex w-auto pb-4"
on:click={() => setTimeout(() => (isOpen = false), 200)}
href="https://twitter.com/foodpyramids">Tweets</a
href={link.href}>{link.name}</a
>
</li>
{/each}
</ul>
{/if}
</div>
Expand Down
Loading

0 comments on commit a0b922c

Please sign in to comment.