Files
balanceboard/templates/500.html
chelsea ac94215f84 Add configurable logo and application name support
Added environment variables APP_NAME and LOGO_PATH to make the application
branding configurable:

- APP_NAME (default: 'BalanceBoard'): Sets the application name
- LOGO_PATH (default: 'logo.png'): Sets the logo file path

Changes:
- Added configuration variables to app.py
- Updated logo serving route to support custom paths
- Added template context processor to inject APP_NAME
- Updated all templates to use {{ APP_NAME }} instead of hardcoded 'BalanceBoard'
- Updated navigation and branding to use configurable values

Users can now customize their installation by setting:
export APP_NAME="My Custom Board"
export LOGO_PATH="/path/to/my/logo.png"

Fixes #22

~claude

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-12 03:11:23 -05:00

75 lines
2.2 KiB
HTML

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Server Error - {{ APP_NAME }}</title>
<link rel="stylesheet" href="{{ url_for('serve_theme', filename='modern-card-ui/styles.css') }}">
<style>
.error-container {
max-width: 600px;
margin: 100px auto;
text-align: center;
padding: 40px;
}
.error-code {
font-size: 6rem;
font-weight: 700;
color: #dc3545;
margin-bottom: 20px;
}
.error-message {
font-size: 1.5rem;
color: var(--text-primary);
margin-bottom: 30px;
}
.error-description {
color: var(--text-secondary);
margin-bottom: 40px;
line-height: 1.6;
}
.btn-home {
display: inline-block;
padding: 12px 24px;
background: var(--primary-color);
color: white;
text-decoration: none;
border-radius: 8px;
font-weight: 500;
transition: background-color 0.2s;
margin-right: 10px;
}
.btn-home:hover {
background: var(--primary-hover);
}
.btn-retry {
display: inline-block;
padding: 12px 24px;
background: #6c757d;
color: white;
text-decoration: none;
border-radius: 8px;
font-weight: 500;
transition: background-color 0.2s;
}
.btn-retry:hover {
background: #5a6268;
}
</style>
</head>
<body>
<div class="error-container">
<div class="error-code">500</div>
<h1 class="error-message">Server Error</h1>
<p class="error-description">
Something went wrong on our end. We're working to fix the issue.
Please try again in a few moments.
</p>
<div>
<a href="{{ url_for('index') }}" class="btn-home">Go Home</a>
<a href="javascript:history.back()" class="btn-retry">Go Back</a>
</div>
</div>
</body>
</html>