Center forms
This commit is contained in:
parent
e37926be57
commit
753863585d
@ -46,7 +46,7 @@ onMounted(async () => {
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<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();">
|
<form onsubmit="event.preventDefault();">
|
||||||
<IconLogo />
|
<IconLogo />
|
||||||
<h1 class="h3 mb-3 fw-normal">Please sign in</h1>
|
<h1 class="h3 mb-3 fw-normal">Please sign in</h1>
|
||||||
|
|||||||
@ -10,6 +10,7 @@ const err = ref('')
|
|||||||
|
|
||||||
async function signup(ev) {
|
async function signup(ev) {
|
||||||
ev.preventDefault()
|
ev.preventDefault()
|
||||||
|
console.log(ev)
|
||||||
const api_url = '/api/user'
|
const api_url = '/api/user'
|
||||||
const payload = { username: user.value, password: pass.value, referral: refe.value }
|
const payload = { username: user.value, password: pass.value, referral: refe.value }
|
||||||
const fetch_options = {
|
const fetch_options = {
|
||||||
@ -42,7 +43,7 @@ async function signup(ev) {
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<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();">
|
<form onsubmit="event.preventDefault();">
|
||||||
<IconLogo />
|
<IconLogo />
|
||||||
<h1 class="h3 mb-3 fw-normal">Sign up</h1>
|
<h1 class="h3 mb-3 fw-normal">Sign up</h1>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user