Files
FarmaFinder/frontend/src/components/PharmacyList.css
T
Antoni Nuñez Romeu db0935eb16
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
feat(fullstack): implement observability and redesign frontend UI
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.
2026-07-01 11:48:27 +02:00

167 lines
2.9 KiB
CSS

.pharmacy-list {
margin-top: 1rem;
}
.pharmacy-list-title {
font-size: 1.25rem;
font-weight: 700;
margin-bottom: 1rem;
color: var(--on-surface);
display: flex;
align-items: center;
gap: 0.5rem;
}
.pharmacy-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
gap: 1rem;
}
.pharmacy-card {
background: var(--surface-container-lowest);
border-radius: var(--radius-md);
padding: 1.25rem;
border: 1px solid var(--outline-variant);
transition: transform 0.15s, box-shadow 0.15s;
box-shadow: var(--shadow-soft);
}
.pharmacy-card:hover {
transform: translateY(-2px);
box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
border-color: var(--primary);
}
.pharmacy-header {
display: flex;
align-items: flex-start;
justify-content: space-between;
gap: 0.75rem;
margin-bottom: 0.75rem;
}
.pharmacy-header h4 {
color: var(--on-surface);
font-weight: 700;
margin: 0;
font-size: 1.05rem;
flex: 1;
}
.pharmacy-header-actions {
display: flex;
align-items: center;
gap: 0.5rem;
flex-shrink: 0;
}
.pharmacy-distance {
flex-shrink: 0;
background: rgba(0, 69, 13, 0.08);
color: var(--primary);
font-size: 0.78rem;
font-weight: 700;
padding: 0.3rem 0.7rem;
border-radius: var(--radius-full);
}
.pharmacy-card:hover .pharmacy-header h4 {
color: var(--primary);
}
.pharmacy-details {
display: flex;
flex-direction: column;
gap: 0.5rem;
}
.pharmacy-address,
.pharmacy-phone {
color: var(--on-surface-variant);
font-size: 0.9rem;
margin: 0;
line-height: 1.45;
}
.pharmacy-hours {
display: inline-flex;
align-items: center;
gap: 0.5rem;
font-size: 0.85rem;
font-weight: 600;
margin: 0;
padding: 0.25rem 0;
}
.pharmacy-hours-dot {
display: inline-block;
width: 0.5rem;
height: 0.5rem;
border-radius: var(--radius-full);
background: currentColor;
}
.pharmacy-hours--open {
color: var(--primary);
}
.pharmacy-hours--closed {
color: var(--on-surface-variant);
}
.pharmacy-pricing {
display: flex;
justify-content: space-between;
align-items: center;
margin-top: 0.75rem;
padding-top: 0.75rem;
border-top: 1px solid var(--outline-variant);
}
.price {
font-size: 1.15rem;
font-weight: 700;
color: var(--primary);
}
.stock {
font-size: 0.72rem;
padding: 0.35rem 0.8rem;
border-radius: var(--radius-full);
font-weight: 700;
text-transform: uppercase;
}
.stock.in-stock {
background: rgba(0, 69, 13, 0.1);
color: var(--primary);
}
.stock.low-stock {
background: rgba(180, 83, 9, 0.12);
color: #b45309;
}
.stock.out-of-stock {
background: rgba(186, 26, 26, 0.1);
color: var(--error);
}
.loading-pharmacies,
.no-pharmacies {
text-align: center;
padding: 2.5rem 1.5rem;
background: var(--surface-container-low);
border-radius: var(--radius-md);
color: var(--on-surface-variant);
border: 1px solid var(--outline-variant);
margin-top: 1rem;
}
@media (max-width: 768px) {
.pharmacy-grid {
grid-template-columns: 1fr;
}
}