1
0
Fork 1
mirror of https://github.com/pixelfed/pixelfed.git synced 2024-12-24 00:35:59 +00:00
pixelfed/resources/assets/components/groups/partials/Page/GroupBanner.vue

45 lines
1 KiB
Vue
Raw Normal View History

2024-07-10 05:52:08 +00:00
<template>
<div class="px-md-5" style="background-color: #fff;">
<img
v-if="group.metadata && group.metadata.hasOwnProperty('header')"
:src="group.metadata.header.url"
class="header-image">
<div v-else class="header-jumbotron"></div>
</div>
</template>
<script>
export default {
props: {
group: {
type: Object
}
}
}
</script>
<style lang="scss" scoped>
.header-image {
width: 100%;
height: auto;
object-fit: cover;
max-height: 220px;
border-bottom-left-radius: 5px;
border-bottom-right-radius: 5px;
margin-top:-1px;
border: 1px solid var(--light);
margin-bottom: 0px;
@media(min-width: 768px) {
max-height: 420px;
}
}
.header-jumbotron {
background-color: #F3F4F6;
height: 320px;
border-bottom-left-radius: 20px;
border-bottom-right-radius: 20px;
}
</style>