From ba688b7feee0b3e2d64d323595ab39a73efb3473 Mon Sep 17 00:00:00 2001 From: guamss Date: Wed, 3 Jun 2026 15:00:14 +0200 Subject: [PATCH] add: color scheme --- src/pages/index.astro | 18 +++++++++++++----- src/style.css | 32 +++++++++++++++++++++++++++++--- 2 files changed, 42 insertions(+), 8 deletions(-) diff --git a/src/pages/index.astro b/src/pages/index.astro index 43fefa8..7e17937 100644 --- a/src/pages/index.astro +++ b/src/pages/index.astro @@ -3,14 +3,22 @@ import "../style.css"; import Layout from "../components/Layout.astro"; import Image from "../components/Image.astro"; const imagesObj: any = import.meta.glob("../assets/IMG/*.JPG", { eager: true }); -const images = Object.values(imagesObj).map((img: any) => img.default || img); +const images = Object.values(imagesObj) + .map((img: any) => img.default || img) + .reverse(); --- -
-

Mon album photo

-
- {images.map((img) => )} +
+

Mon album photo

+
+
+ {images.map((img) => )} +
+
diff --git a/src/style.css b/src/style.css index 1a3cdb8..82eeb92 100644 --- a/src/style.css +++ b/src/style.css @@ -1,20 +1,46 @@ html, body { + color: #be5985; + background-color: #ffedfa; font-family: var(--font-atkinson); margin: 0; width: 100%; height: 100%; } + main { - margin: 4rm; + display: flex; + align-items: center; + flex-direction: column; +} + +article { display: grid; grid-template-columns: repeat(3, 1fr); - grid-gap: 10px; + gap: 10px; + align-items: center; + justify-items: center; } .img-fluid { - width: 100%; + width: 95%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 4px; + transition: 0.2s; + border: 3px solid #ffb8e0; +} + +.img-fluid:hover { + scale: 1.02; + border: 3px solid #ec7fa9; +} + +footer { + margin: 4rem; +} + +a { + display: block; + width: 100%; }