elk/pages/signin/index.vue

32 lines
697 B
Vue
Raw Normal View History

2022-11-15 16:48:23 +01:00
<script setup lang="ts">
2022-11-21 11:27:28 +01:00
definePageMeta({
layout: 'none',
})
2022-11-23 03:53:22 +01:00
const server = ref()
2022-11-15 16:48:23 +01:00
async function oauth() {
const a = document.createElement('a')
a.href = `/api/${server.value}/login`
a.target = '_blank'
a.click()
}
</script>
<template>
2022-11-21 11:27:28 +01:00
<div h-full text-center justify-center flex="~ col items-center gap2">
<div text-4xl mb-10>
Nuxtodon
</div>
<div>Mastodon Server</div>
<div bg-gray:10 px2 py1 rounded border="~ border" w-50 mxa flex>
<span op25 mr1>https://</span>
<input v-model="server" outline-none bg-transparent>
</div>
<button bg-teal6 px2 py1 rounded w-20 mxa mt-5 @click="oauth()">
Login
2022-11-15 16:48:23 +01:00
</button>
</div>
</template>