Skip to content

Commit

Permalink
login front end changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Tyler Brown committed Nov 6, 2023
1 parent 6265767 commit 2f94735
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 2 deletions.
Binary file added class_registration_app/src/assets/personimage.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 4 additions & 1 deletion class_registration_app/src/components/DashBoard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,10 @@
</button>
</RouterLink>
<RouterLink to="./courses">
<button class="uconn-button">Profile</button>
<button class="uconn-button">Profile
<img src="../assets/personimage.png" class="icon">
</button>

</RouterLink>
<RouterLink to="./courses">
<button class="uconn-button">Placeholder</button>
Expand Down
20 changes: 19 additions & 1 deletion class_registration_app/src/components/LoginPage.vue
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<template>
<body>
<section class="form animated flipInX">
<h2>Login To Your Account</h2>
<p class="valid">Valid. Please wait a moment.</p>
Expand All @@ -10,7 +11,9 @@
<button @click.prevent="tryLogin" id="submit">Login</button>
</form>
<RouterLink to="/">Back</RouterLink>
<div id="test"></div>
</section>
</body>
</template>

<script setup lang="ts">
Expand Down Expand Up @@ -39,6 +42,11 @@ const tryLogin = async () => {
if (authenticationValid === true) {
router.push({path: './dashboard'});
}
else{
let err = document.getElementById('test');
if(err){
err.innerText = "Login info is incorrect"}
}
} catch (error) {
console.error(error);
Expand Down Expand Up @@ -120,4 +128,14 @@ const tryLogin = async () => {
.error, .valid{display:none;}
</style>
</style>

<style scoped>
body{
background-color: #000066;
}
#test{
font-size: 20px;
color: red
}
</style>

0 comments on commit 2f94735

Please sign in to comment.