- 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>
184 lines
3.4 KiB
CSS
184 lines
3.4 KiB
CSS
.active-votes-page {
|
|
min-height: 100vh;
|
|
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
|
|
padding: 2rem;
|
|
}
|
|
|
|
.active-votes-page .container {
|
|
max-width: 1200px;
|
|
margin: 0 auto;
|
|
}
|
|
|
|
.active-votes-page .page-header {
|
|
background: rgba(255, 255, 255, 0.1);
|
|
backdrop-filter: blur(10px);
|
|
border-radius: 12px;
|
|
padding: 2rem;
|
|
margin-bottom: 2rem;
|
|
color: white;
|
|
border: 1px solid rgba(255, 255, 255, 0.2);
|
|
}
|
|
|
|
.active-votes-page .page-header h1 {
|
|
margin: 0.5rem 0 0.5rem 0;
|
|
font-size: 2.5rem;
|
|
}
|
|
|
|
.active-votes-page .page-header p {
|
|
margin: 0;
|
|
opacity: 0.9;
|
|
}
|
|
|
|
.active-votes-page .back-btn {
|
|
background: rgba(255, 255, 255, 0.2);
|
|
color: white;
|
|
border: none;
|
|
padding: 0.75rem 1.5rem;
|
|
border-radius: 8px;
|
|
cursor: pointer;
|
|
margin-bottom: 1rem;
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
.active-votes-page .back-btn:hover {
|
|
background: rgba(255, 255, 255, 0.3);
|
|
transform: translateX(-2px);
|
|
}
|
|
|
|
.active-votes-page .stats-bar {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
|
|
gap: 1.5rem;
|
|
margin-bottom: 2rem;
|
|
}
|
|
|
|
.active-votes-page .stat {
|
|
background: rgba(255, 255, 255, 0.1);
|
|
backdrop-filter: blur(10px);
|
|
border-radius: 12px;
|
|
padding: 1.5rem;
|
|
border: 1px solid rgba(255, 255, 255, 0.2);
|
|
color: white;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 0.5rem;
|
|
}
|
|
|
|
.active-votes-page .stat-label {
|
|
font-size: 0.9rem;
|
|
opacity: 0.8;
|
|
}
|
|
|
|
.active-votes-page .stat-value {
|
|
font-size: 2rem;
|
|
font-weight: bold;
|
|
}
|
|
|
|
.active-votes-page .votes-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
|
|
gap: 1.5rem;
|
|
}
|
|
|
|
.active-votes-page .vote-card {
|
|
background: white;
|
|
border-radius: 12px;
|
|
overflow: hidden;
|
|
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
|
|
transition: all 0.3s ease;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.active-votes-page .vote-card:hover {
|
|
transform: translateY(-4px);
|
|
box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
|
|
}
|
|
|
|
.active-votes-page .vote-card-header {
|
|
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
|
|
color: white;
|
|
padding: 1.5rem;
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: flex-start;
|
|
gap: 1rem;
|
|
}
|
|
|
|
.active-votes-page .vote-card-header h3 {
|
|
margin: 0;
|
|
font-size: 1.2rem;
|
|
flex: 1;
|
|
}
|
|
|
|
.active-votes-page .vote-card-body {
|
|
padding: 1.5rem;
|
|
}
|
|
|
|
.active-votes-page .vote-card-body p {
|
|
margin: 0.5rem 0;
|
|
color: #333;
|
|
}
|
|
|
|
.active-votes-page .status-badge {
|
|
display: inline-block;
|
|
padding: 0.4rem 0.8rem;
|
|
border-radius: 20px;
|
|
font-size: 0.85rem;
|
|
font-weight: 600;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.active-votes-page .status-badge.active {
|
|
background: rgba(255, 255, 255, 0.2);
|
|
color: white;
|
|
border: 1px solid rgba(255, 255, 255, 0.4);
|
|
}
|
|
|
|
.active-votes-page .empty-state {
|
|
text-align: center;
|
|
padding: 3rem 1rem;
|
|
color: white;
|
|
}
|
|
|
|
.active-votes-page .empty-icon {
|
|
font-size: 4rem;
|
|
margin-bottom: 1rem;
|
|
}
|
|
|
|
.active-votes-page .empty-state h3 {
|
|
font-size: 1.5rem;
|
|
margin: 1rem 0;
|
|
}
|
|
|
|
.active-votes-page .empty-state p {
|
|
opacity: 0.9;
|
|
}
|
|
|
|
.active-votes-page .button-group {
|
|
display: flex;
|
|
gap: 1rem;
|
|
margin-top: 1rem;
|
|
}
|
|
|
|
.active-votes-page .button-group .btn {
|
|
flex: 1;
|
|
}
|
|
|
|
.active-votes-page .btn-vote {
|
|
background-color: #10b981;
|
|
color: white;
|
|
border: none;
|
|
padding: 0.75rem 1.5rem;
|
|
border-radius: 8px;
|
|
cursor: pointer;
|
|
font-weight: 600;
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
.active-votes-page .btn-vote:hover {
|
|
background-color: #059669;
|
|
transform: translateY(-2px);
|
|
box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
|
|
}
|
|
|