Skip to content
This repository has been archived by the owner on Mar 7, 2024. It is now read-only.

Commit

Permalink
feat: z-stack bug fixed + checkboxtile finished
Browse files Browse the repository at this point in the history
  • Loading branch information
jobulcke committed Oct 2, 2023
1 parent 3b03fe1 commit 414c2ae
Show file tree
Hide file tree
Showing 4 changed files with 54 additions and 45 deletions.
6 changes: 3 additions & 3 deletions frontend/src/components/checkbox/CheckboxTile.vue
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<template>
<div class="checkbox-tile" :class="{ 'checked': checked }" @click="checked = !checked">
<div class="checkmark-container">
<img v-if="checked" src="../../assets/svgs/checkboxtile/check-checked.svg" alt="checkbox checked"/>
<img v-if="checked" class="checkmark-checked" src="../../assets/svgs/checkboxtile/check-checked.svg" alt="checkbox checked"/>
<span v-else class="checkmark"/>
</div>
<h5 class="header5">{{ label }} {{ checked ? "(Active)" : "" }}</h5>
<h5 class="header5">{{ label }}</h5>
</div>
</template>

Expand Down Expand Up @@ -69,7 +69,7 @@ export default {
background-color: #fff;
}
.checkmark.checked {
.checkmark-checked {
border: #fff solid 1px;
width: 18px;
height: 18px;
Expand Down
46 changes: 5 additions & 41 deletions frontend/src/components/map/LeafletMap.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<template>
<div>
<div class="z-stack">
<MapButtons></MapButtons>
<div class="linked-data-container">
<div style="width: 50%" id="map"></div>
Expand Down Expand Up @@ -135,56 +135,20 @@ export default {
</script>

<style>
.map-buttons {
.linked-data-container {
position: relative;
display: flex;
flex-direction: column;
align-items: end;
z-index: 2;
width: 50%;
top: 350px;
right: 12px;
margin-top: -160px;
margin-bottom: 30px;
gap: 10px;
display: flex;
width: 100%;
}
.linked-data-container {
.z-stack {
position: relative;
z-index: 1;
display: flex;
width: 100%;
height: 350px;
}
.map-button {
width: 74px;
height: 60px;
border: none;
background-color: #fff;
border-radius: 3px;
display: inline-flex;
flex-direction: column;
gap: 4px;
align-items: center;
justify-content: center;
}
.map-button > img {
width: 24px;
height: 24px;
}
.map-button > span {
color: #0055CC;
font-family: Flanders Art Sans, sans-serif;
font-size: 12px;
font-weight: 500;
line-height: 16px;
letter-spacing: 0;
}
.leaflet-control-zoom-in,
.leaflet-control-zoom-out {
color: #05C !important;
Expand Down
45 changes: 45 additions & 0 deletions frontend/src/components/modal/MapButtons.vue
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,51 @@ function onMapButtonClicked(button : "layers" | "legend") {
</template>

<style scoped>
.map-buttons {
position: absolute;
display: flex;
flex-direction: column;
align-items: end;
gap: 10px;
z-index: 10;
width: fit-content;
margin-right: 12px;
right: 50%;
bottom: 0;
margin-bottom: 30px;
}
.map-button {
width: 74px;
height: 60px;
border: none;
background-color: #fff;
border-radius: 3px;
display: inline-flex;
flex-direction: column;
gap: 4px;
align-items: center;
justify-content: center;
}
.map-button:hover {
cursor: pointer;
}
.map-button > img {
width: 24px;
height: 24px;
}
.map-button > span {
color: #0055CC;
font-family: Flanders Art Sans, sans-serif;
font-size: 12px;
font-weight: 500;
line-height: 16px;
letter-spacing: 0;
}
.modal {
display: flex;
flex-direction: column;
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/components/slider/Slider.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import {computed, reactive, ref, watch} from "vue";
const emit = defineEmits(['timestampChanged', 'realtimeToggled'])
const now = new Date();
const isRealtime = ref(false)
const isRealtime = ref(true)
watch(isRealtime, (newVal, oldVal) => {
if(newVal !== oldVal) {
Expand Down

0 comments on commit 414c2ae

Please sign in to comment.