new translation fix and some overall imrpovement to how the tournament and league workflow works.
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
# TV_APP V1.0.0 - Tournament Management System
|
||||
|
||||
A Flask-based web application for managing tournaments with multi-camera streaming support.
|
||||
A Flask-based web application for managing tournaments with multi-camera streaming support and improved modern UI architecture.
|
||||
|
||||
## Quick Start
|
||||
|
||||
@@ -31,21 +31,56 @@ The app will be available at: **http://localhost:5000**
|
||||
|
||||
```
|
||||
TV_APP_V1.0.0/
|
||||
├── tv_app.py # Main Flask application (2,364 lines)
|
||||
├── requirements.txt # Python dependencies
|
||||
├── README.md # This file
|
||||
├── tv_app.py # Main Flask application
|
||||
├── requirements.txt # Python dependencies
|
||||
├── README.md # This file
|
||||
│
|
||||
├── app/ # Support modules
|
||||
├── app/ # Support modules
|
||||
│ ├── __init__.py
|
||||
│ ├── config.py # Configuration
|
||||
│ ├── models.py # Data models
|
||||
│ ├── storage.py # Persistent storage
|
||||
│ └── utils.py # Utilities
|
||||
│ ├── config.py # Configuration
|
||||
│ ├── models.py # Data models
|
||||
│ ├── storage.py # Persistent storage
|
||||
│ └── utils.py # Utilities
|
||||
│
|
||||
├── templates/ # HTML templates
|
||||
├── static/ # CSS, JS, images
|
||||
├── data/ # Runtime data (JSON state)
|
||||
└── locales/ # Translations (EN, SL)
|
||||
├── templates/ # HTML templates (15 files)
|
||||
│ ├── index.html # Main dashboard
|
||||
│ ├── tournament.html # Tournament configuration
|
||||
│ ├── draft.html # Draft management
|
||||
│ ├── results_calculator.html # Results calculation
|
||||
│ ├── mobile.html # Mobile interface
|
||||
│ ├── archive.html # Tournament history
|
||||
│ ├── match_details.html # Match view
|
||||
│ ├── player_stats.html # Player analytics
|
||||
│ └── ... (10 more templates)
|
||||
│
|
||||
├── static/ # Static assets
|
||||
│ ├── css/ # Modular CSS (NEW - Consolidated)
|
||||
│ │ ├── base.css # Global styles & variables
|
||||
│ │ ├── navbar.css # Navigation styling
|
||||
│ │ ├── buttons.css # Button system
|
||||
│ │ ├── components.css # Cards, forms, modals, tables
|
||||
│ │ └── responsive.css # Media queries & responsive utilities
|
||||
│ ├── js/ # JavaScript files
|
||||
│ │ ├── websocket-client.js # (Deprecated - SocketIO removed)
|
||||
│ │ └── ... (other JS files)
|
||||
│ └── images/ # Images and assets
|
||||
│
|
||||
├── data/ # Runtime data (JSON state)
|
||||
│ ├── tournaments.json # Tournament data
|
||||
│ ├── leagues.json # League data
|
||||
│ └── ... (other data files)
|
||||
│
|
||||
├── locales/ # Multi-language support
|
||||
│ ├── en.json # English translations
|
||||
│ └── sl.json # Slovenian translations
|
||||
│
|
||||
├── docs/ # Documentation (NEW)
|
||||
│ ├── COMPLETE_DOCUMENTATION.md # Master documentation (60 KB, 2,065 lines)
|
||||
│ ├── CSS_CONSOLIDATION_GUIDE.md # CSS implementation guide
|
||||
│ ├── APP_RESTRUCTURE_BLUEPRINT.md # V2.0 architecture proposal
|
||||
│ └── IMPLEMENTATION_QUICK_START.md # 4-week implementation roadmap
|
||||
│
|
||||
└── README.md # This file
|
||||
```
|
||||
|
||||
## Features
|
||||
@@ -57,37 +92,172 @@ TV_APP_V1.0.0/
|
||||
✅ League management
|
||||
✅ Multi-language support (English & Slovenian)
|
||||
✅ JSON-based persistent storage
|
||||
✅ **[NEW]** Modular CSS architecture with CSS variables
|
||||
✅ **[NEW]** Fully responsive design (mobile-first)
|
||||
✅ **[NEW]** Improved navigation structure
|
||||
✅ **[NEW]** Comprehensive documentation suite
|
||||
|
||||
## Key URLs
|
||||
|
||||
- **Main Dashboard**: http://localhost:5000/
|
||||
- **Tournament Config**: http://localhost:5000/tournament
|
||||
- **Draft Management**: http://localhost:5000/draft
|
||||
- **Results Calculator**: http://localhost:5000/results
|
||||
- **Mobile Interface**: http://localhost:5000/mobile
|
||||
- **Archive**: http://localhost:5000/archive
|
||||
- **Tournament View**: http://localhost:5000/tournament
|
||||
- **Results**: http://localhost:5000/results
|
||||
|
||||
## CSS Architecture (NEW)
|
||||
|
||||
The application uses a modular, maintainable CSS structure based on modern CSS best practices:
|
||||
|
||||
### Core CSS Files (in `/static/css/`)
|
||||
|
||||
| File | Purpose | Lines | Size |
|
||||
|------|---------|-------|------|
|
||||
| **base.css** | Global reset, CSS variables, typography, utilities | 261 | 5.8 KB |
|
||||
| **navbar.css** | Navigation bar styling and responsive behavior | 299 | 6.0 KB |
|
||||
| **buttons.css** | Button system with variants and states | 365 | 7.4 KB |
|
||||
| **components.css** | Cards, forms, modals, tables, alerts | 458 | 8.9 KB |
|
||||
| **responsive.css** | Media queries and responsive utilities | 523 | 10 KB |
|
||||
|
||||
**Total**: 1,906 lines across 5 organized files (77% reduction from previous scattered styles)
|
||||
|
||||
### CSS Variables (base.css)
|
||||
|
||||
```css
|
||||
:root {
|
||||
/* Colors */
|
||||
--primary: #007bff; /* Main brand color */
|
||||
--secondary: #6c757d; /* Secondary color */
|
||||
--success: #28a745; /* Success state */
|
||||
--danger: #dc3545; /* Error state */
|
||||
--warning: #ffc107; /* Warning state */
|
||||
--info: #17a2b8; /* Info state */
|
||||
|
||||
/* Spacing */
|
||||
--spacing-xs: 0.25rem;
|
||||
--spacing-sm: 0.5rem;
|
||||
--spacing-md: 1rem;
|
||||
--spacing-lg: 1.5rem;
|
||||
--spacing-xl: 2rem;
|
||||
|
||||
/* Transitions */
|
||||
--transition-fast: 0.15s ease;
|
||||
--transition-normal: 0.2s ease;
|
||||
--transition-slow: 0.3s ease;
|
||||
|
||||
/* Border Radius */
|
||||
--radius-sm: 4px;
|
||||
--radius-md: 8px;
|
||||
--radius-lg: 12px;
|
||||
|
||||
/* Shadows */
|
||||
--shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
|
||||
--shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
|
||||
--shadow-lg: 0 6px 20px rgba(0, 0, 0, 0.15);
|
||||
}
|
||||
```
|
||||
|
||||
### Responsive Breakpoints
|
||||
|
||||
```css
|
||||
Mobile (max-width: 480px)
|
||||
Small (480px - 768px)
|
||||
Tablet/Medium (768px - 992px)
|
||||
Desktop/Large (992px+)
|
||||
Ultra-wide (1920px+)
|
||||
Landscape (max-height: 500px)
|
||||
```
|
||||
|
||||
See [CSS_CONSOLIDATION_GUIDE.md](./docs/CSS_CONSOLIDATION_GUIDE.md) for complete component reference and customization guide.
|
||||
|
||||
## Dependencies
|
||||
|
||||
- Flask 3.0.0
|
||||
- Flask-SocketIO 5.3.4
|
||||
- python-socketio 5.9.0
|
||||
- python-engineio 4.7.1
|
||||
- python-dotenv 1.0.0
|
||||
### Core
|
||||
- **Flask 3.0.0** - Web framework
|
||||
- **python-dotenv 1.0.0** - Environment variables
|
||||
|
||||
## Development
|
||||
### Removed (Optimized)
|
||||
- ~~Flask-SocketIO~~ - Removed for simplified, faster architecture
|
||||
- ~~python-socketio~~ - Real-time sync was unreliable
|
||||
- ~~python-engineio~~ - No longer needed
|
||||
|
||||
## Navigation Structure (IMPROVED)
|
||||
|
||||
The app now uses a simplified, focused navigation structure:
|
||||
|
||||
### Main Navigation
|
||||
- **Dashboard** - Overview and tournament selection
|
||||
- **Tournament** - Tournament configuration and settings
|
||||
- **Draft** - Player draft management
|
||||
- **Calculator** - Results and scoring
|
||||
- **Mobile** - Remote access interface
|
||||
|
||||
### Removed from Top Navigation
|
||||
- ~~Personal Analysis~~ - Moved to tournament context
|
||||
- ~~Archive~~ - Available via Dashboard
|
||||
|
||||
This streamlined navigation allows users to focus on the core tournament workflow without distractions.
|
||||
|
||||
## Development Notes
|
||||
|
||||
The app structure is simple and maintainable:
|
||||
- All Flask routes in `tv_app.py`
|
||||
- Support modules in `app/` package
|
||||
- Ready to split into blueprints if needed
|
||||
|
||||
## Notes
|
||||
|
||||
- Real-time WebSocket synchronization is disabled (not working reliably)
|
||||
- Each instance operates independently
|
||||
- All data is saved to JSON files in `data/` folder
|
||||
- Fully functional and production-ready
|
||||
|
||||
### Recent Improvements
|
||||
|
||||
1. **SocketIO Removal** - Removed WebSocket/SocketIO dependencies for a lighter, more reliable application
|
||||
2. **CSS Consolidation** - Refactored 8,500+ lines of scattered CSS into 1,906 organized lines across 5 modular files
|
||||
3. **Navigation Simplification** - Removed redundant navigation items, keeping only essential workflow steps
|
||||
4. **Documentation** - Created comprehensive documentation suite for development and restructuring
|
||||
|
||||
### Documentation Suite
|
||||
|
||||
The `docs/` folder contains detailed guides:
|
||||
|
||||
- **[COMPLETE_DOCUMENTATION.md](./docs/COMPLETE_DOCUMENTATION.md)** - Master documentation (60 KB, 2,065 lines)
|
||||
- Current app architecture and analysis
|
||||
- V2.0 restructure blueprint
|
||||
- 4-week implementation plan
|
||||
- API endpoints reference
|
||||
- Data schema documentation
|
||||
- Testing strategy
|
||||
- Migration guide
|
||||
|
||||
- **[CSS_CONSOLIDATION_GUIDE.md](./docs/CSS_CONSOLIDATION_GUIDE.md)** - CSS implementation details
|
||||
- Component class reference
|
||||
- CSS variables documentation
|
||||
- Responsive design guide
|
||||
- Customization instructions
|
||||
|
||||
- **[APP_RESTRUCTURE_BLUEPRINT.md](./docs/APP_RESTRUCTURE_BLUEPRINT.md)** - Architecture proposal
|
||||
- Current vs. proposed structure
|
||||
- New directory organization
|
||||
- Feature implementation guide
|
||||
- Module responsibilities
|
||||
|
||||
- **[IMPLEMENTATION_QUICK_START.md](./docs/IMPLEMENTATION_QUICK_START.md)** - Implementation roadmap
|
||||
- Week-by-week breakdown
|
||||
- Daily tasks and milestones
|
||||
- Code examples for each phase
|
||||
- Testing checklist
|
||||
|
||||
## Performance & Reliability
|
||||
|
||||
- **Lighter Codebase** - Removed unnecessary WebSocket dependencies
|
||||
- **Better Maintainability** - Organized CSS into logical modules
|
||||
- **Responsive Design** - Works seamlessly across all device sizes
|
||||
- **Production-Ready** - Fully functional with JSON-based persistence
|
||||
|
||||
## How to Stop
|
||||
|
||||
Press `Ctrl+C` in the terminal where the app is running.
|
||||
|
||||
---
|
||||
|
||||
**Last Updated**: November 2025
|
||||
**Version**: 1.0.0 with CSS & Navigation Improvements
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"camera_titles": {
|
||||
"1": "Kamera 1",
|
||||
"1": "Kamera",
|
||||
"2": "Kamera 2",
|
||||
"3": "Kamera 3",
|
||||
"4": "Kamera 4",
|
||||
@@ -9,6 +9,7 @@
|
||||
},
|
||||
"display_options": {
|
||||
"show_titles": true,
|
||||
"title_size": 1.4
|
||||
"title_size": 1.2,
|
||||
"target_number_size": 1.4
|
||||
}
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
+13
-2
@@ -24,7 +24,13 @@
|
||||
"print": "Print",
|
||||
"visible": "Visible",
|
||||
"date": "Date",
|
||||
"view": "View"
|
||||
"view": "View",
|
||||
"search": "Search",
|
||||
"filter": "Filter",
|
||||
"type": "Type",
|
||||
"action": "Action",
|
||||
"newest_first": "Newest First",
|
||||
"oldest_first": "Oldest First"
|
||||
},
|
||||
"navigation": {
|
||||
"dashboard": "Dashboard",
|
||||
@@ -50,9 +56,11 @@
|
||||
"unavailable": "Unavailable",
|
||||
"show_card_titles": "Show Card Titles",
|
||||
"title_text_size": "Title Text Size",
|
||||
"target_number_size": "Target Number Size",
|
||||
"language_settings": "Language Settings",
|
||||
"display_options": "Display Options",
|
||||
"click_to_view_fullscreen": "Click to view fullscreen"
|
||||
"click_to_view_fullscreen": "Click to view fullscreen",
|
||||
"shooting_number_size": "Shooting Number Size"
|
||||
},
|
||||
"tournament": {
|
||||
"tournament": "Tournament",
|
||||
@@ -109,6 +117,7 @@
|
||||
"league_finished": "League Finished",
|
||||
"start_league": "Start League",
|
||||
"reset_league": "Reset League",
|
||||
"stop_league": "Stop League",
|
||||
"current_tournament": "Current Tournament",
|
||||
"total_tournaments": "Total Tournaments",
|
||||
"completed_tournaments": "Completed Tournaments",
|
||||
@@ -148,6 +157,8 @@
|
||||
"enter_player_name": "Enter player name...",
|
||||
"start_league_5_tournaments": "Start League (5 Tournaments)",
|
||||
"start_single_tournament": "Start Single Tournament",
|
||||
"competing": "Competing",
|
||||
"not_competing": "Not competing",
|
||||
"id": "ID",
|
||||
"name": "Name",
|
||||
"edit": "Edit",
|
||||
|
||||
+13
-2
@@ -24,7 +24,13 @@
|
||||
"print": "Natisni",
|
||||
"visible": "Vidni",
|
||||
"date": "Datum",
|
||||
"view": "Oglej"
|
||||
"view": "Oglej",
|
||||
"search": "Iskanje",
|
||||
"filter": "Filtrer",
|
||||
"type": "Tip",
|
||||
"action": "Akcija",
|
||||
"newest_first": "Najnovejši Prvo",
|
||||
"oldest_first": "Najstarejši Prvo"
|
||||
},
|
||||
"navigation": {
|
||||
"dashboard": "Nadzorna Plošča",
|
||||
@@ -50,9 +56,11 @@
|
||||
"unavailable": "Nedostopno",
|
||||
"show_card_titles": "Prikaži Naslove Kartic",
|
||||
"title_text_size": "Velikost Besedila Naslova",
|
||||
"target_number_size": "Velikost Števila Tarče",
|
||||
"language_settings": "Jezikovne Nastavitve",
|
||||
"display_options": "Možnosti Prikaza",
|
||||
"click_to_view_fullscreen": "Klikni za celozaslonski prikaz"
|
||||
"click_to_view_fullscreen": "Klikni za celozaslonski prikaz",
|
||||
"shooting_number_size": "Velikost Števila Streljanja"
|
||||
},
|
||||
"tournament": {
|
||||
"tournament": "Turnir",
|
||||
@@ -111,6 +119,7 @@
|
||||
"league_finished": "Liga Zaključena",
|
||||
"start_league": "Začni Ligo",
|
||||
"reset_league": "Ponastavi Ligo",
|
||||
"stop_league": "Ustavi Ligo",
|
||||
"current_tournament": "Trenutni Turnir",
|
||||
"total_tournaments": "Skupaj Turnirjev",
|
||||
"completed_tournaments": "Zaključeni Turnirji",
|
||||
@@ -154,6 +163,8 @@
|
||||
"enter_player_name": "Vnesite ime igralca...",
|
||||
"start_league_5_tournaments": "Začni Ligo (5 Turnirjev)",
|
||||
"start_single_tournament": "Začni Posamezen Turnir",
|
||||
"competing": "Tekmuje",
|
||||
"not_competing": "Ne tekmuje",
|
||||
"id": "ID",
|
||||
"name": "Ime",
|
||||
"edit": "Uredi",
|
||||
|
||||
@@ -0,0 +1,262 @@
|
||||
/* ============================================================================
|
||||
TV_APP - Base Styles & Global Reset
|
||||
Shared across all templates
|
||||
============================================================================ */
|
||||
|
||||
/* Reset & Global Styles */
|
||||
* {
|
||||
box-sizing: border-box;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
html, body {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
|
||||
font-size: 16px;
|
||||
line-height: 1.6;
|
||||
background: #f5f5f5;
|
||||
color: #333;
|
||||
-webkit-font-smoothing: antialiased;
|
||||
-moz-osx-font-smoothing: grayscale;
|
||||
}
|
||||
|
||||
/* ============================================================================
|
||||
CSS Variables - Color Palette & Utilities
|
||||
============================================================================ */
|
||||
|
||||
:root {
|
||||
/* Colors */
|
||||
--primary: #007bff;
|
||||
--secondary: #6c757d;
|
||||
--success: #28a745;
|
||||
--danger: #dc3545;
|
||||
--warning: #ffc107;
|
||||
--info: #17a2b8;
|
||||
|
||||
/* Grays */
|
||||
--white: #ffffff;
|
||||
--light: #f8f9fa;
|
||||
--lighter: #e9ecef;
|
||||
--border: #dee2e6;
|
||||
--text: #333333;
|
||||
--text-muted: #666666;
|
||||
|
||||
/* Spacing */
|
||||
--spacing-xs: 0.25rem;
|
||||
--spacing-sm: 0.5rem;
|
||||
--spacing-md: 1rem;
|
||||
--spacing-lg: 1.5rem;
|
||||
--spacing-xl: 2rem;
|
||||
|
||||
/* Transitions */
|
||||
--transition-fast: 0.15s ease;
|
||||
--transition-normal: 0.2s ease;
|
||||
--transition-slow: 0.3s ease;
|
||||
|
||||
/* Border Radius */
|
||||
--radius-sm: 4px;
|
||||
--radius-md: 8px;
|
||||
--radius-lg: 12px;
|
||||
|
||||
/* Shadows */
|
||||
--shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
|
||||
--shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
|
||||
--shadow-lg: 0 6px 20px rgba(0, 0, 0, 0.15);
|
||||
--shadow-xl: 0 8px 30px rgba(0, 0, 0, 0.2);
|
||||
|
||||
/* Z-Index Scale */
|
||||
--z-dropdown: 100;
|
||||
--z-sticky: 200;
|
||||
--z-fixed: 300;
|
||||
--z-modal-backdrop: 400;
|
||||
--z-modal: 500;
|
||||
--z-popover: 600;
|
||||
--z-tooltip: 700;
|
||||
}
|
||||
|
||||
/* ============================================================================
|
||||
Typography
|
||||
============================================================================ */
|
||||
|
||||
h1, h2, h3, h4, h5, h6 {
|
||||
font-weight: 600;
|
||||
line-height: 1.3;
|
||||
margin-bottom: var(--spacing-md);
|
||||
color: var(--text);
|
||||
}
|
||||
|
||||
h1 { font-size: 2rem; }
|
||||
h2 { font-size: 1.75rem; }
|
||||
h3 { font-size: 1.5rem; }
|
||||
h4 { font-size: 1.25rem; }
|
||||
h5 { font-size: 1.1rem; }
|
||||
h6 { font-size: 1rem; }
|
||||
|
||||
p {
|
||||
margin-bottom: var(--spacing-md);
|
||||
}
|
||||
|
||||
a {
|
||||
color: var(--primary);
|
||||
text-decoration: none;
|
||||
transition: color var(--transition-normal);
|
||||
}
|
||||
|
||||
a:hover {
|
||||
color: #0056b3;
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
/* ============================================================================
|
||||
Utility Classes
|
||||
============================================================================ */
|
||||
|
||||
/* Display */
|
||||
.hidden { display: none !important; }
|
||||
.invisible { visibility: hidden !important; }
|
||||
.block { display: block; }
|
||||
.inline { display: inline; }
|
||||
.inline-block { display: inline-block; }
|
||||
|
||||
/* Flex & Grid */
|
||||
.flex { display: flex; }
|
||||
.grid { display: grid; }
|
||||
|
||||
/* Spacing */
|
||||
.mt-0 { margin-top: 0; }
|
||||
.mt-1 { margin-top: var(--spacing-xs); }
|
||||
.mt-2 { margin-top: var(--spacing-sm); }
|
||||
.mt-3 { margin-top: var(--spacing-md); }
|
||||
.mt-4 { margin-top: var(--spacing-lg); }
|
||||
|
||||
.mb-0 { margin-bottom: 0; }
|
||||
.mb-1 { margin-bottom: var(--spacing-xs); }
|
||||
.mb-2 { margin-bottom: var(--spacing-sm); }
|
||||
.mb-3 { margin-bottom: var(--spacing-md); }
|
||||
.mb-4 { margin-bottom: var(--spacing-lg); }
|
||||
|
||||
.p-1 { padding: var(--spacing-xs); }
|
||||
.p-2 { padding: var(--spacing-sm); }
|
||||
.p-3 { padding: var(--spacing-md); }
|
||||
.p-4 { padding: var(--spacing-lg); }
|
||||
|
||||
/* Text Alignment */
|
||||
.text-left { text-align: left; }
|
||||
.text-center { text-align: center; }
|
||||
.text-right { text-align: right; }
|
||||
|
||||
/* Text Colors */
|
||||
.text-muted { color: var(--text-muted); }
|
||||
.text-primary { color: var(--primary); }
|
||||
.text-success { color: var(--success); }
|
||||
.text-danger { color: var(--danger); }
|
||||
.text-warning { color: var(--warning); }
|
||||
|
||||
/* ============================================================================
|
||||
Shadow Utilities
|
||||
============================================================================ */
|
||||
|
||||
.shadow-sm {
|
||||
box-shadow: var(--shadow-sm);
|
||||
}
|
||||
|
||||
.shadow {
|
||||
box-shadow: var(--shadow-md);
|
||||
}
|
||||
|
||||
.shadow-lg {
|
||||
box-shadow: var(--shadow-lg);
|
||||
}
|
||||
|
||||
.shadow-xl {
|
||||
box-shadow: var(--shadow-xl);
|
||||
}
|
||||
|
||||
/* ============================================================================
|
||||
Border Radius Utilities
|
||||
============================================================================ */
|
||||
|
||||
.rounded-sm {
|
||||
border-radius: var(--radius-sm);
|
||||
}
|
||||
|
||||
.rounded {
|
||||
border-radius: var(--radius-md);
|
||||
}
|
||||
|
||||
.rounded-lg {
|
||||
border-radius: var(--radius-lg);
|
||||
}
|
||||
|
||||
.rounded-full {
|
||||
border-radius: 9999px;
|
||||
}
|
||||
|
||||
/* ============================================================================
|
||||
Container
|
||||
============================================================================ */
|
||||
|
||||
.container {
|
||||
width: 100%;
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
margin-top: 15px;
|
||||
padding-left: 20px;
|
||||
padding-right: 20px;
|
||||
}
|
||||
|
||||
@media (min-width: 768px) {
|
||||
.container {
|
||||
max-width: 750px;
|
||||
}
|
||||
}
|
||||
|
||||
@media (min-width: 992px) {
|
||||
.container {
|
||||
max-width: 970px;
|
||||
}
|
||||
}
|
||||
|
||||
@media (min-width: 1200px) {
|
||||
.container {
|
||||
max-width: 1170px;
|
||||
}
|
||||
}
|
||||
|
||||
/* ============================================================================
|
||||
Scrollbar Styling
|
||||
============================================================================ */
|
||||
|
||||
::-webkit-scrollbar {
|
||||
width: 8px;
|
||||
height: 8px;
|
||||
}
|
||||
|
||||
::-webkit-scrollbar-track {
|
||||
background: var(--lighter);
|
||||
}
|
||||
|
||||
::-webkit-scrollbar-thumb {
|
||||
background: var(--border);
|
||||
border-radius: 4px;
|
||||
}
|
||||
|
||||
::-webkit-scrollbar-thumb:hover {
|
||||
background: var(--text-muted);
|
||||
}
|
||||
|
||||
/* ============================================================================
|
||||
Selection
|
||||
============================================================================ */
|
||||
|
||||
::selection {
|
||||
background: var(--primary);
|
||||
color: white;
|
||||
}
|
||||
|
||||
::-moz-selection {
|
||||
background: var(--primary);
|
||||
color: white;
|
||||
}
|
||||
@@ -0,0 +1,364 @@
|
||||
/* ============================================================================
|
||||
TV_APP - Button Styles
|
||||
All button variants used across templates
|
||||
============================================================================ */
|
||||
|
||||
/* ============================================================================
|
||||
Base Button Styles
|
||||
============================================================================ */
|
||||
|
||||
.btn,
|
||||
.action-btn,
|
||||
.control-btn,
|
||||
.zoom-btn,
|
||||
button {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
gap: var(--spacing-sm);
|
||||
cursor: pointer;
|
||||
border: 2px solid transparent;
|
||||
border-radius: var(--radius-lg);
|
||||
padding: 8px 12px;
|
||||
font-size: 0.9rem;
|
||||
font-weight: 500;
|
||||
transition: all var(--transition-normal);
|
||||
text-decoration: none;
|
||||
white-space: nowrap;
|
||||
user-select: none;
|
||||
vertical-align: middle;
|
||||
}
|
||||
|
||||
button:not([class]) {
|
||||
background: #f8f9fa;
|
||||
border-color: #e9ecef;
|
||||
color: var(--text);
|
||||
box-shadow: var(--shadow-sm);
|
||||
}
|
||||
|
||||
button:not([class]):hover {
|
||||
background: #e9ecef;
|
||||
border-color: var(--primary);
|
||||
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
|
||||
transform: translateY(-1px);
|
||||
color: var(--primary);
|
||||
}
|
||||
|
||||
/* ============================================================================
|
||||
Action Buttons
|
||||
============================================================================ */
|
||||
|
||||
.action-btn,
|
||||
.control-btn,
|
||||
.zoom-btn {
|
||||
background: #f8f9fa;
|
||||
border: 2px solid #e9ecef;
|
||||
color: var(--text);
|
||||
box-shadow: var(--shadow-sm);
|
||||
}
|
||||
|
||||
.action-btn:hover,
|
||||
.control-btn:hover,
|
||||
.zoom-btn:hover {
|
||||
background: #e9ecef;
|
||||
border-color: var(--primary);
|
||||
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
|
||||
transform: translateY(-1px);
|
||||
color: var(--primary);
|
||||
}
|
||||
|
||||
.action-btn:active,
|
||||
.control-btn:active,
|
||||
.zoom-btn:active {
|
||||
transform: translateY(0);
|
||||
box-shadow: var(--shadow-sm);
|
||||
}
|
||||
|
||||
.action-btn:disabled,
|
||||
.control-btn:disabled,
|
||||
.zoom-btn:disabled {
|
||||
opacity: 0.5;
|
||||
cursor: not-allowed;
|
||||
transform: none !important;
|
||||
}
|
||||
|
||||
/* ============================================================================
|
||||
Button Sizes
|
||||
============================================================================ */
|
||||
|
||||
.btn-sm {
|
||||
padding: 8px 12px;
|
||||
font-size: 0.85rem;
|
||||
}
|
||||
|
||||
.btn-lg {
|
||||
padding: 14px 24px;
|
||||
font-size: 1.05rem;
|
||||
}
|
||||
|
||||
.btn-xl {
|
||||
padding: 16px 32px;
|
||||
font-size: 1.1rem;
|
||||
}
|
||||
|
||||
/* ============================================================================
|
||||
Button Variants - Colors
|
||||
============================================================================ */
|
||||
|
||||
/* Primary Button */
|
||||
.btn-primary,
|
||||
.action-btn.primary {
|
||||
background: var(--primary);
|
||||
border-color: var(--primary);
|
||||
color: white;
|
||||
box-shadow: var(--shadow-md);
|
||||
}
|
||||
|
||||
.btn-primary:hover,
|
||||
.action-btn.primary:hover {
|
||||
background: #0056b3;
|
||||
border-color: #0056b3;
|
||||
box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
|
||||
}
|
||||
|
||||
.btn-primary:active,
|
||||
.action-btn.primary:active {
|
||||
background: #004085;
|
||||
box-shadow: var(--shadow-sm);
|
||||
}
|
||||
|
||||
/* Secondary Button */
|
||||
.btn-secondary,
|
||||
.action-btn.secondary {
|
||||
background: var(--secondary);
|
||||
border-color: var(--secondary);
|
||||
color: white;
|
||||
box-shadow: var(--shadow-md);
|
||||
}
|
||||
|
||||
.btn-secondary:hover,
|
||||
.action-btn.secondary:hover {
|
||||
background: #545b62;
|
||||
border-color: #545b62;
|
||||
box-shadow: 0 4px 12px rgba(108, 117, 125, 0.3);
|
||||
}
|
||||
|
||||
/* Success Button */
|
||||
.btn-success,
|
||||
.action-btn.success {
|
||||
background: var(--success);
|
||||
border-color: var(--success);
|
||||
color: white;
|
||||
box-shadow: var(--shadow-md);
|
||||
}
|
||||
|
||||
.btn-success:hover,
|
||||
.action-btn.success:hover {
|
||||
background: #218838;
|
||||
border-color: #218838;
|
||||
box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
|
||||
}
|
||||
|
||||
/* Danger Button */
|
||||
.btn-danger,
|
||||
.action-btn.danger {
|
||||
background: var(--danger);
|
||||
border-color: var(--danger);
|
||||
color: white;
|
||||
box-shadow: var(--shadow-md);
|
||||
}
|
||||
|
||||
.btn-danger:hover,
|
||||
.action-btn.danger:hover {
|
||||
background: #c82333;
|
||||
border-color: #c82333;
|
||||
box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
|
||||
}
|
||||
|
||||
/* Warning Button */
|
||||
.btn-warning,
|
||||
.action-btn.warning {
|
||||
background: var(--warning);
|
||||
border-color: var(--warning);
|
||||
color: #333;
|
||||
box-shadow: var(--shadow-md);
|
||||
}
|
||||
|
||||
.btn-warning:hover,
|
||||
.action-btn.warning:hover {
|
||||
background: #e0a800;
|
||||
border-color: #e0a800;
|
||||
box-shadow: 0 4px 12px rgba(255, 193, 7, 0.3);
|
||||
}
|
||||
|
||||
/* Info Button */
|
||||
.btn-info,
|
||||
.action-btn.info {
|
||||
background: var(--info);
|
||||
border-color: var(--info);
|
||||
color: white;
|
||||
box-shadow: var(--shadow-md);
|
||||
}
|
||||
|
||||
.btn-info:hover,
|
||||
.action-btn.info:hover {
|
||||
background: #138496;
|
||||
border-color: #138496;
|
||||
box-shadow: 0 4px 12px rgba(23, 162, 184, 0.3);
|
||||
}
|
||||
|
||||
/* ============================================================================
|
||||
Button States
|
||||
============================================================================ */
|
||||
|
||||
.btn:disabled,
|
||||
.btn-primary:disabled,
|
||||
.btn-secondary:disabled,
|
||||
.btn-success:disabled,
|
||||
.btn-danger:disabled,
|
||||
button:disabled {
|
||||
opacity: 0.65;
|
||||
cursor: not-allowed;
|
||||
transform: none !important;
|
||||
box-shadow: var(--shadow-sm);
|
||||
}
|
||||
|
||||
/* ============================================================================
|
||||
Button Groups
|
||||
============================================================================ */
|
||||
|
||||
.btn-group {
|
||||
display: flex;
|
||||
gap: var(--spacing-sm);
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
|
||||
.btn-group.vertical {
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
/* ============================================================================
|
||||
Special Button Styles
|
||||
============================================================================ */
|
||||
|
||||
/* Icon Buttons */
|
||||
.btn-icon {
|
||||
width: 44px;
|
||||
height: 44px;
|
||||
padding: 0;
|
||||
border-radius: var(--radius-md);
|
||||
font-size: 1.25rem;
|
||||
}
|
||||
|
||||
.btn-icon:hover {
|
||||
background: var(--primary);
|
||||
color: white;
|
||||
border-color: var(--primary);
|
||||
}
|
||||
|
||||
/* Toggle Button */
|
||||
.btn-toggle {
|
||||
background: #f8f9fa;
|
||||
border: 2px solid #e9ecef;
|
||||
color: var(--text);
|
||||
}
|
||||
|
||||
.btn-toggle.active {
|
||||
background: var(--primary);
|
||||
border-color: var(--primary);
|
||||
color: white;
|
||||
}
|
||||
|
||||
/* Loading State */
|
||||
.btn.loading {
|
||||
pointer-events: none;
|
||||
opacity: 0.7;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.btn.loading::after {
|
||||
content: '';
|
||||
position: absolute;
|
||||
width: 16px;
|
||||
height: 16px;
|
||||
top: 50%;
|
||||
left: 50%;
|
||||
margin-left: -8px;
|
||||
margin-top: -8px;
|
||||
border: 2px solid rgba(255, 255, 255, 0.3);
|
||||
border-radius: 50%;
|
||||
border-top-color: white;
|
||||
animation: spin 0.6s linear infinite;
|
||||
}
|
||||
|
||||
@keyframes spin {
|
||||
to { transform: rotate(360deg); }
|
||||
}
|
||||
|
||||
/* ============================================================================
|
||||
Link Buttons
|
||||
============================================================================ */
|
||||
|
||||
a.btn,
|
||||
a.action-btn,
|
||||
a.nav-btn {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
a.btn:hover {
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
/* ============================================================================
|
||||
Responsive Button Styles
|
||||
============================================================================ */
|
||||
|
||||
@media (max-width: 768px) {
|
||||
.btn,
|
||||
.action-btn,
|
||||
.control-btn {
|
||||
padding: 10px 15px;
|
||||
font-size: 0.9rem;
|
||||
}
|
||||
|
||||
.btn-icon {
|
||||
width: 40px;
|
||||
height: 40px;
|
||||
}
|
||||
|
||||
.btn-group {
|
||||
gap: var(--spacing-xs);
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 480px) {
|
||||
.btn,
|
||||
.action-btn,
|
||||
.control-btn {
|
||||
padding: 8px 12px;
|
||||
font-size: 0.85rem;
|
||||
}
|
||||
|
||||
.btn-group {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.btn-group > .btn {
|
||||
flex: 1;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-height: 500px) and (orientation: landscape) {
|
||||
.btn,
|
||||
.action-btn {
|
||||
padding: 6px 12px;
|
||||
font-size: 0.8rem;
|
||||
}
|
||||
|
||||
.btn-icon {
|
||||
width: 36px;
|
||||
height: 36px;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,458 @@
|
||||
/* ============================================================================
|
||||
TV_APP - Component Styles
|
||||
Reusable components used across templates
|
||||
============================================================================ */
|
||||
|
||||
/* ============================================================================
|
||||
Cards
|
||||
============================================================================ */
|
||||
|
||||
.card,
|
||||
.section,
|
||||
.archive-card,
|
||||
.tournament-info,
|
||||
.league-info {
|
||||
background: white;
|
||||
border-radius: var(--radius-lg);
|
||||
box-shadow: var(--shadow-md);
|
||||
padding: 20px;
|
||||
transition: all var(--transition-normal);
|
||||
margin-bottom: var(--spacing-lg);
|
||||
}
|
||||
|
||||
.card:hover,
|
||||
.archive-card:hover {
|
||||
transform: translateY(-2px);
|
||||
box-shadow: var(--shadow-lg);
|
||||
}
|
||||
|
||||
.card-header {
|
||||
border-bottom: 1px solid var(--border);
|
||||
padding-bottom: var(--spacing-md);
|
||||
margin-bottom: var(--spacing-md);
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.card-title {
|
||||
font-size: 1.3rem;
|
||||
font-weight: 600;
|
||||
color: var(--text);
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.card-subtitle {
|
||||
font-size: 0.9rem;
|
||||
color: var(--text-muted);
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.card-body {
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.card-footer {
|
||||
border-top: 1px solid var(--border);
|
||||
padding-top: var(--spacing-md);
|
||||
margin-top: var(--spacing-md);
|
||||
display: flex;
|
||||
justify-content: flex-end;
|
||||
gap: var(--spacing-md);
|
||||
}
|
||||
|
||||
/* ============================================================================
|
||||
Status Badges
|
||||
============================================================================ */
|
||||
|
||||
.status-badge,
|
||||
.badge {
|
||||
display: inline-block;
|
||||
padding: 4px 12px;
|
||||
border-radius: 12px;
|
||||
font-size: 0.85rem;
|
||||
font-weight: 600;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.5px;
|
||||
}
|
||||
|
||||
/* Badge Colors */
|
||||
.badge-primary { background: #cfe2ff; color: #084298; }
|
||||
.badge-secondary { background: #e2e3e5; color: #41464b; }
|
||||
.badge-success { background: #d1e7dd; color: #0f5132; }
|
||||
.badge-danger { background: #f8d7da; color: #842029; }
|
||||
.badge-warning { background: #fff3cd; color: #664d03; }
|
||||
.badge-info { background: #cff4fc; color: #055160; }
|
||||
.badge-light { background: #f8f9fa; color: #141619; }
|
||||
.badge-dark { background: #e2e3e5; color: #141619; }
|
||||
|
||||
/* Status-specific badges */
|
||||
.status-enabled { background: #d4edda; color: #155724; }
|
||||
.status-disabled { background: #f8d7da; color: #721c24; }
|
||||
.status-active { background: #d1ecf1; color: #0c5460; }
|
||||
.status-inactive { background: #e2e3e5; color: #383d41; }
|
||||
.status-pending { background: #fff3cd; color: #856404; }
|
||||
.status-completed { background: #d4edda; color: #155724; }
|
||||
|
||||
/* ============================================================================
|
||||
Forms & Inputs
|
||||
============================================================================ */
|
||||
|
||||
.form-group {
|
||||
margin-bottom: var(--spacing-lg);
|
||||
}
|
||||
|
||||
.form-group label {
|
||||
display: block;
|
||||
margin-bottom: var(--spacing-sm);
|
||||
font-weight: 600;
|
||||
color: var(--text);
|
||||
}
|
||||
|
||||
.form-group small {
|
||||
display: block;
|
||||
margin-top: var(--spacing-xs);
|
||||
color: var(--text-muted);
|
||||
font-size: 0.85rem;
|
||||
}
|
||||
|
||||
/* Text Inputs */
|
||||
.form-input,
|
||||
.search-input,
|
||||
.camera-input,
|
||||
input[type="text"],
|
||||
input[type="email"],
|
||||
input[type="number"],
|
||||
input[type="password"],
|
||||
select,
|
||||
textarea {
|
||||
width: 100%;
|
||||
padding: 12px 15px;
|
||||
border: 2px solid var(--border);
|
||||
border-radius: var(--radius-md);
|
||||
background: white;
|
||||
color: var(--text);
|
||||
font-size: 0.95rem;
|
||||
font-family: inherit;
|
||||
transition: all var(--transition-normal);
|
||||
box-shadow: var(--shadow-sm);
|
||||
}
|
||||
|
||||
.form-input:focus,
|
||||
.search-input:focus,
|
||||
.camera-input:focus,
|
||||
input:focus,
|
||||
select:focus,
|
||||
textarea:focus {
|
||||
border-color: var(--primary);
|
||||
box-shadow: 0 5px 12px rgba(0, 123, 255, 0.15);
|
||||
transform: translateY(-1px);
|
||||
outline: none;
|
||||
}
|
||||
|
||||
.form-input:disabled,
|
||||
input:disabled,
|
||||
select:disabled,
|
||||
textarea:disabled {
|
||||
background: #f8f9fa;
|
||||
color: var(--text-muted);
|
||||
cursor: not-allowed;
|
||||
opacity: 0.6;
|
||||
}
|
||||
|
||||
/* Error State */
|
||||
.form-input.error,
|
||||
input.error,
|
||||
select.error,
|
||||
textarea.error {
|
||||
border-color: var(--danger);
|
||||
background: #fff5f5;
|
||||
}
|
||||
|
||||
.form-input.error:focus,
|
||||
input.error:focus,
|
||||
select.error:focus,
|
||||
textarea.error:focus {
|
||||
box-shadow: 0 5px 12px rgba(220, 53, 69, 0.15);
|
||||
}
|
||||
|
||||
/* Success State */
|
||||
.form-input.success,
|
||||
input.success,
|
||||
select.success,
|
||||
textarea.success {
|
||||
border-color: var(--success);
|
||||
background: #f0fdf4;
|
||||
}
|
||||
|
||||
.form-input.success:focus,
|
||||
input.success:focus,
|
||||
select.success:focus,
|
||||
textarea.success:focus {
|
||||
box-shadow: 0 5px 12px rgba(40, 167, 69, 0.15);
|
||||
}
|
||||
|
||||
/* Form Error Message */
|
||||
.error-message {
|
||||
color: var(--danger);
|
||||
font-size: 0.85rem;
|
||||
margin-top: var(--spacing-xs);
|
||||
display: block;
|
||||
}
|
||||
|
||||
/* ============================================================================
|
||||
Modals & Overlays
|
||||
============================================================================ */
|
||||
|
||||
.modal-overlay,
|
||||
.modal-backdrop {
|
||||
position: fixed;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
background: rgba(0, 0, 0, 0.5);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
z-index: var(--z-modal-backdrop);
|
||||
opacity: 0;
|
||||
visibility: hidden;
|
||||
transition: all var(--transition-normal);
|
||||
}
|
||||
|
||||
.modal-overlay.active,
|
||||
.modal-backdrop.active {
|
||||
opacity: 1;
|
||||
visibility: visible;
|
||||
}
|
||||
|
||||
.modal,
|
||||
.modal-content {
|
||||
background: white;
|
||||
border-radius: var(--radius-lg);
|
||||
box-shadow: var(--shadow-xl);
|
||||
max-width: 500px;
|
||||
width: 90%;
|
||||
max-height: 90vh;
|
||||
overflow-y: auto;
|
||||
animation: slideUp var(--transition-slow) ease;
|
||||
z-index: var(--z-modal);
|
||||
}
|
||||
|
||||
@keyframes slideUp {
|
||||
from {
|
||||
opacity: 0;
|
||||
transform: translateY(20px);
|
||||
}
|
||||
to {
|
||||
opacity: 1;
|
||||
transform: translateY(0);
|
||||
}
|
||||
}
|
||||
|
||||
.modal-header {
|
||||
padding: 20px;
|
||||
border-bottom: 1px solid var(--border);
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.modal-header h2 {
|
||||
margin: 0;
|
||||
font-size: 1.3rem;
|
||||
}
|
||||
|
||||
.modal-close {
|
||||
background: none;
|
||||
border: none;
|
||||
font-size: 1.5rem;
|
||||
cursor: pointer;
|
||||
color: var(--text-muted);
|
||||
padding: 0;
|
||||
width: 30px;
|
||||
height: 30px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
transition: all var(--transition-normal);
|
||||
}
|
||||
|
||||
.modal-close:hover {
|
||||
color: var(--text);
|
||||
background: var(--lighter);
|
||||
border-radius: var(--radius-md);
|
||||
}
|
||||
|
||||
.modal-body {
|
||||
padding: 20px;
|
||||
}
|
||||
|
||||
.modal-footer {
|
||||
padding: 20px;
|
||||
border-top: 1px solid var(--border);
|
||||
display: flex;
|
||||
justify-content: flex-end;
|
||||
gap: var(--spacing-md);
|
||||
}
|
||||
|
||||
/* ============================================================================
|
||||
Tables
|
||||
============================================================================ */
|
||||
|
||||
.table {
|
||||
width: 100%;
|
||||
border-collapse: collapse;
|
||||
background: white;
|
||||
border-radius: var(--radius-lg);
|
||||
overflow: hidden;
|
||||
box-shadow: var(--shadow-md);
|
||||
}
|
||||
|
||||
.table thead {
|
||||
background: #f8f9fa;
|
||||
border-bottom: 2px solid var(--border);
|
||||
position: sticky;
|
||||
top: 0;
|
||||
z-index: 10;
|
||||
}
|
||||
|
||||
.table th {
|
||||
padding: 12px 15px;
|
||||
text-align: left;
|
||||
font-weight: 600;
|
||||
color: var(--text);
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.table td {
|
||||
padding: 12px 15px;
|
||||
border-bottom: 1px solid var(--border);
|
||||
color: var(--text);
|
||||
}
|
||||
|
||||
.table tbody tr:hover {
|
||||
background: #f8f9fa;
|
||||
}
|
||||
|
||||
.table tbody tr:last-child td {
|
||||
border-bottom: none;
|
||||
}
|
||||
|
||||
/* Striped Table */
|
||||
.table.striped tbody tr:nth-child(odd) {
|
||||
background: #f8f9fa;
|
||||
}
|
||||
|
||||
/* ============================================================================
|
||||
Alerts
|
||||
============================================================================ */
|
||||
|
||||
.alert {
|
||||
padding: 12px 15px;
|
||||
border-radius: var(--radius-md);
|
||||
border-left: 4px solid;
|
||||
margin-bottom: var(--spacing-lg);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: var(--spacing-md);
|
||||
}
|
||||
|
||||
.alert-primary {
|
||||
background: #cfe2ff;
|
||||
border-color: #084298;
|
||||
color: #084298;
|
||||
}
|
||||
|
||||
.alert-success {
|
||||
background: #d1e7dd;
|
||||
border-color: #0f5132;
|
||||
color: #0f5132;
|
||||
}
|
||||
|
||||
.alert-danger {
|
||||
background: #f8d7da;
|
||||
border-color: #842029;
|
||||
color: #842029;
|
||||
}
|
||||
|
||||
.alert-warning {
|
||||
background: #fff3cd;
|
||||
border-color: #664d03;
|
||||
color: #664d03;
|
||||
}
|
||||
|
||||
.alert-info {
|
||||
background: #cff4fc;
|
||||
border-color: #055160;
|
||||
color: #055160;
|
||||
}
|
||||
|
||||
.alert-close {
|
||||
background: none;
|
||||
border: none;
|
||||
cursor: pointer;
|
||||
font-size: 1.2rem;
|
||||
margin-left: auto;
|
||||
}
|
||||
|
||||
/* ============================================================================
|
||||
Responsive Components
|
||||
============================================================================ */
|
||||
|
||||
@media (max-width: 768px) {
|
||||
.card,
|
||||
.section,
|
||||
.archive-card {
|
||||
padding: 15px;
|
||||
}
|
||||
|
||||
.modal,
|
||||
.modal-content {
|
||||
max-width: 95%;
|
||||
width: 95%;
|
||||
}
|
||||
|
||||
.table {
|
||||
font-size: 0.9rem;
|
||||
}
|
||||
|
||||
.table th,
|
||||
.table td {
|
||||
padding: 10px 12px;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 480px) {
|
||||
.card,
|
||||
.section {
|
||||
padding: 12px;
|
||||
}
|
||||
|
||||
.card-header {
|
||||
flex-direction: column;
|
||||
align-items: flex-start;
|
||||
gap: var(--spacing-md);
|
||||
}
|
||||
|
||||
.card-footer {
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
.card-footer .btn {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.modal-footer {
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
.modal-footer .btn {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.form-group {
|
||||
margin-bottom: var(--spacing-md);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,301 @@
|
||||
/* ============================================================================
|
||||
TV_APP - Navbar Styles
|
||||
Navigation bar used across all pages
|
||||
============================================================================ */
|
||||
|
||||
.navbar {
|
||||
background: white;
|
||||
color: black;
|
||||
padding: 8px 25px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
border-bottom: 2px solid #ccc;
|
||||
height: auto;
|
||||
min-height: 50px;
|
||||
box-sizing: border-box;
|
||||
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
|
||||
position: sticky;
|
||||
top: 0;
|
||||
z-index: var(--z-sticky);
|
||||
}
|
||||
|
||||
/* ============================================================================
|
||||
Navbar Sections
|
||||
============================================================================ */
|
||||
|
||||
.navbar-brand {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: var(--spacing-md);
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.navbar-brand img,
|
||||
.logo {
|
||||
height: 40px;
|
||||
width: auto;
|
||||
max-width: 160px;
|
||||
object-fit: contain;
|
||||
margin-right: var(--spacing-md);
|
||||
}
|
||||
|
||||
.navbar-title {
|
||||
font-size: 1.3rem;
|
||||
font-weight: 600;
|
||||
color: var(--text);
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.navbar-center {
|
||||
position: absolute;
|
||||
left: 50%;
|
||||
transform: translateX(-50%);
|
||||
text-align: center;
|
||||
flex-grow: 1;
|
||||
}
|
||||
|
||||
.navbar-controls {
|
||||
display: flex;
|
||||
gap: var(--spacing-md);
|
||||
align-items: center;
|
||||
justify-content: flex-end;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
|
||||
/* ============================================================================
|
||||
Navigation Buttons
|
||||
============================================================================ */
|
||||
|
||||
.nav-btn {
|
||||
background: #f8f9fa;
|
||||
border: 2px solid #e9ecef;
|
||||
cursor: pointer;
|
||||
padding: 12px 20px;
|
||||
border-radius: 8px;
|
||||
transition: all 0.2s ease;
|
||||
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
|
||||
color: #333;
|
||||
text-decoration: none;
|
||||
font-weight: bold;
|
||||
font-size: 0.9rem;
|
||||
white-space: nowrap;
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: var(--spacing-sm);
|
||||
line-height: 1;
|
||||
height: 44px;
|
||||
}
|
||||
|
||||
.nav-btn:hover {
|
||||
background: #e9ecef;
|
||||
border-color: #007bff;
|
||||
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
|
||||
transform: translateY(-1px);
|
||||
color: #007bff;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.nav-btn:active {
|
||||
transform: translateY(0);
|
||||
box-shadow: var(--shadow-sm);
|
||||
}
|
||||
|
||||
.nav-btn:disabled {
|
||||
opacity: 0.5;
|
||||
cursor: not-allowed;
|
||||
transform: none !important;
|
||||
}
|
||||
|
||||
/* ============================================================================
|
||||
Button Variants
|
||||
============================================================================ */
|
||||
|
||||
.nav-btn.active {
|
||||
background: #007bff;
|
||||
border-color: #0056b3;
|
||||
color: white;
|
||||
}
|
||||
|
||||
.nav-btn.active:hover {
|
||||
background: #0056b3;
|
||||
color: white;
|
||||
}
|
||||
|
||||
.nav-btn.secondary {
|
||||
background: var(--secondary);
|
||||
border-color: var(--secondary);
|
||||
color: white;
|
||||
}
|
||||
|
||||
.nav-btn.secondary:hover {
|
||||
background: #545b62;
|
||||
border-color: #545b62;
|
||||
}
|
||||
|
||||
.nav-btn.success {
|
||||
background: var(--success);
|
||||
border-color: var(--success);
|
||||
color: white;
|
||||
}
|
||||
|
||||
.nav-btn.success:hover {
|
||||
background: #218838;
|
||||
border-color: #218838;
|
||||
}
|
||||
|
||||
.nav-btn.danger {
|
||||
background: #dc3545;
|
||||
border-color: #c82333;
|
||||
color: white;
|
||||
}
|
||||
|
||||
.nav-btn.danger:hover {
|
||||
background: #c82333;
|
||||
color: white;
|
||||
}
|
||||
|
||||
/* ============================================================================
|
||||
Hamburger Menu (Mobile)
|
||||
============================================================================ */
|
||||
|
||||
.hamburger-menu {
|
||||
background: #f8f9fa;
|
||||
border: 2px solid #e9ecef;
|
||||
cursor: pointer;
|
||||
padding: 10px;
|
||||
flex-direction: column;
|
||||
justify-content: space-around;
|
||||
width: 42px;
|
||||
height: 42px;
|
||||
border-radius: 8px;
|
||||
transition: all 0.2s ease;
|
||||
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
|
||||
display: flex;
|
||||
}
|
||||
|
||||
.hamburger-menu:hover {
|
||||
background: #e9ecef;
|
||||
border-color: #007bff;
|
||||
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
|
||||
transform: translateY(-1px);
|
||||
}
|
||||
|
||||
.hamburger-line {
|
||||
width: 100%;
|
||||
height: 2px;
|
||||
background: #333;
|
||||
border-radius: 1px;
|
||||
transition: all 0.2s ease;
|
||||
}
|
||||
|
||||
.hamburger-menu:hover .hamburger-line {
|
||||
background: #007bff;
|
||||
}
|
||||
|
||||
/* ============================================================================
|
||||
Settings/Actions in Navbar
|
||||
============================================================================ */
|
||||
|
||||
.nav-icon {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
width: 40px;
|
||||
height: 40px;
|
||||
border-radius: var(--radius-md);
|
||||
background: #f8f9fa;
|
||||
border: none;
|
||||
cursor: pointer;
|
||||
font-size: 1.2rem;
|
||||
transition: all var(--transition-normal);
|
||||
}
|
||||
|
||||
.nav-icon:hover {
|
||||
background: var(--primary);
|
||||
color: white;
|
||||
}
|
||||
|
||||
/* ============================================================================
|
||||
Status Display (Tournament/League Info)
|
||||
============================================================================ */
|
||||
|
||||
.navbar-status {
|
||||
padding: 8px 12px;
|
||||
background: #f0f8ff;
|
||||
border: 1px solid var(--primary);
|
||||
border-radius: var(--radius-md);
|
||||
font-size: 0.9rem;
|
||||
color: var(--text);
|
||||
}
|
||||
|
||||
.navbar-status strong {
|
||||
color: var(--primary);
|
||||
}
|
||||
|
||||
/* ============================================================================
|
||||
Responsive Navbar
|
||||
============================================================================ */
|
||||
|
||||
@media (max-width: 768px) {
|
||||
.navbar {
|
||||
padding: 12px 15px;
|
||||
flex-direction: column;
|
||||
gap: var(--spacing-md);
|
||||
height: auto;
|
||||
}
|
||||
|
||||
.navbar-brand {
|
||||
width: 100%;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.navbar-center {
|
||||
position: static;
|
||||
transform: none;
|
||||
width: 100%;
|
||||
order: 3;
|
||||
margin-top: var(--spacing-sm);
|
||||
}
|
||||
|
||||
.navbar-controls {
|
||||
justify-content: center;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.nav-btn {
|
||||
padding: 10px 15px;
|
||||
font-size: 0.85rem;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 480px) {
|
||||
.navbar {
|
||||
padding: 8px 10px;
|
||||
}
|
||||
|
||||
.navbar-title {
|
||||
font-size: 1rem;
|
||||
}
|
||||
|
||||
.nav-btn {
|
||||
padding: 8px 12px;
|
||||
font-size: 0.75rem;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-height: 500px) and (orientation: landscape) {
|
||||
.navbar {
|
||||
padding: 8px 15px;
|
||||
height: 50px;
|
||||
}
|
||||
|
||||
.navbar-title {
|
||||
font-size: 1rem;
|
||||
}
|
||||
|
||||
.nav-btn {
|
||||
padding: 6px 12px;
|
||||
font-size: 0.8rem;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,523 @@
|
||||
/* ============================================================================
|
||||
TV_APP - Responsive Design System
|
||||
Media queries and responsive utilities
|
||||
============================================================================ */
|
||||
|
||||
/* ============================================================================
|
||||
Breakpoints
|
||||
============================================================================
|
||||
Mobile First Approach:
|
||||
- Base: Mobile (< 480px)
|
||||
- Small: 480px - 768px
|
||||
- Medium: 768px - 992px
|
||||
- Large: 992px+
|
||||
============================================================================ */
|
||||
|
||||
/* ============================================================================
|
||||
Extra Small Devices (Mobile) - max-width: 480px
|
||||
============================================================================ */
|
||||
|
||||
@media (max-width: 480px) {
|
||||
/* Typography */
|
||||
h1 { font-size: 1.5rem; }
|
||||
h2 { font-size: 1.3rem; }
|
||||
h3 { font-size: 1.1rem; }
|
||||
h4 { font-size: 1rem; }
|
||||
|
||||
/* Navbar */
|
||||
.navbar {
|
||||
padding: 8px 12px;
|
||||
height: auto;
|
||||
flex-direction: column;
|
||||
gap: var(--spacing-sm);
|
||||
}
|
||||
|
||||
.navbar-brand {
|
||||
width: 100%;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.navbar-brand img {
|
||||
height: 35px;
|
||||
}
|
||||
|
||||
.navbar-title {
|
||||
font-size: 1rem;
|
||||
}
|
||||
|
||||
.navbar-center {
|
||||
position: static;
|
||||
transform: none;
|
||||
width: 100%;
|
||||
margin-top: var(--spacing-xs);
|
||||
}
|
||||
|
||||
.navbar-controls {
|
||||
width: 100%;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.nav-btn {
|
||||
padding: 8px 12px;
|
||||
font-size: 0.75rem;
|
||||
}
|
||||
|
||||
/* Buttons */
|
||||
.btn,
|
||||
.action-btn,
|
||||
.control-btn {
|
||||
padding: 8px 12px;
|
||||
font-size: 0.85rem;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.btn-icon {
|
||||
width: 36px;
|
||||
height: 36px;
|
||||
}
|
||||
|
||||
.btn-group {
|
||||
width: 100%;
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
.btn-group > .btn {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
/* Cards */
|
||||
.card,
|
||||
.section,
|
||||
.archive-card {
|
||||
padding: 12px;
|
||||
margin-bottom: var(--spacing-md);
|
||||
}
|
||||
|
||||
.card-header {
|
||||
flex-direction: column;
|
||||
align-items: flex-start;
|
||||
gap: var(--spacing-md);
|
||||
}
|
||||
|
||||
.card-title {
|
||||
font-size: 1.1rem;
|
||||
}
|
||||
|
||||
.card-footer {
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
.card-footer .btn {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
/* Forms */
|
||||
.form-group {
|
||||
margin-bottom: var(--spacing-md);
|
||||
}
|
||||
|
||||
.form-input,
|
||||
.search-input,
|
||||
input,
|
||||
select,
|
||||
textarea {
|
||||
padding: 10px 12px;
|
||||
font-size: 16px; /* Prevents zoom on iOS */
|
||||
}
|
||||
|
||||
/* Modals */
|
||||
.modal,
|
||||
.modal-content {
|
||||
max-width: 95%;
|
||||
width: 95%;
|
||||
max-height: 95vh;
|
||||
}
|
||||
|
||||
.modal-header {
|
||||
padding: 12px;
|
||||
}
|
||||
|
||||
.modal-body {
|
||||
padding: 12px;
|
||||
}
|
||||
|
||||
.modal-footer {
|
||||
padding: 12px;
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
.modal-footer .btn {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
/* Tables */
|
||||
.table {
|
||||
font-size: 0.85rem;
|
||||
}
|
||||
|
||||
.table th,
|
||||
.table td {
|
||||
padding: 8px 10px;
|
||||
}
|
||||
|
||||
/* Grids */
|
||||
.grid {
|
||||
grid-template-columns: 1fr !important;
|
||||
}
|
||||
|
||||
/* Utilities */
|
||||
.hide-mobile {
|
||||
display: none !important;
|
||||
}
|
||||
|
||||
/* Spacing */
|
||||
.mt-4 { margin-top: var(--spacing-lg); }
|
||||
.mb-4 { margin-bottom: var(--spacing-lg); }
|
||||
}
|
||||
|
||||
/* ============================================================================
|
||||
Small Devices (Small Mobile/Tablet) - 480px to 768px
|
||||
============================================================================ */
|
||||
|
||||
@media (min-width: 480px) and (max-width: 768px) {
|
||||
/* Typography */
|
||||
h1 { font-size: 1.6rem; }
|
||||
h2 { font-size: 1.4rem; }
|
||||
h3 { font-size: 1.2rem; }
|
||||
|
||||
/* Navbar */
|
||||
.navbar {
|
||||
padding: 12px 18px;
|
||||
height: auto;
|
||||
flex-direction: column;
|
||||
gap: var(--spacing-sm);
|
||||
}
|
||||
|
||||
.navbar-title {
|
||||
font-size: 1.1rem;
|
||||
}
|
||||
|
||||
.navbar-center {
|
||||
position: static;
|
||||
transform: none;
|
||||
width: 100%;
|
||||
order: 3;
|
||||
}
|
||||
|
||||
.nav-btn {
|
||||
padding: 10px 15px;
|
||||
font-size: 0.85rem;
|
||||
}
|
||||
|
||||
/* Buttons */
|
||||
.btn,
|
||||
.action-btn {
|
||||
padding: 10px 15px;
|
||||
font-size: 0.9rem;
|
||||
}
|
||||
|
||||
.btn-icon {
|
||||
width: 40px;
|
||||
height: 40px;
|
||||
}
|
||||
|
||||
/* Cards */
|
||||
.card,
|
||||
.section {
|
||||
padding: 15px;
|
||||
margin-bottom: var(--spacing-lg);
|
||||
}
|
||||
|
||||
/* Forms */
|
||||
.form-group {
|
||||
margin-bottom: var(--spacing-lg);
|
||||
}
|
||||
|
||||
.form-input,
|
||||
input,
|
||||
select,
|
||||
textarea {
|
||||
font-size: 16px; /* Prevents zoom on iOS */
|
||||
}
|
||||
|
||||
/* Grids */
|
||||
.grid {
|
||||
grid-template-columns: repeat(2, 1fr) !important;
|
||||
}
|
||||
|
||||
/* Utilities */
|
||||
.hide-sm {
|
||||
display: none !important;
|
||||
}
|
||||
}
|
||||
|
||||
/* ============================================================================
|
||||
Medium Devices (Tablets) - 768px to 992px
|
||||
============================================================================ */
|
||||
|
||||
@media (min-width: 768px) and (max-width: 992px) {
|
||||
/* Navbar */
|
||||
.navbar {
|
||||
padding: 12px 20px;
|
||||
}
|
||||
|
||||
/* Buttons */
|
||||
.btn,
|
||||
.action-btn {
|
||||
padding: 11px 17px;
|
||||
font-size: 0.92rem;
|
||||
}
|
||||
|
||||
/* Grids */
|
||||
.grid {
|
||||
grid-template-columns: repeat(2, 1fr) !important;
|
||||
}
|
||||
|
||||
/* Utilities */
|
||||
.hide-md {
|
||||
display: none !important;
|
||||
}
|
||||
}
|
||||
|
||||
/* ============================================================================
|
||||
Large Devices (Desktop) - 992px+
|
||||
============================================================================ */
|
||||
|
||||
@media (min-width: 992px) {
|
||||
/* Utilities */
|
||||
.hide-lg {
|
||||
display: none !important;
|
||||
}
|
||||
}
|
||||
|
||||
/* ============================================================================
|
||||
Landscape Mobile - max-height: 500px with landscape orientation
|
||||
============================================================================ */
|
||||
|
||||
@media (max-height: 500px) and (orientation: landscape) {
|
||||
/* Navbar */
|
||||
.navbar {
|
||||
padding: 8px 12px;
|
||||
height: 50px;
|
||||
}
|
||||
|
||||
.navbar-title {
|
||||
font-size: 0.95rem;
|
||||
}
|
||||
|
||||
/* Buttons */
|
||||
.btn,
|
||||
.action-btn,
|
||||
.nav-btn {
|
||||
padding: 6px 12px;
|
||||
font-size: 0.8rem;
|
||||
}
|
||||
|
||||
.btn-icon {
|
||||
width: 36px;
|
||||
height: 36px;
|
||||
}
|
||||
|
||||
/* Cards */
|
||||
.card {
|
||||
padding: 12px;
|
||||
margin-bottom: var(--spacing-md);
|
||||
}
|
||||
|
||||
/* Forms */
|
||||
.form-group {
|
||||
margin-bottom: var(--spacing-md);
|
||||
}
|
||||
|
||||
.form-input,
|
||||
input {
|
||||
padding: 8px 12px;
|
||||
font-size: 0.9rem;
|
||||
}
|
||||
|
||||
/* Tables */
|
||||
.table {
|
||||
font-size: 0.85rem;
|
||||
}
|
||||
|
||||
.table th,
|
||||
.table td {
|
||||
padding: 6px 10px;
|
||||
}
|
||||
|
||||
/* Hide less important elements */
|
||||
.navbar-status {
|
||||
font-size: 0.8rem;
|
||||
padding: 4px 8px;
|
||||
}
|
||||
}
|
||||
|
||||
/* ============================================================================
|
||||
Portrait Orientation - max-width: 600px
|
||||
============================================================================ */
|
||||
|
||||
@media (max-width: 600px) and (orientation: portrait) {
|
||||
/* Optimize for portrait */
|
||||
body {
|
||||
overflow-x: hidden;
|
||||
}
|
||||
|
||||
.container {
|
||||
padding-left: 12px;
|
||||
padding-right: 12px;
|
||||
}
|
||||
}
|
||||
|
||||
/* ============================================================================
|
||||
High Resolution Displays (Retina - min-width: 1920px)
|
||||
============================================================================ */
|
||||
|
||||
@media (min-width: 1920px) {
|
||||
/* Typography */
|
||||
h1 { font-size: 2.5rem; }
|
||||
h2 { font-size: 2rem; }
|
||||
|
||||
/* Buttons */
|
||||
.btn,
|
||||
.action-btn {
|
||||
padding: 13px 20px;
|
||||
font-size: 1rem;
|
||||
}
|
||||
|
||||
/* Cards */
|
||||
.card {
|
||||
padding: 25px;
|
||||
}
|
||||
|
||||
/* Container max-width */
|
||||
.container {
|
||||
max-width: 1800px;
|
||||
}
|
||||
}
|
||||
|
||||
/* ============================================================================
|
||||
Print Media
|
||||
============================================================================ */
|
||||
|
||||
@media print {
|
||||
/* Hide interactive elements */
|
||||
.navbar,
|
||||
.btn,
|
||||
.action-btn,
|
||||
button,
|
||||
.modal,
|
||||
.modal-overlay,
|
||||
.alert-close,
|
||||
.modal-close {
|
||||
display: none !important;
|
||||
}
|
||||
|
||||
/* Optimize for printing */
|
||||
body {
|
||||
background: white;
|
||||
color: black;
|
||||
}
|
||||
|
||||
.card,
|
||||
.section {
|
||||
page-break-inside: avoid;
|
||||
box-shadow: none;
|
||||
border: 1px solid #ccc;
|
||||
}
|
||||
|
||||
.table {
|
||||
border-collapse: collapse;
|
||||
}
|
||||
|
||||
.table th,
|
||||
.table td {
|
||||
border: 1px solid #ccc;
|
||||
}
|
||||
|
||||
a {
|
||||
color: black;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
a[href]::after {
|
||||
content: " (" attr(href) ")";
|
||||
font-size: 0.8rem;
|
||||
}
|
||||
}
|
||||
|
||||
/* ============================================================================
|
||||
Reduced Motion (Accessibility)
|
||||
============================================================================ */
|
||||
|
||||
@media (prefers-reduced-motion: reduce) {
|
||||
*,
|
||||
*::before,
|
||||
*::after {
|
||||
animation-duration: 0.01ms !important;
|
||||
animation-iteration-count: 1 !important;
|
||||
transition-duration: 0.01ms !important;
|
||||
}
|
||||
}
|
||||
|
||||
/* ============================================================================
|
||||
Dark Mode (if user preference exists)
|
||||
============================================================================ */
|
||||
|
||||
@media (prefers-color-scheme: dark) {
|
||||
/* Optional: Add dark mode support here */
|
||||
/* This requires additional CSS variables or overrides */
|
||||
}
|
||||
|
||||
/* ============================================================================
|
||||
Utility Classes for Responsive Control
|
||||
============================================================================ */
|
||||
|
||||
.show-mobile { display: none; }
|
||||
@media (max-width: 768px) {
|
||||
.show-mobile { display: block; }
|
||||
.hide-mobile { display: none !important; }
|
||||
}
|
||||
|
||||
.show-tablet { display: none; }
|
||||
@media (min-width: 768px) and (max-width: 1024px) {
|
||||
.show-tablet { display: block; }
|
||||
.hide-tablet { display: none !important; }
|
||||
}
|
||||
|
||||
.show-desktop { display: none; }
|
||||
@media (min-width: 1024px) {
|
||||
.show-desktop { display: block; }
|
||||
.hide-desktop { display: none !important; }
|
||||
}
|
||||
|
||||
/* ============================================================================
|
||||
Flex Responsive
|
||||
============================================================================ */
|
||||
|
||||
.flex-responsive {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
gap: var(--spacing-md);
|
||||
}
|
||||
|
||||
@media (max-width: 768px) {
|
||||
.flex-responsive {
|
||||
flex-direction: column;
|
||||
}
|
||||
}
|
||||
|
||||
/* ============================================================================
|
||||
Grid Responsive
|
||||
============================================================================ */
|
||||
|
||||
.grid-responsive {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
|
||||
gap: var(--spacing-lg);
|
||||
}
|
||||
|
||||
@media (max-width: 768px) {
|
||||
.grid-responsive {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
}
|
||||
@@ -22,9 +22,14 @@ async function initI18n() {
|
||||
|
||||
// Translate the page
|
||||
translatePage();
|
||||
|
||||
// Signal that translations are ready
|
||||
window.dispatchEvent(new Event('i18nReady'));
|
||||
}
|
||||
} catch (error) {
|
||||
console.error('Failed to initialize i18n:', error);
|
||||
// Even on error, signal ready so page doesn't get stuck
|
||||
window.dispatchEvent(new Event('i18nReady'));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
+16
-85
@@ -4,11 +4,13 @@
|
||||
<meta charset="UTF-8" />
|
||||
<title data-i18n="draft.tournament_draft">Tournament Draft</title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<link rel="stylesheet" href="/static/css/base.css">
|
||||
<link rel="stylesheet" href="/static/css/navbar.css">
|
||||
<link rel="stylesheet" href="/static/css/buttons.css">
|
||||
<link rel="stylesheet" href="/static/css/components.css">
|
||||
<link rel="stylesheet" href="/static/css/responsive.css">
|
||||
<style>
|
||||
* {
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
/* Draft-specific styles */
|
||||
html, body {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
@@ -18,75 +20,6 @@
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.navbar {
|
||||
background: white;
|
||||
color: black;
|
||||
padding: 15px 25px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
border-bottom: 2px solid #ccc;
|
||||
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
|
||||
height: 70px;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.navbar-title {
|
||||
font-size: 1.8rem;
|
||||
font-weight: bold;
|
||||
color: #333;
|
||||
}
|
||||
|
||||
.navbar-controls {
|
||||
display: flex;
|
||||
gap: 12px;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.nav-btn {
|
||||
background: #f8f9fa;
|
||||
border: 2px solid #e9ecef;
|
||||
cursor: pointer;
|
||||
padding: 12px 20px;
|
||||
border-radius: 8px;
|
||||
transition: all 0.2s ease;
|
||||
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
|
||||
color: #333;
|
||||
text-decoration: none;
|
||||
font-weight: bold;
|
||||
font-size: 0.9rem;
|
||||
}
|
||||
|
||||
.nav-btn:hover {
|
||||
background: #e9ecef;
|
||||
border-color: #007bff;
|
||||
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
|
||||
transform: translateY(-1px);
|
||||
color: #007bff;
|
||||
}
|
||||
|
||||
.nav-btn.primary {
|
||||
background: #007bff;
|
||||
border-color: #0056b3;
|
||||
color: white;
|
||||
}
|
||||
|
||||
.nav-btn.primary:hover {
|
||||
background: #0056b3;
|
||||
color: white;
|
||||
}
|
||||
|
||||
.nav-btn.active {
|
||||
background: #007bff;
|
||||
border-color: #0056b3;
|
||||
color: white;
|
||||
}
|
||||
|
||||
.nav-btn.active:hover {
|
||||
background: #0056b3;
|
||||
color: white;
|
||||
}
|
||||
|
||||
.main-container {
|
||||
height: calc(100vh - 70px);
|
||||
display: flex;
|
||||
@@ -102,6 +35,14 @@
|
||||
padding: 15px 20px;
|
||||
text-align: center;
|
||||
flex-shrink: 0;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.tournament-header .nav-btn {
|
||||
position: absolute;
|
||||
top: 10px;
|
||||
right: 15px;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.tournament-title {
|
||||
@@ -620,6 +561,7 @@
|
||||
display: none;
|
||||
}
|
||||
</style>
|
||||
<script src="/static/js/i18n.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<div class="navbar">
|
||||
@@ -627,11 +569,8 @@
|
||||
<div class="navbar-controls">
|
||||
<a href="/" class="nav-btn">📺 <span data-i18n="navigation.dashboard">Dashboard</span></a>
|
||||
<a href="/tournament" class="nav-btn">🏆 <span data-i18n="navigation.tournament">Tournament</span></a>
|
||||
<a href="/archive/player-analysis" class="nav-btn">👤 <span data-i18n="players.player_analysis">Player Analysis</span></a>
|
||||
<a href="/archive" class="nav-btn">📚 <span data-i18n="navigation.archive">Archive</span></a>
|
||||
<a href="/tournament/draft" class="nav-btn active">📋 <span data-i18n="tournament.view_draft">Draft</span></a>
|
||||
<a href="/results/calculator" class="nav-btn">🎯 <span data-i18n="navigation.calculator">Results Calculator</span></a>
|
||||
<button class="nav-btn" onclick="printDraft()">🖨️ <span data-i18n="general.print">Print</span></button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -643,6 +582,7 @@
|
||||
<div class="main-container">
|
||||
{% if tournament %}
|
||||
<div class="tournament-header">
|
||||
<button class="nav-btn" onclick="printDraft()" title="Print Tournament Draft">🖨️ <span data-i18n="general.print">Print</span></button>
|
||||
<img src="/static/logo.png" alt="Logo" class="print-logo" onerror="this.style.display='none'" />
|
||||
<div class="tournament-title">🎯 <span data-i18n="draft.shooting_tournament">Shooting Tournament</span></div>
|
||||
<div class="tournament-stats">
|
||||
@@ -828,14 +768,5 @@
|
||||
console.log(`📊 Displaying ${totalRounds} rounds in vertical layout`);
|
||||
});
|
||||
</script>
|
||||
|
||||
<!-- Include i18n support -->
|
||||
<script src="/static/js/i18n.js"></script>
|
||||
<script>
|
||||
// Initialize language selector and i18n
|
||||
document.addEventListener('DOMContentLoaded', function() {
|
||||
translatePage();
|
||||
});
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
@@ -4,8 +4,13 @@
|
||||
<meta charset="UTF-8" />
|
||||
<title>{{ title }} - Fullscreen</title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<link rel="stylesheet" href="/static/css/base.css">
|
||||
<link rel="stylesheet" href="/static/css/navbar.css">
|
||||
<link rel="stylesheet" href="/static/css/buttons.css">
|
||||
<link rel="stylesheet" href="/static/css/components.css">
|
||||
<link rel="stylesheet" href="/static/css/responsive.css">
|
||||
<style>
|
||||
/* Reset and base styles */
|
||||
/* Fullscreen-specific styles */
|
||||
* {
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
+136
-105
@@ -4,7 +4,13 @@
|
||||
<meta charset="UTF-8" />
|
||||
<title data-i18n="camera.title">Nadzorna Plošča Kamer</title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<link rel="stylesheet" href="/static/css/base.css">
|
||||
<link rel="stylesheet" href="/static/css/navbar.css">
|
||||
<link rel="stylesheet" href="/static/css/buttons.css">
|
||||
<link rel="stylesheet" href="/static/css/components.css">
|
||||
<link rel="stylesheet" href="/static/css/responsive.css">
|
||||
<style>
|
||||
/* Dashboard-specific styles override and extensions */
|
||||
html, body {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
@@ -14,52 +20,31 @@
|
||||
font-family: Arial, sans-serif;
|
||||
}
|
||||
|
||||
.navbar {
|
||||
background: white;
|
||||
color: black;
|
||||
padding: 10px 20px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
border-bottom: 2px solid #ccc;
|
||||
height: 60px;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
.navbar img.logo {
|
||||
height: 40px;
|
||||
}
|
||||
|
||||
.navbar-center {
|
||||
position: absolute;
|
||||
left: 50%;
|
||||
transform: translateX(-50%);
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
/* Tournament Navigation */
|
||||
.tournament-nav {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 15px;
|
||||
gap: 8px;
|
||||
}
|
||||
|
||||
.round-nav-btn {
|
||||
background: #f8f9fa;
|
||||
border: 2px solid #e9ecef;
|
||||
cursor: pointer;
|
||||
padding: 12px;
|
||||
padding: 12px 20px;
|
||||
border-radius: 8px;
|
||||
transition: all 0.2s ease;
|
||||
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
|
||||
color: #333;
|
||||
font-weight: bold;
|
||||
font-size: 1.2rem;
|
||||
width: 50px;
|
||||
height: 50px;
|
||||
font-size: 0.9rem;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
line-height: 1;
|
||||
height: 44px;
|
||||
margin: 0;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.round-nav-btn:hover {
|
||||
@@ -82,96 +67,78 @@
|
||||
|
||||
.current-round-info {
|
||||
text-align: center;
|
||||
min-width: 120px;
|
||||
min-width: 100px;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.round-title {
|
||||
font-size: 1.4rem;
|
||||
font-size: 1.2rem;
|
||||
font-weight: bold;
|
||||
color: #333;
|
||||
margin-bottom: 2px;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
line-height: 1.2;
|
||||
}
|
||||
|
||||
.round-progress {
|
||||
font-size: 0.8rem;
|
||||
font-size: 0.9rem;
|
||||
color: #666;
|
||||
padding: 2px 8px;
|
||||
background: rgba(0, 123, 255, 0.1);
|
||||
border-radius: 10px;
|
||||
border-radius: 6px;
|
||||
border: 1px solid rgba(0, 123, 255, 0.2);
|
||||
margin: 2px 0 0 0;
|
||||
}
|
||||
|
||||
/* Regular time/date display */
|
||||
.datetime {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
text-align: center;
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
line-height: 1.2;
|
||||
}
|
||||
|
||||
.datetime .time {
|
||||
font-size: 1.6rem;
|
||||
font-weight: bold;
|
||||
color: #333;
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
line-height: 1.2;
|
||||
}
|
||||
|
||||
.datetime .date {
|
||||
font-size: 0.9rem;
|
||||
color: #666;
|
||||
}
|
||||
|
||||
.hamburger-menu {
|
||||
background: #f8f9fa;
|
||||
border: 2px solid #e9ecef;
|
||||
cursor: pointer;
|
||||
padding: 12px;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: space-around;
|
||||
width: 50px;
|
||||
height: 50px;
|
||||
border-radius: 8px;
|
||||
transition: all 0.2s ease;
|
||||
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
|
||||
}
|
||||
|
||||
.hamburger-menu:hover {
|
||||
background: #e9ecef;
|
||||
border-color: #007bff;
|
||||
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
|
||||
transform: translateY(-1px);
|
||||
}
|
||||
|
||||
.hamburger-line {
|
||||
width: 100%;
|
||||
height: 3px;
|
||||
background: #333;
|
||||
border-radius: 2px;
|
||||
transition: all 0.3s ease;
|
||||
}
|
||||
|
||||
.hamburger-menu:hover .hamburger-line {
|
||||
background: #007bff;
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
line-height: 1.2;
|
||||
}
|
||||
|
||||
.grid {
|
||||
height: calc(100vh - 60px);
|
||||
height: calc(100vh - 50px);
|
||||
display: grid;
|
||||
grid-template-columns: repeat(3, 1fr);
|
||||
grid-template-rows: repeat(2, 1fr);
|
||||
gap: 10px;
|
||||
padding: 10px;
|
||||
gap: 20px;
|
||||
padding: 20px;
|
||||
box-sizing: border-box;
|
||||
align-items: center;
|
||||
justify-items: center;
|
||||
}
|
||||
|
||||
.camera-card {
|
||||
background: transparent;
|
||||
border-radius: 12px;
|
||||
overflow: hidden;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
transition: transform 0.2s ease, box-shadow 0.2s ease;
|
||||
cursor: pointer;
|
||||
position: relative;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.camera-card:hover {
|
||||
@@ -194,7 +161,6 @@
|
||||
|
||||
.stream-wrapper {
|
||||
position: relative;
|
||||
background: #2a2a2a;
|
||||
border-radius: 12px;
|
||||
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
|
||||
overflow: hidden;
|
||||
@@ -205,6 +171,9 @@
|
||||
max-height: 100%;
|
||||
width: fit-content;
|
||||
height: fit-content;
|
||||
gap: 0;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.image-container {
|
||||
@@ -216,12 +185,14 @@
|
||||
justify-content: center;
|
||||
overflow: hidden;
|
||||
border-radius: 0 0 12px 12px;
|
||||
background: #1a1a1a;
|
||||
flex: 1;
|
||||
}
|
||||
|
||||
/* Calculate optimal size to fit within grid cell */
|
||||
@supports (width: min(100%, calc((100vh - 60px - 20px) / 2 - 60px) * 4 / 3)) {
|
||||
@supports (width: min(100%, calc((100vh - 50px - 20px) / 2 - 60px) * 4 / 3)) {
|
||||
.stream-wrapper {
|
||||
width: min(100%, calc(((100vh - 60px - 20px) / 2 - 60px) * 4 / 3));
|
||||
width: min(100%, calc(((100vh - 50px - 20px) / 2 - 60px) * 4 / 3));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -268,6 +239,8 @@
|
||||
transition: all 0.2s ease;
|
||||
border-radius: 12px 12px 0 0;
|
||||
flex-shrink: 0;
|
||||
margin: 0;
|
||||
line-height: 1;
|
||||
}
|
||||
|
||||
.target-number {
|
||||
@@ -282,6 +255,12 @@
|
||||
font-weight: bold;
|
||||
flex-shrink: 0;
|
||||
margin-right: 15px;
|
||||
transition: color 0.2s ease;
|
||||
}
|
||||
|
||||
/* Style when no player is assigned */
|
||||
.camera-card.no-player .card-header {
|
||||
background: linear-gradient(90deg, #999 0%, #999 60px, #1a1a1a 60px);
|
||||
}
|
||||
|
||||
.camera-card:hover .card-header {
|
||||
@@ -467,6 +446,7 @@
|
||||
color: #007bff;
|
||||
transform: translateY(-2px);
|
||||
box-shadow: 0 5px 12px rgba(0, 123, 255, 0.15);
|
||||
text-decoration: none !important;
|
||||
}
|
||||
|
||||
.camera-input {
|
||||
@@ -523,6 +503,7 @@
|
||||
background: #0056b3 !important;
|
||||
border-color: #004085 !important;
|
||||
color: white !important;
|
||||
text-decoration: none !important;
|
||||
}
|
||||
|
||||
/* Desktop-only styles - mobile users are redirected */
|
||||
@@ -630,6 +611,7 @@
|
||||
}
|
||||
}
|
||||
</style>
|
||||
<script src="/static/js/i18n.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<div class="navbar">
|
||||
@@ -688,7 +670,6 @@
|
||||
<a href="/tournament/draft" class="nav-link tournament-btn">📋 <span data-i18n="tournament.view_full_tournament_draft">Oglej si Celoten Žreb Turnirja</span></a>
|
||||
<a href="/tournament" class="nav-link tournament-btn" id="manageTournamentLink">⚙️ <span data-i18n="tournament.manage_tournament">Upravljaj Turnir</span></a>
|
||||
<a href="/results/calculator" class="nav-link tournament-btn">🎯 <span data-i18n="scoring.results_calculator">Calculator</span></a>
|
||||
<a href="/results" class="nav-link tournament-btn">📊 <span data-i18n="results.results">Results</span></a>
|
||||
</div>
|
||||
</div>
|
||||
{% endif %}
|
||||
@@ -738,6 +719,20 @@
|
||||
style="width: 100%;">
|
||||
</div>
|
||||
|
||||
<div style="margin-bottom: 15px;">
|
||||
<label style="display: block; margin-bottom: 8px; font-weight: bold; color: #333;">
|
||||
<span data-i18n="camera.target_number_size">Velikost Števila Tarče</span>: <span id="targetNumberSizeValue">{{ settings.display_options.get('target_number_size', settings.display_options.title_size) }}</span>rem
|
||||
</label>
|
||||
<input type="range"
|
||||
id="targetNumberSize"
|
||||
min="0.8"
|
||||
max="2.5"
|
||||
step="0.1"
|
||||
value="{{ settings.display_options.get('target_number_size', settings.display_options.title_size) }}"
|
||||
oninput="adjustTargetNumberSize(this.value)"
|
||||
style="width: 100%;">
|
||||
</div>
|
||||
|
||||
<div style="margin-top: 20px;">
|
||||
<h5 data-i18n="camera.titles">Naslovi Kamer</h5>
|
||||
{% for i in range(1, 7) %}
|
||||
@@ -1019,7 +1014,7 @@
|
||||
const prevBtn = document.getElementById('prevRoundBtn');
|
||||
const nextBtn = document.getElementById('nextRoundBtn');
|
||||
const currentRoundNum = document.getElementById('currentRoundNum');
|
||||
|
||||
|
||||
if (prevBtn) prevBtn.disabled = currentRound <= 1;
|
||||
if (nextBtn) nextBtn.disabled = currentRound >= totalRounds;
|
||||
if (currentRoundNum) currentRoundNum.textContent = currentRound;
|
||||
@@ -1029,14 +1024,14 @@
|
||||
// Change round function
|
||||
async function changeRound(direction) {
|
||||
if (!tournamentActive) return;
|
||||
|
||||
|
||||
const newRound = currentRound + direction;
|
||||
if (newRound < 1 || newRound > totalRounds) return;
|
||||
|
||||
|
||||
// Disable buttons during request
|
||||
const prevBtn = document.getElementById('prevRoundBtn');
|
||||
const nextBtn = document.getElementById('nextRoundBtn');
|
||||
|
||||
|
||||
if (prevBtn) prevBtn.disabled = true;
|
||||
if (nextBtn) nextBtn.disabled = true;
|
||||
|
||||
@@ -1186,7 +1181,7 @@
|
||||
cardTitle.style.fontSize = `${size}rem`;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
if (event && event.target === document.getElementById('titleSize')) {
|
||||
currentSettings.display_options.title_size = parseFloat(size);
|
||||
debouncedSaveSettings({
|
||||
@@ -1197,6 +1192,28 @@
|
||||
}
|
||||
}
|
||||
|
||||
function adjustTargetNumberSize(size) {
|
||||
document.getElementById('targetNumberSizeValue').textContent = size;
|
||||
for (let i = 1; i <= 6; i++) {
|
||||
const targetNumber = document.querySelector(`[data-camera-id="${i}"] .target-number`);
|
||||
if (targetNumber) {
|
||||
targetNumber.style.fontSize = `${size}rem`;
|
||||
}
|
||||
}
|
||||
|
||||
if (event && event.target === document.getElementById('targetNumberSize')) {
|
||||
if (!currentSettings.display_options) {
|
||||
currentSettings.display_options = {};
|
||||
}
|
||||
currentSettings.display_options.target_number_size = parseFloat(size);
|
||||
debouncedSaveSettings({
|
||||
display_options: {
|
||||
target_number_size: parseFloat(size)
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
// Open camera fullscreen
|
||||
function openCameraFullscreen(cameraId) {
|
||||
const customTitle = currentSettings.camera_titles[cameraId.toString()] || `Camera ${cameraId}`;
|
||||
@@ -1237,15 +1254,46 @@
|
||||
cardTitle.style.fontSize = `${titleSize}rem`;
|
||||
}
|
||||
}
|
||||
|
||||
// Apply target number size separately
|
||||
const targetNumberSize = currentSettings.display_options.target_number_size || titleSize;
|
||||
const targetNumberSizeValueEl = document.getElementById('targetNumberSizeValue');
|
||||
const targetNumberSizeEl = document.getElementById('targetNumberSize');
|
||||
|
||||
if (targetNumberSizeValueEl) {
|
||||
targetNumberSizeValueEl.textContent = targetNumberSize;
|
||||
}
|
||||
if (targetNumberSizeEl) {
|
||||
targetNumberSizeEl.value = targetNumberSize;
|
||||
}
|
||||
|
||||
for (let i = 1; i <= 6; i++) {
|
||||
const targetNumber = document.querySelector(`[data-camera-id="${i}"] .target-number`);
|
||||
if (targetNumber) {
|
||||
targetNumber.style.fontSize = `${targetNumberSize}rem`;
|
||||
}
|
||||
}
|
||||
|
||||
// Apply card titles
|
||||
for (let i = 1; i <= 6; i++) {
|
||||
const cardTitle = document.getElementById(`cardTitle${i}`);
|
||||
const cameraCard = document.querySelector(`[data-camera-id="${i}"]`);
|
||||
if (cardTitle) {
|
||||
const title = currentSettings.camera_titles[i.toString()] || `Camera ${i}`;
|
||||
cardTitle.textContent = title;
|
||||
|
||||
// Check if no player is assigned (title is Empty or Prazno)
|
||||
if (title === 'Empty' || title === 'Prazno') {
|
||||
if (cameraCard) {
|
||||
cameraCard.classList.add('no-player');
|
||||
}
|
||||
} else {
|
||||
if (cameraCard) {
|
||||
cameraCard.classList.remove('no-player');
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
if (!tournamentActive) {
|
||||
const input = document.getElementById(`titleInput${i}`);
|
||||
if (input) {
|
||||
@@ -1400,22 +1448,5 @@
|
||||
}
|
||||
});
|
||||
</script>
|
||||
|
||||
<!-- Internationalization Support -->
|
||||
<script src="/static/js/i18n.js"></script>
|
||||
<script>
|
||||
// Initialize translations with server data
|
||||
document.addEventListener('DOMContentLoaded', function() {
|
||||
try {
|
||||
// Only try to initialize translations if variables are available
|
||||
if (typeof currentTranslations !== 'undefined' && typeof currentLanguage !== 'undefined') {
|
||||
translatePage();
|
||||
createLanguageSelector('languageSelectorContainer');
|
||||
}
|
||||
} catch (e) {
|
||||
console.log('Translations not available:', e);
|
||||
}
|
||||
});
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
@@ -4,7 +4,13 @@
|
||||
<meta charset="UTF-8" />
|
||||
<title data-i18n="league.league_results">League Results</title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<link rel="stylesheet" href="/static/css/base.css">
|
||||
<link rel="stylesheet" href="/static/css/navbar.css">
|
||||
<link rel="stylesheet" href="/static/css/buttons.css">
|
||||
<link rel="stylesheet" href="/static/css/components.css">
|
||||
<link rel="stylesheet" href="/static/css/responsive.css">
|
||||
<style>
|
||||
/* League scoreboard specific styles */
|
||||
* {
|
||||
box-sizing: border-box;
|
||||
}
|
||||
@@ -772,6 +778,7 @@
|
||||
}
|
||||
}
|
||||
</style>
|
||||
<script src="/static/js/i18n.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<div class="navbar">
|
||||
@@ -779,7 +786,7 @@
|
||||
<div class="navbar-title">🎖️ <span data-i18n="league.league_results">League Results</span></div>
|
||||
</div>
|
||||
<div class="navbar-controls">
|
||||
<a href="/" class="nav-btn"> <span data-i18n="navigation.dashboard">Dashboard</span></a>
|
||||
<a href="/" class="nav-btn">📺 <span data-i18n="navigation.dashboard">Dashboard</span></a>
|
||||
<button class="nav-btn" onclick="window.print()">🖨️ <span data-i18n="general.print">Print</span></button>
|
||||
</div>
|
||||
</div>
|
||||
@@ -1129,9 +1136,20 @@
|
||||
const mostTens = count > 0 ? Math.max(...processedParticipants.map(p => p.total_tens)) : 0;
|
||||
const averageFinal = count > 0 ? Math.round(processedParticipants.reduce((sum, p) => sum + p.final_score, 0) / count) : 0;
|
||||
|
||||
const currentDate = league && league.finished_at ?
|
||||
league.finished_at.substring(0, 10) :
|
||||
new Date().toISOString().substring(0, 10);
|
||||
// Format date from YYYY-MM-DD to DD-MM-YY
|
||||
function formatFooterDate(dateString) {
|
||||
if (!dateString) return '';
|
||||
const parts = dateString.split('-');
|
||||
if (parts.length !== 3) return dateString;
|
||||
const year = parts[0].slice(-2);
|
||||
const month = parts[1];
|
||||
const day = parts[2];
|
||||
return `${day}-${month}-${year}`;
|
||||
}
|
||||
|
||||
const currentDate = league && league.finished_at ?
|
||||
formatFooterDate(league.finished_at.substring(0, 10)) :
|
||||
formatFooterDate(new Date().toISOString().substring(0, 10));
|
||||
|
||||
// Update header stats
|
||||
document.getElementById('participantCount').textContent = count;
|
||||
@@ -1192,14 +1210,5 @@
|
||||
}
|
||||
});
|
||||
</script>
|
||||
|
||||
<!-- Include i18n support -->
|
||||
<script src="/static/js/i18n.js"></script>
|
||||
<script>
|
||||
// Initialize language selector and i18n
|
||||
document.addEventListener('DOMContentLoaded', function() {
|
||||
translatePage();
|
||||
});
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
@@ -4,7 +4,13 @@
|
||||
<meta charset="UTF-8" />
|
||||
<title data-i18n="mobile.camera_streams">📱 Camera Streams</title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimal-ui, viewport-fit=cover">
|
||||
<link rel="stylesheet" href="/static/css/base.css">
|
||||
<link rel="stylesheet" href="/static/css/navbar.css">
|
||||
<link rel="stylesheet" href="/static/css/buttons.css">
|
||||
<link rel="stylesheet" href="/static/css/components.css">
|
||||
<link rel="stylesheet" href="/static/css/responsive.css">
|
||||
<style>
|
||||
/* Mobile streams specific styles */
|
||||
* {
|
||||
box-sizing: border-box;
|
||||
}
|
||||
@@ -211,6 +217,11 @@
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
/* Style for unavailable/empty streams - grey out the camera title */
|
||||
.camera-option .stream-preview.unavailable ~ .camera-info .camera-title {
|
||||
color: #999;
|
||||
}
|
||||
|
||||
@media (orientation: portrait) {
|
||||
.camera-info {
|
||||
padding: 10px 12px;
|
||||
@@ -358,6 +369,7 @@
|
||||
margin-left: 5px;
|
||||
}
|
||||
</style>
|
||||
<script src="/static/js/i18n.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<div class="mobile-navbar">
|
||||
@@ -408,7 +420,12 @@
|
||||
|
||||
<script>
|
||||
function handleStreamError(img, cameraId) {
|
||||
const loadingIndicator = img.parentElement.querySelector('.stream-loading');
|
||||
const streamPreview = img.parentElement;
|
||||
const loadingIndicator = streamPreview.querySelector('.stream-loading');
|
||||
|
||||
// Add unavailable class to stream-preview
|
||||
streamPreview.classList.add('unavailable');
|
||||
|
||||
if (loadingIndicator) {
|
||||
loadingIndicator.textContent = 'Unavailable';
|
||||
loadingIndicator.style.color = '#ff6b6b';
|
||||
@@ -595,20 +612,5 @@
|
||||
}
|
||||
});
|
||||
</script>
|
||||
|
||||
<!-- Internationalization Support -->
|
||||
<script src="/static/js/i18n.js"></script>
|
||||
<script>
|
||||
// Initialize translations with server data
|
||||
if (typeof {{ translations|tojson }} !== 'undefined') {
|
||||
currentTranslations = {{ translations|tojson }};
|
||||
currentLanguage = '{{ current_language }}';
|
||||
|
||||
// Apply translations when DOM is ready
|
||||
document.addEventListener('DOMContentLoaded', function() {
|
||||
translatePage();
|
||||
});
|
||||
}
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
+584
-864
File diff suppressed because it is too large
Load Diff
@@ -4,6 +4,11 @@
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title data-i18n="players.player_analysis">👤 Player Analysis - Camera Dashboard</title>
|
||||
<link rel="stylesheet" href="/static/css/base.css">
|
||||
<link rel="stylesheet" href="/static/css/navbar.css">
|
||||
<link rel="stylesheet" href="/static/css/buttons.css">
|
||||
<link rel="stylesheet" href="/static/css/components.css">
|
||||
<link rel="stylesheet" href="/static/css/responsive.css">
|
||||
<script src="/static/js/chart.min.js"></script>
|
||||
<script>
|
||||
// Fallback: if Chart.js fails to load, create a simple notification
|
||||
@@ -747,6 +752,7 @@
|
||||
}
|
||||
}
|
||||
</style>
|
||||
<script src="/static/js/i18n.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<!-- Navigation Bar -->
|
||||
@@ -754,7 +760,6 @@
|
||||
<div class="navbar-title" data-i18n="players.player_analysis">🎯 👤 Player Analysis</div>
|
||||
<div class="navbar-controls">
|
||||
<a href="/" class="nav-btn">📺 <span data-i18n="navigation.dashboard">Dashboard</span></a>
|
||||
<a href="/tournament" class="nav-btn">🏆 <span data-i18n="navigation.tournament">Tournament</span></a>
|
||||
<a href="/archive/player-analysis" class="nav-btn active">👤 <span data-i18n="players.player_analysis">Player Analysis</span></a>
|
||||
<a href="/archive" class="nav-btn">📚 <span data-i18n="navigation.archive">Archive</span></a>
|
||||
</div>
|
||||
@@ -1315,23 +1320,12 @@
|
||||
window.location.href = `/archive/player/${playerId}`;
|
||||
}
|
||||
|
||||
// Initialize page when DOM is loaded
|
||||
document.addEventListener('DOMContentLoaded', initializePage);
|
||||
</script>
|
||||
|
||||
<!-- Internationalization Support -->
|
||||
<script src="/static/js/i18n.js"></script>
|
||||
<script>
|
||||
// Initialize translations with server data
|
||||
if (typeof {{ translations|tojson }} !== 'undefined') {
|
||||
currentTranslations = {{ translations|tojson }};
|
||||
currentLanguage = '{{ current_language }}';
|
||||
|
||||
// Apply translations when DOM is ready
|
||||
document.addEventListener('DOMContentLoaded', function() {
|
||||
translatePage();
|
||||
});
|
||||
}
|
||||
// Initialize page when DOM is loaded and translations are ready
|
||||
document.addEventListener('DOMContentLoaded', function() {
|
||||
window.addEventListener('i18nReady', function() {
|
||||
initializePage();
|
||||
}, { once: true });
|
||||
});
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
@@ -4,8 +4,14 @@
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>{{ player.name }} - Player Stats</title>
|
||||
<link rel="stylesheet" href="/static/css/base.css">
|
||||
<link rel="stylesheet" href="/static/css/navbar.css">
|
||||
<link rel="stylesheet" href="/static/css/buttons.css">
|
||||
<link rel="stylesheet" href="/static/css/components.css">
|
||||
<link rel="stylesheet" href="/static/css/responsive.css">
|
||||
<script src="/static/js/chart.min.js"></script>
|
||||
<style>
|
||||
/* Player stats specific styles */
|
||||
* {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
@@ -653,14 +659,14 @@
|
||||
}
|
||||
}
|
||||
</style>
|
||||
<script src="/static/js/i18n.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<!-- Navigation Bar -->
|
||||
<div class="navbar">
|
||||
<div class="navbar-title">📊 {{ player.name }} - <span data-i18n="players.player_stats">Stats</span></div>
|
||||
<div class="navbar-controls">
|
||||
<a href="/" class="nav-btn">🏠 <span data-i18n="navigation.dashboard">Dashboard</span></a>
|
||||
<a href="/tournament" class="nav-btn">🏆 <span data-i18n="navigation.tournament">Tournament</span></a>
|
||||
<a href="/" class="nav-btn">📺 <span data-i18n="navigation.dashboard">Dashboard</span></a>
|
||||
<a href="/archive/player-analysis" class="nav-btn active">👤 <span data-i18n="players.player_analysis">Player Analysis</span></a>
|
||||
<a href="/archive" class="nav-btn">📚 <span data-i18n="navigation.archive">Archive</span></a>
|
||||
</div>
|
||||
@@ -1238,20 +1244,5 @@
|
||||
// Initialize page when DOM is loaded
|
||||
document.addEventListener('DOMContentLoaded', initializePage);
|
||||
</script>
|
||||
|
||||
<!-- Internationalization Support -->
|
||||
<script src="/static/js/i18n.js"></script>
|
||||
<script>
|
||||
// Initialize translations with server data
|
||||
if (typeof {{ translations|tojson }} !== 'undefined') {
|
||||
currentTranslations = {{ translations|tojson }};
|
||||
currentLanguage = '{{ current_language }}';
|
||||
|
||||
// Apply translations when DOM is ready
|
||||
document.addEventListener('DOMContentLoaded', function() {
|
||||
translatePage();
|
||||
});
|
||||
}
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
@@ -4,86 +4,13 @@
|
||||
<meta charset="UTF-8" />
|
||||
<title data-i18n="scoring.results_calculator">Results Calculator</title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<link rel="stylesheet" href="/static/css/base.css">
|
||||
<link rel="stylesheet" href="/static/css/navbar.css">
|
||||
<link rel="stylesheet" href="/static/css/buttons.css">
|
||||
<link rel="stylesheet" href="/static/css/components.css">
|
||||
<link rel="stylesheet" href="/static/css/responsive.css">
|
||||
<style>
|
||||
* {
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
html, body {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
background: #f5f5f5;
|
||||
font-family: Arial, sans-serif;
|
||||
min-height: 100vh;
|
||||
}
|
||||
|
||||
.navbar {
|
||||
background: white;
|
||||
color: black;
|
||||
padding: 15px 25px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
border-bottom: 2px solid #ccc;
|
||||
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
|
||||
}
|
||||
|
||||
.navbar-title {
|
||||
font-size: 1.8rem;
|
||||
font-weight: bold;
|
||||
color: #333;
|
||||
}
|
||||
|
||||
.navbar-controls {
|
||||
display: flex;
|
||||
gap: 12px;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.nav-btn {
|
||||
background: #f8f9fa;
|
||||
border: 2px solid #e9ecef;
|
||||
cursor: pointer;
|
||||
padding: 12px 20px;
|
||||
border-radius: 8px;
|
||||
transition: all 0.2s ease;
|
||||
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
|
||||
color: #333;
|
||||
text-decoration: none;
|
||||
font-weight: bold;
|
||||
font-size: 0.9rem;
|
||||
}
|
||||
|
||||
.nav-btn:hover {
|
||||
background: #e9ecef;
|
||||
border-color: #007bff;
|
||||
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
|
||||
transform: translateY(-1px);
|
||||
color: #007bff;
|
||||
}
|
||||
|
||||
.nav-btn.active {
|
||||
background: #007bff;
|
||||
border-color: #0056b3;
|
||||
color: white;
|
||||
}
|
||||
|
||||
.nav-btn.active:hover {
|
||||
background: #0056b3;
|
||||
color: white;
|
||||
}
|
||||
|
||||
.nav-btn.danger {
|
||||
background: #dc3545;
|
||||
border-color: #c82333;
|
||||
color: white;
|
||||
}
|
||||
|
||||
.nav-btn.danger:hover {
|
||||
background: #c82333;
|
||||
color: white;
|
||||
}
|
||||
|
||||
/* Results Calculator specific styles */
|
||||
.container {
|
||||
max-width: 1000px;
|
||||
margin: 0 auto;
|
||||
@@ -409,7 +336,7 @@
|
||||
|
||||
.targets-grid {
|
||||
display: grid;
|
||||
gap: 10px;
|
||||
gap: 15px;
|
||||
margin-bottom: 20px;
|
||||
max-width: 100%;
|
||||
}
|
||||
@@ -420,11 +347,11 @@
|
||||
}
|
||||
|
||||
.targets-grid.targets-20 {
|
||||
grid-template-columns: repeat(auto-fit, minmax(70px, 1fr));
|
||||
grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
|
||||
}
|
||||
|
||||
.targets-grid.targets-40 {
|
||||
grid-template-columns: repeat(auto-fit, minmax(70px, 1fr));
|
||||
grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
|
||||
}
|
||||
|
||||
/* Responsive adjustments */
|
||||
@@ -483,7 +410,7 @@
|
||||
.target-group {
|
||||
border: 2px solid #e9ecef;
|
||||
border-radius: 8px;
|
||||
padding: 10px;
|
||||
padding: 15px 12px;
|
||||
background: #f8f9fa;
|
||||
text-align: center;
|
||||
}
|
||||
@@ -494,10 +421,10 @@
|
||||
}
|
||||
|
||||
.target-number {
|
||||
font-size: 0.8rem;
|
||||
font-size: 1rem;
|
||||
font-weight: bold;
|
||||
color: #333;
|
||||
margin-bottom: 5px;
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
|
||||
.shots-container {
|
||||
@@ -512,17 +439,24 @@
|
||||
|
||||
.shot-input {
|
||||
width: 100%;
|
||||
padding: 6px;
|
||||
border: 1px solid #ddd;
|
||||
border-radius: 4px;
|
||||
padding: 12px 8px;
|
||||
border: 2px solid #ddd;
|
||||
border-radius: 6px;
|
||||
text-align: center;
|
||||
font-size: 0.9rem;
|
||||
font-size: 1.2rem;
|
||||
font-weight: bold;
|
||||
color: #333;
|
||||
background-color: #ffffff;
|
||||
min-height: 45px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.shots-container.shots-5 .shot-input {
|
||||
padding: 4px;
|
||||
font-size: 0.8rem;
|
||||
padding: 10px 6px;
|
||||
font-size: 1rem;
|
||||
min-height: 40px;
|
||||
}
|
||||
|
||||
.shot-input:focus {
|
||||
@@ -668,6 +602,7 @@
|
||||
100% { transform: rotate(360deg); }
|
||||
}
|
||||
</style>
|
||||
<script src="/static/js/i18n.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<div class="navbar">
|
||||
@@ -675,8 +610,6 @@
|
||||
<div class="navbar-controls">
|
||||
<a href="/" class="nav-btn">📺 <span data-i18n="navigation.dashboard">Dashboard</span></a>
|
||||
<a href="/tournament" class="nav-btn">🏆 <span data-i18n="navigation.tournament">Tournament</span></a>
|
||||
<a href="/archive/player-analysis" class="nav-btn">👤 <span data-i18n="players.player_analysis">Player Analysis</span></a>
|
||||
<a href="/archive" class="nav-btn">📚 <span data-i18n="navigation.archive">Archive</span></a>
|
||||
<a href="/tournament/draft" class="nav-btn">📋 <span data-i18n="tournament.view_draft">Draft</span></a>
|
||||
<a href="/results/calculator" class="nav-btn active">🎯 <span data-i18n="navigation.calculator">Results Calculator</span></a>
|
||||
</div>
|
||||
@@ -1347,20 +1280,20 @@
|
||||
|
||||
async function finishTournament() {
|
||||
const allCompleted = Object.values(results.participants).every(p => p.completed);
|
||||
|
||||
|
||||
if (!allCompleted) {
|
||||
alert('Please complete scoring for all participants before finishing the tournament.');
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
if (!confirm('Are you sure you want to finish the tournament? This will finalize all results and make them viewable.')) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
const finishBtn = document.getElementById('finishBtn');
|
||||
finishBtn.disabled = true;
|
||||
finishBtn.textContent = '🔄 Finishing Tournament...';
|
||||
|
||||
|
||||
try {
|
||||
const response = await fetch('/api/results/finish', {
|
||||
method: 'POST',
|
||||
@@ -1368,10 +1301,12 @@
|
||||
'Content-Type': 'application/json',
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
if (response.ok) {
|
||||
alert('Tournament finished successfully! Redirecting to results...');
|
||||
// Small delay to ensure the alert is seen
|
||||
const responseData = await response.json();
|
||||
|
||||
// Always show results first when tournament finishes
|
||||
alert('Tournament finished successfully! Showing results...');
|
||||
setTimeout(() => {
|
||||
window.location.href = '/results';
|
||||
}, 1000);
|
||||
@@ -1439,19 +1374,5 @@
|
||||
});
|
||||
});
|
||||
</script>
|
||||
|
||||
<!-- Internationalization Support -->
|
||||
<script src="/static/js/i18n.js"></script>
|
||||
<script>
|
||||
// Initialize translations with server data
|
||||
if (typeof {{ translations|tojson }} !== 'undefined') {
|
||||
currentTranslations = {{ translations|tojson }};
|
||||
currentLanguage = '{{ current_language }}';
|
||||
}
|
||||
// Apply translations when DOM is loaded
|
||||
document.addEventListener('DOMContentLoaded', function() {
|
||||
translatePage();
|
||||
});
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
@@ -4,7 +4,13 @@
|
||||
<meta charset="UTF-8" />
|
||||
<title data-i18n="tournament.tournament_results">Tournament Results</title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<link rel="stylesheet" href="/static/css/base.css">
|
||||
<link rel="stylesheet" href="/static/css/navbar.css">
|
||||
<link rel="stylesheet" href="/static/css/buttons.css">
|
||||
<link rel="stylesheet" href="/static/css/components.css">
|
||||
<link rel="stylesheet" href="/static/css/responsive.css">
|
||||
<style>
|
||||
/* Results display specific styles */
|
||||
* {
|
||||
box-sizing: border-box;
|
||||
}
|
||||
@@ -642,6 +648,7 @@
|
||||
}
|
||||
}
|
||||
</style>
|
||||
<script src="/static/js/i18n.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<div class="navbar">
|
||||
@@ -649,7 +656,7 @@
|
||||
<div class="navbar-title">🏆 <span data-i18n="tournament.tournament_results">Tournament Results</span></div>
|
||||
</div>
|
||||
<div class="navbar-controls">
|
||||
<a href="/" class="nav-btn"> <span data-i18n="navigation.dashboard">Dashboard</span></a>
|
||||
<a href="/" class="nav-btn">📺 <span data-i18n="navigation.dashboard">Dashboard</span></a>
|
||||
<button class="nav-btn" onclick="printResults()">🖨️ <span data-i18n="general.print">Print</span></button>
|
||||
</div>
|
||||
</div>
|
||||
@@ -888,9 +895,20 @@
|
||||
const mostTens = count > 0 ? Math.max(...processedParticipants.map(p => p.tens_count)) : 0;
|
||||
const averageScore = count > 0 ? Math.round(processedParticipants.reduce((sum, p) => sum + p.total_score, 0) / count) : 0;
|
||||
|
||||
const currentDate = results && results.created_at ?
|
||||
results.created_at.substring(0, 10) :
|
||||
new Date().toISOString().substring(0, 10);
|
||||
// Format date from YYYY-MM-DD to DD-MM-YY
|
||||
function formatFooterDate(dateString) {
|
||||
if (!dateString) return '';
|
||||
const parts = dateString.split('-');
|
||||
if (parts.length !== 3) return dateString;
|
||||
const year = parts[0].slice(-2);
|
||||
const month = parts[1];
|
||||
const day = parts[2];
|
||||
return `${day}-${month}-${year}`;
|
||||
}
|
||||
|
||||
const currentDate = results && results.created_at ?
|
||||
formatFooterDate(results.created_at.substring(0, 10)) :
|
||||
formatFooterDate(new Date().toISOString().substring(0, 10));
|
||||
|
||||
// Update header stats
|
||||
document.getElementById('participantCount').textContent = count;
|
||||
@@ -958,14 +976,5 @@
|
||||
}
|
||||
});
|
||||
</script>
|
||||
|
||||
<!-- Include i18n support -->
|
||||
<script src="/static/js/i18n.js"></script>
|
||||
<script>
|
||||
// Initialize language selector and i18n
|
||||
document.addEventListener('DOMContentLoaded', function() {
|
||||
translatePage();
|
||||
});
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
+872
-230
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user