From 339feb2e52b0a4b6b2d209d2756b6a9688899c93 Mon Sep 17 00:00:00 2001 From: Alexel Date: Fri, 18 Aug 2023 17:44:15 -0400 Subject: [PATCH 1/5] formattage des options sur admin.gohtml --- public/css/admin.css | 17 +++++++++++++++++ templates/html/admin.gohtml | 11 +++++++---- 2 files changed, 24 insertions(+), 4 deletions(-) create mode 100644 public/css/admin.css diff --git a/public/css/admin.css b/public/css/admin.css new file mode 100644 index 0000000..b29ec16 --- /dev/null +++ b/public/css/admin.css @@ -0,0 +1,17 @@ +.adminOptions { + display: flex; + flex-flow: row wrap; + justify-content: space-around; + +} + +.adminOption { + font-family: 'Poppins'; + font-size: 1rem; + font-weight: 500; + background-color: #FF563C; + padding: 10px; + color: #fff; + border: none; + cursor: pointer; +} \ No newline at end of file diff --git a/templates/html/admin.gohtml b/templates/html/admin.gohtml index edcf8c4..c596118 100644 --- a/templates/html/admin.gohtml +++ b/templates/html/admin.gohtml @@ -5,13 +5,16 @@ AGECEM {{ template "general-html" }} + {{ template "header-html" }} -

Admin

- +
+

Admin

+
+
+
{{ end }} From 48900fafaf796018fa68336b1558e7059c8e0c71 Mon Sep 17 00:00:00 2001 From: Alexel Date: Thu, 12 Oct 2023 13:58:01 -0400 Subject: [PATCH 2/5] Ajout styles et classes admin-upload Ajout de divs pour mieux arranger le contenu --- public/css/admin-upload.css | 120 +++++++++++++++++++++++++++++ templates/html/admin-upload.gohtml | 37 +++++---- 2 files changed, 142 insertions(+), 15 deletions(-) create mode 100644 public/css/admin-upload.css diff --git a/public/css/admin-upload.css b/public/css/admin-upload.css new file mode 100644 index 0000000..c790b9a --- /dev/null +++ b/public/css/admin-upload.css @@ -0,0 +1,120 @@ +.adminUploadForm { + font-family: 'Poppins'; + display: flex; + flex-flow: column; + align-items: center; +} + +.formContent { + display: flex; + flex-flow: column; + +} + +.formSelectDiv { + display: flex; + flex-flow: column; + margin: 20px; +} + +.formLabel { + font-family: 'Poppins'; + font-size: 0.875rem; + font-weight: 600; + margin: 0; + padding-top: 10px; + padding-bottom: 10px; + color: #394596; +} + +.formSelect { + font-family: 'Poppins'; + font-size: 0.875rem; + font-weight: 400; + border: 1px #C4C4C4 solid; + padding: 10px; + +} + +/*La flèche de l'élément*/ +.formSelect:after { + color: #000 +} + +.formOption { + font-family: 'Poppins'; + font-size: 0.875rem; + font-weight: 400; + margin-top: 5px; + margin-bottom: 5px; +} + +.formOption:hover { + background-color: #C4C4C4; +} + +.formDocUploadDiv { + display: flex; + flex-flow: column; + margin: 20px; +} + +.formDocUpload { + font-family: 'Poppins'; + font-size: 0.875rem; + font-weight: 500; +} + +.formDocUpload::file-selector-button { + font-family: 'Poppins'; + font-size: 0.875rem; + font-weight: 400; + background-color: #FF563C; + padding: 7px; + color: #fff; + border: none; + cursor: pointer; + margin-right: 15px; +} + +.formSubmit { + font-family: 'Poppins'; + font-size: 1rem; + font-weight: 500; + background-color: #FF563C; + padding: 10px; + color: #fff; + border: none; + cursor: pointer; + margin: 20px; +} + +.confirmationMessage { + font-family: 'Poppins'; + font-size: 0.75rem; + font-weight: 500; + text-align: center; + margin: 10px; + padding: 5px; + background-color: #C4C4C4; +} + +@media screen and (min-width: 768px) { + + .formContent { + display: flex; + flex-flow: row; + } + +} + +@media screen and (min-width: 1140px) { + + .confirmationMessage { + font-size: 1rem; + font-weight: 500; + margin: 20px; + padding: 10px; + } + +} \ No newline at end of file diff --git a/templates/html/admin-upload.gohtml b/templates/html/admin-upload.gohtml index c7afd53..6c92230 100644 --- a/templates/html/admin-upload.gohtml +++ b/templates/html/admin-upload.gohtml @@ -5,24 +5,31 @@ AGECEM {{ template "general-html" }} + {{ template "header-html" }} -

Upload

-
- - -
- Document: -
-
- -
-

{{ .Message }}

+
+

Ajouter un document

+
+
+
+

Document à téléverser

+ +
+
+ + +
+
+ +
+

Confirmation: {{ .Message }}

+
{{ end }} From d05bd9e0b667f67fde138a7a6b65636458fdcf79 Mon Sep 17 00:00:00 2001 From: Alexel Date: Thu, 12 Oct 2023 13:58:49 -0400 Subject: [PATCH 3/5] =?UTF-8?q?Changement=20texte=20bouton=20admin.html=20?= =?UTF-8?q?"Ajouter=20un=20document"=20plut=C3=B4t=20que=20"Ajout=20de=20d?= =?UTF-8?q?ocument"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- templates/html/admin.gohtml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/html/admin.gohtml b/templates/html/admin.gohtml index c596118..c424ee4 100644 --- a/templates/html/admin.gohtml +++ b/templates/html/admin.gohtml @@ -12,7 +12,7 @@

Admin

-
From 5acb47879c89fcaac91c7ebddd6f3c60fdaf3f75 Mon Sep 17 00:00:00 2001 From: Alexel Date: Thu, 12 Oct 2023 14:11:15 -0400 Subject: [PATCH 4/5] Formattage du code admin-upload.css --- public/css/admin-upload.css | 4 ---- 1 file changed, 4 deletions(-) diff --git a/public/css/admin-upload.css b/public/css/admin-upload.css index c790b9a..3b821dd 100644 --- a/public/css/admin-upload.css +++ b/public/css/admin-upload.css @@ -100,21 +100,17 @@ } @media screen and (min-width: 768px) { - .formContent { display: flex; flex-flow: row; } - } @media screen and (min-width: 1140px) { - .confirmationMessage { font-size: 1rem; font-weight: 500; margin: 20px; padding: 10px; } - } \ No newline at end of file From 42c85303e50464221386ff84ec74197b24af8de8 Mon Sep 17 00:00:00 2001 From: Alexel Date: Thu, 12 Oct 2023 16:50:39 -0400 Subject: [PATCH 5/5] fix .Data.Buckets et retrait de "Confirmation" --- templates/html/admin-upload.gohtml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/html/admin-upload.gohtml b/templates/html/admin-upload.gohtml index 6c92230..aee3a6c 100644 --- a/templates/html/admin-upload.gohtml +++ b/templates/html/admin-upload.gohtml @@ -20,7 +20,7 @@
@@ -28,7 +28,7 @@
-

Confirmation: {{ .Message }}

+

{{ .Message }}