Integrate Bootstrap 5 and Bootstrap Icons into UI

- Add Bootstrap 5.3.3 + Icons via CDN to base.html
- Replace 315-line hand-written CSS with 35-line brand overrides
- Update all 13 templates with Bootstrap utility classes:
  - Responsive navbar with mobile hamburger menu
  - Consistent card-based layout for forms and profile
  - Proper button alignment with d-flex and d-grid utilities
  - List groups for data display (profile info)
  - Professional alerts and icons
- No backend changes, no build toolchain needed
- Responsive design works on mobile/tablet/desktop

Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
This commit is contained in:
mguschin
2026-03-05 21:05:30 +03:00
parent eea2d84260
commit bd0ff8f449
18 changed files with 486 additions and 338 deletions

View File

@@ -1,215 +1,39 @@
* {
margin: 0;
padding: 0;
box-sizing: border-box;
/* Brand overrides */
:root {
--bs-primary: #F05023;
--bs-primary-rgb: 240, 80, 35;
--bs-link-color: #0986E2;
--bs-link-hover-color: #0670c0;
}
body {
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
color: #333;
background: #fff;
line-height: 1.6;
}
.container {
max-width: 960px;
margin: 0 auto;
padding: 0 20px;
}
/* Navbar */
.navbar {
background: #fff;
border-bottom: 2px solid #F05023;
padding: 14px 0;
}
.nav-content {
display: flex;
justify-content: space-between;
align-items: center;
}
.nav-logo {
.brand-logo {
font-size: 22px;
font-weight: 700;
color: #F05023;
text-decoration: none;
color: #F05023 !important;
}
.nav-links a {
margin-left: 24px;
color: #333;
text-decoration: none;
font-size: 15px;
}
.nav-links a:hover {
color: #F05023;
}
/* Forms */
.form-card {
max-width: 440px;
margin: 60px auto;
background: #F4F6F8;
border-radius: 8px;
padding: 36px;
}
.form-card h1 {
font-size: 24px;
margin-bottom: 24px;
color: #333;
}
.form-group {
margin-bottom: 18px;
}
.form-group label {
display: block;
margin-bottom: 6px;
font-size: 14px;
font-weight: 500;
color: #333;
}
.form-group input {
width: 100%;
padding: 10px 12px;
border: 1px solid #ddd;
border-radius: 4px;
font-size: 15px;
transition: border-color 0.2s;
}
.form-group input:focus {
outline: none;
border-color: #F05023;
}
.btn {
display: inline-block;
padding: 10px 24px;
border: none;
border-radius: 4px;
font-size: 15px;
font-weight: 500;
cursor: pointer;
text-decoration: none;
transition: opacity 0.2s;
}
.btn:hover {
opacity: 0.85;
.brand-border {
border-color: #F05023 !important;
}
.btn-primary {
background: #F05023;
color: #fff;
width: 100%;
--bs-btn-bg: #F05023;
--bs-btn-border-color: #F05023;
--bs-btn-hover-bg: #d44420;
--bs-btn-hover-border-color: #d44420;
--bs-btn-active-bg: #c03d1c;
--bs-btn-active-border-color: #c03d1c;
}
.btn-secondary {
background: #0986E2;
color: #fff;
--bs-btn-bg: #0986E2;
--bs-btn-border-color: #0986E2;
--bs-btn-hover-bg: #0770c0;
--bs-btn-hover-border-color: #0770c0;
--bs-btn-active-bg: #065fa3;
--bs-btn-active-border-color: #065fa3;
}
/* Alerts */
.alert {
padding: 14px 18px;
border-radius: 4px;
margin: 20px 0;
font-size: 14px;
}
.alert-error {
background: #fef2f0;
border: 1px solid #F05023;
color: #c0392b;
}
.alert-success {
background: #eafaf3;
border: 1px solid #4DD1A2;
color: #1a7a4c;
}
.alert p {
margin: 2px 0;
}
/* Links */
.form-links {
margin-top: 18px;
text-align: center;
font-size: 14px;
}
.form-links a {
color: #0986E2;
text-decoration: none;
}
.form-links a:hover {
text-decoration: underline;
}
/* Message page */
.message-card {
max-width: 500px;
margin: 80px auto;
text-align: center;
background: #F4F6F8;
border-radius: 8px;
padding: 40px;
}
.message-card h1 {
font-size: 22px;
margin-bottom: 16px;
color: #333;
}
.message-card p {
font-size: 15px;
color: #555;
margin-bottom: 12px;
}
.message-card a {
color: #0986E2;
text-decoration: none;
}
.message-card a:hover {
text-decoration: underline;
}
/* Profile */
.profile-card {
max-width: 540px;
margin: 60px auto;
background: #F4F6F8;
border-radius: 8px;
padding: 36px;
}
.profile-card h1 {
font-size: 24px;
margin-bottom: 24px;
color: #333;
}
.profile-info {
margin-bottom: 18px;
font-size: 15px;
}
.profile-info span {
color: #777;
display: block;
font-size: 13px;
margin-bottom: 2px;
.nav-link:hover {
color: #F05023 !important;
}