mirror of
https://github.com/Xevion/banner.git
synced 2026-01-31 02:23:34 -06:00
fix: avoid title on icon, use simpler href-based login redirect
This commit is contained in:
@@ -1,5 +1,4 @@
|
|||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import { authStore } from "$lib/auth.svelte";
|
|
||||||
import SiDiscord from "@icons-pack/svelte-simple-icons/icons/SiDiscord";
|
import SiDiscord from "@icons-pack/svelte-simple-icons/icons/SiDiscord";
|
||||||
import { ChevronDown } from "@lucide/svelte";
|
import { ChevronDown } from "@lucide/svelte";
|
||||||
import { Accordion } from "bits-ui";
|
import { Accordion } from "bits-ui";
|
||||||
@@ -38,13 +37,13 @@
|
|||||||
Sign in to manage your watchlist and notifications.
|
Sign in to manage your watchlist and notifications.
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<button
|
<a
|
||||||
onclick={() => authStore.login()}
|
href="/api/auth/login"
|
||||||
class="mt-6 inline-flex w-full items-center justify-center gap-2.5 rounded-lg bg-[#5865F2] px-6 py-3 text-base font-semibold text-white shadow-sm transition-colors hover:bg-[#4752C4] active:bg-[#3C45A5]"
|
class="mt-6 inline-flex w-full items-center justify-center gap-2.5 rounded-lg bg-[#5865F2] px-6 py-3 text-base font-semibold text-white shadow-sm transition-colors hover:bg-[#4752C4] active:bg-[#3C45A5]"
|
||||||
>
|
>
|
||||||
<SiDiscord size={20} color="white" />
|
<SiDiscord size={20} color="white" title="" />
|
||||||
Sign in with Discord
|
Sign in with Discord
|
||||||
</button>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- FAQ section -->
|
<!-- FAQ section -->
|
||||||
|
|||||||
Reference in New Issue
Block a user