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