More changes than expected. Mobile version improvements & PWA
Build & Push Docker Images / test-backend (push) Successful in 44s
Build & Push Docker Images / test-frontend (push) Successful in 52s
Build & Push Docker Images / build-backend (push) Failing after 34s
Build & Push Docker Images / build-frontend (push) Failing after 30s
Build & Push Docker Images / test-backend (push) Successful in 44s
Build & Push Docker Images / test-frontend (push) Successful in 52s
Build & Push Docker Images / build-backend (push) Failing after 34s
Build & Push Docker Images / build-frontend (push) Failing after 30s
This commit is contained in:
+191
-3
@@ -42,6 +42,26 @@
|
||||
box-shadow: inset 0 0 0 1px var(--border);
|
||||
}
|
||||
|
||||
.auth-btn {
|
||||
background: transparent;
|
||||
border: none;
|
||||
color: var(--primary);
|
||||
padding: 0.55rem 1rem;
|
||||
border-radius: 999px;
|
||||
cursor: pointer;
|
||||
font-size: 0.82rem;
|
||||
font-weight: 600;
|
||||
transition: background 0.2s ease;
|
||||
white-space: nowrap;
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 0.5rem;
|
||||
}
|
||||
|
||||
.auth-btn:hover {
|
||||
background: var(--surface-muted);
|
||||
}
|
||||
|
||||
.app-header {
|
||||
text-align: center;
|
||||
margin-bottom: 4rem;
|
||||
@@ -179,6 +199,53 @@
|
||||
transform: translateX(-3px);
|
||||
}
|
||||
|
||||
.pharmacy-controls {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.85rem;
|
||||
margin: 1.5rem 0 0.5rem;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
|
||||
.sort-distance-button {
|
||||
background: var(--surface);
|
||||
color: var(--text-main);
|
||||
border: 1px solid var(--border);
|
||||
padding: 0.65rem 1.2rem;
|
||||
border-radius: 999px;
|
||||
cursor: pointer;
|
||||
font-size: 0.9rem;
|
||||
font-weight: 600;
|
||||
transition: background 0.2s, border-color 0.2s, color 0.2s;
|
||||
}
|
||||
|
||||
.sort-distance-button:hover:not(:disabled) {
|
||||
border-color: var(--primary);
|
||||
color: var(--primary);
|
||||
}
|
||||
|
||||
.sort-distance-button.active {
|
||||
background: var(--primary);
|
||||
border-color: var(--primary);
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
.sort-distance-button:disabled {
|
||||
opacity: 0.6;
|
||||
cursor: progress;
|
||||
}
|
||||
|
||||
.location-error {
|
||||
color: #b91c1c;
|
||||
font-size: 0.85rem;
|
||||
}
|
||||
|
||||
.location-source {
|
||||
color: var(--primary);
|
||||
font-size: 0.85rem;
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
@keyframes spin {
|
||||
to { transform: rotate(360deg); }
|
||||
}
|
||||
@@ -195,7 +262,7 @@
|
||||
|
||||
@media (max-width: 768px) {
|
||||
.app {
|
||||
padding: 2rem 1rem;
|
||||
padding: 1.5rem 1rem calc(5rem + env(safe-area-inset-bottom));
|
||||
}
|
||||
|
||||
.app-header h1 {
|
||||
@@ -214,8 +281,129 @@
|
||||
font-size: 1.65rem;
|
||||
}
|
||||
|
||||
.view-switcher {
|
||||
position: fixed;
|
||||
left: 0.75rem;
|
||||
right: 0.75rem;
|
||||
bottom: calc(0.75rem + env(safe-area-inset-bottom));
|
||||
z-index: 100;
|
||||
width: auto;
|
||||
max-width: 32rem;
|
||||
margin: 0 auto;
|
||||
border-radius: 999px;
|
||||
border: 1px solid var(--border);
|
||||
background: var(--surface);
|
||||
box-shadow:
|
||||
0 10px 30px rgba(28, 25, 23, 0.12),
|
||||
0 2px 6px rgba(28, 25, 23, 0.06);
|
||||
padding: 0.5rem;
|
||||
overflow: visible;
|
||||
justify-content: space-around;
|
||||
align-items: stretch;
|
||||
gap: 0.25rem;
|
||||
}
|
||||
|
||||
.view-switcher button {
|
||||
padding: 0.65rem 1.15rem;
|
||||
font-size: 0.85rem;
|
||||
flex: 1;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
justify-content: flex-start;
|
||||
gap: 0.2rem;
|
||||
padding: 0.4rem 0.3rem 0.45rem;
|
||||
border-radius: 14px;
|
||||
font-size: 0.72rem;
|
||||
font-weight: 500;
|
||||
color: var(--text-muted);
|
||||
background: transparent;
|
||||
position: relative;
|
||||
overflow: visible;
|
||||
}
|
||||
|
||||
.view-switcher button:hover {
|
||||
background: transparent;
|
||||
}
|
||||
|
||||
.view-switcher button .nav-icon {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
width: 1.65rem;
|
||||
height: 1.65rem;
|
||||
border-radius: 999px;
|
||||
font-size: 1.05rem;
|
||||
line-height: 1;
|
||||
transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1),
|
||||
background 0.2s ease,
|
||||
box-shadow 0.2s ease,
|
||||
width 0.2s ease,
|
||||
height 0.2s ease;
|
||||
}
|
||||
|
||||
.view-switcher button .nav-label {
|
||||
font-size: 0.7rem;
|
||||
line-height: 1;
|
||||
max-width: none;
|
||||
color: inherit;
|
||||
transition: color 0.2s ease, font-weight 0.2s ease;
|
||||
}
|
||||
|
||||
.view-switcher button.active {
|
||||
background: transparent;
|
||||
box-shadow: none;
|
||||
color: var(--text-main);
|
||||
}
|
||||
|
||||
.view-switcher button.active .nav-icon {
|
||||
width: 2.7rem;
|
||||
height: 2.7rem;
|
||||
background: var(--surface);
|
||||
color: var(--primary);
|
||||
font-size: 1.3rem;
|
||||
border: 1px solid var(--border);
|
||||
box-shadow:
|
||||
0 0 0 5px var(--surface),
|
||||
0 10px 22px rgba(15, 118, 110, 0.22),
|
||||
0 4px 8px rgba(28, 25, 23, 0.08);
|
||||
transform: translateY(-1.1rem);
|
||||
margin-bottom: -0.6rem;
|
||||
}
|
||||
|
||||
.view-switcher button.active .nav-label {
|
||||
font-weight: 700;
|
||||
color: var(--text-main);
|
||||
}
|
||||
|
||||
.auth-btn {
|
||||
flex: 1;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
justify-content: flex-start;
|
||||
gap: 0.2rem;
|
||||
padding: 0.4rem 0.3rem 0.45rem;
|
||||
border-radius: 14px;
|
||||
color: var(--text-muted);
|
||||
font-size: 0.72rem;
|
||||
font-weight: 500;
|
||||
background: transparent;
|
||||
}
|
||||
|
||||
.auth-btn:hover {
|
||||
background: transparent;
|
||||
}
|
||||
|
||||
.auth-btn .nav-icon {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
width: 1.65rem;
|
||||
height: 1.65rem;
|
||||
font-size: 1.05rem;
|
||||
line-height: 1;
|
||||
}
|
||||
|
||||
.auth-btn .nav-label {
|
||||
font-size: 0.7rem;
|
||||
line-height: 1;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user