Clean up Signup page
This commit is contained in:
parent
3d4d56f616
commit
e37926be57
@ -65,7 +65,7 @@ onMounted(async () => {
|
||||
|
||||
<button type="submit" @click="login" class="btn btn-primary w-100 py-2">Sign in</button>
|
||||
|
||||
<p class="mt-5 mb-3 text-body-secondary">© 2023</p>
|
||||
<p class="mt-5 mb-3 text-body-secondary">© 2023 Lucas Schumacher</p>
|
||||
</form>
|
||||
</main>
|
||||
</template>
|
||||
|
||||
@ -29,6 +29,7 @@ async function signup(ev) {
|
||||
let resp = await fetch(api_url, fetch_options)
|
||||
console.log(resp)
|
||||
if (resp.ok) {
|
||||
err.value = ''
|
||||
let ans = await resp.json()
|
||||
console.log(ans)
|
||||
|
||||
@ -54,30 +55,29 @@ async function signup(ev) {
|
||||
<input type="password" v-model="pass" class="form-control" id="floatingPassword" placeholder="Password">
|
||||
<label for="floatingPassword">Password</label>
|
||||
</div>
|
||||
<div class="form-floating">
|
||||
<div class="form-floating mb-3">
|
||||
<input type="text" v-model="refe" class="form-control" id="floatingCode" placeholder="">
|
||||
<label for="floatingCode">Referral Code</label>
|
||||
</div>
|
||||
<div class="form-floating">
|
||||
<p> {{ err }} </p>
|
||||
</div>
|
||||
<div class="form-floating mb-3">
|
||||
Already have an account?
|
||||
<a href="#/login">Log in</a>
|
||||
|
||||
<div v-if="err != ''" class="form-floating alert alert-danger" role="alert">
|
||||
<div class="me-3">{{ err }}</div>
|
||||
<button @click="err = ''" type="button" class="btn-close me-2 position-absolute top-50 end-0 translate-middle-y"
|
||||
aria-label="close"></button>
|
||||
</div>
|
||||
|
||||
<button type="submit" @click="signup" class="btn btn-primary w-100 py-2">Sign up</button>
|
||||
<p class="mt-5 mb-3 text-body-secondary">© 2023</p>
|
||||
|
||||
<div class="form-floating m-2">
|
||||
Already have an account?
|
||||
<a href="#/login">Log in</a>
|
||||
</div>
|
||||
<p class="mt-5 mb-3 text-body-secondary">© 2023 Lucas Schumacher</p>
|
||||
</form>
|
||||
</main>
|
||||
</template>
|
||||
|
||||
<style scoped>
|
||||
/* html,
|
||||
body {
|
||||
height: 100%;
|
||||
} */
|
||||
|
||||
.form-signin {
|
||||
max-width: 330px;
|
||||
padding: 1rem;
|
||||
@ -87,15 +87,7 @@ body {
|
||||
z-index: 2;
|
||||
}
|
||||
|
||||
.form-signin input[type="email"] {
|
||||
margin-bottom: -1px;
|
||||
border-bottom-right-radius: 0;
|
||||
border-bottom-left-radius: 0;
|
||||
}
|
||||
|
||||
.form-signin input[type="password"] {
|
||||
margin-bottom: 10px;
|
||||
border-top-left-radius: 0;
|
||||
border-top-right-radius: 0;
|
||||
}
|
||||
</style>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user