From 92b75b323927b9453651f04d64bb15b900a71d17 Mon Sep 17 00:00:00 2001
From: asus
Date: Sun, 2 Jun 2024 19:17:17 +0200
Subject: [PATCH] reverse last commit to have the cv as a details on top hero
section again
---
index.html | 44 ++++++++++++----------------------------
styles/elements/cv.css | 35 +++++++++++++++++++++++++++++---
styles/elements/hero.css | 2 +-
styles/sections.css | 1 -
4 files changed, 46 insertions(+), 36 deletions(-)
diff --git a/index.html b/index.html
index 9fbf0b9..69bdce7 100644
--- a/index.html
+++ b/index.html
@@ -48,8 +48,6 @@
-
-
@@ -96,35 +94,19 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+ voir le CV
+ see the CV
+
+
+ cacher le CV
+ hide the CV
+
+
télécharger en pdf
- download in pdf
+ download as pdf
COMPÉTENCES
SKILLS
@@ -219,7 +201,7 @@
Co-management of volunteers in a refugee camp, UTOPIA 56, Grande-Synthe, France, 2016
-
+
diff --git a/styles/elements/cv.css b/styles/elements/cv.css
index e8ffec8..532ecf8 100644
--- a/styles/elements/cv.css
+++ b/styles/elements/cv.css
@@ -1,11 +1,26 @@
.cv {
- display: flex;
- flex-direction: column;
width: auto;
max-width: 900px;
- margin-bottom: 100px;
+}
+
+.cv {
+ display: flex;
text-align: left;
}
+.cv summary {
+ position: relative;
+ list-style-position: outside;
+ list-style-type: "▸ ";
+ font-size: 1.8rem;
+ margin: auto;
+ width: fit-content;
+}
+.cv summary .open {
+ display: none;
+}
+.cv summary .close {
+ display: inline;
+}
.cv .cv_download {
display: inline-block;
@@ -13,3 +28,17 @@
margin-top: 30px;
text-align: center;
}
+
+.cv[open] summary {
+ list-style-type: "▾ ";
+}
+.cv[open] summary .open {
+ display: inline;
+}
+.cv[open] summary .close {
+ display: none;
+}
+
+.cv > *:last-child {
+ margin-bottom: 100px;
+}
diff --git a/styles/elements/hero.css b/styles/elements/hero.css
index bcacdad..b6185b5 100644
--- a/styles/elements/hero.css
+++ b/styles/elements/hero.css
@@ -8,7 +8,7 @@
*
grid-template-rows: 1fr auto 1fr;
*/
- grid-template-rows: 1fr 1fr auto;
+ grid-template-rows: auto auto 1fr;
}
#hero .subtitle {
text-align: center;
diff --git a/styles/sections.css b/styles/sections.css
index 3e1de37..afbd7cd 100644
--- a/styles/sections.css
+++ b/styles/sections.css
@@ -1,6 +1,5 @@
section {
display: grid;
- position: relative;
margin: 0px;
width: 100vw;
grid-template-columns: auto auto auto;