From 108fc94a479a5cec9afd46ead786ea00fb455ad2 Mon Sep 17 00:00:00 2001 From: Saiful Date: Mon, 16 Jan 2023 07:33:22 +0600 Subject: [PATCH 01/19] fixed auth modal logic and responsive design --- src/lib/components/Browse/LoginPrompt.svelte | 20 ++++++++++++++------ src/lib/stores/helperStore.ts | 3 +++ src/routes/+layout.svelte | 15 ++++++++++++--- 3 files changed, 29 insertions(+), 9 deletions(-) create mode 100644 src/lib/stores/helperStore.ts diff --git a/src/lib/components/Browse/LoginPrompt.svelte b/src/lib/components/Browse/LoginPrompt.svelte index fc8c27e6..3afb63cb 100644 --- a/src/lib/components/Browse/LoginPrompt.svelte +++ b/src/lib/components/Browse/LoginPrompt.svelte @@ -4,6 +4,7 @@ import IconSocialGitHubInverse from '$lib/assets/icons/social/IconSocialGitHubInverse.svelte' // import { getGitHubUrl, getDiscordUrl, getGoogleUrl } from '$lib/utils/authUrl' import { env } from '$env/dynamic/public' + import { login_modal } from '$lib/stores/helperStore' async function getHref(provider: string) { return await fetch(`${env.PUBLIC_API_URL}/auth/${provider}`, { @@ -19,11 +20,18 @@ } - - - @@ -66,7 +66,7 @@ id="email" name="email" type="email" - class="focus:outline-none focus:border focus:border-indigo-700 font-normal w-64 h-10 flex items-center pl-3 text-sm border-gray-300 rounded border" + class="input input-bordered input-primary w-64 h-10 flex" placeholder="example@email.com" aria-label="enter your email input" /> @@ -82,7 +82,7 @@ id="subject" name="subject" type="tel" - class="focus:outline-none focus:border focus:border-indigo-700 font-normal w-64 h-10 flex items-center pl-3 text-sm border-gray-300 rounded border" + class="input input-bordered input-primary w-64 h-10 flex" placeholder="Subject" aria-label="enter a subject" /> @@ -94,7 +94,7 @@