feat(fullstack): implement observability and redesign frontend UI
Build & Push Docker Images / test-backend (push) Failing after 36s
Build & Push Docker Images / test-frontend (push) Successful in 29s
Build & Push Docker Images / build-backend (push) Has been skipped
Build & Push Docker Images / build-frontend (push) Has been skipped
Build & Push Docker Images / deploy (push) Successful in 7s

This commit introduces comprehensive observability for both backend and frontend, alongside a major UI/UX overhaul to align with modern design standards (Material 3 inspired) and improve localization.

Backend changes:
- Integrated OpenTelemetry SDK for distributed tracing.
- Added Pino for structured JSON logging with OTel instrumentation for trace/span correlation.
- Configured OTLP exporters to route traces and logs to Grafana Alloy.
- Updated docker-compose to include necessary environment variables for observability.

Frontend changes:
- Integrated Grafana Faro for Real User Monitoring (RUM), capturing Web Vitals, JS errors, and user interactions.
- Redesigned the entire UI using a new color palette and Material 3 design principles.
- Refactored component architecture (App, Home, Search, Scanner, Profile, Alerts views) for better state management and navigation.
- Improved mobile UX with a redesigned Bottom Navigation bar and Top Bar.
- Localized the interface to Spanish (es).
- Updated assets, icons, and PWA configuration (manifest, icons).
- Refactored CSS to use a centralized design token system (CSS variables).

