added lightmode option

This commit is contained in:
2023-11-22 13:41:53 +01:00
parent 8a4ced29ac
commit 3fd31bcc43
22 changed files with 1501 additions and 816 deletions

View File

@ -1,25 +1,25 @@
<template>
<section id="content">
<div id="content-header">
<h1 id="page-name">Assets</h1>
</div>
<div id="content-body">
<ClientSearch />
<AssetTable />
<AssetTableNoClient />
<Asset />
<HardwareSpecifications />
<SoftwareSpecifications />
<NetworkSpecifications />
</div>
</section>
<section id="content">
<div id="content-header">
<h1 :class="[darkMode ? 'h1-darkmode' : 'h1-lightmode']" id="page-name">Assets</h1>
</div>
<div id="content-body">
<ClientSearch />
<AssetTable />
<AssetTableNoClient />
<Asset />
<HardwareSpecifications />
<SoftwareSpecifications />
<NetworkSpecifications />
</div>
</section>
</template>
<script setup>
definePageMeta({
layout: 'default'
})
definePageMeta({
layout: 'default'
})
</script>
<script>
@ -31,64 +31,76 @@ import HardwareSpecifications from "../components/server/HardwareSpecifications.
import SoftwareSpecifications from "../components/server/SoftwareSpecifications.vue";
import NetworkSpecifications from "../components/server/NetworkSpecifications.vue";
export default {
name: "AssetPage",
components: {
ClientSearch,
AssetTable,
AssetTableNoClient,
Asset,
HardwareSpecifications,
SoftwareSpecifications,
NetworkSpecifications,
}
}
export default {
name: "AssetPage",
components: {
ClientSearch,
AssetTable,
AssetTableNoClient,
Asset,
HardwareSpecifications,
SoftwareSpecifications,
NetworkSpecifications,
},
data() {
return {
darkMode: true,
};
},
}
</script>
<style scoped>
* {
box-sizing: border-box;
}
* {
box-sizing: border-box;
}
#content {
display: flex;
flex-direction: column;
float: left;
justify-content: stretch;
align-items: stretch;
width: 100%;
flex-grow: 1;
gap: 0.625rem;
padding: 0 1.25rem;
}
#content-header {
display: flex;
flex-direction: row;
justify-content: center;
align-items: center;
width: 100%;
height: 3.125rem;
}
#page-name {
color: #fff;
letter-spacing: 5%;
font: 400 1.5rem/125% Overpass, -apple-system, Roboto, Helvetica,
sans-serif;
text-decoration: underline;
}
#content {
display: flex;
flex-direction: column;
float: left;
justify-content: stretch;
align-items: stretch;
width: 100%;
flex-grow: 1;
gap: 0.625rem;
padding: 0 1.25rem;
}
#content-body {
display: flex;
flex-direction: column;
width: 100%;
gap: 1.25rem;
margin-bottom: 0.625rem;
border-radius: 0.625rem;
}
#content-header {
display: flex;
flex-direction: row;
justify-content: center;
align-items: center;
width: 100%;
height: 3.125rem;
}
#page-name {
letter-spacing: 5%;
font: 400 1.5rem/125% Overpass, -apple-system, Roboto, Helvetica,
sans-serif;
text-decoration: underline;
}
.h1-darkmode {
color: #fff;
}
.h1-lightmode {
color: #000;
}
#content-body {
display: flex;
flex-direction: column;
width: 100%;
gap: 1.25rem;
margin-bottom: 0.625rem;
border-radius: 0.625rem;
}
</style>

View File

