From 6ced02655db9ce8bdbb2430c47657b8f37611243 Mon Sep 17 00:00:00 2001 From: richarddushime Date: Sun, 9 Mar 2025 12:07:25 +0100 Subject: [PATCH 1/4] POP UP survey form --- layouts/partials/survey-btn.html | 75 ++++++++++++ layouts/partials/survey-popup.html | 113 +++++++++++++++++++ themes/academic/layouts/_default/baseof.html | 5 + 3 files changed, 193 insertions(+) create mode 100644 layouts/partials/survey-btn.html create mode 100644 layouts/partials/survey-popup.html diff --git a/layouts/partials/survey-btn.html b/layouts/partials/survey-btn.html new file mode 100644 index 00000000000..8b267f91d29 --- /dev/null +++ b/layouts/partials/survey-btn.html @@ -0,0 +1,75 @@ +
+ +
+ + + + \ No newline at end of file diff --git a/layouts/partials/survey-popup.html b/layouts/partials/survey-popup.html new file mode 100644 index 00000000000..439ed282277 --- /dev/null +++ b/layouts/partials/survey-popup.html @@ -0,0 +1,113 @@ +
+
+ +

FORRT Website User Experience Survey

+

Hello! Thank you for your time and availability to complete this questionnaire. Your feedback will directly inform improvements to navigation, accessibility, and content structure.

+

All answers are anonymous and will help us make the website better for everyone!

+ + Take the Survey + +
+
+ + + + + diff --git a/themes/academic/layouts/_default/baseof.html b/themes/academic/layouts/_default/baseof.html index 80366aa0000..11db2c9229e 100644 --- a/themes/academic/layouts/_default/baseof.html +++ b/themes/academic/layouts/_default/baseof.html @@ -24,6 +24,8 @@ {{ partial "search" . }} {{ partial "navbar" . }} + + {{ partial "survey-btn.html" . }} {{ block "main" . }}{{ end }} @@ -38,5 +40,8 @@ {{ partial "citation" . }} + {{ partial "survey-popup.html" . }} + + From 2c4e840b260515981dbc988a2dc82ae68b1051c2 Mon Sep 17 00:00:00 2001 From: richarddushime Date: Tue, 11 Mar 2025 20:54:08 +0100 Subject: [PATCH 2/4] once in a week display --- layouts/partials/survey-btn.html | 5 +- layouts/partials/survey-popup.html | 90 +++++++++++++++++------------- 2 files changed, 55 insertions(+), 40 deletions(-) diff --git a/layouts/partials/survey-btn.html b/layouts/partials/survey-btn.html index 8b267f91d29..a0e9f15c914 100644 --- a/layouts/partials/survey-btn.html +++ b/layouts/partials/survey-btn.html @@ -5,7 +5,7 @@ rel="noopener noreferrer" class="survey-float-button" id="surveyFloatButton"> - Click here to help us with this survey + Help us improve the FORRT website @@ -72,4 +72,5 @@ document.getElementById('surveyFloat').style.display = 'none'; }); }); - \ No newline at end of file + + \ No newline at end of file diff --git a/layouts/partials/survey-popup.html b/layouts/partials/survey-popup.html index 439ed282277..8fee274ff8f 100644 --- a/layouts/partials/survey-popup.html +++ b/layouts/partials/survey-popup.html @@ -1,20 +1,21 @@
-
- -

FORRT Website User Experience Survey

-

Hello! Thank you for your time and availability to complete this questionnaire. Your feedback will directly inform improvements to navigation, accessibility, and content structure.

-

All answers are anonymous and will help us make the website better for everyone!

- - Take the Survey - -
+
+ +

Help us improve the FORRT website

+

We would be grateful if you could complete this survey. + Your feedback will directly inform improvements to navigation, accessibility, and content structure.
+ Note:All answers are anonymous and will help us make the website better for everyone!

+ + Take the Survey +
- - - - + + + + // Survey link handler + document.getElementById('surveyLink').addEventListener('click', function() { + localStorage.setItem('surveyCompleted', 'true'); + closeSurvey(); + }); + }); + + function closeSurvey() { + document.getElementById('surveyPopup').style.display = 'none'; + } + + \ No newline at end of file From 177598b70e6a0a1765ddde79c84aa43222adc330 Mon Sep 17 00:00:00 2001 From: richarddushime Date: Mon, 14 Apr 2025 16:08:38 +0200 Subject: [PATCH 3/4] Enhancement 5th visit display survey set cookie count --- layouts/partials/survey-btn.html | 2 +- layouts/partials/survey-popup.html | 42 ++++++++++++++++++------------ 2 files changed, 26 insertions(+), 18 deletions(-) diff --git a/layouts/partials/survey-btn.html b/layouts/partials/survey-btn.html index a0e9f15c914..f70521f38c3 100644 --- a/layouts/partials/survey-btn.html +++ b/layouts/partials/survey-btn.html @@ -13,7 +13,7 @@ + + - \ No newline at end of file From 3f88e88d0985064562f3c6dc1854cb10e69a6c39 Mon Sep 17 00:00:00 2001 From: richarddushime Date: Mon, 4 Aug 2025 09:44:16 +0200 Subject: [PATCH 4/4] btn-colors update --- layouts/partials/survey-btn.html | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/layouts/partials/survey-btn.html b/layouts/partials/survey-btn.html index f70521f38c3..6eef9350b5e 100644 --- a/layouts/partials/survey-btn.html +++ b/layouts/partials/survey-btn.html @@ -21,9 +21,9 @@ .survey-float-button { display: inline-block; - background: #4CAF50; - color: white !important; - padding: 12px 25px; + background: linear-gradient(to bottom, #ffffff, #F9F4CB ); + color: linear-gradient(135deg, #3498db, #2c3e50) !important; + padding: 8px 15px; border-radius: 30px; text-decoration: none; font-weight: 500; @@ -36,7 +36,7 @@ } .survey-float-button:hover { - background: #45a049; + background: #ffffff; transform: scale(1.05); box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25); }