mirror of
https://github.com/versia-pub/frontend.git
synced 2025-12-06 08:28:20 +01:00
30 lines
854 B
Vue
30 lines
854 B
Vue
<template>
|
|
<div class="h-svh flex items-center justify-center px-4">
|
|
<Card class="w-full max-w-md">
|
|
<CardHeader>
|
|
<CardTitle>Here's your code</CardTitle>
|
|
<CardDescription>You have signed in successfully.<br />Paste the following code into your app:
|
|
</CardDescription>
|
|
</CardHeader>
|
|
<CardContent class="grid">
|
|
<code
|
|
class="rounded bg-muted px-4 py-2 border text-center w-full font-mono text-sm font-semibold select-all">{{ code }}</code>
|
|
</CardContent>
|
|
</Card>
|
|
</div>
|
|
</template>
|
|
|
|
<script setup lang="ts">
|
|
import {
|
|
Card,
|
|
CardContent,
|
|
CardDescription,
|
|
CardHeader,
|
|
CardTitle,
|
|
} from "~/components/ui/card";
|
|
|
|
const params = useUrlSearchParams();
|
|
|
|
const code = params.code;
|
|
</script>
|