Compare commits
2 Commits
cfa1d44dbc
...
0.0.7
| Author | SHA1 | Date | |
|---|---|---|---|
| 39511dd428 | |||
| cfcf651e41 |
File diff suppressed because one or more lines are too long
|
Before Width: | Height: | Size: 1.5 KiB After Width: | Height: | Size: 10 KiB |
@@ -12,6 +12,12 @@
|
|||||||
m.routeEnd.toLowerCase().includes(searchTerm.toLowerCase())
|
m.routeEnd.toLowerCase().includes(searchTerm.toLowerCase())
|
||||||
);
|
);
|
||||||
|
|
||||||
|
const vibrate = (patern: number | number[] = 10) => {
|
||||||
|
if (typeof window !== 'undefined' && window.navigator.vibrate) {
|
||||||
|
window.navigator.vibrate(pattern);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
const isVerifiedRecently = (dateVal: string | null) => {
|
const isVerifiedRecently = (dateVal: string | null) => {
|
||||||
if (!dateVal) return 'draft';
|
if (!dateVal) return 'draft';
|
||||||
|
|
||||||
@@ -60,26 +66,9 @@
|
|||||||
</header>
|
</header>
|
||||||
|
|
||||||
<div class="list-container">
|
<div class="list-container">
|
||||||
<a
|
<a href="https://owlboard.info" class="button-link">Go to OwlBoard Live Departures & PIS</a>
|
||||||
href="https://owlboard.info"
|
|
||||||
class="card external-card"
|
|
||||||
target="_blank"
|
|
||||||
rel="noopener noreferrer"
|
|
||||||
>
|
|
||||||
<div class="card-top">
|
|
||||||
<span class="route-id system-tag">OWL</span>
|
|
||||||
<span class="status-badge external">External Tool</span>
|
|
||||||
</div>
|
|
||||||
<div class="card-body">
|
|
||||||
<div class="location">OwlBoard</div>
|
|
||||||
<p class="description">Live Departure Boards and PIS Codes</p>
|
|
||||||
</div>
|
|
||||||
<div class="card-footer">
|
|
||||||
<span>Visit owlboard.info ↗</span>
|
|
||||||
</div>
|
|
||||||
</a>
|
|
||||||
{#each filteredMaps as map (map.routeId)}
|
{#each filteredMaps as map (map.routeId)}
|
||||||
<a href="{base}/map/{map.routeId.toString().padStart(4, '0')}" class="card">
|
<a href="{base}/map/{map.routeId.toString().padStart(4, '0')}" class="card" on:click={() => vibrate(10)}>
|
||||||
<div class="card-top">
|
<div class="card-top">
|
||||||
<span class="route-id">{map.routeId.toString().padStart(4, '0')}</span>
|
<span class="route-id">{map.routeId.toString().padStart(4, '0')}</span>
|
||||||
<span class="status-badge {isVerifiedRecently(map.checked)}">
|
<span class="status-badge {isVerifiedRecently(map.checked)}">
|
||||||
@@ -133,21 +122,24 @@
|
|||||||
position: fixed;
|
position: fixed;
|
||||||
top: 0;
|
top: 0;
|
||||||
left: 0;
|
left: 0;
|
||||||
|
box-sizing: border-box;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
background: #3c6f79;
|
background: #3c6f79;
|
||||||
color: #ebebeb;
|
color: #ebebeb;
|
||||||
|
z-index: 100;
|
||||||
}
|
}
|
||||||
|
|
||||||
.brand-container {
|
.brand-container {
|
||||||
margin: 15px;
|
padding: 15px;
|
||||||
display: flex;
|
display: flex;
|
||||||
|
width: 100%;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
|
box-sizing: border-box;
|
||||||
gap: 1rem;
|
gap: 1rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
.main-logo {
|
.main-logo {
|
||||||
/* Adjust height to fit your logo's aspect ratio */
|
height: 52px;
|
||||||
height: 48px;
|
|
||||||
width: auto;
|
width: auto;
|
||||||
display: block;
|
display: block;
|
||||||
}
|
}
|
||||||
@@ -161,70 +153,92 @@
|
|||||||
font-style: italic;
|
font-style: italic;
|
||||||
}
|
}
|
||||||
|
|
||||||
.sub-brand {
|
.search-container {
|
||||||
font-size: 0.65rem;
|
margin-left: auto;
|
||||||
font-weight: 800;
|
|
||||||
color: #94a3b8;
|
|
||||||
text-transform: uppercase;
|
|
||||||
letter-spacing: 0.1em;
|
|
||||||
margin: 0.2rem 0 0 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Desktop layout adjustment */
|
|
||||||
@media (min-width: 640px) {
|
|
||||||
.main-header {
|
|
||||||
display: flex;
|
|
||||||
justify-content: space-between;
|
|
||||||
align-items: center;
|
|
||||||
margin-bottom: 3rem;
|
|
||||||
}
|
|
||||||
|
|
||||||
.brand-container {
|
|
||||||
margin-bottom: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
.main-logo {
|
|
||||||
height: 56px;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.search-input {
|
.search-input {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
margin-left: auto;
|
||||||
|
height: 50px;
|
||||||
padding: 0.8rem 1rem;
|
padding: 0.8rem 1rem;
|
||||||
border: 2px solid #e2e8f0;
|
text-align: center;
|
||||||
border-radius: 12px;
|
text-transform: uppercase;
|
||||||
|
border-radius: 30px;
|
||||||
|
border: none;
|
||||||
font-size: 1rem;
|
font-size: 1rem;
|
||||||
|
transition: all 0.3s ease;
|
||||||
box-sizing: border-box; /* Ensures padding doesn't break width */
|
box-sizing: border-box; /* Ensures padding doesn't break width */
|
||||||
outline: none;
|
outline: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
.search-input:focus {
|
.search-input:hover {
|
||||||
border-color: #3b82f6;
|
box-shadow: rgba(0, 0, 0, 0.46);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Card Layout (Mobile) */
|
|
||||||
.list-container {
|
.list-container {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
gap: 1rem;
|
gap: 1rem;
|
||||||
|
padding: 90px 1rem 1rem 1rem;
|
||||||
|
isolation: isolate;
|
||||||
|
z-index: 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
@media (max-width: 600px) {
|
||||||
|
.list-container {
|
||||||
padding-top: 90px;
|
padding-top: 90px;
|
||||||
|
gap: 0.75rem;
|
||||||
|
padding-left: 0.5rem;
|
||||||
|
padding-right: 0.5rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.card {
|
||||||
|
padding: 10px 12px;
|
||||||
|
margin: 0;
|
||||||
|
border-radius: 4px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.location {
|
||||||
|
font-size: 1rem;
|
||||||
|
margin-bottom: 0.1rem;
|
||||||
|
font-weight: 500;
|
||||||
|
}
|
||||||
|
|
||||||
|
.path-arrow {
|
||||||
|
color: #fff;
|
||||||
|
font-size: 0.8rem;
|
||||||
|
margin: 0.1rem 0;
|
||||||
|
line-height: 0.75;
|
||||||
|
}
|
||||||
|
|
||||||
|
.card-footer {
|
||||||
|
font-size: 0.6rem;
|
||||||
|
line-height: 0.5;
|
||||||
|
padding-bottom: 2px;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.card {
|
.card {
|
||||||
display: block;
|
display: block;
|
||||||
background: white;
|
background: #3c6f79;
|
||||||
padding: 1.25rem;
|
padding: 1.25rem;
|
||||||
border-radius: 16px;
|
border-radius: 35px;
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
color: inherit;
|
color: #4fd1d1;
|
||||||
border: 1px solid #e2e8f0;
|
text-shadow: 2px 1px 10px rgba(0, 0, 0, 0.29);
|
||||||
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
|
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.482);
|
||||||
transition: transform 0.1s ease;
|
transition: transform 0.1s ease;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.card:hover {
|
||||||
|
transform: scale(1.01);
|
||||||
|
z-index: 5;
|
||||||
|
}
|
||||||
|
|
||||||
.card:active {
|
.card:active {
|
||||||
transform: scale(0.98); /* Tactile feedback for mobile */
|
transform: scale(0.99); /* Tactile feedback for mobile */
|
||||||
}
|
}
|
||||||
|
|
||||||
.card-top {
|
.card-top {
|
||||||
@@ -237,8 +251,9 @@
|
|||||||
.route-id {
|
.route-id {
|
||||||
font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
|
font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
|
||||||
font-weight: 800;
|
font-weight: 800;
|
||||||
color: #3b82f6;
|
color: #fff;
|
||||||
background: #eff6ff;
|
background: #2d2d2d;
|
||||||
|
text-shadow: none;
|
||||||
padding: 0.2rem 0.5rem;
|
padding: 0.2rem 0.5rem;
|
||||||
border-radius: 6px;
|
border-radius: 6px;
|
||||||
}
|
}
|
||||||
@@ -254,24 +269,24 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.path-arrow {
|
.path-arrow {
|
||||||
color: #acc7e8;
|
color: #fff;
|
||||||
font-size: 0.9rem;
|
font-size: 0.9rem;
|
||||||
margin: 0.2rem 0;
|
margin: 0.2rem 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.card-footer {
|
.card-footer {
|
||||||
font-size: 0.7rem;
|
font-size: 0.7rem;
|
||||||
color: #64748b;
|
color: #e2ebeb;
|
||||||
text-transform: uppercase;
|
text-transform: uppercase;
|
||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
letter-spacing: 0.05em;
|
letter-spacing: 0.05em;
|
||||||
border-top: 1px solid #f1f5f9;
|
padding-top: 0;
|
||||||
padding-top: 0.75rem;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.status-badge {
|
.status-badge {
|
||||||
font-size: 0.65rem;
|
font-size: 0.65rem;
|
||||||
font-weight: 800;
|
font-weight: 800;
|
||||||
|
text-shadow: none;
|
||||||
text-transform: uppercase;
|
text-transform: uppercase;
|
||||||
padding: 0.3rem 0.6rem;
|
padding: 0.3rem 0.6rem;
|
||||||
border-radius: 999px;
|
border-radius: 999px;
|
||||||
@@ -294,56 +309,22 @@
|
|||||||
color: #475569;
|
color: #475569;
|
||||||
}
|
}
|
||||||
|
|
||||||
@media (min-width: 640px) {
|
.button-link {
|
||||||
.page-wrapper {
|
text-decoration: none;
|
||||||
padding: 3rem 1.5rem;
|
border: none;
|
||||||
|
background: #3c6f79;
|
||||||
|
max-width: 360px;
|
||||||
|
padding: 8px 25px;
|
||||||
|
margin: auto;
|
||||||
|
text-align: center;
|
||||||
|
border-radius: 25px;
|
||||||
|
width: auto;
|
||||||
|
color: #e2ebeb;
|
||||||
|
transition: 0.3s all ease;
|
||||||
|
font-weight: 620;
|
||||||
}
|
}
|
||||||
|
|
||||||
.main-header {
|
.button-link:hover {
|
||||||
display: flex;
|
background: #2b2b2b;
|
||||||
justify-content: space-between;
|
|
||||||
align-items: center;
|
|
||||||
}
|
|
||||||
|
|
||||||
.search-input {
|
|
||||||
width: 300px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.path-arrow {
|
|
||||||
display: inline-block;
|
|
||||||
margin: 0 0.5rem;
|
|
||||||
}
|
|
||||||
|
|
||||||
.card-body {
|
|
||||||
display: flex;
|
|
||||||
align-items: center;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.external-card {
|
|
||||||
border-left: 4px solid #6366f1;
|
|
||||||
background: linear-gradient(to right, #ffffff, #f5f3ff);
|
|
||||||
}
|
|
||||||
|
|
||||||
.system-tag {
|
|
||||||
background: #eef2ff !important;
|
|
||||||
color: #4338ca !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
.status-badge.external {
|
|
||||||
background: #6366f1;
|
|
||||||
color: white;
|
|
||||||
}
|
|
||||||
|
|
||||||
.description {
|
|
||||||
margin: 0.25rem 0 0 0;
|
|
||||||
font-size: 0.9rem;
|
|
||||||
color: #64748b;
|
|
||||||
font-weight: 500;
|
|
||||||
}
|
|
||||||
|
|
||||||
.external-card:hover {
|
|
||||||
border-color: #4338ca;
|
|
||||||
background: #f5f3ff;
|
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
Reference in New Issue
Block a user