frontend/pages/oauth/code.vue

33 lines
956 B
Vue
Raw Normal View History

<template>
<div class="h-svh flex items-center justify-center px-4 bg-center bg-no-repeat bg-cover" :style="{
backgroundImage: 'url(/images/banner.webp)'
}">
2024-12-02 23:03:38 +01:00
<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">
<pre class="rounded bg-muted px-4 py-2 border text-center w-full font-mono text-sm font-semibold select-all">{{ code }}</pre>
2024-12-02 23:03:38 +01:00
</CardContent>
</Card>
</div>
</template>
<script setup lang="ts">
2024-12-02 23:03:38 +01:00
import {
Card,
CardContent,
CardDescription,
CardHeader,
CardTitle,
} from "~/components/ui/card";
useHead({
title: "Authorization Code",
});
const { code } = useUrlSearchParams();
</script>