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,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>