Alexis Bruneteau 14eff8d0da feat: Rebuild frontend with Next.js and shadcn/ui components
- Migrate from React CRA to Next.js 15 with modern architecture
- Implement comprehensive shadcn/ui component library
- Create complete dashboard system with layouts and navigation
- Build authentication pages (login, register) with proper forms
- Implement vote management pages (active, upcoming, history, archives)
- Add user profile management with security settings
- Configure Tailwind CSS with custom dark theme (accent: #e8704b)
- Setup TypeScript with strict type checking
- Backup old React-based frontend to .backups/frontend-old
- All pages compile successfully and build passes linting

Pages created:
- Home page with hero section and features
- Authentication (login/register)
- Dashboard with stats and vote cards
- Vote management (active, upcoming, history, archives)
- User profile with form validation

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-06 17:02:14 +01:00

282 lines
4.2 KiB
CSS

.modal-overlay {
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: rgba(0, 0, 0, 0.5);
display: flex;
align-items: center;
justify-content: center;
z-index: 1000;
padding: 20px;
backdrop-filter: blur(4px);
}
.modal-content {
background: white;
border-radius: 16px;
box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
max-width: 600px;
width: 100%;
max-height: 90vh;
overflow-y: auto;
animation: modalSlideUp 0.3s ease-out;
}
@keyframes modalSlideUp {
from {
opacity: 0;
transform: translateY(20px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
.modal-header {
display: flex;
justify-content: space-between;
align-items: center;
padding: 24px;
border-bottom: 1px solid #e0e0e0;
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
color: white;
border-radius: 16px 16px 0 0;
position: sticky;
top: 0;
z-index: 10;
}
.modal-header h2 {
margin: 0;
font-size: 24px;
font-weight: 600;
}
.modal-close {
background: rgba(255, 255, 255, 0.2);
border: none;
color: white;
cursor: pointer;
border-radius: 8px;
padding: 8px;
display: flex;
align-items: center;
justify-content: center;
transition: all 0.3s ease;
}
.modal-close:hover {
background: rgba(255, 255, 255, 0.3);
}
.modal-body {
padding: 24px;
}
.modal-section {
margin-bottom: 24px;
}
.modal-section h3 {
font-size: 16px;
font-weight: 600;
margin: 0 0 16px 0;
color: #333;
display: flex;
align-items: center;
gap: 8px;
}
.modal-description {
color: #666;
margin: 0 0 16px 0;
line-height: 1.6;
font-size: 14px;
}
.modal-dates {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 12px;
}
.modal-dates > div {
padding: 12px;
background: #f5f5f5;
border-radius: 8px;
}
.modal-dates label {
display: block;
font-size: 12px;
font-weight: 600;
color: #999;
text-transform: uppercase;
letter-spacing: 0.5px;
margin-bottom: 4px;
}
.modal-dates p {
margin: 0;
font-size: 14px;
font-weight: 500;
color: #333;
}
.modal-candidates {
display: flex;
flex-direction: column;
gap: 8px;
}
.modal-candidate {
display: flex;
align-items: flex-start;
gap: 12px;
padding: 10px;
background: #f8f9ff;
border-left: 3px solid #667eea;
border-radius: 6px;
}
.candidate-number {
display: flex;
align-items: center;
justify-content: center;
width: 28px;
height: 28px;
background: #667eea;
color: white;
border-radius: 50%;
font-weight: bold;
font-size: 12px;
flex-shrink: 0;
}
.modal-candidate h4 {
margin: 0 0 4px 0;
font-size: 14px;
font-weight: 600;
color: #333;
}
.modal-candidate p {
margin: 0;
font-size: 12px;
color: #999;
}
.modal-total-votes {
display: flex;
align-items: center;
gap: 8px;
font-size: 14px;
color: #666;
padding: 10px;
background: #f0f7ff;
border-radius: 6px;
margin-bottom: 12px;
}
.modal-total-votes svg {
color: #667eea;
}
.modal-total-votes strong {
color: #667eea;
font-size: 16px;
}
.modal-results {
display: flex;
flex-direction: column;
gap: 12px;
}
.modal-result-item {
display: flex;
flex-direction: column;
gap: 8px;
}
.modal-result-header {
display: flex;
justify-content: space-between;
align-items: center;
}
.modal-result-name {
font-weight: 500;
color: #333;
font-size: 14px;
display: flex;
align-items: center;
gap: 8px;
}
.modal-result-percentage {
font-weight: 600;
color: #667eea;
font-size: 13px;
}
.modal-result-bar {
height: 20px;
background: #e0e0e0;
border-radius: 10px;
overflow: hidden;
}
.modal-result-bar-fill {
height: 100%;
background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
border-radius: 10px;
transition: width 0.3s ease;
}
.modal-result-count {
font-size: 12px;
color: #999;
text-align: right;
}
.modal-loading,
.modal-error {
padding: 24px;
text-align: center;
font-size: 14px;
}
.modal-error {
color: #d32f2f;
background: #ffebee;
border-radius: 8px;
margin: 16px;
}
/* Responsive */
@media (max-width: 600px) {
.modal-content {
max-height: 95vh;
}
.modal-header {
padding: 16px;
}
.modal-header h2 {
font-size: 20px;
}
.modal-body {
padding: 16px;
}
.modal-dates {
grid-template-columns: 1fr;
}
}