@ -1,85 +1,95 @@
<template>
<section id="content">
<div id="content-header">
<h1 id="page-name">Clients</h1>
</div>
<div id="content-body">
<Client />
<ClientQuickAccess />
</div>
</section>
<section id="content">
<div id="content-header">
<h1 :class="[darkMode ? 'h1-darkmode' : 'h1-lightmode']" id="page-name">Clients</h1>
</div>
<div id="content-body">
<Client />
<ClientQuickAccess />
</div>
</section>
</template>
<script setup>
definePageMeta({
layout: 'default'
})
definePageMeta({
layout: 'default'
})
</script>
<script>
import ClientTable from "../components/server/ClientTable.vue";
import Client from "../components/server/Client.vue";
import ClientQuickAccess from "../components/server/ClientQuickAccess.vue";
import ClientEmployees from "../components/server/ClientEmployees.vue";
import ClientEmployee from "../components/server/ClientEmployee.vue";
import ClientTable from "../components/server/ClientTable.vue";
import Client from "../components/server/Client.vue";
import ClientQuickAccess from "../components/server/ClientQuickAccess.vue";
import ClientEmployees from "../components/server/ClientEmployees.vue";
import ClientEmployee from "../components/server/ClientEmployee.vue";
export default {
name: "ClientsPage",
components: {
ClientTable,
Client,
ClientQuickAccess,
ClientEmployees,
ClientEmployee,
}
}
export default {
name: "ClientsPage",
components: {
ClientTable,
Client,
ClientQuickAccess,
ClientEmployees,
ClientEmployee,
},
data() {
return {
darkMode: true,
};
},
}
</script>
<style scoped>
* {
box-sizing: border-box;
}
* {
box-sizing: border-box;
}
#content {
display: flex;
flex-direction: column;
float: left;
justify-content: stretch;
align-items: stretch;
width: 100%;
flex-grow: 1;
gap: 0.625rem;
padding: 0 1.25rem;
}
#content-header {
display: flex;
flex-direction: row;
justify-content: center;
align-items: center;
width: 100%;
height: 3.125rem;
}
#page-name {
color: #fff;
letter-spacing: 5%;
font: 400 1.5rem/125% Overpass, -apple-system, Roboto, Helvetica, sans-serif;
}
#content {
display: flex;
flex-direction: column;
float: left;
justify-content: stretch;
align-items: stretch;
width: 100%;
flex-grow: 1;
gap: 0.625rem;
padding: 0 1.25rem;
}
#content-body {
display: flex;
flex-direction: column;
width: 100%;
gap: 1.25rem;
margin-bottom: 0.625rem;
border-radius: 0.625rem;
}
#content-header {
display: flex;
flex-direction: row;
justify-content: center;
align-items: center;
width: 100%;
height: 3.125rem;
}
#page-name {
letter-spacing: 5%;
font: 400 1.5rem/125% Overpass, -apple-system, Roboto, Helvetica, sans-serif;
}
.h1-darkmode {
color: #fff;
}
.h1-lightmode {
color: #000;
}
#content-body {
display: flex;
flex-direction: column;
width: 100%;
gap: 1.25rem;
margin-bottom: 0.625rem;
border-radius: 0.625rem;
}
</style>

View File

@ -2,7 +2,7 @@
<Navigationbar />
<section id="content">
<div id="content-header">
<pre id="page-name">Home</pre>
<pre :class="[darkMode ? 'pre-darkmode' : 'pre-lightmode']" id="page-name">Home</pre>
</div>
<div id="content-body">
<Dashboard />
@ -13,69 +13,79 @@
<script setup>
definePageMeta({
layout: 'empty'
})
definePageMeta({
layout: 'empty'
})
</script>
<script>
import Navigationbar from "../layouts/Navigationbar.vue";
import Dashboard from "../components/Dashboard.vue";
import QuickAccess from "../components/QuickAccess.vue";
import Navigationbar from "../layouts/Navigationbar.vue";
import Dashboard from "../components/Dashboard.vue";
import QuickAccess from "../components/QuickAccess.vue";
export default {
name: "HomePage",
components: {
Navigationbar,
Dashboard,
QuickAccess,
}
}
export default {
name: "HomePage",
components: {
Navigationbar,
Dashboard,
QuickAccess,
},
data() {
return {
darkMode: true,
};
},
}
</script>
<style>
* {
box-sizing: border-box;
}
* {
box-sizing: border-box;
}
#content {
display: flex;
flex-direction: column;
float: left;
justify-content: stretch;
align-items: stretch;
width: 100%;
flex-grow: 1;
gap: 0.625rem;
padding: 0 1.25rem;
}
#content-header {
display: flex;
flex-direction: row;
justify-content: center;
align-items: center;
width: 100%;
height: 3.125rem;
}
#page-name {
color: #fff;
letter-spacing: 5%;
font: 400 1.5rem/125% Overpass, -apple-system, Roboto, Helvetica, sans-serif;
}
#content {
display: flex;
flex-direction: column;
float: left;
justify-content: stretch;
align-items: stretch;
width: 100%;
flex-grow: 1;
gap: 0.625rem;
padding: 0 1.25rem;
}
#content-body {
display: flex;
flex-direction: column;
width: 100%;
gap: 1.25rem;
margin-bottom: 0.625rem;
border-radius: 0.625rem;
}
#content-header {
display: flex;
flex-direction: row;
justify-content: center;
align-items: center;
width: 100%;
height: 3.125rem;
}
#page-name {
letter-spacing: 5%;
font: 400 1.5rem/125% Overpass, -apple-system, Roboto, Helvetica, sans-serif;
}
.pre-darkmode {
color: #fff;
}
.pre-lightmode {
color: #000;
}
#content-body {
display: flex;
flex-direction: column;
width: 100%;
gap: 1.25rem;
margin-bottom: 0.625rem;
border-radius: 0.625rem;
}
</style>

