Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add gallery #76

Merged
merged 4 commits into from
Jan 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading