Updating auth
This commit is contained in:
221
ui/src/App.css
221
ui/src/App.css
@@ -1,4 +1,4 @@
|
||||
/* ---- Full-viewport shell ---- */
|
||||
/* ── Full-viewport shell ── */
|
||||
.app {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
@@ -6,132 +6,21 @@
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
/* ---- Top header ---- */
|
||||
.app-header {
|
||||
flex-shrink: 0;
|
||||
height: 48px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 1rem;
|
||||
padding: 0 1rem;
|
||||
background: #1f2937;
|
||||
border-bottom: 1px solid #374151;
|
||||
z-index: 10;
|
||||
}
|
||||
|
||||
.app-brand {
|
||||
font-size: 1.05rem;
|
||||
font-weight: 700;
|
||||
color: #f9fafb;
|
||||
letter-spacing: 0.08em;
|
||||
white-space: nowrap;
|
||||
margin-right: 0.5rem;
|
||||
}
|
||||
|
||||
.app-brand span {
|
||||
color: #818cf8;
|
||||
}
|
||||
|
||||
.app-map-controls {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.5rem;
|
||||
/* ── App body (everything below the header) ── */
|
||||
.app-body {
|
||||
flex: 1;
|
||||
}
|
||||
|
||||
.map-select {
|
||||
background: #111827;
|
||||
border: 1px solid #4b5563;
|
||||
border-radius: 6px;
|
||||
color: #e5e7eb;
|
||||
padding: 0.3rem 0.6rem;
|
||||
font-size: 0.85rem;
|
||||
min-width: 160px;
|
||||
max-width: 280px;
|
||||
outline: none;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.map-select:focus {
|
||||
border-color: #6366f1;
|
||||
}
|
||||
|
||||
.map-select option {
|
||||
background: #1f2937;
|
||||
}
|
||||
|
||||
.header-btn {
|
||||
background: #374151;
|
||||
border: 1px solid #4b5563;
|
||||
border-radius: 6px;
|
||||
color: #e5e7eb;
|
||||
cursor: pointer;
|
||||
font-size: 0.82rem;
|
||||
padding: 0.3rem 0.65rem;
|
||||
line-height: 1.4;
|
||||
white-space: nowrap;
|
||||
transition: background 0.12s;
|
||||
}
|
||||
|
||||
.header-btn:hover {
|
||||
background: #4b5563;
|
||||
}
|
||||
|
||||
.header-btn.danger:hover {
|
||||
background: #7f1d1d;
|
||||
border-color: #ef4444;
|
||||
color: #fca5a5;
|
||||
}
|
||||
|
||||
.new-map-form {
|
||||
display: flex;
|
||||
gap: 0.3rem;
|
||||
align-items: center;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.new-map-form input {
|
||||
background: #111827;
|
||||
border: 1px solid #6366f1;
|
||||
border-radius: 6px;
|
||||
color: #e5e7eb;
|
||||
padding: 0.3rem 0.6rem;
|
||||
font-size: 0.85rem;
|
||||
width: 160px;
|
||||
outline: none;
|
||||
}
|
||||
|
||||
.new-map-form button {
|
||||
background: #6366f1;
|
||||
border: none;
|
||||
border-radius: 6px;
|
||||
color: white;
|
||||
cursor: pointer;
|
||||
font-size: 0.82rem;
|
||||
padding: 0.3rem 0.65rem;
|
||||
transition: background 0.12s;
|
||||
}
|
||||
|
||||
.new-map-form button:hover {
|
||||
background: #4f46e5;
|
||||
}
|
||||
|
||||
.new-map-form .cancel-btn {
|
||||
background: #374151;
|
||||
border: 1px solid #4b5563;
|
||||
}
|
||||
|
||||
.new-map-form .cancel-btn:hover {
|
||||
background: #4b5563;
|
||||
}
|
||||
|
||||
/* ---- Grid area (fills remainder) ---- */
|
||||
/* ── Grid area (fills the app body) ── */
|
||||
.app-grid-area {
|
||||
flex: 1;
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
/* ── Floating panel stack – bottom-left corner ── */
|
||||
/* ── Floating control panels – bottom-left corner ── */
|
||||
.floating-panels-container {
|
||||
position: absolute;
|
||||
bottom: 14px;
|
||||
@@ -142,7 +31,7 @@
|
||||
z-index: 20;
|
||||
}
|
||||
|
||||
/* ---- No-map placeholder ---- */
|
||||
/* ── Empty state placeholder ── */
|
||||
.empty-state {
|
||||
height: 100%;
|
||||
display: flex;
|
||||
@@ -151,9 +40,11 @@
|
||||
justify-content: center;
|
||||
gap: 0.75rem;
|
||||
color: #4b5563;
|
||||
user-select: none;
|
||||
}
|
||||
|
||||
.empty-state p {
|
||||
margin: 0;
|
||||
font-size: 1.1rem;
|
||||
}
|
||||
|
||||
@@ -162,34 +53,78 @@
|
||||
color: #374151;
|
||||
}
|
||||
|
||||
/* ---- Auth area (right side of header) ---- */
|
||||
.app-auth {
|
||||
/* ── Access denied state ── */
|
||||
.access-denied-state {
|
||||
height: 100%;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
gap: 0.5rem;
|
||||
margin-left: auto;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.app-username {
|
||||
font-size: 0.82rem;
|
||||
color: #9ca3af;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
/* ---- Public checkbox in new-map form ---- */
|
||||
.new-map-public {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.3rem;
|
||||
font-size: 0.82rem;
|
||||
color: #9ca3af;
|
||||
cursor: pointer;
|
||||
white-space: nowrap;
|
||||
justify-content: center;
|
||||
gap: 1rem;
|
||||
color: #4b5563;
|
||||
user-select: none;
|
||||
padding: 2rem;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.new-map-public input[type='checkbox'] {
|
||||
accent-color: #6366f1;
|
||||
cursor: pointer;
|
||||
.access-denied-title {
|
||||
margin: 0;
|
||||
font-size: 1.15rem;
|
||||
font-weight: 600;
|
||||
color: #9ca3af;
|
||||
}
|
||||
|
||||
.access-denied-hint {
|
||||
margin: 0;
|
||||
font-size: 0.875rem;
|
||||
color: #6b7280;
|
||||
}
|
||||
|
||||
.access-request-sent {
|
||||
color: #34d399;
|
||||
}
|
||||
|
||||
.access-request-actions {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
gap: 0.75rem;
|
||||
}
|
||||
|
||||
.access-request-btns {
|
||||
display: flex;
|
||||
gap: 0.6rem;
|
||||
flex-wrap: wrap;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.btn-request-access {
|
||||
background: rgba(99, 102, 241, 0.15);
|
||||
border: 1px solid rgba(99, 102, 241, 0.35);
|
||||
border-radius: 6px;
|
||||
color: #818cf8;
|
||||
cursor: pointer;
|
||||
font-size: 0.85rem;
|
||||
padding: 0.45rem 1.1rem;
|
||||
transition:
|
||||
background 0.12s,
|
||||
border-color 0.12s;
|
||||
}
|
||||
.btn-request-access:hover {
|
||||
background: rgba(99, 102, 241, 0.25);
|
||||
border-color: rgba(99, 102, 241, 0.6);
|
||||
}
|
||||
|
||||
.link-btn {
|
||||
background: none;
|
||||
border: none;
|
||||
color: #818cf8;
|
||||
cursor: pointer;
|
||||
font-size: inherit;
|
||||
padding: 0;
|
||||
text-decoration: underline;
|
||||
transition: color 0.12s;
|
||||
}
|
||||
.link-btn:hover {
|
||||
color: #a5b4fc;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user