Cleaning up design
This commit is contained in:
parent
09952fb470
commit
89b2a7171e
3 changed files with 174 additions and 160 deletions
17
index.html
17
index.html
|
|
@ -23,19 +23,15 @@
|
|||
|
||||
<div id="app-shell" hidden>
|
||||
<header class="hero">
|
||||
<div>
|
||||
<p class="eyebrow">Google Maps route collection</p>
|
||||
<h1>Routes</h1>
|
||||
<p class="intro">Save, edit, open, and share your favorite Google Maps route links.</p>
|
||||
</div>
|
||||
<h1>Routes</h1>
|
||||
<div class="header-actions">
|
||||
<a class="skip-link" href="#route-form">Add a route</a>
|
||||
<button type="button" id="show-form-button">Add route</button>
|
||||
<button type="button" class="secondary" id="logout-button">Lock</button>
|
||||
</div>
|
||||
</header>
|
||||
|
||||
<main class="layout">
|
||||
<section class="panel form-panel" aria-labelledby="form-title">
|
||||
<section id="route-editor" class="panel form-panel" aria-labelledby="form-title" hidden>
|
||||
<h2 id="form-title">Add route</h2>
|
||||
<form id="route-form" autocomplete="off">
|
||||
<input type="hidden" id="route-id" />
|
||||
|
|
@ -67,7 +63,7 @@
|
|||
|
||||
<div class="form-actions">
|
||||
<button type="submit" id="save-button">Add route</button>
|
||||
<button type="button" class="secondary" id="cancel-edit" hidden>Cancel edit</button>
|
||||
<button type="button" class="secondary" id="cancel-edit" hidden>Cancel</button>
|
||||
</div>
|
||||
</form>
|
||||
</section>
|
||||
|
|
@ -78,12 +74,11 @@
|
|||
<h2 id="routes-title">Saved routes</h2>
|
||||
<p id="route-count">No routes yet.</p>
|
||||
</div>
|
||||
<button type="button" class="secondary danger" id="clear-all" hidden>Remove all</button>
|
||||
</div>
|
||||
|
||||
<div id="empty-state" class="empty-state">
|
||||
<h3>No routes saved</h3>
|
||||
<p>Add your first Google Maps route link using the form.</p>
|
||||
<p>Tap “Add route” to save your first map link.</p>
|
||||
</div>
|
||||
|
||||
<div id="routes-list" class="routes-list" aria-live="polite"></div>
|
||||
|
|
@ -93,7 +88,7 @@
|
|||
|
||||
<template id="route-card-template">
|
||||
<article class="route-card">
|
||||
<div class="route-image" aria-hidden="true"></div>
|
||||
<div class="route-image" aria-hidden="true" hidden></div>
|
||||
<div class="route-content">
|
||||
<div class="route-meta"></div>
|
||||
<h3><a class="route-title" target="_blank" rel="noopener noreferrer"></a></h3>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue