Frontend/Backend : now 'picture_name' in db 'project' should be an url rather than a file name. Deleting img for projects.

This commit is contained in:
Yohan Boujon 2024-01-30 21:35:33 +01:00
parent f8eb04a6cb
commit cb4cfe26cb
8 changed files with 4 additions and 4 deletions

View file

@ -55,7 +55,7 @@
formatMonth(data.date_done).charAt(0).toUpperCase() +
formatMonth(data.date_done).slice(1);
type_project = data.type_project;
picture = (await import(`/src/lib/img/${data.picture_name}`)).default;
picture = data.picture_name;
description = data.description;
id = data.id;
report_link = data.report_link;

View file

@ -18,8 +18,6 @@
let picture;
onMount(async () => {
picture = (await import(`/src/lib/img/${data.picture_name}`)).default;
popupDatas.update((value) => {
value.push(data);
return value;
@ -30,7 +28,7 @@
<div class="slide-container">
<div class="slide-more slide-main {active ? '' : 'slide-unactive'}">
<div class="slide-img-container">
<img class="slide-img" src={picture} alt="Projects" />
<img class="slide-img" src={data.picture_name} alt="Projects" />
</div>
<div class="slide-text-container">
<h1 class="slide-title">{title}</h1>

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.9 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.3 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.8 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 198 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.2 MiB

View file

@ -92,10 +92,12 @@
icon={mdiEmailOutline}
description={cv.info.email}
/>
{#if cv.info.phone_number != null}
<SidebarComponent
icon={mdiPhone}
description={cv.info.phone_number}
/>
{/if}
<SidebarComponent
icon={mdiStar}
title="Interests"