API, Backend & Frontend

This commit is contained in:
Ichitux
2026-04-01 01:18:21 +02:00
parent 331c04fbef
commit 0fe8ec9bc0
44 changed files with 10060 additions and 0 deletions
+221
View File
@@ -0,0 +1,221 @@
.app {
min-height: 100vh;
padding: 3rem 1.5rem;
max-width: 1000px;
margin: 0 auto;
}
.view-switcher {
display: flex;
justify-content: center;
background: var(--surface);
padding: 5px;
border-radius: 999px;
border: 1px solid var(--border);
box-shadow: var(--glass-shadow);
width: fit-content;
margin: 0 auto 3rem auto;
}
.view-switcher button {
background: transparent;
border: none;
color: var(--text-muted);
padding: 0.8rem 2rem;
border-radius: 999px;
cursor: pointer;
font-size: 0.95rem;
font-weight: 600;
transition: color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
display: flex;
align-items: center;
gap: 0.5rem;
}
.view-switcher button:hover {
color: var(--text-main);
}
.view-switcher button.active {
background: var(--surface-muted);
color: var(--primary);
box-shadow: inset 0 0 0 1px var(--border);
}
.app-header {
text-align: center;
margin-bottom: 4rem;
animation: fadeInDown 0.8s ease-out;
}
.app-header h1 {
font-size: 3.5rem;
font-weight: 800;
margin-bottom: 0.75rem;
color: var(--text-main);
letter-spacing: -0.03em;
line-height: 1.1;
}
.app-header h1::after {
content: "";
display: block;
width: 3rem;
height: 4px;
margin: 1rem auto 0;
background: var(--primary);
border-radius: 2px;
}
.app-header p {
font-size: 1.2rem;
color: var(--text-muted);
font-weight: 400;
max-width: 28rem;
margin-left: auto;
margin-right: auto;
line-height: 1.5;
}
.app-main {
width: 100%;
}
.glass-card {
background: var(--glass-bg);
border: 1px solid var(--glass-border);
border-radius: var(--radius);
box-shadow: var(--glass-shadow);
overflow: hidden;
transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.loading {
text-align: center;
color: var(--text-muted);
font-size: 1.05rem;
font-weight: 500;
margin: 3rem 0;
display: flex;
flex-direction: column;
gap: 1rem;
align-items: center;
}
.loading::after {
content: "";
width: 40px;
height: 40px;
border: 3px solid var(--border);
border-top-color: var(--primary);
border-radius: 50%;
animation: spin 0.75s linear infinite;
}
.selected-medicine-section {
margin-top: 2rem;
animation: fadeInUp 0.6s ease-out;
}
.medicine-info {
background: var(--surface);
border-radius: var(--radius);
padding: 2.5rem;
margin-bottom: 2rem;
box-shadow: var(--glass-shadow);
border: 1px solid var(--border);
}
.medicine-info h2 {
color: var(--text-main);
margin-bottom: 1.2rem;
font-size: 2.25rem;
font-weight: 700;
letter-spacing: -0.02em;
}
.medicine-details {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
gap: 1.5rem;
margin-bottom: 2rem;
padding: 1.5rem;
background: var(--surface-muted);
border-radius: var(--radius-sm);
border: 1px solid var(--border);
}
.medicine-details span {
font-size: 1rem;
color: var(--text-muted);
display: flex;
flex-direction: column;
gap: 0.25rem;
}
.medicine-details strong {
color: var(--text-main);
font-size: 0.8rem;
text-transform: uppercase;
letter-spacing: 0.06em;
font-weight: 600;
}
.back-button {
background: var(--surface-muted);
color: var(--text-main);
border: 1px solid var(--border);
padding: 0.8rem 1.8rem;
border-radius: var(--radius-sm);
cursor: pointer;
font-size: 0.95rem;
font-weight: 600;
transition: background 0.2s, border-color 0.2s, transform 0.2s;
}
.back-button:hover {
background: var(--surface-card);
border-color: var(--border-strong);
transform: translateX(-3px);
}
@keyframes spin {
to { transform: rotate(360deg); }
}
@keyframes fadeInDown {
from { opacity: 0; transform: translateY(-16px); }
to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInUp {
from { opacity: 0; transform: translateY(16px); }
to { opacity: 1; transform: translateY(0); }
}
@media (max-width: 768px) {
.app {
padding: 2rem 1rem;
}
.app-header h1 {
font-size: 2.35rem;
}
.app-header p {
font-size: 1rem;
}
.medicine-info {
padding: 1.5rem;
}
.medicine-info h2 {
font-size: 1.65rem;
}
.view-switcher button {
padding: 0.65rem 1.15rem;
font-size: 0.85rem;
}
}