-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbrewery.html
More file actions
49 lines (47 loc) · 1.89 KB
/
Copy pathbrewery.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>Brewery — 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": "Brewery",
"name": "Bad Flash Brewery",
"image": "https://picsum.photos/seed/bad-flash-brewery/600/400",
"description": "A bold Prague craft brewery known for pushing boundaries — hazy IPAs loaded with Citra and Mosaic, barrel-aged imperial stouts and spontaneous wild ales fermented with local microflora. The taproom in Smíchov is a raw-concrete space with 14 rotating lines, street-food pop-ups and a fiercely loyal Friday-night crowd.",
"address": "Plaská 622/8, 150 00 Prague 5, Czech Republic",
"telephone": "+420 777 123 456",
"openingHours": "Tu-Th 16:00-23:00, Fr 15:00-00:00, Sa 14:00-00:00, Su 14:00-22:00",
"priceRange": "60–120 CZK (half-litre)",
"url": "https://example.org/bad-flash"
}
</script>
<main id="app"></main>
<!-- per-type config: this is the ONLY thing that changes between apps -->
<script>
window.APP = {
type: "Brewery",
titleProp: "name",
icon: "🍻",
accent: "#f59e0b",
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>