From 364a680894027edb331303ae191bc42538dd3efa Mon Sep 17 00:00:00 2001 From: Yohan Boujon Date: Thu, 3 Apr 2025 21:42:33 +0200 Subject: [PATCH] Changed url for projects. Changed size for pictures inside projects --- src/lib/css/base.css | 2 +- src/lib/css/project.css | 13 ++++--------- src/lib/json/hub.json | 9 +++++---- src/routes/+page.svelte | 3 +++ 4 files changed, 13 insertions(+), 14 deletions(-) diff --git a/src/lib/css/base.css b/src/lib/css/base.css index 30feca3..dc80160 100644 --- a/src/lib/css/base.css +++ b/src/lib/css/base.css @@ -54,7 +54,7 @@ h2 { --profile-content-width-max: 40rem; --profile-content-width-min: 36rem; --content-width: 50rem; - --content-height: 50rem; + --content-height: 52rem; --width-min-desktop: 1275px; --width-mobile: 875px; diff --git a/src/lib/css/project.css b/src/lib/css/project.css index 47d98cd..41d47d8 100644 --- a/src/lib/css/project.css +++ b/src/lib/css/project.css @@ -9,11 +9,6 @@ .project { height: calc(var(--content-height)/2); } - - .project img { - height: calc(var(--content-height)/5); - width: calc(var(--content-width)/4); - } } @media screen and (min-width: 1276px) { @@ -25,11 +20,11 @@ .project { height: calc(var(--content-height)/2); } +} - .project img { - height: calc(var(--content-height)/5); - width: calc(var(--content-width)/4); - } +.project img { + height: calc((var(--content-width)+ 6rem - 4rem)/3*3/4); + width: 100%; } .project-container { diff --git a/src/lib/json/hub.json b/src/lib/json/hub.json index 06c6c94..ddaec76 100644 --- a/src/lib/json/hub.json +++ b/src/lib/json/hub.json @@ -11,25 +11,26 @@ "project":"Mes projets", "projects": [ { - "cover": "https://share.etheryo.fr/INSA/wal/wal.png", + "cover": "https://share.etheryo.fr/project/visual/wal_min.png", "title": "What A Leak!", "url": "what-a-leak", "description": "Water leak detection project with INSA Toulouse in 5th year.", "topic": "embedded" }, { - "cover": "https://share.etheryo.fr/projects/shared-memory/config.png", + "cover": "https://share.etheryo.fr/project/visual/shared_memory-min.jpg", "title": "Shared memory cache on multiple kernels", "url": "shared-memory", "description": "Using NFS, programmed a kernel driver that can read/write data onto a shared ram.", "topic": "kernel" }, { - "cover": "https://share.etheryo.fr/projects/yoyo_tetris/yoyotetris.png", + "cover": "https://share.etheryo.fr/project/visual/yoyo_tetris_min.jpg", "title": "yoyoTetris", "url": "yoyo-tetris", "description": "A simple game in C++ using Raylib.", "topic": "videogame" } - ] + ], + "lab": "Le laboratoire" } \ No newline at end of file diff --git a/src/routes/+page.svelte b/src/routes/+page.svelte index 9f7be16..92b4d05 100644 --- a/src/routes/+page.svelte +++ b/src/routes/+page.svelte @@ -54,4 +54,7 @@ {/each} +
+

{hubjson.lab}

+