View File

@ -1,83 +1,102 @@
<template>
<section id="content">
<div id="content-header">
<h1 id="page-name">Pagename</h1>
</div>
<div id="content-body">
<section id="stuff"></section>
</div>
</section>
<section id="content">
<div id="content-header">
<h1 :class="[darkMode ? 'h1-darkmode' : 'h1-lightmode']" id="page-name">Pagename</h1>
</div>
<div id="content-body">
<section :class="[darkMode ? 'stuff-darkmode' : 'stuff-lightmode']" id="stuff"></section>
</div>
</section>
</template>
<script setup>
definePageMeta({
layout: 'default'
})
definePageMeta({
layout: 'default'
})
</script>
<script>
export default {
name: "Testpage",
components: {
}
}
export default {
name: "Testpage",
components: {
},
data() {
return {
darkMode: true,
};
},
}
</script>
<style scoped>
* {
box-sizing: border-box;
}
* {
box-sizing: border-box;
}
#content {
display: flex;
flex-direction: column;
float: left;
justify-content: stretch;
align-items: stretch;
width: 100%;
flex-grow: 1;
gap: 0.625rem;
padding: 0 1.25rem;
}
#content-header {
display: flex;
flex-direction: row;
justify-content: center;
align-items: center;
width: 100%;
height: 3.125rem;
}
#page-name {
color: #fff;
letter-spacing: 5%;
font: 400 1.5rem/125% Overpass, -apple-system, Roboto, Helvetica,
sans-serif;
}
#content {
display: flex;
flex-direction: column;
float: left;
justify-content: stretch;
align-items: stretch;
width: 100%;
flex-grow: 1;
gap: 0.625rem;
padding: 0 1.25rem;
}
#content-body {
display: flex;
flex-direction: column;
width: 100%;
gap: 1.25rem;
margin-bottom: 0.625rem;
border-radius: 0.625rem;
}
.h1-darkmode {
color: #fff;
}
#stuff {
display: flex;
flex-direction: column;
width: 100%;
gap: 1.25rem;
padding: 1.25rem 1.875rem;
box-shadow: 0.25rem 0.25rem 0.25rem 0rem rgba(0, 0, 0, 0.25);
background-color: #2C2C2C;
}
.h1-lightmode {
color: #000;
}
#content-header {
display: flex;
flex-direction: row;
justify-content: center;
align-items: center;
width: 100%;
height: 3.125rem;
}
#page-name {
letter-spacing: 5%;
font: 400 1.5rem/125% Overpass, -apple-system, Roboto, Helvetica,
sans-serif;
}
#content-body {
display: flex;
flex-direction: column;
width: 100%;
gap: 1.25rem;
margin-bottom: 0.625rem;
border-radius: 0.625rem;
}
#stuff {
display: flex;
flex-direction: column;
width: 100%;
gap: 1.25rem;
padding: 1.25rem 1.875rem;
box-shadow: 0.25rem 0.25rem 0.25rem 0rem rgba(0, 0, 0, 0.25);
border-radius: 0.625em;
}
.stuff-darkmode {
background-color: #2C2C2C;
}
.stuff-lightmode {
background-color: #fff;
}
</style>

View File

