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

8836
package-lock.json generated

File diff suppressed because it is too large Load Diff

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

@ -5,24 +5,5 @@
<RouterView /> <RouterView />
</template> </template>
<style lang="scss"> <style scoped>
// 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> </style>

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

@ -45,6 +45,4 @@ export default {
</button> </button>
</template> </template>
<style scoped> <style scoped></style>
</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 { createRouter, createWebHistory } from 'vue-router'
import HomeView from '../views/HomeView.vue' import HomeView from '../views/HomeView.vue'
import LoginView from '../views/LoginView.vue'
const router = createRouter({ const router = createRouter({
history: createWebHistory(import.meta.env.BASE_URL), history: createWebHistory(import.meta.env.BASE_URL),
@ -9,6 +10,11 @@ const router = createRouter({
name: 'home', name: 'home',
component: HomeView component: HomeView
}, },
{
path: '/login',
name: 'login',
component: LoginView
},
// { // {
// path: '/about', // path: '/about',
// name: 'about', // name: 'about',

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