ijsbreker/editor.css
Frank Meeuwsen 7b181a5f12 feat: Sessie IJsbreker - interactief workshop spel
Browser-based interactief spel voor workshops waarbij deelnemers fysiek
kiezen tussen twee stellingen die op een beamer worden getoond.

Features:
- Presentatie modus met visuele timer rondom scherm
- Timer animatie loopt synchroon rond in opgegeven tijd
- Geluidssignaal bij einde timer
- Overlay met stellingen na timer (grayed out)
- Keyboard shortcuts (spatiebalk voor volgende)
- Direct eindscherm bij laatste stelling

- Web-based stellingen editor
- Flask backend voor config management
- Real-time CRUD operaties op stellingen
- Kleurenpicker voor achtergronden
- Validatie en filtering van lege stellingen
- Volledig offline werkend

Tech stack:
- Frontend: Pure HTML/CSS/JavaScript
- Backend: Python Flask + flask-cors
- Config driven via JSON

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-03 16:23:11 +01:00

273 lines
4.5 KiB
CSS

/* Reset en basis */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
background: #f5f5f5;
color: #333;
line-height: 1.6;
}
.container {
max-width: 1200px;
margin: 0 auto;
padding: 2rem;
}
/* Header */
header {
background: white;
padding: 2rem;
border-radius: 12px;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
margin-bottom: 2rem;
display: flex;
justify-content: space-between;
align-items: center;
}
header h1 {
font-size: 1.8rem;
color: #2563EB;
}
.header-actions {
display: flex;
gap: 1rem;
}
/* Sections */
section {
background: white;
padding: 2rem;
border-radius: 12px;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
margin-bottom: 2rem;
}
section h2 {
font-size: 1.4rem;
margin-bottom: 1.5rem;
color: #333;
}
.section-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 1.5rem;
}
.count-badge {
background: #E5E7EB;
color: #4B5563;
padding: 0.5rem 1rem;
border-radius: 20px;
font-size: 0.9rem;
font-weight: 600;
}
/* Settings grid */
.settings-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
gap: 1.5rem;
}
.setting-item {
display: flex;
flex-direction: column;
gap: 0.5rem;
}
.setting-item label {
font-weight: 600;
color: #4B5563;
font-size: 0.9rem;
}
.setting-item input[type="text"],
.setting-item input[type="number"] {
padding: 0.75rem;
border: 2px solid #E5E7EB;
border-radius: 8px;
font-size: 1rem;
transition: border-color 0.2s;
}
.setting-item input[type="text"]:focus,
.setting-item input[type="number"]:focus {
outline: none;
border-color: #3B82F6;
}
.setting-item input[type="color"] {
height: 50px;
border: 2px solid #E5E7EB;
border-radius: 8px;
cursor: pointer;
}
/* Stellingen lijst */
.statements-list {
display: flex;
flex-direction: column;
gap: 1rem;
}
.statement-row {
display: grid;
grid-template-columns: 1fr 1fr auto;
gap: 1rem;
align-items: center;
padding: 1rem;
background: #F9FAFB;
border-radius: 8px;
border: 2px solid #E5E7EB;
transition: border-color 0.2s;
}
.statement-row:hover {
border-color: #D1D5DB;
}
.statement-input {
display: flex;
flex-direction: column;
gap: 0.3rem;
}
.statement-input label {
font-size: 0.75rem;
font-weight: 600;
color: #6B7280;
text-transform: uppercase;
}
.statement-input input {
padding: 0.75rem;
border: 2px solid #E5E7EB;
border-radius: 6px;
font-size: 1rem;
transition: border-color 0.2s;
}
.statement-input input:focus {
outline: none;
border-color: #3B82F6;
}
/* Buttons */
.btn {
padding: 0.75rem 1.5rem;
font-size: 1rem;
font-weight: 600;
border: none;
border-radius: 8px;
cursor: pointer;
transition: all 0.2s;
text-decoration: none;
display: inline-block;
}
.btn-primary {
background: #3B82F6;
color: white;
box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}
.btn-primary:hover {
background: #2563EB;
transform: translateY(-2px);
box-shadow: 0 6px 16px rgba(59, 130, 246, 0.4);
}
.btn-secondary {
background: #6B7280;
color: white;
}
.btn-secondary:hover {
background: #4B5563;
}
.btn-add {
background: #10B981;
color: white;
width: 100%;
margin-top: 1rem;
}
.btn-add:hover {
background: #059669;
}
.btn-remove {
background: #EF4444;
color: white;
padding: 0.5rem 1rem;
font-size: 1.2rem;
min-width: 44px;
}
.btn-remove:hover {
background: #DC2626;
}
/* Actions */
.actions-section {
display: flex;
flex-direction: column;
gap: 1rem;
align-items: center;
}
#saveConfig {
font-size: 1.2rem;
padding: 1rem 2rem;
}
/* Status message */
.status-message {
padding: 1rem;
border-radius: 8px;
font-weight: 600;
text-align: center;
min-height: 20px;
transition: all 0.3s;
}
.status-message.success {
background: #D1FAE5;
color: #065F46;
}
.status-message.error {
background: #FEE2E2;
color: #991B1B;
}
/* Responsive */
@media (max-width: 768px) {
.container {
padding: 1rem;
}
header {
flex-direction: column;
gap: 1rem;
text-align: center;
}
.statement-row {
grid-template-columns: 1fr;
}
.settings-grid {
grid-template-columns: 1fr;
}
}