Add pictures to homepage

This commit is contained in:
Edgar P. Burkhart 2022-05-07 18:31:47 +02:00
parent 2b94c09c80
commit 9f352d5a16
Signed by: edpibu
GPG key ID: 9833D3C5A25BD227
7 changed files with 23 additions and 3 deletions

View file

@ -19,6 +19,12 @@
<h1>Edgar P. <strong>Burkhart</strong></h1>
<div class="img-block">
<img src="static/img/pic1.webp" />
<img src="static/img/pic2.webp" />
<img src="static/img/pic3.webp" />
</div>
<h2>Contact</h2>
<ul>
<li><a href="mailto:contact@edgarpierre.fr">contact@edgarpierre.fr</a></li>

View file

@ -25,11 +25,10 @@ body {
padding: 1rem;
font-weight: 350;
font-feature-settings: "ss01", "ss02", "ss03", "cv05", "cv08";
column-width: 288px;
max-width: 1440px;
column-width: 18rem;
max-width: 90rem;
}
h1, h2, h3 {font-weight: 250}
h1 {
font-size: 3rem;
@ -86,6 +85,18 @@ ul {list-style-type: ""}
ol {list-style-type: decimal-leading-zero}
li {padding-left: .5rem}
.img-block {
display: grid;
grid-template-columns: repeat(3, 1fr);
grid-gap: .2rem;
grid-auto-rows: auto;
}
.img-block > img {
width: 100%;
aspect-ratio: 1;
object-fit: cover;
}
footer {
background: var(--bg-01);
bottom: 0;

1
src/static/img/.gitignore vendored Normal file
View file

@ -0,0 +1 @@
*.jpg

2
src/static/img/convert.sh Executable file
View file

@ -0,0 +1,2 @@
#!/usr/bin/env sh
convert "$1" -geometry 384x384^ "${1%.*}.webp"

BIN
src/static/img/pic1.webp Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 64 KiB

BIN
src/static/img/pic2.webp Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 196 KiB

BIN
src/static/img/pic3.webp Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 117 KiB