Files
Pole-Mapper/src/App.css
T
romanesk b5cb253c4c 테스트 서버에 올리기 위한 준비
ID 중복 방지 - UUID v4 사용
2026-08-20 17:09:43 +09:00

494 lines
7.8 KiB
CSS

.app {
width: 100vw;
height: 100vh;
position: relative;
}
.map-container {
width: 100%;
height: 100%;
background-color: #eee;
}
.overlay {
position: absolute;
inset: 0;
display: flex;
align-items: center;
justify-content: center;
background-color: rgba(0, 0, 0, 0.4);
z-index: 20;
color: white;
font-size: 18px;
font-weight: bold;
}
.error-banner {
position: absolute;
top: 20px;
left: 50%;
transform: translateX(-50%);
background-color: #ef4444;
color: white;
padding: 12px 24px;
border-radius: 8px;
z-index: 30;
font-weight: bold;
}
.capture-bar {
position: absolute;
bottom: 80px;
left: 50%;
transform: translateX(-50%);
z-index: 10;
display: flex;
gap: 12px;
align-items: center;
}
.camera-input {
display: none;
}
.capture-button {
padding: 15px 30px;
background-color: #10b981;
color: white;
border-radius: 30px;
font-weight: bold;
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
cursor: pointer;
display: inline-block;
}
.locate-btn {
width: 48px;
height: 48px;
border-radius: 50%;
border: none;
background-color: white;
font-size: 20px;
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
flex-shrink: 0;
}
.upload-progress {
position: absolute;
bottom: 80px;
left: 50%;
transform: translateX(-50%);
background: rgba(0, 0, 0, 0.75);
color: white;
padding: 10px 20px;
border-radius: 20px;
z-index: 15;
font-size: 14px;
font-weight: 500;
white-space: nowrap;
}
.list-toggle {
position: absolute;
top: 10px;
right: 10px;
background-color: white;
padding: 8px 16px;
border-radius: 8px;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
z-index: 10;
font-size: 14px;
font-weight: bold;
border: none;
cursor: pointer;
}
.gps-info {
position: absolute;
top: 50px;
right: 10px;
color: white;
padding: 8px 12px;
border-radius: 8px;
z-index: 10;
font-size: 12px;
max-width: 200px;
line-height: 1.4;
}
.gps-info--fallback {
background-color: #f59e0b;
}
.gps-info--normal {
background-color: #10b981;
}
.gps-info__title {
font-weight: bold;
}
.backdrop {
position: absolute;
inset: 0;
background-color: rgba(0, 0, 0, 0.3);
z-index: 40;
}
.pole-list {
position: absolute;
top: 50px;
right: 10px;
width: min(320px, calc(100vw - 20px));
background-color: white;
border-radius: 12px;
z-index: 50;
transition: max-height 0.3s ease, opacity 0.2s ease;
overflow: hidden;
display: flex;
flex-direction: column;
}
.pole-list--open {
max-height: 75vh;
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
opacity: 1;
pointer-events: auto;
}
.pole-list--closed {
max-height: 0;
box-shadow: none;
opacity: 0;
pointer-events: none;
}
.pole-list__header {
padding: 12px 16px;
border-bottom: 1px solid #e5e7eb;
display: flex;
justify-content: space-between;
align-items: center;
flex-shrink: 0;
}
.pole-list__title {
font-weight: bold;
font-size: 14px;
}
.pole-list__close {
background: none;
border: none;
font-size: 18px;
cursor: pointer;
padding: 4px 8px;
color: #6b7280;
}
.pole-list__header-actions {
display: flex;
align-items: center;
gap: 6px;
}
.pole-list__upload {
padding: 4px 10px;
border-radius: 6px;
border: 1px solid #d1d5db;
background: white;
font-size: 12px;
font-weight: 600;
cursor: pointer;
color: #374151;
white-space: nowrap;
}
.pole-list__upload:hover {
background-color: #f3f4f6;
}
.pole-list__scroll {
overflow-y: auto;
flex: 1;
}
.pole-list__filters {
padding: 8px 12px;
border-bottom: 1px solid #e5e7eb;
display: flex;
gap: 6px;
flex-shrink: 0;
}
.pole-filter-btn {
padding: 4px 12px;
border-radius: 14px;
border: 1px solid #d1d5db;
background: white;
font-size: 12px;
font-weight: 600;
cursor: pointer;
color: #374151;
transition: background-color 0.15s, color 0.15s;
}
.pole-filter-btn--active {
border-color: transparent;
}
.pole-list__area-filter {
padding: 6px 12px;
border-bottom: 1px solid #e5e7eb;
flex-shrink: 0;
display: flex;
gap: 6px;
}
.pole-area-select {
flex: 1;
padding: 6px 10px;
border: 1px solid #d1d5db;
border-radius: 8px;
font-size: 13px;
color: #374151;
background: white;
cursor: pointer;
outline: none;
min-width: 0;
}
.pole-area-select:focus {
border-color: #6366f1;
}
.pole-item__level {
display: inline-block;
padding: 1px 6px;
border-radius: 4px;
color: white;
font-size: 10px;
font-weight: 700;
margin-right: 6px;
vertical-align: middle;
}
.pole-item {
display: flex;
align-items: center;
padding: 10px 12px;
border-bottom: 1px solid #f3f4f6;
gap: 10px;
cursor: pointer;
}
.pole-item__thumb {
width: 48px;
height: 48px;
border-radius: 6px;
object-fit: cover;
flex-shrink: 0;
}
.pole-item__info {
flex: 1;
min-width: 0;
}
.pole-item__coords {
font-size: 12px;
color: #374151;
font-weight: 500;
}
.pole-item__time {
font-size: 11px;
color: #9ca3af;
margin-top: 2px;
}
.pole-item__delete {
background: none;
border: none;
font-size: 16px;
cursor: pointer;
padding: 6px;
color: #ef4444;
flex-shrink: 0;
}
.map-popup {
position: absolute;
background: white;
border-radius: 10px;
box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
padding: 8px;
min-width: 180px;
max-width: 240px;
pointer-events: auto;
}
.map-popup:empty {
display: none;
}
.map-popup__close {
position: absolute;
top: 4px;
right: 4px;
width: 22px;
height: 22px;
border-radius: 50%;
border: none;
background: rgba(0, 0, 0, 0.45);
color: white;
font-size: 12px;
line-height: 22px;
text-align: center;
cursor: pointer;
padding: 0;
z-index: 1;
}
.map-popup__close:hover {
background: rgba(0, 0, 0, 0.7);
}
.map-popup__img {
width: 100%;
border-radius: 6px;
display: block;
object-fit: cover;
max-height: 160px;
}
.map-popup__info {
margin-top: 6px;
font-size: 11px;
color: #6b7280;
line-height: 1.4;
}
.map-popup__addr {
margin-left: 4px;
}
.level-modal-backdrop {
position: absolute;
inset: 0;
background-color: rgba(0, 0, 0, 0.6);
z-index: 60;
display: flex;
align-items: center;
justify-content: center;
}
.level-modal {
background: white;
border-radius: 16px;
padding: 20px;
width: min(320px, calc(100vw - 40px));
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
display: flex;
flex-direction: column;
align-items: center;
gap: 16px;
}
.level-modal__img {
width: 100%;
max-height: 240px;
object-fit: contain;
border-radius: 8px;
background: #f3f4f6;
}
.level-modal__label {
font-size: 15px;
font-weight: 600;
color: #374151;
}
.level-modal__buttons {
display: flex;
gap: 12px;
width: 100%;
}
.level-modal__btn {
flex: 1;
display: flex;
flex-direction: column;
align-items: center;
gap: 2px;
padding: 14px 0;
border-radius: 10px;
border: 2px solid transparent;
font-size: 18px;
font-weight: 700;
cursor: pointer;
color: white;
transition: transform 0.1s;
}
.level-modal__btn:active {
transform: scale(0.95);
}
.level-modal__btn--A {
background-color: #22c55e;
}
.level-modal__btn--B {
background-color: #f97316;
}
.level-modal__btn--Pole {
background-color: #a855f7;
}
.level-modal__desc {
font-size: 11px;
font-weight: 500;
opacity: 0.85;
}
@media (min-width: 900px) {
.list-toggle,
.backdrop,
.pole-list__close {
display: none;
}
.gps-info {
top: 10px;
left: 10px;
right: auto;
}
.pole-list,
.pole-list--open,
.pole-list--closed {
top: 0;
right: 0;
width: 360px;
max-height: 100vh;
border-radius: 0;
box-shadow: -2px 0 12px rgba(0, 0, 0, 0.15);
opacity: 1;
pointer-events: auto;
}
.capture-button {
box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}
.pole-item:hover {
background-color: #f9fafb;
}
}