Complete Next.js migration with SSR and Docker deployment
Some checks failed
Build and Push Docker Images / Build Backend (FastAPI) (push) Successful in 1m26s
Build and Push Docker Images / Build Frontend (Next.js) (push) Failing after 1m48s
Build and Push Docker Images / Trigger Portainer Update (push) Has been skipped

- Migrate from vanilla JavaScript SPA to Next.js 16 with App Router
- Add server-side rendering for all pages (Home, Compare, Rankings)
- Create individual school pages with dynamic routing (/school/[urn])
- Implement Chart.js and Leaflet map integrations
- Add comprehensive SEO with sitemap, robots.txt, and JSON-LD
- Set up Docker multi-service architecture (PostgreSQL, FastAPI, Next.js)
- Update CI/CD pipeline to build both backend and frontend images
- Fix Dockerfile to include devDependencies for TypeScript compilation
- Add Jest testing configuration
- Implement performance optimizations (code splitting, caching)

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
Tudor
2026-02-02 20:34:35 +00:00
parent f4919db3b9
commit ff7f5487e6
72 changed files with 18636 additions and 20 deletions

View File

@@ -0,0 +1,312 @@
.container {
width: 100%;
}
/* Header */
.header {
margin-bottom: 2rem;
}
.headerContent {
display: flex;
justify-content: space-between;
align-items: flex-start;
gap: 2rem;
flex-wrap: wrap;
}
.header h1 {
font-size: 2rem;
font-weight: 700;
color: var(--text-primary);
margin-bottom: 0.5rem;
}
.subtitle {
font-size: 1rem;
color: var(--text-secondary);
margin: 0;
}
.addButton {
padding: 0.75rem 1.5rem;
font-size: 0.9375rem;
font-weight: 500;
background: var(--primary);
color: white;
border: none;
border-radius: var(--radius-md);
cursor: pointer;
transition: all var(--transition);
white-space: nowrap;
}
.addButton:hover {
background: var(--primary-dark);
}
/* Metric Selector */
.metricSelector {
background: white;
border: 1px solid var(--border-light);
border-radius: var(--radius-lg);
padding: 1.5rem;
margin-bottom: 2rem;
display: flex;
align-items: center;
gap: 1rem;
box-shadow: var(--shadow-sm);
}
.metricLabel {
font-size: 0.9375rem;
font-weight: 500;
color: var(--text-primary);
white-space: nowrap;
}
.metricSelect {
flex: 1;
max-width: 400px;
padding: 0.625rem 1rem;
font-size: 0.9375rem;
border: 1px solid var(--border-medium);
border-radius: var(--radius-md);
background: white;
color: var(--text-primary);
cursor: pointer;
transition: all var(--transition);
}
.metricSelect:hover {
border-color: var(--primary);
}
.metricSelect:focus {
outline: none;
border-color: var(--primary);
box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}
/* Schools Section */
.schoolsSection {
margin-bottom: 2rem;
}
.schoolsGrid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
gap: 1.5rem;
}
.schoolCard {
background: white;
border: 1px solid var(--border-light);
border-radius: var(--radius-lg);
padding: 1.5rem;
position: relative;
box-shadow: var(--shadow-sm);
transition: all var(--transition);
}
.schoolCard:hover {
box-shadow: var(--shadow-md);
transform: translateY(-2px);
}
.removeButton {
position: absolute;
top: 0.75rem;
right: 0.75rem;
width: 28px;
height: 28px;
display: flex;
align-items: center;
justify-content: center;
background: var(--danger);
color: white;
border: none;
border-radius: 50%;
font-size: 1.25rem;
line-height: 1;
cursor: pointer;
transition: all var(--transition);
}
.removeButton:hover {
background: #dc2626;
transform: scale(1.1);
}
.schoolName {
font-size: 1.125rem;
font-weight: 600;
margin-bottom: 0.75rem;
padding-right: 2rem;
line-height: 1.3;
}
.schoolName a {
color: var(--text-primary);
text-decoration: none;
transition: color var(--transition);
}
.schoolName a:hover {
color: var(--primary);
}
.schoolMeta {
display: flex;
flex-direction: column;
gap: 0.5rem;
margin-bottom: 1rem;
}
.metaItem {
font-size: 0.875rem;
color: var(--text-secondary);
display: flex;
align-items: center;
gap: 0.25rem;
}
.latestValue {
margin-top: 1rem;
padding-top: 1rem;
border-top: 1px solid var(--border-light);
text-align: center;
}
.latestLabel {
font-size: 0.875rem;
color: var(--text-secondary);
margin-bottom: 0.5rem;
}
.latestNumber {
font-size: 1.75rem;
font-weight: 700;
color: var(--text-primary);
}
/* Chart Section */
.chartSection {
background: white;
border: 1px solid var(--border-light);
border-radius: var(--radius-lg);
padding: 2rem;
margin-bottom: 2rem;
box-shadow: var(--shadow-sm);
}
.sectionTitle {
font-size: 1.5rem;
font-weight: 600;
color: var(--text-primary);
margin-bottom: 1.5rem;
padding-bottom: 0.75rem;
border-bottom: 2px solid var(--border-light);
}
.chartContainer {
width: 100%;
height: 400px;
position: relative;
}
/* Table Section */
.tableSection {
background: white;
border: 1px solid var(--border-light);
border-radius: var(--radius-lg);
padding: 2rem;
margin-bottom: 2rem;
box-shadow: var(--shadow-sm);
}
.tableWrapper {
overflow-x: auto;
margin-top: 1rem;
}
.comparisonTable {
width: 100%;
border-collapse: collapse;
font-size: 0.9375rem;
}
.comparisonTable thead {
background: var(--bg-secondary);
}
.comparisonTable th {
padding: 1rem;
text-align: left;
font-weight: 600;
color: var(--text-primary);
border-bottom: 2px solid var(--border-medium);
white-space: nowrap;
}
.comparisonTable td {
padding: 1rem;
border-bottom: 1px solid var(--border-light);
color: var(--text-secondary);
text-align: left;
}
.comparisonTable tbody tr:last-child td {
border-bottom: none;
}
.comparisonTable tbody tr:hover {
background: var(--bg-secondary);
}
.yearCell {
font-weight: 600;
color: var(--text-primary);
}
/* Responsive Design */
@media (max-width: 768px) {
.headerContent {
flex-direction: column;
align-items: stretch;
}
.addButton {
width: 100%;
}
.header h1 {
font-size: 1.5rem;
}
.metricSelector {
flex-direction: column;
align-items: stretch;
}
.metricSelect {
max-width: 100%;
}
.schoolsGrid {
grid-template-columns: 1fr;
}
.chartContainer {
height: 300px;
}
.comparisonTable {
font-size: 0.875rem;
}
.comparisonTable th,
.comparisonTable td {
padding: 0.75rem 0.5rem;
}
}