-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbook-store.html
More file actions
49 lines (47 loc) · 1.89 KB
/
Copy pathbook-store.html
File metadata and controls
49 lines (47 loc) · 1.89 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>BookStore — schema.org app</title>
<link rel="stylesheet" href="./app.css" />
</head>
<body>
<!-- JSON-LD data island -->
<script type="application/ld+json" id="data">
{
"@context": "https://schema.org",
"@type": "BookStore",
"name": "Shakespeare & Sons",
"image": "https://picsum.photos/seed/shakespeare-sons/600/400",
"description": "A cosy English-language bookshop and bagel café tucked in Prague's Letná district. Floor-to-ceiling wooden shelves overflow with fiction, philosophy and art books — new, used and rare. The smell of fresh-baked bagels mingles with old-paper dust. Regular author readings, book clubs and a curated staff-picks wall keep the neighbourhood coming back.",
"address": "U Průhonu 14, 170 00 Prague 7, Czech Republic",
"telephone": "+420 222 333 888",
"openingHours": "Mo-Sa 10:00-20:00, Su 12:00-18:00",
"priceRange": "80–600 CZK",
"url": "https://example.org/shakespeare-sons"
}
</script>
<main id="app"></main>
<!-- per-type config: this is the ONLY thing that changes between apps -->
<script>
window.APP = {
type: "BookStore",
titleProp: "name",
icon: "📕",
accent: "#1d4ed8",
fields: [
{ prop: "name", label: "Name", type: "text" },
{ prop: "image", label: "Image", type: "image" },
{ prop: "description", label: "Description", type: "textarea" },
{ prop: "address", label: "Address", type: "text" },
{ prop: "telephone", label: "Telephone", type: "tel" },
{ prop: "openingHours",label: "Opening hours", type: "text" },
{ prop: "priceRange", label: "Price range", type: "text" },
{ prop: "url", label: "Website", type: "url" },
],
};
</script>
<script src="./app.js"></script>
</body>
</html>