여행 탭 develop

- 지도 추가
 - 지도 매칭하여 해당 여행 사진 매칭
 - 사진 클릭시 모달로 사진 렌더링 (lazy, cache, thumb 사용)
This commit is contained in:
2026-01-20 03:20:16 +09:00
parent 837408423e
commit d4ec482289
5 changed files with 800 additions and 124 deletions

View File

@@ -57,6 +57,56 @@
gap: 24px;
}
.travel-albums.is-blurred {
filter: blur(3px);
transition: filter 0.2s ease;
}
.travel-albums.is-blurred * {
pointer-events: none;
}
.travel-map {
display: grid;
gap: 18px;
}
.travel-map__canvas {
width: 100%;
min-height: 520px;
border-radius: 22px;
overflow: hidden;
border: 1px solid rgba(255, 255, 255, 0.12);
background: rgba(10, 12, 20, 0.6);
}
.travel-map__info {
width: 100%;
border: 1px solid rgba(255, 255, 255, 0.2);
border-radius: 18px;
padding: 14px 16px;
background: rgba(10, 12, 20, 0.75);
backdrop-filter: blur(6px);
display: grid;
gap: 8px;
align-content: center;
text-align: center;
}
.travel-map__title {
margin: 0;
font-size: 14px;
letter-spacing: 0.2em;
text-transform: uppercase;
color: var(--accent);
}
.travel-map__desc {
margin: 0;
color: var(--muted);
font-size: 14px;
}
.travel-album {
border: 1px solid var(--line);
border-radius: 24px;
@@ -66,6 +116,28 @@
gap: 18px;
}
.travel-album__footer {
display: flex;
justify-content: center;
}
.travel-load-more {
border: 1px solid rgba(255, 255, 255, 0.2);
background: rgba(10, 12, 20, 0.6);
color: #f8f4f0;
border-radius: 999px;
padding: 10px 18px;
font-size: 13px;
letter-spacing: 0.02em;
cursor: pointer;
transition: transform 0.2s ease, border-color 0.2s ease;
}
.travel-load-more:hover {
transform: translateY(-1px);
border-color: rgba(255, 255, 255, 0.5);
}
.travel-album__head {
display: flex;
justify-content: space-between;
@@ -114,6 +186,7 @@
overflow: hidden;
border: 1px solid rgba(255, 255, 255, 0.12);
min-height: 220px;
cursor: pointer;
}
.travel-card.is-wide {
@@ -146,6 +219,139 @@
font-size: 18px;
}
.travel-modal {
position: fixed;
inset: 0;
background: rgba(6, 8, 12, 0.75);
display: grid;
align-items: start;
justify-items: center;
padding: 28px 24px 24px;
z-index: 2000;
}
.travel-modal__content {
position: relative;
max-width: min(920px, 92vw);
max-height: 86vh;
background: rgba(10, 12, 20, 0.92);
border: 1px solid rgba(255, 255, 255, 0.14);
border-radius: 18px;
padding: 16px;
display: grid;
gap: 10px;
margin-top: 24px;
}
.travel-modal__summary {
display: grid;
gap: 6px;
padding-bottom: 6px;
border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.travel-modal__summary-title {
margin: 0;
font-size: 15px;
letter-spacing: 0.16em;
text-transform: uppercase;
color: #f1c07a;
}
.travel-modal__summary-meta {
margin: 0;
color: var(--muted);
font-size: 12px;
line-height: 1.5;
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
overflow: hidden;
}
.travel-modal__strip {
display: flex;
gap: 8px;
overflow-x: auto;
padding-bottom: 6px;
}
.travel-modal__thumb {
width: 64px;
height: 48px;
border-radius: 10px;
border: 1px solid rgba(255, 255, 255, 0.2);
background: rgba(10, 12, 20, 0.6);
padding: 0;
cursor: pointer;
opacity: 0.7;
}
.travel-modal__thumb img {
width: 100%;
height: 100%;
object-fit: cover;
border-radius: 10px;
display: block;
}
.travel-modal__thumb.is-active {
opacity: 1;
border-color: rgba(255, 255, 255, 0.6);
}
.travel-modal__content img {
width: 100%;
height: auto;
max-height: 70vh;
object-fit: contain;
border-radius: 12px;
}
.travel-modal__meta {
margin: 0;
color: var(--muted);
font-size: 12px;
letter-spacing: 0.08em;
text-transform: uppercase;
}
.travel-modal__close {
position: absolute;
top: 10px;
right: 10px;
width: 32px;
height: 32px;
border-radius: 50%;
border: 1px solid rgba(255, 255, 255, 0.2);
background: rgba(10, 12, 20, 0.8);
color: #f8f4f0;
font-size: 18px;
cursor: pointer;
}
.travel-modal__nav {
position: absolute;
inset: 0;
display: flex;
align-items: center;
justify-content: space-between;
pointer-events: none;
padding: 0 6px;
}
.travel-modal__arrow {
pointer-events: auto;
width: 36px;
height: 36px;
border-radius: 50%;
border: 1px solid rgba(255, 255, 255, 0.2);
background: rgba(10, 12, 20, 0.7);
color: #f8f4f0;
font-size: 22px;
cursor: pointer;
}
.travel-card__meta {
margin: 0;
font-size: 12px;
@@ -159,6 +365,10 @@
grid-template-columns: 1fr;
}
.travel-map {
grid-template-columns: 1fr;
}
.travel-card.is-wide {
grid-column: span 1;
}