feat:map頁面

This commit is contained in:
2026-05-08 00:50:31 +08:00
parent 5ced641962
commit 28eb8ef04c
2 changed files with 450 additions and 17 deletions
+276
View File
@@ -434,4 +434,280 @@ footer {
.highlight {
color: var(--dark-yellow);
font-weight: bold;
}
/* map.html */
.map-archive-header {
text-align: center;
padding: 90px 20px 38px;
background: #fcfaf2;
}
.map-archive-header .main-title {
font-size: clamp(2rem, 4.5vw, 3.2rem);
font-weight: 900;
color: #333;
letter-spacing: 8px;
text-transform: uppercase;
margin: 0;
}
.map-archive-header .subtitle-wrap {
margin-top: 20px;
}
.map-archive-header .subtitle-wrap::before,
.map-archive-header .subtitle-wrap::after {
height: 3px;
background-color: #ffcc00;
max-width: 56px;
}
.map-archive-header .sub-title {
font-size: 0.96rem;
letter-spacing: 4px;
color: #8a8a8a;
}
.map-layout {
display: grid;
grid-template-columns: minmax(320px, 40%) minmax(0, 1fr);
gap: 26px;
align-items: start;
padding-top: 16px;
}
.member-tabs {
display: flex;
flex-wrap: wrap;
justify-content: center;
gap: 12px;
margin: 0 auto 14px;
max-width: 1100px;
padding: 0 20px;
}
.tab-btn {
border: 1px solid #e9d99d;
background: #ffffff;
color: #4a4a4a;
border-radius: 999px;
padding: 9px 18px;
font-size: 0.93rem;
font-weight: 700;
cursor: pointer;
transition: all 0.2s ease;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}
.tab-btn:hover,
.tab-btn.active {
background: #ffcc00;
color: #2f2f2f;
border-color: #ffcc00;
}
.map-sticky {
position: sticky;
top: 22px;
align-self: start;
background: #fff;
border-radius: 16px;
padding: 18px;
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.07);
border: 1px solid rgba(0, 0, 0, 0.04);
}
.map-title {
color: #343434;
font-size: 1.05rem;
margin: 0 0 12px;
letter-spacing: 1px;
}
#member-map {
width: 100%;
height: min(66vh, 640px);
min-height: 420px;
border: 0;
border-radius: 12px;
box-shadow: 0 10px 26px rgba(0, 0, 0, 0.1);
}
.map-link {
display: inline-block;
margin-top: 12px;
font-size: 0.85rem;
color: #7f6712;
text-decoration: none;
border-bottom: 1px solid rgba(127, 103, 18, 0.4);
}
.itinerary-list {
display: grid;
gap: 12px;
}
.polaroid-card {
display: flex;
align-items: flex-start;
gap: 14px;
border: 1px solid #f0e9cf;
border-radius: 12px;
padding: 12px;
background: #fff;
cursor: pointer;
transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
position: relative;
}
.polaroid-card::before {
content: "\f111";
font-family: "Font Awesome 6 Free";
font-weight: 900;
position: absolute;
right: 12px;
top: 10px;
color: #ebd37a;
font-size: 0.5rem;
}
.polaroid-card:hover,
.polaroid-card.active {
transform: translateY(-1px);
border-color: #f3d56a;
box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
background: #fffdf4;
}
.photo-frame {
width: 118px;
flex: 0 0 118px;
}
.photo-frame img {
width: 100%;
height: 86px;
object-fit: cover;
border-radius: 8px;
}
.card-content .date {
display: inline-block;
font-size: 0.72rem;
color: #9a8851;
margin-bottom: 2px;
font-weight: 700;
letter-spacing: 0.6px;
}
.card-content h3 {
margin: 0 0 3px;
font-size: 1rem;
color: #323232;
}
.card-content .description {
margin: 0 0 6px;
font-size: 0.86rem;
color: #6a6a6a;
}
.card-content .tag {
font-size: 0.76rem;
color: #8b7423;
font-weight: 600;
}
.detail-panel {
margin-top: 8px;
border: 1px solid #eadfb2;
border-radius: 12px;
overflow: hidden;
background: #fffef8;
box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}
.detail-photo img {
width: 100%;
max-height: 300px;
object-fit: cover;
display: block;
}
.detail-content {
padding: 16px;
}
.detail-content h3 {
margin: 4px 0 10px;
color: #2c2c2c;
font-size: 1.2rem;
}
.detail-content p {
color: #5a5a5a;
margin-bottom: 12px;
line-height: 1.7;
}
.detail-content blockquote {
margin: 0 0 10px;
padding: 10px 12px;
background: #fff7da;
border-left: 3px solid #f0c02f;
color: #65510e;
font-size: 0.92rem;
border-radius: 4px;
}
.detail-link {
display: inline-block;
margin-top: 8px;
color: #7b6215;
text-decoration: none;
font-weight: 600;
border-bottom: 1px solid rgba(123, 98, 21, 0.45);
}
@media (max-width: 920px) {
.map-archive-header {
padding: 76px 16px 30px;
}
.map-archive-header .main-title {
letter-spacing: 4px;
}
.map-layout {
grid-template-columns: 1fr;
}
.map-sticky {
position: static;
padding: 14px;
}
#member-map {
height: 320px;
min-height: 320px;
}
.polaroid-card {
flex-direction: column;
gap: 10px;
}
.photo-frame {
width: 100%;
flex: none;
}
.photo-frame img {
height: 170px;
}
.detail-content {
padding: 13px;
}
}