diff --git a/public/css/home.css b/public/css/home.css index 4ad3232..ea115be 100644 --- a/public/css/home.css +++ b/public/css/home.css @@ -62,10 +62,27 @@ /* Shape classes */ .diamond { - width: calc(100% / sqrt(2)); /* ≈ 100% / √2 (100% because square width = 1, which translates to 100%) */ + width: 100%; aspect-ratio: 1 / 1; - transform: rotate(45deg); margin: auto; + animation: spin-in 1s forwards; + display: flex; + align-items: center; + justify-content: center; + position: relative; +} + +.diamond::after { + content: ""; + position: absolute; + width: calc(100% / sqrt(2)); /* Shrink so rotated square fits inside wrapper */ + aspect-ratio: 1 / 1; + background: var(--fill-color); + transform: rotate(45deg); +} + +.circle { + border-radius: 75%; } main > * { diff --git a/src/_includes/layout.html b/src/_includes/layout.html index 568aea6..f65c613 100644 --- a/src/_includes/layout.html +++ b/src/_includes/layout.html @@ -49,7 +49,7 @@
-
+