improve: Enhance UI appearance and startup logs

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
This commit is contained in:
juanatsap
2025-11-20 16:52:30 +00:00
parent 9240a863d1
commit 29a00f432b
5 changed files with 12 additions and 12 deletions
+2 -2
View File
@@ -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
}
+6 -6
View File
@@ -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()
}()
+1 -1
View File
@@ -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;
+1 -1
View File
@@ -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;
+2 -2
View File
@@ -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;