added settings Page and components

This commit is contained in:
2023-12-06 11:51:42 +01:00
parent 45c651e853
commit 6a4a799c85
21 changed files with 1301 additions and 99 deletions

View File

@ -1,12 +1,12 @@
<template>
<section class="quick-access">
<h2 class="heading">Quick Access</h2>
<section :class="['quick-access', darkMode ? 'section-darkmode' : 'section-lightmode']">
<h2 :class="['heading', darkMode ? 'heading-darkmode' : 'heading-lightmode']">Quick Access</h2>
<div class="shortcuts">
<input type="button" id="maintenance-visits" value="Maintenance Visits">
<input type="button" id="production-orders" value="Production Orders">
<input type="button" id="issue-slips" value="Assets">
<input type="button" id="solutions" value="Solutions">
<input type="button" id="issue-slips" value="Issue Slips">
<input :class="[darkMode ? 'input-darkmode' : 'input-lightmode']" type="button" id="maintenance-visits" value="Maintenance Visits">
<input :class="[darkMode ? 'input-darkmode' : 'input-lightmode']" type="button" id="production-orders" value="Production Orders">
<input :class="[darkMode ? 'input-darkmode' : 'input-lightmode']" type="button" id="issue-slips" value="Assets">
<input :class="[darkMode ? 'input-darkmode' : 'input-lightmode']" type="button" id="solutions" value="Solutions">
<input :class="[darkMode ? 'input-darkmode' : 'input-lightmode']" type="button" id="issue-slips" value="Issue Slips">
</div>
</section>
</template>
@ -14,6 +14,8 @@
<script setup>
import { ref } from 'vue';
const darkMode = ref(true)
</script>
<script>
@ -35,16 +37,31 @@ export default {
gap: 1.25rem;
border-radius: 0.625rem;
box-shadow: 0.25rem 0.25rem 0.25rem 0rem rgba(0, 0, 0, 0.25);
}
.section-darkmode {
background-color: #2c2c2c;
}
.section-lightmode {
background-color: #fff;
}
.heading {
color: #fff;
letter-spacing: 5%;
text-decoration-line: underline;
font: 400 1rem/2rem Overpass, sans-serif;
}
.heading-darkmode {
color: #fff;
}
.heading-lightmode {
color: #000;
}
.shortcuts {
display: flex;
flex-direction: row;
@ -64,10 +81,18 @@ input {
border-radius: 0.625rem;
padding: 0.9375rem 1.25rem;
border: none;
color: #fff;
text-align: center;
letter-spacing: 5%;
font: 400 0.875rem/2rem Overpass, sans-serif;
}
.input-darkmode {
color: #fff;
background-color: #343434;
}
.input-lightmode {
color: #000;
background-color: #E4E4E4;
}
</style>