diff --git a/src/css/base.css b/src/css/base.css index 90333c2..d7f9a73 100644 --- a/src/css/base.css +++ b/src/css/base.css @@ -22,6 +22,15 @@ body::after { overflow: hidden; } +body::before { + content: attr(title); + position: absolute; + inset: 0; + top: 97.5%; + font-size: 0.8em; + font-weight: 300; +} + header, footer { display: flex; diff --git a/src/lib/images.ts b/src/lib/images.ts index 712192c..f57bb8b 100644 --- a/src/lib/images.ts +++ b/src/lib/images.ts @@ -74,7 +74,7 @@ function createImages() { subscribe, set, update, load, prepare, async back() { await load(); - const [{ src }] = prepare(); + const [{ src, alt }] = prepare(); // await addImageProcess(src) // const img = new Image(); // img.src = src @@ -83,6 +83,7 @@ function createImages() { background: url(${src}) center no-repeat; background-size: cover; `; + document.body.title = alt } } }