Skip to content

Commit

Permalink
add dark mode support
Browse files Browse the repository at this point in the history
  • Loading branch information
ubermanu committed Sep 24, 2023
1 parent c50f7d3 commit a310e1f
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions sites/roller/src/routes/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
</svelte:head>

<main
class="flex min-h-screen w-full flex-col bg-gradient-to-br from-blue-200 to-sky-200"
class="flex min-h-screen w-full flex-col bg-gradient-to-br from-blue-200 to-sky-200 text-neutral-100 dark:from-sky-950 dark:to-blue-950"
>
<div class="flex flex-grow flex-col px-4 py-8 text-center">
<div class="my-auto">
Expand All @@ -41,13 +41,15 @@
<h1 class="my-6 inline-flex items-center gap-2">
<span class="text-5xl font-black">Roller</span>
<span
class="flex rounded bg-blue-300 px-1 py-0.5 text-xs text-neutral-900"
class="flex rounded bg-blue-300 px-1 py-0.5 text-xs text-neutral-900 dark:bg-blue-700 dark:text-neutral-300"
>
v{pkg.version}
</span>
</h1>

<div class="prose mx-auto max-w-xl text-neutral-900">
<div
class="prose mx-auto max-w-xl text-neutral-900 dark:text-neutral-300"
>
<p>
<b>Roller</b> is a browser extension that allow auto scrolling of web pages
(on Linux), by pressing the mouse wheel button, and moving the mouse up
Expand All @@ -62,7 +64,7 @@
{#each downloads as download}
<a
href={download.url}
class="m-2 inline-flex items-center space-x-2 rounded bg-blue-500 p-4 text-white transition duration-300 hover:bg-blue-400 hover:shadow active:bg-blue-600 active:shadow-inner"
class="m-2 inline-flex items-center space-x-2 rounded bg-blue-500 p-4 text-white transition duration-300 hover:bg-blue-400 hover:shadow active:bg-blue-600 active:shadow-inner dark:bg-blue-700 dark:hover:bg-blue-600 dark:active:bg-blue-800 dark:active:shadow-inner"
>
<img class="h-6 w-6 drop-shadow-sm" src={download.icon} alt="" />
<span>Download for {download.name}</span>
Expand All @@ -71,7 +73,7 @@
</div>
</div>
</div>
<div class="p-4 text-center text-sm text-neutral-900">
<div class="p-4 text-center text-sm text-neutral-900 dark:text-neutral-300">
Built with
<img class="inline h-3 w-3 align-baseline" src={svelteIcon} alt="Svelte" />
on
Expand Down

0 comments on commit a310e1f

Please sign in to comment.