Skip to content

Commit

Permalink
add new content
Browse files Browse the repository at this point in the history
  • Loading branch information
seralichtenhahn committed Feb 6, 2022
1 parent 5ee7a52 commit 7f59efc
Show file tree
Hide file tree
Showing 3 changed files with 121 additions and 31 deletions.
60 changes: 60 additions & 0 deletions assets/images/freiluft_signet.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
13 changes: 2 additions & 11 deletions components/App/AppBanner.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@
v-editable="banner"
class="bg-secondary text-headline text-center py-2 px-4"
>
<BaseRichText :content="banner.text" />
<BaseRichText class="max-w-none prose-p:mb-0" :content="banner.text" />
</div>
</template>

<script>
import BaseRichText from "@/components/Base/BaseRichText"
import get from "lodash/get"
import BaseRichText from "@/components/Base/BaseRichText"
import query from "@/queries/getBanner.gql"
export default {
Expand All @@ -28,16 +28,7 @@ export default {
async fetch() {
const response = await this.$apollo.query({ query })
this.banner = get(response, "data.SettingsItem.content.banner[0]", false)
},
methods: {
//
}
}
</script>

<style lang="postcss" scoped>
>>> p {
margin-bottom: 0 !important;
max-width: 100%;
}
</style>
79 changes: 59 additions & 20 deletions components/App/AppHeader.vue
Original file line number Diff line number Diff line change
@@ -1,12 +1,32 @@
<template>
<header
v-editable="blok"
class="flex flex-col pt-2 px-4 w-full min-h-[80vh] overflow-x-hidden mb-8 md:px-8 md:pt-4 md:mb-24 2xl:px-20 2xl:min-h-screen-90"
class="
mb-8
flex
min-h-[80vh]
w-full
flex-col
overflow-x-hidden
px-4
pt-2
md:mb-24 md:px-8 md:pt-4
2xl:min-h-screen-90 2xl:px-20
"
>
<div
class="relative flex-1 flex justify-center items-center h-full rounded-xl overflow-hidden"
class="
relative
flex
h-full
flex-1
items-center
justify-center
overflow-hidden
rounded-xl
"
>
<picture class="absolute inset-0 w-full h-full">
<picture class="absolute inset-0 h-full w-full">
<source
media="(min-width: 768px)"
:srcset="require('@/assets/images/ff_bg_2021.jpg')"
Expand All @@ -20,28 +40,59 @@
</picture>
<div
aria-hidden="true"
class="absolute md:hidden inset-0 backdrop-filter backdrop-blur-sm bg-gray-500 bg-opacity-10 backdrop-brightness-90"
class="
absolute
inset-0
bg-gray-500 bg-opacity-10
backdrop-blur-sm backdrop-brightness-90 backdrop-filter
md:hidden
"
/>
<div
class="container md:flex md:justify-start md:items-center lg:px-16 xl:px-24"
class="
container
md:flex md:items-center md:justify-start
lg:px-16
xl:px-24
"
>
<div class="relative w-full md:w-1/2 xl:w-full xl:max-w-xl">
<h1 class="sr-only">{{ blok.title }}</h1>
<FreiluftSignet />
<p
class="
ml-2
xl:ml-4
bg-gradient-to-br
from-secondary
to-[#fc9842]
bg-clip-text
font-headline
text-5xl
font-bold
text-transparent text-secondary
drop-shadow-lg
lg:text-6xl
xl:text-7xl xl:leading-none
"
>
{{ blok.date }}
</p>
</div>
</div>
</div>
<div class="text-center w-full h-20 flex justify-center items-center">
<div class="flex h-20 w-full items-center justify-center text-center">
<button class="mx-auto" @click="scrollToContent">
<span class="sr-only">Zum Inhalt scrollen</span>
<IconChevron class="text-headline w-12 h-12" />
<IconChevron class="h-12 w-12 text-headline" />
</button>
</div>
</header>
</template>

<script>
import IconChevron from "@/assets/icons/chevron-down.svg"
import FreiluftSignet from "@/assets/images/freiluft_signet_mit_jahr.svg"
import FreiluftSignet from "@/assets/images/freiluft_signet.svg"
export default {
name: "AppHeader",
Expand All @@ -66,15 +117,3 @@ export default {
}
}
</script>

<style lang="postcss" scoped>
h1 {
@apply text-6xl font-bold text-center text-white tracking-wider leading-none md:text-9xl lg:text-12xl;
text-shadow: 0.3rem 0 theme("colors.secondary");
@screen md {
text-shadow: 0.5rem 0 theme("colors.secondary");
}
}
</style>

1 comment on commit 7f59efc

@vercel
Copy link

@vercel vercel bot commented on 7f59efc Feb 6, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.