-
-

-
-
-
{title}
-
-

-
- {#if location}
-
- {/if}
- {#if speciality}
-
- {/if}
- {#if option}
-
{option}
- {/if}
-
+
+
+
-
-
-
{`${end_year}${start_year}`}
+
+
{title}
+
+

+
+ {#if location}
+
+ {/if}
+ {#if speciality}
+
+ {/if}
+ {#if option}
+
{option}
+ {/if}
+
+
+
+
{`${end_year}${start_year}`}
+
diff --git a/frontend/src/lib/components/experience.svelte b/frontend/src/lib/components/experience.svelte
index d1adf5c..e0c46da 100644
--- a/frontend/src/lib/components/experience.svelte
+++ b/frontend/src/lib/components/experience.svelte
@@ -1,61 +1,74 @@
+
+
-
-
-

-
-
-
{position}
-
-

-
-
- {#if location}
-
- {/if}
- {#if description}
-
- {/if}
-
+
+
+
-
-
-
{`${end_year}${start_year}`}
+
+
{position}
+
+

+
+
+ {#if location}
+
+ {/if}
+ {#if description}
+
+ {/if}
+
+
+
+
{`${windowWidth > 1000 ? end_year : mobile_end_year}${windowWidth > 1000 ? start_year : mobile_start_year}`}
+
diff --git a/frontend/src/lib/components/projects.svelte b/frontend/src/lib/components/projects.svelte
index 7d8949c..b8ab1f7 100644
--- a/frontend/src/lib/components/projects.svelte
+++ b/frontend/src/lib/components/projects.svelte
@@ -41,7 +41,7 @@
diff --git a/frontend/src/lib/css/slide.css b/frontend/src/lib/css/slide.css
index d619816..3cb047a 100644
--- a/frontend/src/lib/css/slide.css
+++ b/frontend/src/lib/css/slide.css
@@ -73,6 +73,11 @@
display: flex;
justify-content: flex-end;
}
+
+ /* Add it to any text that may overflow. (long texts)*/
+ .slide-text {
+ font-size: 1.25rem !important;
+ }
}
@media screen and (max-width: 1000px)
@@ -88,7 +93,7 @@
border-radius: 0.4rem;
box-shadow: 0px 20px 50px -10px rgba(0, 0, 0, 0.2);
background-color: var(--color-background);
- height: 70dvh;
+ height: 60dvh;
width: 90dvw;
margin-left: 5dvw;
z-index: 1;
@@ -98,13 +103,15 @@
.slide-img-mobile-container {
display: flex;
justify-content: center;
+ height: 30dvh;
}
.slide-img-mobile {
max-width: 76dvw;
- max-height: 30dvh;
+ max-height: 100%;
margin-top: 1.5rem;
margin-bottom: 1.5rem;
+ object-fit: cover;
}
.slide-img-container{
@@ -117,7 +124,7 @@
color: var(--color-text);
font-family: 'Gabarito', sans-serif;
font-weight: 600;
- font-size: 2rem;
+ font-size: 3vmax;
margin-bottom: 0;
}
@@ -126,7 +133,7 @@
color: var(--color-text);
font-family: 'Gabarito', sans-serif;
font-weight: 500;
- font-size: 1.25rem;
+ font-size: 1.75vmax;
margin-top: 0.5rem;
margin-bottom: 0.5rem;
width: 100%;
@@ -149,6 +156,18 @@
right: 0;
position: absolute;
}
+
+ .slide-text {
+ font-size: 1.5vmax;
+ }
+}
+
+.slide-overflow {
+ overflow: hidden;
+ display: -webkit-box;
+ -webkit-box-orient: vertical;
+ text-overflow: ellipsis;
+ -webkit-line-clamp: 2;
}
.slide-subtitle-container {
@@ -166,37 +185,6 @@
text-align: justify;
text-justify:auto;
}
-/* Add it to any text that may overflow. (long texts)*/
-.slide-text {
- font-size: 1.25rem !important;
-}
-
-.slide-overflow {
- overflow: hidden;
- display: -webkit-box;
- -webkit-box-orient: vertical;
- text-overflow: ellipsis;
-}
-
-.slide-o1 {
- -webkit-line-clamp: 1;
-}
-
-.slide-o2 {
- -webkit-line-clamp: 2;
-}
-
-.slide-o3 {
- -webkit-line-clamp: 3;
-}
-
-.slide-o4 {
- -webkit-line-clamp: 4;
-}
-
-.slide-o5 {
- -webkit-line-clamp: 5;
-}
/* Every button are centered to the right side of the component */
.slide-button {
diff --git a/frontend/src/lib/js/date.js b/frontend/src/lib/js/date.js
index 0488574..d72aa5b 100644
--- a/frontend/src/lib/js/date.js
+++ b/frontend/src/lib/js/date.js
@@ -5,6 +5,13 @@ export function formatDate(date) {
return formattedDate;
}
+export function formatDateMobile(date) {
+ const options = { month: 'numeric', year: 'numeric' };
+ const cool_date = new Date(date);
+ const formattedDate = cool_date.toLocaleString('fr-FR', options);
+ return formattedDate;
+}
+
export function formatMonth(date) {
const options = { month: 'long', year: 'numeric' };
const cool_date = new Date(date);