-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #49 from helpfulengineering/front-end-homepage
Front end homepage
- Loading branch information
Showing
6 changed files
with
967 additions
and
88 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,91 @@ | ||
<template> | ||
<section> | ||
<h1 class="login text-2xl font-bold tracking-tight text-red-900">Sign In</h1> | ||
</section> | ||
</template> | ||
<section class="login"> | ||
<div class="container form"> | ||
<h1 class="title text-2xl font-bold tracking-tight">Sign In</h1> | ||
<div class=" mb-3"> | ||
<label for="uname" class="pr-2 font-semibold">Username :</label> | ||
<input | ||
v-model="user.username" | ||
type="text" | ||
name="uname" | ||
id="uname" | ||
class="input block w-full rounded-md border-0 py-1.5 pl-7 pr-20 text-gray-900 ring-1 ring-inset ring-gray-300 placeholder:text-gray-400 focus:ring-2 focus:ring-inset focus:ring-indigo-600 sm:text-sm/6" | ||
placeholder="Enter Username" | ||
required | ||
/> | ||
</div> | ||
|
||
<div class=" mb-3"> | ||
<label for="psw" class="pr-2 font-semibold">Password :</label> | ||
<input | ||
v-model="user.password" | ||
type="password" | ||
class="input block w-full rounded-md border-0 py-1.5 pl-7 pr-20 text-gray-900 ring-1 ring-inset ring-gray-300 placeholder:text-gray-400 focus:ring-2 focus:ring-inset focus:ring-indigo-600 sm:text-sm/6" | ||
placeholder="Enter Password" | ||
name="psw" | ||
required | ||
/> | ||
</div> | ||
|
||
<div class="link">Forgot password?</div> | ||
|
||
<button | ||
@click.prevent="login" | ||
class="btn-login block rounded-md px-5 py-2 my-4 text-base font-medium" | ||
> | ||
Login | ||
</button> | ||
|
||
<style> | ||
.login { | ||
margin: 150px; | ||
<div class="link">Don't have an account? <NuxtLink to="/register">Create an account</NuxtLink></div> | ||
</div> | ||
</section> | ||
</template> | ||
|
||
<script lang="ts" setup> | ||
const user = ref({ | ||
username: "", | ||
password: "", | ||
}); | ||
const login = async () => { | ||
// TODO send user Data to the login endpoint and redirect if successful | ||
}; | ||
</script> | ||
|
||
<style> | ||
.login { | ||
margin: 150px; | ||
place-self: center; | ||
.btn-login { | ||
background-color: #2a3952; | ||
border-radius: 6px; | ||
color: white; | ||
font-size: 14px; | ||
font-weight: 700; | ||
width: 100%; | ||
} | ||
.container { | ||
background-color: white; | ||
border-radius: 6px; | ||
padding: 30px 20px; | ||
width: 450px; | ||
label { | ||
width: 120px; | ||
} | ||
.link { | ||
cursor: pointer; | ||
font-size: 14px; | ||
} | ||
} | ||
.title { | ||
color: #2a3952; | ||
margin-bottom: 20px; | ||
text-transform: uppercase; | ||
} | ||
</style> | ||
} | ||
</style> |
Oops, something went wrong.