Skip to content

Commit

Permalink
Fix background color
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel-lerch committed Jun 23, 2024
1 parent 89cba50 commit c537c61
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 15 deletions.
2 changes: 1 addition & 1 deletion app.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<template>
<div class="canvas flex flex-col min-h-screen">
<div class="flex flex-col min-h-screen">
<DesktopMenu :items="menu.items" class="hidden lg:block" />
<MobileMenu :items="menu.items" class="block lg:hidden" />
<NuxtPage class="flex-grow"/>
Expand Down
8 changes: 0 additions & 8 deletions assets/css/tailwind.css
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,6 @@
@tailwind components;
@tailwind utilities;

/* dark blue overscroll background */
html {
@apply bg-sogblue-darker;
}
.canvas {
@apply bg-white;
}

/* CSS Global */
.nuxt-content {
@apply text-gray-800 font-overpass;
Expand Down
7 changes: 3 additions & 4 deletions error.vue
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,14 @@
{{ $t('error.language') }}
<div class="text-lg text-gray-800 mt-2 font-normal">
{{ $t('error.availableIn') }}
<nuxt-link
<NuxtLink
v-for="availableLocale in availableLocales"
:key="availableLocale.code"
:to="switchLocalePath(availableLocale.code)"
class="hover:text-sogblue-dark transition-colors duration-100"
>
{{ availableLocale.name }}
</nuxt-link>
</NuxtLink>
</div>
</div>
<div v-else-if="error.statusCode === 404" class="text-sogblue">
Expand Down Expand Up @@ -67,8 +67,7 @@ const lookupAvailableLocales = async () => {
for (const locale in locales.value) {
try {
await queryContent(
`${locales.value[locale].code}/${route.params.slug}`,
'index'
`${locales.value[locale].code}/${route.params.slug}`
).findOne()
availableLocales.push(locales.value[locale])
} catch {
Expand Down
4 changes: 2 additions & 2 deletions pages/[...slug].vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<template>
<article v-if="page" class="container mx-auto">
<ContentRenderer :value="page" />
<ContentRenderer :value="page" class="nuxt-content" />
</article>
</template>

Expand All @@ -15,7 +15,7 @@
const route = useRoute()
const { locale, t } = useI18n()
const page = await queryContent(`${locale.value}/${route.params.slug}`).findOne().catch(() => {
const page = await queryContent(locale.value, ...route.params.slug).findOne().catch(() => {
throw createError({
statusCode: 404,
message: 'Page could not be found',
Expand Down

0 comments on commit c537c61

Please sign in to comment.