feat: apply design tokens to stats, map, mini-map; teal markers
This commit is contained in:
@@ -48,17 +48,17 @@ if (ENTRIES.length === 0) {
|
||||
var latLngs = ENTRIES.map(function(e) { return [parseFloat(e.lat), parseFloat(e.lng)]; });
|
||||
|
||||
// Route polyline
|
||||
L.polyline(latLngs, { color: '#0066cc', weight: 3, opacity: 0.7 }).addTo(map);
|
||||
L.polyline(latLngs, { color: '#1F6B5A', weight: 3, opacity: 0.7 }).addTo(map);
|
||||
|
||||
// Markers
|
||||
ENTRIES.forEach(function(entry, i) {
|
||||
var isLatest = (i === ENTRIES.length - 1);
|
||||
var size = isLatest ? 18 : 12;
|
||||
var color = isLatest ? '#0044aa' : '#0066cc';
|
||||
var color = isLatest ? '#155244' : '#1F6B5A';
|
||||
|
||||
var icon = L.divIcon({
|
||||
className: '',
|
||||
html: '<div style="width:' + size + 'px;height:' + size + 'px;background:' + color + ';border:2px solid #fff;border-radius:50%;box-shadow:0 1px 4px rgba(0,0,0,0.4);' + (isLatest ? 'box-shadow:0 0 0 3px rgba(0,102,204,0.3),0 1px 4px rgba(0,0,0,0.4);' : '') + '"></div>',
|
||||
html: '<div style="width:' + size + 'px;height:' + size + 'px;background:' + color + ';border:2px solid #fff;border-radius:50%;box-shadow:0 1px 4px rgba(0,0,0,0.4);' + (isLatest ? 'box-shadow:0 0 0 3px rgba(31,107,90,0.3),0 1px 4px rgba(0,0,0,0.4);' : '') + '"></div>',
|
||||
iconSize: [size, size],
|
||||
iconAnchor: [size/2, size/2],
|
||||
popupAnchor: [0, -(size/2 + 4)]
|
||||
@@ -70,7 +70,7 @@ if (ENTRIES.length === 0) {
|
||||
}
|
||||
popupContent += '<div style="font-size:0.75rem;color:#666;margin-bottom:2px;">📅 ' + entry.date + '</div>';
|
||||
popupContent += '<div style="font-weight:600;font-size:0.9rem;margin-bottom:8px;">' + entry.title + '</div>';
|
||||
popupContent += '<a href="' + entry.url + '" style="color:#0066cc;font-size:0.85rem;text-decoration:none;">Read entry →</a>';
|
||||
popupContent += '<a href="' + entry.url + '" style="color:#1F6B5A;font-size:0.85rem;text-decoration:none;">Read entry →</a>';
|
||||
popupContent += '</div>';
|
||||
|
||||
L.marker([parseFloat(entry.lat), parseFloat(entry.lng)], { icon: icon })
|
||||
|
||||
@@ -45,7 +45,7 @@
|
||||
{% endfor %}
|
||||
|
||||
<div class="stats-page">
|
||||
<h1 style="font-size:1.5rem;margin-bottom:1.5rem;">Trip Statistics</h1>
|
||||
<h1 class="stats-heading">Trip Statistics</h1>
|
||||
|
||||
<div class="stats-grid">
|
||||
<div class="stat-block">
|
||||
|
||||
@@ -35,13 +35,13 @@ L.tileLayer('https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', {
|
||||
var latLngs = FEED_ENTRIES.map(function(e) { return [parseFloat(e.lat), parseFloat(e.lng)]; });
|
||||
|
||||
if (latLngs.length > 1) {
|
||||
L.polyline(latLngs, { color: '#0066cc', weight: 3, opacity: 0.7 }).addTo(map);
|
||||
L.polyline(latLngs, { color: '#1F6B5A', weight: 3, opacity: 0.7 }).addTo(map);
|
||||
}
|
||||
|
||||
FEED_ENTRIES.forEach(function(entry, i) {
|
||||
var isLatest = (i === FEED_ENTRIES.length - 1);
|
||||
var size = isLatest ? 16 : 10;
|
||||
var color = isLatest ? '#0044aa' : '#0066cc';
|
||||
var color = isLatest ? '#155244' : '#1F6B5A';
|
||||
var icon = L.divIcon({
|
||||
className: '',
|
||||
html: '<div style="width:' + size + 'px;height:' + size + 'px;background:' + color + ';border:2px solid #fff;border-radius:50%;box-shadow:0 1px 3px rgba(0,0,0,0.35);cursor:pointer;"></div>',
|
||||
|
||||
Reference in New Issue
Block a user