forked from potsda.mn/mobilizon
Make event header picture display as background cover
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
parent
a20f2612bc
commit
405331f7cb
|
@ -3,13 +3,13 @@
|
|||
<b-loading :active.sync="$apollo.loading"></b-loading>
|
||||
<transition appear name="fade" mode="out-in">
|
||||
<div v-if="event">
|
||||
<div class="header-picture container">
|
||||
<figure class="image is-3by1" v-if="event.picture">
|
||||
<div class="header-picture" :style="`background-image: url('${event.picture ? event.picture.url : 'https://picsum.photos/600/200/'}')`">
|
||||
<!--<figure class="image is-3by1" v-if="event.picture">
|
||||
<img :src="event.picture.url">
|
||||
</figure>
|
||||
<figure class="image is-3by1" v-else>
|
||||
<img src="https://picsum.photos/600/200/">
|
||||
</figure>
|
||||
</figure>-->
|
||||
</div>
|
||||
<section>
|
||||
<div class="title-and-participate-button">
|
||||
|
@ -495,6 +495,14 @@ export default class Event extends EventMixin {
|
|||
opacity: 0;
|
||||
}
|
||||
|
||||
.header-picture {
|
||||
height: 400px;
|
||||
background-size: cover;
|
||||
// background-position: center center;
|
||||
background-attachment: fixed;
|
||||
background-repeat: no-repeat;
|
||||
}
|
||||
|
||||
div.sidebar {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
|
|
Loading…
Reference in a new issue