Skip to content

fix: light/dark toggle mode #1569

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
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
15 changes: 10 additions & 5 deletions src/routes/landing/CTA.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -45,15 +45,20 @@
</Row>

<Row image="bg-[url('/images/graphs.png')] dark:bg-[url('/images/graphs-dark.png')]" reversed contain>
<div class="text-red-500 flex flex-row gap-8">
<div class="flex flex-row gap-8">
<div class="flex flex-col items-center gap-2 font-medium text-gray-900 dark:text-gray-400">
<DarkMode size="lg" class="hidden dark:block dark:bg-gray-700" />
<Sun class="dark:hidden w-11 h-11 p-2 rounded-lg bg-primary-700 dark:bg-gray-700 text-white" />
<DarkMode size="lg" class="w-11 h-11 p-2 rounded-lg bg-primary-700 dark:bg-gray-700 text-white">
<Sun slot="lightIcon" />
<Sun slot="darkIcon" />
</DarkMode>
Light
</div>

<div class="flex flex-col items-center gap-2 font-medium text-gray-400 dark:text-white">
<Moon class="hidden dark:block w-11 h-11 p-2 rounded-lg bg-primary-700" />
<DarkMode size="lg" class="dark:hidden bg-gray-100 dark:bg-gray-700 hover:bg-gray-200" />
<DarkMode size="lg" class="w-11 h-11 p-2 rounded-lg bg-gray-100 hover:bg-gray-200 dark:bg-primary-700 text-gray-700 dark:text-white">
<Moon slot="lightIcon" />
<Moon slot="darkIcon" />
</DarkMode>
Dark
</div>
</div>
Expand Down