Skip to content

Commit a7ee206

Browse files
committed
Pictures added
1 parent f0dd971 commit a7ee206

32 files changed

+48
-72
lines changed

_config.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,3 +91,4 @@ defaults:
9191
type: lectures
9292
values:
9393
topic: "Other Topics"
94+

_layouts/page.html

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,21 @@
11
---
22
layout: default
33
---
4-
<article class="post container">
54

6-
{% if page.picture %}
7-
<header class="post-header">
8-
<h1 class="post-title">{{ page.title | escape }}</h1>
9-
</header>
10-
{% else %}
11-
<header class="post-header">
5+
{% if page.picture %}
6+
<header class="post-header page-has-picture" style="background-image: url('{{ page.picture }}');">
7+
<div class="container">
128
<h1 class="post-title">{{ page.title | escape }}</h1>
13-
</header>
14-
{% endif %}
9+
</div>
10+
</header>
11+
<article class="post container">
12+
{% else %}
13+
<article class="post container">
14+
<header class="post-header">
15+
<h1 class="post-title">{{ page.title | escape }}</h1>
16+
</header>
17+
{% endif %}
18+
1519

1620
<div class="post-content">
1721
{{ content }}

_sass/base.scss

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,21 @@ main{
135135
}
136136
}
137137

138+
// Picture header
139+
140+
.page-has-picture {
141+
height: 80svh;
142+
color: white;
143+
background-size: cover;
144+
background-position: center;
145+
align-content: end;
146+
position: relative;
147+
148+
text-shadow: 0 0 20px black;
149+
}
150+
138151

139152
@import "index";
140153
@import "post";
141154
@import "team";
155+
@import "open-day";

_sass/minima/_layout.scss

Lines changed: 0 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -345,55 +345,3 @@ section {
345345
border-radius: 5px;
346346
}
347347
}
348-
349-
// .open-day-2025-wrapper {
350-
// display: grid;
351-
// grid-template-columns: repeat(3, 1fr);
352-
// grid-auto-rows: 1fr;
353-
// // gap: $spacing-unit;
354-
355-
// .open-day-2025-image {
356-
// width: 100%;
357-
// height: 100%;
358-
// object-fit: cover;
359-
// border-radius: 5px;
360-
// box-sizing: border-box;
361-
// border: 3px solid transparent;
362-
363-
// &:nth-child(1),
364-
// &:nth-child(6),
365-
// &:nth-child(9) {
366-
// grid-row: span 3;
367-
// }
368-
369-
// &:nth-child(3),
370-
// &:nth-child(5) {
371-
// grid-row: span 4;
372-
// }
373-
374-
// &:nth-child(8),
375-
// &:nth-child(11) {
376-
// grid-row: span 1;
377-
// }
378-
379-
// &:nth-child(2),
380-
// &:nth-child(4),
381-
// &:nth-child(7),
382-
// &:nth-child(10) {
383-
// grid-row: span 2;
384-
// }
385-
// }
386-
// }
387-
388-
.open-day-2025-wrapper {
389-
display: grid;
390-
grid-template-columns: repeat(3, 1fr);
391-
grid-auto-rows: 1fr;
392-
gap: $spacing-unit;
393-
394-
.open-day-2025-image {
395-
width: 100%;
396-
height: auto;
397-
object-fit: cover;
398-
}
399-
}

_sass/open-day.scss

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
.open-day {
2+
columns: 350px;
3+
column-gap: 1em;
4+
5+
img {
6+
margin-bottom: 1em;
7+
}
8+
}
9+
10+
// @include media-query($on-palm) {
11+
// .open-day {
12+
// columns: 1;
13+
// }
14+
// }
1.78 MB
Loading
1.36 MB
Loading
782 KB
Loading
808 KB
Loading
678 KB
Loading

0 commit comments

Comments
 (0)