From d7fe1901323e53055786ff7fd8d52c1058aec470 Mon Sep 17 00:00:00 2001 From: Mambo Date: Wed, 11 Feb 2026 07:31:21 +0100 Subject: [PATCH] Mobile responsive: hamburger menu, stacked forms, card layout on mobile --- views/history.ejs | 2 +- views/index.ejs | 48 +++++++++++++++++++++----------------- views/leads.ejs | 27 +++++++++++++++++++-- views/partials/head.ejs | 2 +- views/partials/sidebar.ejs | 32 ++++++++++++++++++++++++- 5 files changed, 84 insertions(+), 27 deletions(-) diff --git a/views/history.ejs b/views/history.ejs index c426b66..2860b61 100644 --- a/views/history.ejs +++ b/views/history.ejs @@ -5,7 +5,7 @@ <% const activePage = 'history'; %> <%- include('partials/sidebar') %> -
+

Search History

<% if (!searches || searches.length === 0) { %> diff --git a/views/index.ejs b/views/index.ejs index 37257e0..b1a3dd4 100644 --- a/views/index.ejs +++ b/views/index.ejs @@ -5,35 +5,39 @@ <% const activePage = 'search'; %> <%- include('partials/sidebar') %> -
+
-
-
+
+
-
- - +
+
+ + +
+
+ + +
-
- - +
+
+ + +
+
-
- - -
-
@@ -95,7 +99,7 @@
- diff --git a/views/leads.ejs b/views/leads.ejs index 2a34635..a2dfac3 100644 --- a/views/leads.ejs +++ b/views/leads.ejs @@ -5,7 +5,7 @@ <% const activePage = 'leads'; %> <%- include('partials/sidebar') %> -
+

Saved Leads

<%= leads.length %> leads @@ -19,7 +19,8 @@ Search Leads
<% } else { %> -
+ + + +
+ <% leads.forEach(l => { %> +
+
+
+

<%= l.title %>

+

<%= l.categoryName %>

+
+ +
+
+ <% if (l.phone) { %>

📞 <%= l.phone %>

<% } %> + <% if (l.email) { %>

✉️ <%= l.email %>

<% } %> + <% if (l.website) { %>

🌐 <%= l.website.replace(/^https?:\/\//, '').replace(/\/$/, '') %>

<% } %> + <% if (l.totalScore) { %>

<%= l.totalScore.toFixed(1) %> (<%= l.reviewsCount %> reviews)

<% } %> +
+
+ <% }) %> +
<% } %>
diff --git a/views/partials/head.ejs b/views/partials/head.ejs index 136f803..0401f53 100644 --- a/views/partials/head.ejs +++ b/views/partials/head.ejs @@ -19,7 +19,7 @@ }