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>
71 lines
2.7 KiB
HTML
71 lines
2.7 KiB
HTML
{% extends "base.html" %}
|
|
|
|
{% block title %}Sign Up - {{ APP_NAME }}{% endblock %}
|
|
|
|
{% block content %}
|
|
<div class="auth-container">
|
|
<div class="auth-card">
|
|
<div class="auth-logo">
|
|
<img src="{{ url_for('serve_logo') }}" alt="{{ APP_NAME }} Logo">
|
|
<h1><span class="balance">balance</span>Board</h1>
|
|
<p style="color: var(--text-secondary); margin-top: 8px;">Create your account</p>
|
|
</div>
|
|
|
|
{% with messages = get_flashed_messages(with_categories=true) %}
|
|
{% if messages %}
|
|
<div class="flash-messages">
|
|
{% for category, message in messages %}
|
|
<div class="flash-message {{ category }}">{{ message }}</div>
|
|
{% endfor %}
|
|
</div>
|
|
{% endif %}
|
|
{% endwith %}
|
|
|
|
<form method="POST" class="auth-form">
|
|
<div class="form-group">
|
|
<label for="username">Username</label>
|
|
<input type="text" id="username" name="username" required autofocus
|
|
pattern="[a-zA-Z0-9_]{3,20}"
|
|
title="Username must be 3-20 characters, letters, numbers and underscores only">
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
<label for="email">Email</label>
|
|
<input type="email" id="email" name="email" required>
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
<label for="password">Password</label>
|
|
<input type="password" id="password" name="password" required
|
|
minlength="8"
|
|
title="Password must be at least 8 characters">
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
<label for="password_confirm">Confirm Password</label>
|
|
<input type="password" id="password_confirm" name="password_confirm" required>
|
|
</div>
|
|
|
|
<button type="submit">Sign Up</button>
|
|
</form>
|
|
|
|
<div class="social-auth-separator">
|
|
<span>or</span>
|
|
</div>
|
|
|
|
<div class="social-auth-buttons">
|
|
<a href="{{ url_for('auth0_login') }}" class="social-btn auth0-btn">
|
|
<svg width="20" height="20" viewBox="0 0 24 24" fill="currentColor">
|
|
<path d="M21.98 7.448L19.62 0H4.347L2.02 7.448c-1.352 4.312.03 9.206 3.815 12.015L12.007 24l6.157-4.537c3.785-2.809 5.167-7.703 3.815-12.015z"/>
|
|
</svg>
|
|
Sign up with Auth0
|
|
</a>
|
|
</div>
|
|
|
|
<div class="auth-footer">
|
|
<p>Already have an account? <a href="{{ url_for('login') }}">Log in</a></p>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
{% endblock %}
|