Observability enables better debugging and performance monitoring across the entire stack.
This commit is contained in:
Antoni Nuñez Romeu
2026-07-01 11:48:27 +02:00
parent 9316f6c54f
commit db0935eb16
46 changed files with 5633 additions and 1867 deletions
+155 -254
View File
@@ -1,291 +1,192 @@
/* ============================================================
HomeView.css — Premium home page styles
============================================================ */
.home-container {
.home-view {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
padding: 2rem 1.5rem;
gap: 2.5rem;
animation: fadeInUp 0.7s ease-out;
}
/* ── Header ─────────────────────────────────────────────── */
.home-header {
text-align: center;
max-width: 34rem;
}
.home-logo {
font-size: clamp(2.6rem, 7vw, 4rem);
font-weight: 900;
color: var(--text-main);
letter-spacing: -0.04em;
line-height: 1;
margin-bottom: 0.9rem;
}
.home-logo::after {
content: "";
display: block;
width: 3rem;
height: 4px;
margin: 0.85rem auto 0;
background: linear-gradient(90deg, var(--primary), var(--primary-hover));
border-radius: 2px;
}
.home-subtitle {
font-size: 1.1rem;
color: var(--text-muted);
font-weight: 400;
line-height: 1.55;
}
/* ── Card Grid ──────────────────────────────────────────── */
.home-grid {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 1.25rem;
width: 100%;
max-width: 54rem;
}
/* ── Base Card ──────────────────────────────────────────── */
.home-card {
position: relative;
display: flex;
flex-direction: column;
gap: 1.2rem;
padding: 2rem 1.75rem 1.6rem;
border-radius: 20px;
border: 1px solid var(--glass-border);
background: var(--glass-bg);
box-shadow: var(--glass-shadow);
cursor: pointer;
text-align: left;
justify-content: center;
height: 100%;
overflow: hidden;
transition:
transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1),
box-shadow 0.25s ease,
border-color 0.25s ease;
padding: 1rem var(--margin-main);
gap: 1.5rem;
animation: fadeInUp 0.6s ease-out;
}
.home-card::before {
content: "";
position: absolute;
inset: 0;
opacity: 0;
transition: opacity 0.3s ease;
border-radius: inherit;
pointer-events: none;
.home-hero {
display: flex;
flex-direction: column;
align-items: center;
text-align: center;
gap: 0.75rem;
}
.home-card:hover {
transform: translateY(-5px) scale(1.015);
box-shadow:
0 16px 40px rgba(28, 25, 23, 0.14),
0 4px 12px rgba(28, 25, 23, 0.08);
}
.home-card:hover::before {
opacity: 1;
}
.home-card:active {
transform: translateY(-2px) scale(1.005);
}
/* ── Scan Card Accent ───────────────────────────────────── */
.scan-card {
background: linear-gradient(
145deg,
rgba(255, 255, 255, 0.97) 0%,
rgba(240, 253, 250, 0.97) 100%
);
border-color: rgba(15, 118, 110, 0.22);
}
.scan-card::before {
background: radial-gradient(
ellipse at top left,
rgba(15, 118, 110, 0.08) 0%,
transparent 70%
);
}
.scan-card:hover {
border-color: rgba(15, 118, 110, 0.45);
box-shadow:
0 16px 40px rgba(15, 118, 110, 0.18),
0 4px 12px rgba(15, 118, 110, 0.12);
}
/* ── Search Card Accent ─────────────────────────────────── */
.search-card {
background: linear-gradient(
145deg,
rgba(255, 255, 255, 0.97) 0%,
rgba(245, 245, 244, 0.97) 100%
);
}
.search-card:hover {
border-color: rgba(71, 85, 105, 0.35);
box-shadow:
0 16px 40px rgba(28, 25, 23, 0.12),
0 4px 12px rgba(28, 25, 23, 0.06);
}
/* ── Badge ──────────────────────────────────────────────── */
.card-badge {
position: absolute;
top: 1.1rem;
right: 1.1rem;
background: linear-gradient(135deg, var(--primary), var(--primary-hover));
color: #fff;
font-size: 0.68rem;
font-weight: 700;
letter-spacing: 0.08em;
text-transform: uppercase;
padding: 0.28rem 0.65rem;
border-radius: 999px;
box-shadow: 0 2px 8px rgba(15, 118, 110, 0.35);
}
/* ── Icon Container ─────────────────────────────────────── */
.card-icon-container {
position: relative;
width: 4rem;
height: 4rem;
.home-logo-wrapper {
display: flex;
align-items: center;
justify-content: center;
}
.card-icon {
font-size: 2.4rem;
line-height: 1;
position: relative;
z-index: 1;
filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.12));
transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.home-card:hover .card-icon {
transform: scale(1.18) rotate(-4deg);
}
/* Pulse rings on the Scan card */
.pulse-ring,
.pulse-ring-outer {
position: absolute;
inset: 0;
border-radius: 50%;
border: 2px solid rgba(15, 118, 110, 0.4);
animation: pulse-ring 2.2s ease-out infinite;
pointer-events: none;
}
.pulse-ring-outer {
animation-delay: 0.7s;
border-color: rgba(15, 118, 110, 0.2);
}
@keyframes pulse-ring {
0% { transform: scale(0.85); opacity: 0.7; }
70% { transform: scale(1.6); opacity: 0; }
100% { transform: scale(1.6); opacity: 0; }
}
/* ── Card Content ───────────────────────────────────────── */
.card-content h3 {
font-size: 1.4rem;
font-weight: 800;
color: var(--text-main);
letter-spacing: -0.02em;
margin-bottom: 0.5rem;
}
.card-content p {
font-size: 0.95rem;
color: var(--text-muted);
line-height: 1.55;
.home-logo {
width: min(16rem, 70vw);
height: auto;
}
/* ── Card Action Footer ─────────────────────────────────── */
.card-action {
@media (max-height: 700px) {
.home-logo {
width: min(12rem, 60vw);
}
}
@media (max-height: 600px) {
.home-logo {
width: min(10rem, 50vw);
}
}
.home-desc {
font-size: 1.125rem;
color: var(--on-surface-variant);
font-weight: 400;
max-width: 20rem;
line-height: 1.5;
}
.home-cards {
display: flex;
flex-direction: column;
gap: var(--gutter);
width: 100%;
max-width: 28rem;
}
.home-card {
display: flex;
align-items: center;
gap: 1.25rem;
width: 100%;
min-height: 5rem;
padding: 1rem 1.5rem;
border: none;
border-radius: var(--radius-md);
cursor: pointer;
text-align: left;
transition: transform 0.15s, box-shadow 0.15s;
}
.home-card:active {
transform: scale(0.98);
}
.home-card--search {
background: var(--primary);
color: var(--on-primary);
box-shadow: 0 4px 16px rgba(0, 69, 13, 0.3);
}
.home-card--scan {
background: var(--secondary);
color: var(--on-secondary);
box-shadow: 0 4px 16px rgba(43, 91, 181, 0.3);
}
.home-card-icon {
width: 3.5rem;
height: 3.5rem;
border-radius: var(--radius);
background: rgba(255, 255, 255, 0.2);
display: flex;
align-items: center;
justify-content: center;
flex-shrink: 0;
}
.home-card-text {
flex: 1;
display: flex;
align-items: center;
justify-content: space-between;
margin-top: auto;
padding-top: 0.8rem;
border-top: 1px solid var(--border);
font-size: 0.9rem;
font-weight: 600;
color: var(--primary);
gap: 0.5rem;
}
.scan-card .card-action {
color: var(--primary);
.home-card-label {
font-size: 1.25rem;
font-weight: 700;
line-height: 1.2;
}
.search-card .card-action {
color: var(--text-muted);
.home-card-arrow {
opacity: 0.7;
flex-shrink: 0;
display: flex;
}
.search-card:hover .card-action {
color: var(--text-main);
}
.action-arrow {
transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
font-size: 1.1rem;
}
.home-card:hover .action-arrow {
transform: translateX(5px);
}
/* ── Footer ─────────────────────────────────────────────── */
.home-footer {
max-width: 40rem;
text-align: center;
}
.home-footer p {
font-size: 0.8rem;
color: var(--text-muted);
line-height: 1.55;
opacity: 0.8;
}
/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 640px) {
.home-container {
padding: 1.5rem 1rem;
gap: 1.75rem;
justify-content: flex-start;
padding-top: 0.5rem;
@media (max-width: 400px) {
.home-card {
min-height: 4.25rem;
padding: 0.75rem 1.25rem;
}
.home-grid {
grid-template-columns: 1fr;
.home-card-label {
font-size: 1.1rem;
}
}
@media (max-height: 700px) {
.home-view {
gap: 1rem;
padding: 0.5rem var(--margin-main);
}
.home-card {
padding: 1.5rem 1.4rem 1.3rem;
gap: 0.9rem;
min-height: 4rem;
padding: 0.625rem 1rem;
}
.card-content h3 {
font-size: 1.25rem;
.home-card-icon {
width: 2.75rem;
height: 2.75rem;
}
.card-content p {
font-size: 0.88rem;
.home-card-icon svg {
width: 24px;
height: 24px;
}
.home-card-label {
font-size: 1.05rem;
}
.home-desc {
font-size: 0.95rem;
}
}
@media (max-height: 600px) {
.home-view {
gap: 0.5rem;
padding: 0.25rem var(--margin-main);
}
.home-card {
min-height: 3.5rem;
padding: 0.5rem 0.875rem;
gap: 0.75rem;
}
.home-card-icon {
width: 2.25rem;
height: 2.25rem;
}
.home-card-icon svg {
width: 20px;
height: 20px;
}
.home-card-label {
font-size: 0.95rem;
}
.home-desc {
font-size: 0.85rem;
}
}