feat: add search bar, auto-tour, and OpenStreetMap embed in side panel
This commit is contained in:
170
src/styles.css
170
src/styles.css
@@ -105,6 +105,121 @@ html, body {
|
||||
color: var(--ink-3);
|
||||
}
|
||||
|
||||
/* ---- tour button state ---- */
|
||||
#tour-btn.is-playing {
|
||||
background: var(--accent);
|
||||
color: #1a1206;
|
||||
border-color: var(--accent);
|
||||
}
|
||||
#tour-btn.is-playing:hover {
|
||||
background: #e6b06a;
|
||||
border-color: #e6b06a;
|
||||
}
|
||||
|
||||
/* ---- search bar ---- */
|
||||
.search-bar {
|
||||
position: absolute;
|
||||
top: 18px;
|
||||
left: 18px;
|
||||
z-index: 6;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
background: rgba(10, 14, 22, 0.78);
|
||||
backdrop-filter: blur(8px);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 10px;
|
||||
padding: 6px 12px;
|
||||
width: 360px;
|
||||
max-width: calc(100% - 36px);
|
||||
font-size: 13px;
|
||||
color: var(--ink-1);
|
||||
}
|
||||
|
||||
.search-bar:focus-within {
|
||||
border-color: rgba(214, 160, 92, 0.55);
|
||||
box-shadow: 0 0 0 3px rgba(214, 160, 92, 0.15);
|
||||
}
|
||||
|
||||
.search-icon {
|
||||
margin-right: 8px;
|
||||
opacity: 0.55;
|
||||
font-size: 13px;
|
||||
}
|
||||
|
||||
#search-input {
|
||||
background: transparent;
|
||||
border: none;
|
||||
outline: none;
|
||||
color: var(--ink-0);
|
||||
font: inherit;
|
||||
font-size: 13.5px;
|
||||
flex: 1;
|
||||
padding: 6px 0;
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
#search-input::placeholder {
|
||||
color: var(--ink-3);
|
||||
}
|
||||
|
||||
.search-clear {
|
||||
background: transparent;
|
||||
border: none;
|
||||
color: var(--ink-3);
|
||||
cursor: pointer;
|
||||
font-size: 14px;
|
||||
padding: 4px 6px;
|
||||
border-radius: 6px;
|
||||
margin-left: 4px;
|
||||
}
|
||||
.search-clear:hover { color: var(--ink-0); background: rgba(255,255,255,0.06); }
|
||||
|
||||
.search-results {
|
||||
position: absolute;
|
||||
top: calc(100% + 6px);
|
||||
left: 0;
|
||||
right: 0;
|
||||
list-style: none;
|
||||
margin: 0;
|
||||
padding: 6px;
|
||||
background: rgba(10, 14, 22, 0.96);
|
||||
backdrop-filter: blur(10px);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 10px;
|
||||
max-height: 320px;
|
||||
overflow-y: auto;
|
||||
box-shadow: var(--shadow);
|
||||
}
|
||||
|
||||
.search-results li {
|
||||
padding: 9px 10px;
|
||||
border-radius: 7px;
|
||||
cursor: pointer;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 2px;
|
||||
}
|
||||
|
||||
.search-results li:hover,
|
||||
.search-results li.is-active {
|
||||
background: rgba(214, 160, 92, 0.14);
|
||||
}
|
||||
|
||||
.search-results .name {
|
||||
font-size: 13.5px;
|
||||
color: var(--ink-0);
|
||||
font-weight: 500;
|
||||
}
|
||||
.search-results .meta {
|
||||
font-size: 11.5px;
|
||||
color: var(--ink-3);
|
||||
}
|
||||
.search-results mark {
|
||||
background: transparent;
|
||||
color: var(--accent);
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.layout {
|
||||
flex: 1;
|
||||
display: grid;
|
||||
@@ -319,6 +434,61 @@ html, body {
|
||||
color: var(--accent);
|
||||
}
|
||||
|
||||
/* ---- map embed ---- */
|
||||
.map-wrap {
|
||||
margin-bottom: 22px;
|
||||
}
|
||||
|
||||
.map-wrap .map-label {
|
||||
font-size: 11px;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.08em;
|
||||
color: var(--ink-3);
|
||||
margin-bottom: 6px;
|
||||
}
|
||||
|
||||
.map-frame {
|
||||
width: 100%;
|
||||
height: 220px;
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 10px;
|
||||
overflow: hidden;
|
||||
background: var(--bg-2);
|
||||
}
|
||||
|
||||
.map-frame iframe {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
border: 0;
|
||||
display: block;
|
||||
filter: invert(0.92) hue-rotate(180deg) brightness(0.95) saturate(0.7);
|
||||
}
|
||||
|
||||
.map-links {
|
||||
display: flex;
|
||||
gap: 8px;
|
||||
margin-top: 8px;
|
||||
}
|
||||
|
||||
.map-link {
|
||||
flex: 1;
|
||||
text-align: center;
|
||||
font-size: 12px;
|
||||
color: var(--ink-1);
|
||||
text-decoration: none;
|
||||
background: var(--bg-2);
|
||||
border: 1px solid var(--border);
|
||||
padding: 7px 10px;
|
||||
border-radius: 8px;
|
||||
transition: background 0.15s, border-color 0.15s;
|
||||
}
|
||||
|
||||
.map-link:hover {
|
||||
background: rgba(214, 160, 92, 0.14);
|
||||
border-color: rgba(214, 160, 92, 0.45);
|
||||
color: var(--ink-0);
|
||||
}
|
||||
|
||||
.photos {
|
||||
display: grid;
|
||||
grid-template-columns: 1fr 1fr;
|
||||
|
||||
Reference in New Issue
Block a user