Of Britain | Shires
.shire-btn:hover background: #e3d4b5; transform: translateY(-2px); border-color: #9b7b4c; box-shadow: 0 6px 12px rgba(0,0,0,0.08);
// Generate all shire buttons, set first shire as default (Yorkshire or first) function buildShireButtons() buttonsContainer.innerHTML = ''; allShires.forEach((shire, index) => const btn = document.createElement('button'); btn.className = 'shire-btn'; btn.textContent = shire.name; btn.setAttribute('data-id', shire.id); btn.addEventListener('click', (e) => e.preventDefault(); updateInfoPanel(shire); setActiveButton(btn); // Optional: subtle haptic feedback no extra ); buttonsContainer.appendChild(btn); // set default active: first shire (Yorkshire) if (index === 0) setTimeout(() => updateInfoPanel(shire); setActiveButton(btn); , 10);
.detail-value font-size: 1.1rem; font-weight: 500; color: #2d3e2b; shires of britain
.shires-header p font-size: 1.1rem; color: #3a5a40; font-style: italic; margin-top: 0.5rem;
/* two column layout: map sidebar + info panel */ .shire-explorer display: flex; flex-wrap: wrap; gap: 2rem; margin-top: 1rem; .shire-btn:hover background: #e3d4b5
</style> </head> <body> <div class="feature-container"> <div class="shires-header"> <h1>🏴 Shires of Britain 🏴</h1> <p>Historic counties & ancient shires — land of lore, legacy & landscape</p> </div> <div class="intro-text"> 🌿 From the chalk cliffs of Kent to the wild moors of Yorkshire, explore the traditional shires that shaped Britain's identity. Click any shire to uncover its character, county town, and timeless charm. </div>
/* map stylized grid / interactive buttons */ .map-title font-weight: 600; background: #2e4a2c; color: #fef2e0; padding: 1rem 1.5rem; font-size: 1.3rem; letter-spacing: 1px; box-shadow: 0 6px 12px rgba(0
const allShires = [...shiresData, ...scottishShires];