@ -1,7 +1,7 @@
<template>
<section id="content">
<div id="content-header">
<pre id="page-name"> </pre>
<pre :class="[darkMode ? 'pre-darkmode' : 'pre-lightmode']" id="page-name"> </pre>
</div>
<div id="content-body">
<LoginForm />
@ -20,10 +20,15 @@ definePageMeta({
import LoginForm from "../components/LoginForm.vue";
export default {
name: "LoginPage",
components: {
LoginForm,
}
name: "LoginPage",
components: {
LoginForm,
},
data() {
return {
darkMode: true,
};
},
}
</script>
@ -31,50 +36,54 @@ export default {
<style scoped>
* {
box-sizing: border-box;
}
* {
box-sizing: border-box;
}
#content {
display: flex;
flex-direction: column;
float: left;
justify-content: stretch;
align-items: stretch;
width: 100%;
flex-grow: 1;
gap: 0.625rem;
padding: 0 1.25rem;
}
#content-header {
display: flex;
flex-direction: row;
justify-content: center;
align-items: center;
width: 100%;
height: 3.125rem;
}
#page-name {
color: #fff;
letter-spacing: 5%;
font: 400 1.5rem/125% Overpass, -apple-system, Roboto, Helvetica, sans-serif;
}
#content {
display: flex;
flex-direction: column;
float: left;
justify-content: stretch;
align-items: stretch;
width: 100%;
flex-grow: 1;
gap: 0.625rem;
padding: 0 1.25rem;
}
#content-body {
display: flex;
flex-direction: column;
align-items: center;
justify-content: flex-start;
width: fit-content;
height: fit-content;
gap: 1.25rem;
margin-bottom: 0.625rem;
border-radius: 0.625rem;
}
#content-header {
display: flex;
flex-direction: row;
justify-content: center;
align-items: center;
width: 100%;
height: 3.125rem;
}
#page-name {
letter-spacing: 5%;
font: 400 1.5rem/125% Overpass, -apple-system, Roboto, Helvetica, sans-serif;
}
.pre-darkmode {
color: #fff;
}
.pre-lightmode {
color: #000;
}
#content-body {
display: flex;
flex-direction: column;
align-items: center;
justify-content: flex-start;
width: fit-content;
height: fit-content;
gap: 1.25rem;
margin-bottom: 0.625rem;
border-radius: 0.625rem;
}
</style>

View File

@ -1,23 +1,23 @@
<template>
<section id="content">
<div id="content-header">
<h1 id="page-name">Solutions</h1>
</div>
<div id="content-body">
<ClientSearch />
<SolutionTable />
<SolutionTableNoClient />
<Solution />
<SolutionChecklist />
</div>
</section>
<section id="content">
<div id="content-header">
<h1 :class="[darkMode ? 'h1-darkmode' : 'h1-lightmode']" id="page-name">Solutions</h1>
</div>
<div id="content-body">
<ClientSearch />
<SolutionTable />
<SolutionTableNoClient />
<Solution />
<SolutionChecklist />
</div>
</section>
</template>
<script setup>
definePageMeta({
layout: 'default'
})
definePageMeta({
layout: 'default'
})
</script>
<script>
@ -27,62 +27,74 @@ import SolutionTableNoClient from "../components/server/SolutionTableNoClient.vu
import Solution from "../components/server/Solution.vue";
import SolutionChecklist from "../components/server/SolutionChecklist.vue";
export default {
name: "AssetPage",
components: {
ClientSearch,
SolutionTable,
SolutionTableNoClient,
Solution,
SolutionChecklist,
}
}
export default {
name: "AssetPage",
components: {
ClientSearch,
SolutionTable,
SolutionTableNoClient,
Solution,
SolutionChecklist,
},
data() {
return {
darkMode: true,
};
},
}
</script>
<style scoped>
* {
box-sizing: border-box;
}
* {
box-sizing: border-box;
}
#content {
display: flex;
flex-direction: column;
float: left;
justify-content: stretch;
align-items: stretch;
width: 100%;
flex-grow: 1;
gap: 0.625rem;
padding: 0 1.25rem;
}
#content-header {
display: flex;
flex-direction: row;
justify-content: center;
align-items: center;
width: 100%;
height: 3.125rem;
}
#page-name {
color: #fff;
letter-spacing: 5%;
font: 400 1.5rem/125% Overpass, -apple-system, Roboto, Helvetica,
sans-serif;
text-decoration: underline;
}
#content {
display: flex;
flex-direction: column;
float: left;
justify-content: stretch;
align-items: stretch;
width: 100%;
flex-grow: 1;
gap: 0.625rem;
padding: 0 1.25rem;
}
#content-body {
display: flex;
flex-direction: column;
width: 100%;
gap: 1.25rem;
margin-bottom: 0.625rem;
border-radius: 0.625rem;
}
#content-header {
display: flex;
flex-direction: row;
justify-content: center;
align-items: center;
width: 100%;
height: 3.125rem;
}
#page-name {
letter-spacing: 5%;
font: 400 1.5rem/125% Overpass, -apple-system, Roboto, Helvetica,
sans-serif;
text-decoration: underline;
}
.h1-darkmode {
color: #fff;
}
.h1-lightmode {
color: #000;
}
#content-body {
display: flex;
flex-direction: column;
width: 100%;
gap: 1.25rem;
margin-bottom: 0.625rem;
border-radius: 0.625rem;
}
</style>