Skip to content

Commit

Permalink
feat: theme-color in safari
Browse files Browse the repository at this point in the history
Closes swyxio#19
  • Loading branch information
dmoosocool committed Feb 8, 2022
1 parent 7610d73 commit 874bbec
Showing 1 changed file with 32 additions and 18 deletions.
50 changes: 32 additions & 18 deletions src/routes/__layout.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,16 @@
</script>

<svelte:head>
<link rel="alternate" type="application/rss+xml" title={"RSS Feed for " + SITE_TITLE} href="/rss.xml" />
<link
rel="alternate"
type="application/rss+xml"
title={'RSS Feed for ' + SITE_TITLE}
href="/rss.xml"
/>
<meta name="theme-color" content="#facc15" media="(prefers-color-scheme: light)" />
<meta name="theme-color" content="#3730a3" media="(prefers-color-scheme: dark)" />
</svelte:head>


<div class="flex flex-col justify-center bg-gray-50 px-4 dark:bg-gray-900 sm:px-8">
<Nav />
</div>
Expand All @@ -21,37 +27,45 @@

<footer class="mx-auto mb-8 flex w-full max-w-2xl flex-col items-start justify-center">
<hr class="border-1 mb-8 w-full border-gray-200 dark:border-gray-800" />
<div class="grid w-full max-w-2xl grid-cols-1 gap-4 px-4 pb-16 sm:grid-cols-2 sm:px-8">
<div class="grid w-full max-w-2xl grid-cols-1 gap-4 px-4 pb-16 sm:grid-cols-2 sm:px-8">
<div class="flex flex-col space-y-4">
<a class="text-gray-500 transition hover:text-gray-300" href="/">Home</a><a
class="text-gray-500 transition hover:text-gray-300"
href="/about">About</a
>
<a class="text-gray-500 transition hover:text-gray-300" href="/">Home</a>
<a class="text-gray-500 transition hover:text-gray-300" href="/about">About</a>
<a class="text-gray-500 transition hover:text-gray-300" href="/#newsletter">Newsletter</a>
<a
class="text-gray-500 transition hover:text-gray-300"
href='/api/rss.xml'
rel="external">RSS</a
>
<a class="text-gray-500 transition hover:text-gray-300" href="/api/rss.xml" rel="external">
RSS
</a>
</div>
<div class="flex flex-col space-y-4">
<a
class="text-gray-500 transition hover:text-gray-300"
target="_blank"
rel="noopener noreferrer"
href={'https://twitter.com/intent/follow?screen_name=' + MY_TWITTER_HANDLE}>Twitter</a
><a
href={'https://twitter.com/intent/follow?screen_name=' + MY_TWITTER_HANDLE}
>
Twitter
</a>
<a
class="text-gray-500 transition hover:text-gray-300"
target="_blank"
rel="noopener noreferrer"
href={REPO_URL}>GitHub</a
><a
href={REPO_URL}
>
GitHub
</a>
<a
class="text-gray-500 transition hover:text-gray-300"
target="_blank"
rel="noopener noreferrer"
href={MY_YOUTUBE}>YouTube</a
href={MY_YOUTUBE}
>
YouTube
</a>
</div>
</div>
<p class="prose dark:prose-invert px-4 sm:px-8">This blog is based on the <a href="https://swyxkit.netlify.app/">swyxkit</a> template.</p>
<p class="prose px-4 dark:prose-invert sm:px-8">
This blog is based on the
<a href="https://swyxkit.netlify.app/">swyxkit</a>
template.
</p>
</footer>

0 comments on commit 874bbec

Please sign in to comment.