From 29a00f432b9a792888913ae553cfa6130f24fecd Mon Sep 17 00:00:00 2001 From: juanatsap Date: Thu, 20 Nov 2025 16:52:30 +0000 Subject: [PATCH] improve: Enhance UI appearance and startup logs MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit UI improvements: - Remove CV page borders for cleaner look in both themes - Soften light theme shadow (0.06 opacity, 24px blur) - Set light theme border color to white for seamless appearance Server improvements: - Add descriptive icons to startup logs (📂 đŸ‡Ŧ🇧 đŸ‡Ē🇸 âš™ī¸ đŸ“Ļ 📋 🌐 âšī¸) - Improve visual clarity of server initialization sequence --- internal/templates/template.go | 4 ++-- main.go | 12 ++++++------ static/css/02-layout/_container.css | 2 +- static/css/02-layout/_page.css | 2 +- static/css/color-theme.css | 4 ++-- 5 files changed, 12 insertions(+), 12 deletions(-) diff --git a/internal/templates/template.go b/internal/templates/template.go index 8fc58c5..fba1b3c 100644 --- a/internal/templates/template.go +++ b/internal/templates/template.go @@ -93,12 +93,12 @@ func (m *Manager) loadTemplates() error { if err != nil { log.Printf("Warning: error parsing partials: %v", err) } else { - log.Printf("✓ Loaded %d partial templates", len(allPartials)) + log.Printf("đŸ“Ļ Loaded %d partial templates", len(allPartials)) } } m.templates = tmpl - log.Printf("✓ Templates loaded successfully from %s", m.config.Dir) + log.Printf("📋 Templates loaded successfully from %s", m.config.Dir) return nil } diff --git a/main.go b/main.go index 425fc9c..518ae1f 100644 --- a/main.go +++ b/main.go @@ -28,12 +28,12 @@ func main() { if err := godotenv.Load(); err != nil { log.Println("âš ī¸ No .env file found, using system environment variables") } else { - log.Println("✓ .env file loaded") + log.Println("📂 .env file loaded") } // Load configuration cfg := config.Load() - log.Printf("✓ Configuration loaded (env: %s)", os.Getenv("GO_ENV")) + log.Printf("âš™ī¸ Configuration loaded (env: %s)", os.Getenv("GO_ENV")) // Initialize template manager templateMgr, err := templates.NewManager(&cfg.Template) @@ -60,11 +60,11 @@ func main() { // Start server in goroutine serverErrors := make(chan error, 1) go func() { - log.Printf("✓ Server listening on http://%s:%s", cfg.Server.Host, cfg.Server.Port) - log.Printf("📄 English: http://%s:%s/?lang=en", cfg.Server.Host, cfg.Server.Port) - log.Printf("📄 Spanish: http://%s:%s/?lang=es", cfg.Server.Host, cfg.Server.Port) + log.Printf("🌐 Server listening on http://%s:%s", cfg.Server.Host, cfg.Server.Port) + log.Printf("đŸ‡Ŧ🇧 English: http://%s:%s/?lang=en", cfg.Server.Host, cfg.Server.Port) + log.Printf("đŸ‡Ē🇸 Spanish: http://%s:%s/?lang=es", cfg.Server.Host, cfg.Server.Port) log.Printf("â¤ī¸ Health: http://%s:%s/health", cfg.Server.Host, cfg.Server.Port) - log.Println("Press Ctrl+C to shutdown") + log.Println("âšī¸ Press Ctrl+C to shutdown") serverErrors <- server.ListenAndServe() }() diff --git a/static/css/02-layout/_container.css b/static/css/02-layout/_container.css index ca8015d..d9a8e7a 100644 --- a/static/css/02-layout/_container.css +++ b/static/css/02-layout/_container.css @@ -23,7 +23,7 @@ .cv-page { box-shadow: var(--shadow-lg); - border: 1px solid var(--border-color); + border: none; margin: 0 auto; max-width: 900px; transition: all 0.3s ease-in-out; diff --git a/static/css/02-layout/_page.css b/static/css/02-layout/_page.css index eff01b0..ca5ad7e 100644 --- a/static/css/02-layout/_page.css +++ b/static/css/02-layout/_page.css @@ -3,7 +3,7 @@ max-width: 1200px; margin: 2rem auto; box-shadow: var(--shadow-lg); - border: 1px solid var(--border-color); + border: none; transform: scale(0.95); transform-origin: top center; transition: transform 0.3s ease; diff --git a/static/css/color-theme.css b/static/css/color-theme.css index 3ad8da5..34d8bc3 100644 --- a/static/css/color-theme.css +++ b/static/css/color-theme.css @@ -40,13 +40,13 @@ --action-bar-text-muted: rgba(255, 255, 255, 0.85); /* Borders & Dividers */ - --border-color: #333333; + --border-color: #ffffff; --border-light: #e0e0e0; /* Shadows */ --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1); --shadow-md: 0 2px 8px rgba(0, 0, 0, 0.15); - --shadow-lg: 0 4px 16px rgba(0, 0, 0, 0.2); + --shadow-lg: 0 4px 24px rgba(0, 0, 0, 0.06); /* Interactive Elements */ --button-bg: transparent;