Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
zjf19002 committed Oct 10, 2023
1 parent 14d965b commit 1791966
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 4 deletions.
2 changes: 1 addition & 1 deletion class_registration_app/src/components/Home.vue
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
</div>

<div class="login">
<a href=Login.vue><button class="btn-97" style="position: absolute;top:42%;left:50%;transform:translate(-50%,-50%)">Login with your NetID here</button></a>
<a href="/login"><button class="btn-97" style="position: absolute;top:42%;left:50%;transform:translate(-50%,-50%)">Login with your NetID here</button></a>
<a style="position: absolute;top:80%;left:50%;transform:translate(-50%,-50%)">Forget your login?</a>
</div>
</div>
Expand Down
7 changes: 7 additions & 0 deletions class_registration_app/src/components/NotFound.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<script setup lang="ts">
</script>

<template>
<label>not found</label>
</template>
6 changes: 3 additions & 3 deletions class_registration_app/src/router/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@ const router = createRouter({
component: HomeView
},
{
path: '/about',
name: 'about',
path: '/login',
name: 'login',
// route level code-splitting
// this generates a separate chunk (About.[hash].js) for this route
// which is lazy-loaded when the route is visited.
component: () => import('../views/AboutView.vue')
component: () => import('../views/LoginView.vue')
}
]
})
Expand Down
9 changes: 9 additions & 0 deletions class_registration_app/src/views/LoginView.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<script setup lang="ts">
import Login from '../components/Login.vue'
</script>

<template>
<main>
<Login />
</main>
</template>

0 comments on commit 1791966

Please sign in to comment.