diff --git a/Documents_ref/conf.sql b/Documents_ref/conf.sql
index 9379459..f58f685 100644
--- a/Documents_ref/conf.sql
+++ b/Documents_ref/conf.sql
@@ -99,6 +99,7 @@ SELECT
END AS nombre_legible,
COUNT(source_name) AS total
FROM visited_from
-GROUP BY source_name;
+GROUP BY source_name
+ORDER BY total DESC;
-- select * from visited_from;
\ No newline at end of file
diff --git a/main.py b/main.py
index 1ed4a5c..f2e23b0 100644
--- a/main.py
+++ b/main.py
@@ -893,6 +893,22 @@ def data_metrics():
LIMIT 3;
"""
+ q_visited_from = """
+ SELECT
+ CASE source_name
+ WHEN 'li' THEN 'LinkedIn'
+ WHEN 'wa' THEN 'WhatsApp'
+ WHEN 'fb' THEN 'Facebook'
+ WHEN 'x' THEN 'X'
+ ELSE 'Otro'
+ END AS nombre_legible,
+ COUNT(source_name) AS total
+ FROM visited_from
+ GROUP BY source_name
+ ORDER BY total DESC;
+ """
+
+
data_contact = {
"count_monthly": dbUsers.get_all_data(q_contact, ()),
"count_state": dbUsers.get_all_data(q_count_state, ()),
@@ -902,7 +918,9 @@ def data_metrics():
"group_status": dbUsers.get_all_data(q_group_status, ()),
"top_ten": dbUsers.get_all_data(q_posts_mas_vistos, ()),
"top_three_authors": dbUsers.get_all_data(q_top_three_authors, ()),
+ "visited_from": dbUsers.get_all_data(q_visited_from, ())
}
+
return jsonify(data_contact)
diff --git a/static/template/navbar_footer.css b/static/template/navbar_footer.css
index 269737d..3fc712e 100644
--- a/static/template/navbar_footer.css
+++ b/static/template/navbar_footer.css
@@ -1,17 +1,21 @@
:root {
--navbar-footer-color: #5d9dd1;
--font-size-formha: 1.2rem;
+ --border-radius-button: 15px;
+ --button-padding-y: 8px;
+ --button-padding-x: 15px;
+ --button-background: transparent;
+ --button-hover-background: rgba(255, 255, 255, 0.2);
+ --button-active-background: rgba(2, 62, 138, 0.8);
}
-
.navbar-custom {
background-color: var(--navbar-footer-color) !important;
font-size: var(--font-size-formha);
- padding-top: 15px;
- padding-bottom: 15px;
- /* min-height: 80px; */
+ padding: 15px 0;
- & .navbar-brand, .nav-link {
+ & .navbar-brand,
+ & .nav-link {
color: white !important;
}
@@ -19,53 +23,38 @@
background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}
- & .navbar-nav .nav-item .nav-link {
- position: relative;
- text-decoration: none;
+ & .navbar-nav .nav-item {
+ margin: 0 0.5em;
+ border: 2px solid white;
+ border-radius: var(--border-radius-button);
+ background-color: var(--button-background);
+ transition: background-color 0.3s ease;
+
+ & .nav-link {
+ display: inline-block;
+ padding: var(--button-padding-y) var(--button-padding-x);
+ position: relative;
+ text-decoration: none;
+
+ &.active {
+ background-color: var(--button-active-background);
+ box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
+ transition: background-color 0.3s ease, box-shadow 0.3s ease;
+ border-radius: var(--border-radius-button);
+ }
+ }
+
+ &:hover {
+ background-color: var(--button-hover-background);
+ }
}
- /* Efecto de hover */
- & .navbar-nav.effect-3 .nav-item .nav-link:before,
- & .navbar-nav.effect-3 .nav-item .nav-link:after {
- content: "";
- height: 1px;
- width: 0;
- opacity: 0;
- background-color: #fff;
- position: absolute;
- transition: all .4s;
- }
-
- & .navbar-nav.effect-3 .nav-item .nav-link:before {
- top: 0px;
- }
-
- & .navbar-nav.effect-3 .nav-item .nav-link:after {
- bottom: 0px;
- right: 0;
- }
-
- /* Aplicar el efecto de hover al enlace activo */
- & .navbar-nav.effect-3 .nav-item .nav-link.active:before,
- & .navbar-nav.effect-3 .nav-item .nav-link.active:after {
- width: calc(100% + 0px);
- opacity: 0.9;
- }
-
- /* Aplicar el efecto de hover al hacer hover */
- & .navbar-nav.effect-3 .nav-item .nav-link:hover:before,
- & .navbar-nav.effect-3 .nav-item .nav-link:hover:after {
- width: calc(100% + 0px);
- opacity: 0.9;
- }
-
- & li.nav-item {
- margin-left: 1em;
- margin-right: 1em;
- }
}
+
+
+/* ############################# */
.logo {
background-color: white;
border-radius: 50%;
diff --git a/static/y_img/logos/chat_ia_formha.svg b/static/y_img/logos/chat_ia_formha.svg
new file mode 100644
index 0000000..15c2e65
--- /dev/null
+++ b/static/y_img/logos/chat_ia_formha.svg
@@ -0,0 +1,88 @@
+
+
\ No newline at end of file
diff --git a/static/y_img/methodology/m-02.svg b/static/y_img/methodology/m-02.svg
index 82dfd78..37b0deb 100644
--- a/static/y_img/methodology/m-02.svg
+++ b/static/y_img/methodology/m-02.svg
@@ -1,226 +1,843 @@
-