Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
78 changes: 31 additions & 47 deletions data/assets/css/components/_event-summary.scss
Original file line number Diff line number Diff line change
Expand Up @@ -17,20 +17,47 @@ $thumbnailSizeMobile: 75px;
.event-summary {
position: relative;
justify-self: left;
margin-bottom: $space-medium;
width: 100%;
display: flex;
flex-wrap: wrap;

@include size-medium {
width: auto;
max-width: 300px;
margin-bottom: $space-large;
justify-self: center;
display: block;
}

@include size-large {
justify-self: left;
}

.logo-event {
flex: 0 0 25;
max-width: 25%;

img {
width: 100%;
outline: 4px solid $black;
background-color: whitesmoke;
transition: outline 120ms ease-in-out;

@include size-medium {
width: 300px;
height: 300px;
}
}
&:hover img {
outline: 4px solid $brand-color;
}
}

.description-event {
flex: 0 0 70%;
max-width: 70%;
margin-left: 5%;
}

h1 {
text-align: left;
font-size: 1.1rem;
Expand All @@ -54,64 +81,21 @@ $thumbnailSizeMobile: 75px;
}
}
}

.reset-link {
margin-bottom: $space-small;
background-image: none;
float: left;
margin-right: $space-medium;
max-width: $thumbnailSizeMobile;

@include size-medium {
float: none;
margin-right: 0;
max-width: auto;
}

&:hover {
background-image: none;
padding: 0;
}
}

img {
width: 100%;
min-width: 50px;
outline: 4px solid $black;
border-radius: 50%;

background-color: whitesmoke;
transition: outline 120ms ease-in-out;

@include size-medium {
max-width: 300px;
width: 300px;
height: 300px;
}
}
&:hover img {
outline: 4px solid $brand-color;
}
}

p {
text-align: left;
color: $text-color-secondary;
font-size: 0.9rem;
margin-left: $thumbnailSizeMobile;
padding-left: $space-medium;
@include size-medium {
margin-left: 0;
padding-left: 0;
}
}

hr {
width: 30%;
height: 2px;
color: black;
background-color: black;
margin: $space-medium auto $space-large auto;
margin: $space-medium auto $space-medium auto;

@include size-medium {
margin: $space-large auto $space-larger auto;
}
Expand Down
32 changes: 18 additions & 14 deletions data/index.njk
Original file line number Diff line number Diff line change
Expand Up @@ -20,22 +20,26 @@
<section class="next-events-summary">
{% for event in collections.events %}
<article class="event-summary">
<h1>
{{ dateBadge(event.isToday, event.isThisWeek, event.twitter) }}
<a href="events/{{event.slug}}">
<section class="reset-link">{{image(event.twitter)}}</section>
{{event.title}}
<a class="logo-event" href="events/{{event.slug}}">
<section >{{image(event.twitter)}}</section>
</a>
</h1>
<p>
{{ dayOfWeek(event.startDate) }} /
{{ shortDate(event.startDate) }} /
{{ time(event.startDate) }}
{% if event.organizer %}
<br>
{{event.organizer}}
{% endif %}
<section class="description-event">
<h1>
{{ dateBadge(event.isToday, event.isThisWeek, event.twitter) }}
<a href="events/{{event.slug}}">
{{event.title}}
</a>
</h1>
<p>
{{ dayOfWeek(event.startDate) }} /
{{ shortDate(event.startDate) }} /
{{ time(event.startDate) }}
{% if event.organizer %}
<br>
{{event.organizer}}
{% endif %}
</p>
</section>
<hr>
</article>
{% endfor %}
Expand Down