From 6bc6d006f46523fe91e8ba5ff9fe6d8c6f587947 Mon Sep 17 00:00:00 2001 From: Rael Monge Date: Wed, 29 May 2024 18:58:54 -0600 Subject: [PATCH] Creating a dialog and using it on the tour page --- core/routes.go | 1 + static/css/style.css | 34 +++++++++++++++++- templates/feature_tour.html | 69 +++++++++++++++++++++++++++++++++---- 3 files changed, 96 insertions(+), 8 deletions(-) diff --git a/core/routes.go b/core/routes.go index 15c0269..a788b7e 100644 --- a/core/routes.go +++ b/core/routes.go @@ -340,6 +340,7 @@ func (s *Service) FeatureTour(c echo.Context) error { pd.Data["integrations"] = lt.Translate("Integrations") pd.Data["api_powered"] = lt.Translate("API Powered") pd.Data["import_export"] = lt.Translate("Import Export") + pd.Data["analytics"] = lt.Translate("Analytics") pd.Data["public_private"] = lt.Translate("Public/Private") pd.Data["description"] = lt.Translate("Description") diff --git a/static/css/style.css b/static/css/style.css index 7910889..638b6e3 100644 --- a/static/css/style.css +++ b/static/css/style.css @@ -820,4 +820,36 @@ a.bullet-link:before { justify-content: center; margin-top: 16px; margin-bottom: 16px; -} \ No newline at end of file +} + +.hide-dialog { + display: none; +} + +.show-dialog { + display: flex; +} + +.close-dialog-div { + z-index: -1; + height: 100%; + width: 100%; + position: absolute; +} + +#dialog-container { + position: fixed; + top: 0; + left: 0; + width: 100%; + background-color: rgba(0,0,0,0.5); + height: 100%; + border: solid 1px black; + justify-content: center; + align-items: center; +} + +#dialog-image { + max-width: 95%; + max-height: 95%; +} diff --git a/templates/feature_tour.html b/templates/feature_tour.html index 6b95acf..e98f15d 100644 --- a/templates/feature_tour.html +++ b/templates/feature_tour.html @@ -34,7 +34,7 @@
- +
@@ -56,7 +56,7 @@
- +
@@ -79,7 +79,7 @@
- +
@@ -98,7 +98,7 @@
- +
@@ -118,7 +118,7 @@
- +
@@ -138,7 +138,7 @@
- +
@@ -157,8 +157,63 @@
- + +
+ +
+
+

{{.pd.Data.analytics}}

+
    +
  • {{.pd.Data.import_pinboard}}
  • +
  • {{.pd.Data.export_json}}
  • +
+
+

+ Lorem ipsum dolor sit amet consectetur adipisicing elit. Porro voluptate illo alias fugit + nobis, accusamus, quae eius repellat quaerat. +

+

— Juan Perez, Netlandish Inc.

+
+
+
+
+ +
+
+ image from dialog +
+ {{template "base_footer" .}} + +{{ define "extrajs" }} + +{{ end }} -- 2.45.2