This repository has been archived on 2025-08-19. You can view files and clone it, but you cannot make any changes to its state, such as pushing and creating new issues, pull requests or comments.
coinstorge/website/src/lib/components/self/SignInConfirmDialog.svelte

49 lines
1.3 KiB
Svelte
Raw Normal View History

2025-05-22 13:17:11 +03:00
<script lang="ts">
import {
Dialog,
DialogContent,
DialogHeader,
DialogTitle,
DialogDescription
} from '$lib/components/ui/dialog';
import { Button } from '$lib/components/ui/button';
let { open = $bindable(false), onConfirm } = $props<{
open?: boolean;
onConfirm: (provider: 'google') => void;
}>();
</script>
<Dialog bind:open>
<DialogContent class="sm:max-w-md">
<DialogHeader>
<DialogTitle>Sign in to Vyntr</DialogTitle>
<DialogDescription>
Choose a service to sign in with. Your account will be created automatically if you don't
have one.
</DialogDescription>
</DialogHeader>
<div class="flex flex-col gap-4 py-2">
<Button
class="flex w-full items-center justify-center gap-2"
variant="outline"
onclick={() => onConfirm('google')}
>
<img
class="h-5 w-5"
src="https://lh3.googleusercontent.com/COxitqgJr1sJnIDe8-jiKhxDx1FrYbtRHKJ9z_hELisAlapwE9LUPh6fcXIfb5vwpbMl4xl9H9TRFPc5NOO8Sb3VSgIBrfRYvW6cUA"
alt="Google"
/>
<span>Continue with Google</span>
</Button>
<p class="text-muted-foreground text-center text-xs">
By continuing, you agree to our
<a href="/legal/terms" class="text-primary hover:underline">Terms of Service</a>
and
<a href="/legal/privacy" class="text-primary hover:underline">Privacy Policy</a>
</p>
</div>
</DialogContent>
</Dialog>