gancio-upstream/components/Appbar.vue

61 lines
1.4 KiB
Vue
Raw Normal View History

2022-11-09 10:18:42 +01:00
<template>
2022-11-24 01:00:30 +01:00
<nav>
2023-01-09 16:55:45 +01:00
<NavHeader />
2022-11-19 13:20:15 +01:00
2022-11-24 01:00:30 +01:00
<!-- title -->
2025-01-15 10:26:56 +01:00
<h1 v-if="$route.name === 'index'" class="text-center">
2024-12-01 16:44:50 +01:00
<nuxt-link id="title" v-text="settings.title" to="/" />
<div
class="text-body-1 font-weight-light pb-3"
v-text="settings?.description"
/>
</h1>
2025-01-15 10:26:56 +01:00
<div v-else class="text-center">
2023-01-09 16:55:45 +01:00
<nuxt-link id="title" v-text="settings.title" to="/" />
<div
2024-01-23 09:11:54 +01:00
class="text-body-1 font-weight-light pb-3"
2024-01-19 00:46:19 +01:00
v-text="settings?.description"
2023-01-09 16:55:45 +01:00
/>
2022-11-24 01:00:30 +01:00
</div>
2022-11-19 13:20:15 +01:00
<NavSearch />
2024-01-19 00:46:19 +01:00
<NavBar v-if="!['event-slug','e-slug'].includes($route.name)"/>
2022-11-24 01:00:30 +01:00
</nav>
2019-04-03 00:25:12 +02:00
</template>
<script>
2019-06-25 01:05:38 +02:00
import { mapState } from 'vuex'
2022-11-24 01:00:30 +01:00
import NavHeader from './NavHeader.vue'
import NavBar from './NavBar.vue'
import NavSearch from './NavSearch.vue'
2019-05-30 12:04:14 +02:00
2019-04-03 00:25:12 +02:00
export default {
2022-11-19 13:20:15 +01:00
name: 'Appbar',
2022-11-24 01:00:30 +01:00
components: { NavHeader, NavBar, NavSearch },
2023-01-09 16:55:45 +01:00
computed: mapState(['settings']),
2019-04-03 00:25:12 +02:00
}
</script>
2022-11-24 01:00:30 +01:00
<style>
nav {
2023-01-09 16:55:45 +01:00
background-image: linear-gradient(rgba(0, 0, 0, 0.8), rgba(20, 20, 20, 0.7)),
url(/headerimage.png);
2022-11-24 01:00:30 +01:00
background-position: center center;
background-size: cover;
}
.theme--light nav {
2023-01-09 16:55:45 +01:00
background-image: linear-gradient(
to bottom,
rgba(230, 230, 230, 0.95),
rgba(250, 250, 250, 0.95)
),
url(/headerimage.png);
2022-11-24 01:00:30 +01:00
}
2022-11-24 17:27:15 +01:00
#title {
2023-11-09 17:15:55 +01:00
word-break: break-all;
2022-11-24 17:27:15 +01:00
font-size: 2rem;
font-weight: 600;
text-decoration: none;
}
2023-01-09 16:55:45 +01:00
</style>