2020-12-26 09:50:33 +00:00
|
|
|
<template>
|
|
|
|
<div class="relative group page-header">
|
2021-01-07 21:16:51 +00:00
|
|
|
<component is="style">
|
2021-01-07 21:06:14 +00:00
|
|
|
:root {
|
|
|
|
--bg: url('{{ require('@/assets/images/'+normalImageType+'/bg.jpg') }}');
|
|
|
|
--bg-sm: url('{{ require('@/assets/images/'+normalImageType+'/bg-sm.jpg') }}');
|
|
|
|
--bg-md: url('{{ require('@/assets/images/'+normalImageType+'/bg-md.jpg') }}');
|
|
|
|
--bg-lg: url('{{ require('@/assets/images/'+normalImageType+'/bg-lg.jpg') }}');
|
|
|
|
--bg-xl: url('{{ require('@/assets/images/'+normalImageType+'/bg-xl.jpg') }}');
|
|
|
|
--bg-xxl: url('{{ require('@/assets/images/'+normalImageType+'/bg-xxl.jpg') }}');
|
|
|
|
}
|
2021-01-07 21:16:51 +00:00
|
|
|
</component>
|
2020-12-26 09:50:33 +00:00
|
|
|
<div class="h-full w-full page-header-background">
|
|
|
|
<div class="w-full h-full opacity-50 bg-black">
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="absolute bottom-0 py-2 left-0 right-0">
|
|
|
|
<div class="container mx-auto main">
|
|
|
|
<div>
|
|
|
|
<slot></slot>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
export default {
|
2021-01-07 21:06:14 +00:00
|
|
|
props: [ 'imageType' ],
|
|
|
|
computed: {
|
|
|
|
normalImageType() {
|
|
|
|
return this.imageType ?? 'yuika';
|
|
|
|
}
|
|
|
|
},
|
2020-12-26 09:50:33 +00:00
|
|
|
|
|
|
|
}
|
|
|
|
</script>
|
|
|
|
<style>
|
|
|
|
|
|
|
|
.page-header {
|
|
|
|
width: 100%;
|
|
|
|
min-height: 200px;
|
|
|
|
height: 70vh;
|
|
|
|
@apply text-white font-light;
|
|
|
|
}
|
|
|
|
.page-header a {
|
|
|
|
@apply text-white;
|
|
|
|
}
|
|
|
|
@screen md {
|
|
|
|
.page-header {
|
|
|
|
min-height: 300px;
|
|
|
|
height: 70vh;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.page-header-background {
|
2021-01-07 21:06:14 +00:00
|
|
|
background-image: var(--bg-sm);
|
2020-12-26 09:50:33 +00:00
|
|
|
background-size: cover;
|
|
|
|
background-position: right 25% top 20%;
|
|
|
|
}
|
|
|
|
@screen sm {
|
|
|
|
.page-header-background {
|
2021-01-07 21:06:14 +00:00
|
|
|
background-image: var(--bg-md);
|
2020-12-26 09:50:33 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
@screen md {
|
|
|
|
.page-header-background {
|
2021-01-07 21:06:14 +00:00
|
|
|
background-image: var(--bg-lg);
|
2020-12-26 09:50:33 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
@screen lg {
|
|
|
|
.page-header-background {
|
2021-01-07 21:06:14 +00:00
|
|
|
background-image: var(--bg-xl);
|
2020-12-26 09:50:33 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
@screen xl {
|
|
|
|
.page-header-background {
|
2021-01-07 21:06:14 +00:00
|
|
|
background-image: var(--bg-xxl);
|
2020-12-26 09:50:33 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
</style>
|