Skip to content

Commit 894ab2d

Browse files
feat: Display event logo in public event page (#4864)
1 parent 49b65fb commit 894ab2d

File tree

3 files changed

+25
-6
lines changed

3 files changed

+25
-6
lines changed

app/styles/pages/public-event.scss

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
top: 0;
2121
}
2222

23-
> img {
23+
> img.background {
2424
bottom: 0;
2525
left: 0;
2626
position: absolute;
@@ -39,7 +39,7 @@
3939
right: 0;
4040
width: 100%;
4141

42-
img {
42+
img.background {
4343
left: 0;
4444
position: absolute;
4545
right: 0;
@@ -56,9 +56,16 @@
5656
width: 100%;
5757

5858
.info {
59+
align-items: center;
5960
bottom: 20%;
61+
flex-wrap: wrap;
6062
position: absolute;
6163

64+
.logo {
65+
max-height: 100px;
66+
max-width: 300px;
67+
}
68+
6269
.event {
6370
font-weight: 300;
6471
}
@@ -106,6 +113,12 @@
106113
}
107114
}
108115
}
116+
117+
@media (max-width: 550px) {
118+
.info {
119+
bottom: 5%;
120+
}
121+
}
109122
}
110123
}
111124
}

app/styles/partials/utils.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,3 +80,7 @@
8080
.mr-2 {
8181
margin-right: .5rem !important;
8282
}
83+
84+
.mr-8 {
85+
margin-right: 2rem !important;
86+
}

app/templates/public.hbs

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
11
<UnverifiedUserMessage />
22
<div class="public-event ui relaxed grid">
33
<div class="sixteen wide column lead {{if this.smallLead 'small'}}">
4-
<Widgets::SafeImage @src={{if this.model.largeImageUrl this.model.largeImageUrl this.model.originalImageUrl}} />
4+
<Widgets::SafeImage class="background" @src={{if this.model.largeImageUrl this.model.largeImageUrl this.model.originalImageUrl}} />
55
<div class="content">
66
<div class="ui container">
7-
<div class="ui grid info">
8-
<div class="one wide column"></div>
9-
<div class="fifteen wide column">
7+
<div class="ui info d-flex">
8+
{{#if this.model.logoUrl}}
9+
<img src="{{this.model.logoUrl}}" class="logo mr-8" />
10+
{{/if}}
11+
<div>
1012
<h4 class="event time">{{header-date this.model.startsAt this.model.timezone}}</h4>
1113
{{#if this.displayEndDate}}
1214
<h5 class="event time ends">{{t 'To'}} {{header-date this.model.endsAt this.model.timezone}}</h5>

0 commit comments

Comments
 (0)