From 7ce3c3c50dc1cb13e0faa0471325391a62edaf13 Mon Sep 17 00:00:00 2001 From: Cailean Finn Date: Thu, 25 Jul 2024 12:35:00 +0100 Subject: [PATCH] style changes --- public/css/styles.css | 25 ++++++++++++++++++++++++- public/js/article.js | 1 + public/js/list.js | 4 ++-- templates/list.html | 6 +++--- 4 files changed, 30 insertions(+), 6 deletions(-) diff --git a/public/css/styles.css b/public/css/styles.css index da2f7cb..e737add 100644 --- a/public/css/styles.css +++ b/public/css/styles.css @@ -124,6 +124,7 @@ hr { display: flex; flex-direction: row; gap: 20px; + border: 1px solid; width: fit-content; background-color: #0075FF; background-size: cover; /* or contain, depending on your preference */ @@ -134,12 +135,17 @@ hr { padding-right: 25px; font-family: 'Syne Mono', monospace; color: white; + border-color: #0075FF; + transition: transform 0.7s ease-out; +} + +.hyperlink-header:hover { + transform: scale(1.05); /* Scale up the element */ } .active-page { color: #0075FF; background-color: white; - border-color: #0075FF; border: 1px solid; } @@ -340,6 +346,23 @@ hr { #container-article { width: 100%; height: 100%; + opacity: 0; + transition: opacity 1s ease-in-out; /* 1s transition */ +} + +@keyframes fadeInUp { + 0% { + transform: translateY(100%); + opacity: 0; + } + 100% { + transform: translateY(0%); + opacity: 1; + } +} + +.fadeInUp-animation { +animation: 2s fadeInUp; } diff --git a/public/js/article.js b/public/js/article.js index 55f102d..af36b4e 100644 --- a/public/js/article.js +++ b/public/js/article.js @@ -56,6 +56,7 @@ const mat = new THREE.MeshPhongMaterial({map: texture}) mesh = new THREE.Mesh(geom, mat) scene.add(mesh) + container_element.style.opacity = 1; animate() } ); } diff --git a/public/js/list.js b/public/js/list.js index 4d2ebf9..a7b7e13 100644 --- a/public/js/list.js +++ b/public/js/list.js @@ -17,7 +17,7 @@ // const cont = document.getElementById("container") // //cont.style.opacity = "1" -// cont.style.filter = "blur(50px)" +// cont.style.filter = "blur(0px)" // // Initialize loading manager @@ -58,7 +58,7 @@ // const cubeMaterial = new THREE.MeshPhongMaterial({ map: texture }); // // Create an InstancedMesh -// count = 4; +// count = 400; // instancedMesh = new THREE.InstancedMesh(cubeGeometry, cubeMaterial, count); // scene.add(instancedMesh); // dummy = new THREE.Object3D(); diff --git a/templates/list.html b/templates/list.html index fa51c6e..5102ab3 100644 --- a/templates/list.html +++ b/templates/list.html @@ -6,18 +6,18 @@
{% include '_nav.html' %}
-
+
{% for event in content %}
- {{ event.title }} + {{ event.title }}
☉ {{ event.title }}