Center forms

This commit is contained in:
Lucas Schumacher 2023-10-30 23:06:56 -04:00
parent e37926be57
commit 753863585d
2 changed files with 3 additions and 2 deletions

View File

@ -46,7 +46,7 @@ onMounted(async () => {
</script>
<template>
<main class="form-signin w-100 m-auto">
<main class="form-signin w-100 m-auto position-absolute top-50 start-50 translate-middle">
<form onsubmit="event.preventDefault();">
<IconLogo />
<h1 class="h3 mb-3 fw-normal">Please sign in</h1>

View File

@ -10,6 +10,7 @@ const err = ref('')
async function signup(ev) {
ev.preventDefault()
console.log(ev)
const api_url = '/api/user'
const payload = { username: user.value, password: pass.value, referral: refe.value }
const fetch_options = {
@ -42,7 +43,7 @@ async function signup(ev) {
</script>
<template>
<main class="form-signin w-100 m-auto my-auto">
<main class="form-signin w-100 m-auto my-auto position-absolute top-50 start-50 translate-middle">
<form onsubmit="event.preventDefault();">
<IconLogo />
<h1 class="h3 mb-3 fw-normal">Sign up</h1>