Skip to content

Commit 31e8966

Browse files
committed
progress on loginview router and view layout
1 parent 1ff0efa commit 31e8966

File tree

6 files changed

+96
-37
lines changed

6 files changed

+96
-37
lines changed

index.html

+1-30
Original file line numberDiff line numberDiff line change
@@ -26,36 +26,7 @@
2626
<div id="app"></div>
2727
<!-- built files will be auto injected -->
2828

29-
<!-- <main id="main-grid">
30-
<div id="logo">
31-
<img src="src/img/logo-gold.svg" alt="Nomatic Logo">
32-
</div>
33-
34-
<div id="nomatic">NOMATIC</div>
35-
36-
<div id="create-acct-button">
37-
<button id="yellow-button" type="button">
38-
<div class="button-label">
39-
<div id="create-acct-label">Create an account</div>
40-
</div>
41-
</button>
42-
</div>
43-
44-
<div id="log-in-button">
45-
<button id="white-button" type="button">
46-
<div class="button-label">
47-
<div id="log-in-label">Log in</div>
48-
</div>
49-
</button>
50-
</div>
51-
52-
<div id="phonetic">[ no • mat • ic ]</div>
53-
54-
<div id="greeting-1">Find an open mat near you.</div>
55-
56-
<div id="greeting-2">Get rolling!</div>
57-
58-
</main> -->
29+
5930

6031
</body>
6132

src/router/index.js

+31
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ import { useStore } from 'vuex'
44

55
// Import components
66
import HomePageView from '../views/HomePageView.vue';
7+
import LoginView from '../views/LoginView.vue';
8+
79

810

911
/**
@@ -20,6 +22,35 @@ const routes = [
2022
name: 'homePage',
2123
component: HomePageView,
2224
},
25+
26+
{
27+
path: '/login',
28+
name: "login",
29+
component: LoginView,
30+
meta: {
31+
requiresAuth: false
32+
}
33+
},
34+
35+
// {
36+
// path: '/logout',
37+
// name: "logout",
38+
// component: LogoutView,
39+
// meta: {
40+
// requiresAuth: false
41+
// }
42+
// },
43+
44+
// {
45+
// path: "/register",
46+
// name: "register",
47+
// component: RegisterView,
48+
// meta: {
49+
// requiresAuth: false
50+
// }
51+
// },
52+
53+
2354
];
2455

2556
// Create the router

src/views/HomePageView.vue

+9-7
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
<template>
2-
<main id="home-grid">
2+
<body class="home-body">
3+
<main id="home-grid">
34
<div id="logo">
45
<img src="../img/logo-gold.svg" alt="Nomatic Logo">
56
</div>
@@ -28,6 +29,7 @@
2829

2930
<div id="greeting-2">Get rolling!</div>
3031
</main>
32+
</body>
3133
</template>
3234

3335
<script>
@@ -37,21 +39,21 @@ export default {
3739
}
3840
</script>
3941

40-
<style>
42+
<style scoped>
4143
42-
body#index::before {
44+
body.home-body::before {
4345
content: "";
4446
position: fixed;
4547
top: 0;
4648
left: 0;
4749
width: 100%;
4850
height: 100%;
4951
display:flex;
50-
align-items: center; /* Center vertically */
51-
justify-content: center; /* Center horizontally */
52-
background-image: url('@/css/img-css/rolling-image.png'); /* Use the same image as the background */
52+
align-items: center;
53+
justify-content: center;
54+
background-image: url('@/css/img-css/rolling-image.png');
5355
filter: grayscale(100%);
54-
background-blend-mode: luminosity; /* Adjust blend mode as needed */
56+
background-blend-mode: luminosity;
5557
background-size: cover;
5658
background-repeat: no-repeat;
5759
max-width: 100%;

src/views/LoginView.vue

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
<template>
2+
<div id="login">
3+
TEST LOGIN VIEW
4+
</div>
5+
</template>
6+
7+
<script>
8+
export default {
9+
10+
}
11+
</script>
12+
13+
<style>
14+
15+
/* body#index::before {
16+
background-image: none;
17+
} */
18+
19+
div#login {
20+
height: 100vh;
21+
width: 100vw;
22+
}
23+
24+
25+
</style>

src/views/LogoutView.vue

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
<template>
2+
<div>
3+
4+
</div>
5+
</template>
6+
7+
<script>
8+
export default {
9+
10+
}
11+
</script>
12+
13+
<style>
14+
15+
</style>

src/views/RegisterView.vue

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
<template>
2+
<div>
3+
4+
</div>
5+
</template>
6+
7+
<script>
8+
export default {
9+
10+
}
11+
</script>
12+
13+
<style>
14+
15+
</style>

0 commit comments

Comments
 (0)