Compare commits

..

2 Commits
main ... login

Author SHA1 Message Date
HenrikBojsenNehm b0cd6db616 Scss innit 2 years ago
HenrikBojsenNehm dd8d5903c7 Innit for login 2 years ago

@ -4,7 +4,7 @@
<meta charset="UTF-8">
<link rel="icon" href="/favicon.ico">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Alarm Control Page</title>
<title>Vite App</title>
</head>
<body>
<div id="app"></div>

6420
package-lock.json generated

File diff suppressed because it is too large Load Diff

@ -14,16 +14,16 @@
"vue-router": "^4.2.4"
},
"devDependencies": {
"@iconify/vue": "^4.1.1",
"@rushstack/eslint-patch": "^1.3.2",
"@vitejs/plugin-vue": "^4.2.3",
"@vitejs/plugin-vue-jsx": "^3.0.1",
"@vue/eslint-config-prettier": "^8.0.0",
"eslint": "^8.45.0",
"eslint-plugin-vue": "^9.15.1",
"node-sass": "^9.0.0",
"prettier": "^3.0.0",
"sass": "^1.66.1",
"uid": "^2.0.2",
"sass": "^1.66.0",
"sass-loader": "^13.3.2",
"vite": "^4.4.6"
}
}

@ -5,24 +5,5 @@
<RouterView />
</template>
<style lang="scss">
// None of this works, and at this point I don't really care.
body {
margin: auto;
width: 10%;
padding: 10px;
background-color: #1e6e6a;
}
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
.container {
max-width: 1100px;
margin: 0 auto;
}
<style scoped>
</style>

@ -38,12 +38,7 @@ export default {
<template>
<div>
Current alarm state: {{ status }}
<br>
<br>
</div>
</template>
<style scoped>
</style>
<style scoped></style>

@ -45,6 +45,4 @@ export default {
</button>
</template>
<style scoped>
</style>
<style scoped></style>

@ -0,0 +1,32 @@
<script>
export default {
name: "login",
data() {
return {
}
},
methods: {
},
beforeDestroy() {
},
}
</script>
<template>
<div class="card">
<h2>Login</h2>
<form>
<input type="text" name="Username" autofocus placeholder="Username">
<input type="password" name="Password" placeholder="Password">
</form>
</div>
</template>
<style lang="scss" scoped>
@import '../assets/_shared.scss';
</style>

@ -1,5 +1,6 @@
import { createRouter, createWebHistory } from 'vue-router'
import HomeView from '../views/HomeView.vue'
import LoginView from '../views/LoginView.vue'
const router = createRouter({
history: createWebHistory(import.meta.env.BASE_URL),
@ -9,6 +10,11 @@ const router = createRouter({
name: 'home',
component: HomeView
},
{
path: '/login',
name: 'login',
component: LoginView
},
// {
// path: '/about',
// name: 'about',

@ -5,13 +5,11 @@ import ChangeState from '../components/ChangeState.vue';
</script>
<template>
<div id="Home" >
<div id="Home">
<AlarmState />
<ChangeState />
</div>
</template>
<style scoped>
</style>

@ -0,0 +1,12 @@
<script setup>
import Login from '../components/Login.vue';
</script>
<template>
<div id="Home">
<Login />
</div>
</template>
<style scoped>
</style>
Loading…
Cancel
Save