fix theme issues

This commit is contained in:
Will Freeman
2024-11-13 11:19:38 -07:00
parent 18485579f5
commit fb149b4580
5 changed files with 6 additions and 35 deletions

View File

@@ -9,7 +9,7 @@ a:hover {
}
:root {
--df-background-color: rgb(33,33,33);
--df-background-color: white;
--df-text-color: #ccc;
}

View File

@@ -1,6 +1,6 @@
<template>
<div style="position: relative">
<v-btn @click="copyToClipboard" icon variant="plain" flat class="copy-button">
<v-btn color="white" @click="copyToClipboard" icon variant="plain" flat class="copy-button">
<v-icon>mdi-content-copy</v-icon>
</v-btn>
<code ref="codeContent">

View File

@@ -103,6 +103,7 @@ const selectedBrand: Ref<WikidataItem> = ref(alprBrands[0]);
.overlay {
text-shadow: 2px 2px 4px rgba(0, 0, 0, 1);
color: white;
/* font-family: 'Courier New', Courier, monospace; */
font-weight: bold;
text-transform: uppercase;

View File

@@ -14,7 +14,7 @@ const vuetify = createVuetify({
components,
directives,
theme: {
defaultTheme: 'dark',
defaultTheme: 'light',
}
})

View File

@@ -62,12 +62,6 @@
<span class="mb-4 text-grey">Loading Map</span>
<v-progress-circular indeterminate color="primary" />
</div>
<transition name="fade">
<div v-show="showPardon" class="pardon">
<h4 class="mb-4">Pardon our Progress</h4>
<span>We're updating our map tiles, so it will be bright for now.</span>
</div>
</transition>
</div>
</template>
@@ -98,13 +92,12 @@ const searchField: Ref<any|null> = ref(null);
const searchQuery: Ref<string> = ref('');
const router = useRouter();
const { xs } = useDisplay();
const showPardon = ref(true);
const canRefreshMarkers = computed(() => zoom.value >= MIN_ZOOM_FOR_REFRESH);
const mapTileUrl = computed(() =>
theme.global.name.value === 'dark' ?
'https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png' :
'https://tiles.stadiamaps.com/tiles/osm_bright/{z}/{x}/{y}{r}.png'
'https://tiles.stadiamaps.com/tiles/alidade_smooth_dark/{z}/{x}/{y}{r}.png' :
'https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png'
);
const alprs: Ref<ALPR[]> = ref([]);
@@ -241,10 +234,6 @@ function updateMarkers() {
}
onMounted(() => {
setTimeout(() => {
showPardon.value = false;
}, 4200);
getClusters()
.then((result: any) => {
clusters.value = result.clusters;
@@ -311,23 +300,4 @@ onMounted(() => {
justify-content: center;
color: #333;
}
.pardon {
text-align: center;
position: absolute;
bottom: 20px;
left: 20px;
right: 20px;
@media (min-width: 600px) {
right: auto;
}
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
z-index: 1000;
background-color: rgba(0, 0, 0, 0.85);
border-radius: 4px;
padding: 20px;
}
</style>