From e9563e6a5d9356ae0bebba4c4621616c792bd7e6 Mon Sep 17 00:00:00 2001 From: Yohan Boujon Date: Tue, 30 Jan 2024 22:48:10 +0100 Subject: [PATCH] Frontend: Fixing major issues with the sidebar when on large screens. Optimised the code to use less scrollY. --- frontend/src/lib/css/cv.css | 6 +- frontend/src/routes/+page.svelte | 325 +++++++++++++++++-------------- 2 files changed, 178 insertions(+), 153 deletions(-) diff --git a/frontend/src/lib/css/cv.css b/frontend/src/lib/css/cv.css index acdca0b..fdf9c95 100644 --- a/frontend/src/lib/css/cv.css +++ b/frontend/src/lib/css/cv.css @@ -9,14 +9,12 @@ .sidebar { position: absolute; width: 15rem; - height: 75rem; - background-color: var(--color-special); transition: all 0s ease 0s; + margin-left: 1rem; } .fake-sidebar { - width: 100%; - flex-basis: 20rem; + width: 20rem; box-shadow: rgba(50, 50, 93, 0.25) 0px 50px 100px -20px, rgba(0, 0, 0, 0.3) 0px 30px 60px -30px; background-color: var(--color-special); } diff --git a/frontend/src/routes/+page.svelte b/frontend/src/routes/+page.svelte index 2d0976f..4a082b5 100644 --- a/frontend/src/routes/+page.svelte +++ b/frontend/src/routes/+page.svelte @@ -1,162 +1,189 @@ - + {#if data.status == 0} - -
- - -
- -
-

{cv.info.full_name}

-

Apprentice Engineer Automatic/Electronic

-
- -
- -
- -
- -
- {#each cv.skills.programming_languages as pilldata, index (index)} - - {/each} -
- -
- {#each cv.skills.softwares as pilldata, index (index)} - - {/each} -
- -
- {#each cv.skills.languages as langdata} - - {/each} -
-
-
- + +
+ + +
+ +
+

{cv.info.full_name}

+

Apprentice Engineer Automatic/Electronic

+
+ +
+ +
+ +
+ +
+ {#each cv.skills.programming_languages as pilldata, index (index)} + + {/each} +
+ +
+ {#each cv.skills.softwares as pilldata, index (index)} + + {/each} +
+ +
+ {#each cv.skills.languages as langdata} + + {/each} +
+
+
+ {:else} -

Oops, could not load database :/

+

Oops, could not load database :/

{/if}