From 5a91b2d5b74f02791a4e426bebcf8917a29f341e Mon Sep 17 00:00:00 2001 From: delta Date: Thu, 13 Feb 2025 20:56:51 +0100 Subject: make the triangles prettier and move --- assets/css/main.css | 14 ++++++++++++-- assets/triangle.svg | 44 +++++++++++++++++++++++++++++++++++++------- 2 files changed, 49 insertions(+), 9 deletions(-) (limited to 'assets') diff --git a/assets/css/main.css b/assets/css/main.css index c1954f0..62d2eae 100644 --- a/assets/css/main.css +++ b/assets/css/main.css @@ -60,7 +60,7 @@ body { z-index: -1; } -#features { +#triangles { content: ""; width: 200%; height: 200%; @@ -70,6 +70,13 @@ body { left: 50%; top: 50%; z-index: -2; + animation: scroll 12s linear infinite; +} + +@keyframes scroll { + to { + background-position: -96px 0; /* svg size */ + } } #rainbow { @@ -110,8 +117,11 @@ body { * failsafe for when the viewport is too small and the rainbow overlaps the text */ main > div, -footer > span { +footer, +nav > ul { background-color: var(--bg); + box-shadow: var(--bg) 0 0 32px 8px; + border-radius: var(--border-radius); } #upper { diff --git a/assets/triangle.svg b/assets/triangle.svg index 87439fc..7e960f6 100644 --- a/assets/triangle.svg +++ b/assets/triangle.svg @@ -2,9 +2,9 @@ + id="layer1" + transform="matrix(0.33333334,0,0,0.33333332,4.2333331,4.2333329)" + style="fill:#0c1116;fill-opacity:1"> + d="M 5.6178411,3.720292 H 1.7436973 L 3.6807692,0.36518502 Z" + transform="matrix(1.6390718,0,0,1.8926372,0.3169551,2.4838372)" /> + + + + + + + + + -- cgit v1.2.3