Compare commits

..

4 commits

Author SHA1 Message Date
b12f aea396180a
Merge pull request 'fix/card-sizing' (#9) from fix/card-sizing into main
All checks were successful
continuous-integration/drone/push Build is passing
Reviewed-on: #9
2024-04-14 13:59:17 +00:00
Benjamin Yule Bädorf 68e3aab8d1
img: reduce image sizes by lowering quality
All checks were successful
continuous-integration/drone/pr Build is passing
continuous-integration/drone/push Build is passing
2024-04-14 15:57:27 +02:00
Benjamin Yule Bädorf 424274cda4
feat: add favicon
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing
2024-04-14 15:48:12 +02:00
Benjamin Yule Bädorf c1acb631ff
homepage: fix black box below cards on certain screen sizes 2024-04-14 15:47:54 +02:00
8 changed files with 15 additions and 4 deletions

View file

@ -46,6 +46,7 @@ site.loadAssets([ ".js" ]);
site.copy("fonts"); site.copy("fonts");
site.copy("img"); site.copy("img");
site.copy("favicon.ico");
site.filter("title", (value = '') => value + (value ? " | " : "") + "MiOM"); site.filter("title", (value = '') => value + (value ? " | " : "") + "MiOM");

View file

@ -4,7 +4,7 @@
<meta charset="utf-8" /> <meta charset="utf-8" />
<title>{{ title |> title |> safe }}</title> <title>{{ title |> title |> safe }}</title>
<link rel="shortcut icon" href="/favicon.png" /> <link rel="shortcut icon" href="/favicon.ico" />
<meta name="theme-color" content="{{ themeColor }}" id="theme-color" /> <meta name="theme-color" content="{{ themeColor }}" id="theme-color" />
<meta name="description" content="MiOM Kreativraum is a creative space in Cologne, Germany"> <meta name="description" content="MiOM Kreativraum is a creative space in Cologne, Germany">

View file

@ -8,7 +8,7 @@
<source media="(min-width: 800px) and (max-width: 1400)" srcset="/img/logo-500.jpg" /> <source media="(min-width: 800px) and (max-width: 1400)" srcset="/img/logo-500.jpg" />
<source media="(min-width: 1401px) and (max-width: 1899px)" srcset="/img/logo-700.jpg" /> <source media="(min-width: 1401px) and (max-width: 1899px)" srcset="/img/logo-700.jpg" />
<source media="(min-width: 1900px)" srcset="/img/logo-1000.jpg" /> <source media="(min-width: 1900px)" srcset="/img/logo-1000.jpg" />
<img class="mi-logo--img" src="/img/logo-1000.jpg" alt="MiOM Logo" /> <img class="mi-logo--img" src="/img/logo-500.jpg" alt="MiOM Logo" />
</picture> </picture>
</div> </div>
@ -26,12 +26,14 @@
<source media="(min-width: 501px)" srcset="/img/home-{{ card.image.url }}-700.jpg" /> <source media="(min-width: 501px)" srcset="/img/home-{{ card.image.url }}-700.jpg" />
<img <img
class="mi-card--background" class="mi-card--background"
src="/img/home-{{ card.image.url }}-700.jpg" src="/img/home-{{ card.image.url }}-500.jpg"
alt="{{ card.image.alt }}" alt="{{ card.image.alt }}"
/> />
</picture> </picture>
<div class="mi-card--text">{{ card.text }}</div> <div class="mi-card--text">{{ card.text }}</div>
</a> </a>
{{ /for }} {{ /for }}
</main> </main>
<div class="mi-page-filler"></div>
{{ /layout }} {{ /layout }}

BIN
favicon.ico Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 22 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.4 MiB

After

Width:  |  Height:  |  Size: 328 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 305 KiB

After

Width:  |  Height:  |  Size: 72 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 635 KiB

After

Width:  |  Height:  |  Size: 136 KiB

View file

@ -69,6 +69,13 @@ h4 {
width: 100vw; width: 100vw;
} }
.mi-page-filler {
width: 100%;
padding: 0;
flex-basis: 0;
flex-grow: 1;
}
.mi-border { .mi-border {
pointer-events: none; pointer-events: none;
z-index: 10; z-index: 10;
@ -317,7 +324,7 @@ h4 {
.mi-main { .mi-main {
background: var(--background); background: var(--background);
margin: 0 var(--box-padding); margin: 0 var(--box-padding);
flex-grow: 1; flex-grow: 0;
position: relative; position: relative;
margin-bottom: var(--box-padding); margin-bottom: var(--box-padding);
} }
@ -346,6 +353,7 @@ h4 {
background: var(--foreground); background: var(--foreground);
grid-gap: 1px; grid-gap: 1px;
grid-template-columns: 1fr; grid-template-columns: 1fr;
padding-bottom: 1px;
} }
@media screen and (min-width: 800px) { @media screen and (min-width: 800px) {