From b938e56463954e4c561d9c6f0932436daf74d0e1 Mon Sep 17 00:00:00 2001 From: Ken Johnson Date: Sun, 7 Dec 2025 02:23:25 -0500 Subject: [PATCH] Modernize login, signup, and dashboard pages with contemporary design MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Transformed key user-facing pages with modern UI patterns: **Login Page (sessions/new.html.erb)**: - Enhanced warning box with gradient background and backdrop blur - Added arrow indicator to "Learn more" link - Improved visual hierarchy with better icon sizing **Signup Page (users/new.html.erb)**: - Complete rewrite from Bootstrap 2 to Bootstrap 5 - Modern card-based layout matching login page aesthetic - Icon-enhanced form inputs with proper labels - Side-by-side first/last name fields - Gradient info box with training environment notice - Proper form validation attributes **Dashboard Home (dashboard/home.html.erb)**: - Replaced old .span12/.row-fluid with modern grid - Clean card-based layout with shadow - Icon-enhanced header and buttons - Loading spinner states during chart transitions - Active button state indicators for chart type toggle - Turbolinks compatibility - Improved accessibility with ARIA labels All pages now feature: - Bootstrap 5 components and utilities - Bootstrap Icons integration - Rounded corners and modern spacing - Gradient accents and visual depth - Smooth transitions and hover states 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- app/views/dashboard/home.html.erb | 118 ++++++++++++++++--------- app/views/sessions/new.html.erb | 8 +- app/views/users/new.html.erb | 139 ++++++++++++++++++++++++------ db/development.sqlite3-shm | Bin 0 -> 32768 bytes db/development.sqlite3-wal | Bin 0 -> 57712 bytes 5 files changed, 191 insertions(+), 74 deletions(-) create mode 100644 db/development.sqlite3-shm create mode 100644 db/development.sqlite3-wal diff --git a/app/views/dashboard/home.html.erb b/app/views/dashboard/home.html.erb index c923c49..baa1acb 100644 --- a/app/views/dashboard/home.html.erb +++ b/app/views/dashboard/home.html.erb @@ -1,56 +1,90 @@ -
-
-
-
-
-
-
- Current Statistics -
- -
-
- - -
-
- -
-
- <%#= render partial: "dashboard_stats" %> -
-
+
+
+
+
+
+

+ Current Statistics +

+ +
+ +
-
+
+ +
+
+ Loading charts... +
+

Loading statistics...

+
+
+
+ + diff --git a/app/views/sessions/new.html.erb b/app/views/sessions/new.html.erb index cdef7f9..c966de4 100755 --- a/app/views/sessions/new.html.erb +++ b/app/views/sessions/new.html.erb @@ -64,13 +64,13 @@
<% end %> -
+
- +
- Security Training Environment
+ Security Training Environment This is an intentionally vulnerable application for educational purposes. - Learn more + Learn more →
diff --git a/app/views/users/new.html.erb b/app/views/users/new.html.erb index 24c6c79..3baf9af 100755 --- a/app/views/users/new.html.erb +++ b/app/views/users/new.html.erb @@ -1,36 +1,119 @@ -
-
+