Initial commit

This commit is contained in:
Zoe
2026-08-07 22:13:25 -05:00
commit 8006fd67f3
40 changed files with 11017 additions and 0 deletions

41
app/pages/auth/index.vue Normal file
View File

@@ -0,0 +1,41 @@
<script setup lang="ts">
const passcode = ref("");
const error = ref("");
const auth = useAuth();
async function submit() {
error.value = "";
try {
await auth.login(passcode.value);
await navigateTo("/");
} catch (cause) {
error.value = cause instanceof Error ? cause.message : "Sign in failed.";
}
}
</script>
<template>
<div class="download-page">
<section class="panel download-card">
<h1>Sign in to Quickdrop.</h1>
<p class="download-intro">
Enter the passcode to upload files to Quickdrop.
</p>
<form @submit.prevent="submit">
<input
v-model="passcode"
type="password"
autocomplete="current-password"
placeholder="••••••••"
class="share-value w-full border border-[var(--border)] rounded p-3"
/>
<button class="button button-large mt-4" type="submit">Continue</button>
<p v-if="error" class="error-message" role="alert">
{{ error }}
</p>
</form>
</section>
</div>
</template>