-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbook.html
More file actions
47 lines (45 loc) · 1.63 KB
/
Copy pathbook.html
File metadata and controls
47 lines (45 loc) · 1.63 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>Book — schema.org app</title>
<link rel="stylesheet" href="./app.css" />
</head>
<body>
<script type="application/ld+json" id="data">
{
"@context": "https://schema.org",
"@type": "Book",
"name": "The Hitchhiker\u2019s Guide to the Galaxy",
"image": "https://picsum.photos/seed/hitchhikers-guide/400/600",
"author": "Douglas Adams",
"isbn": "978-0-345-39180-3",
"numberOfPages": "224",
"datePublished": "1979-10-12",
"publisher": "Pan Books",
"description": "A comedic science fiction series about the adventures of Arthur Dent, a hapless Englishman who escapes Earth moments before it is demolished to make way for a hyperspace bypass. Armed with a towel and a copy of the Guide, he hitchhikes across the galaxy."
}
</script>
<main id="app"></main>
<script>
window.APP = {
type: "Book",
titleProp: "name",
icon: "📚",
accent: "#9333ea",
fields: [
{ prop: "name", label: "Title", type: "text" },
{ prop: "image", label: "Cover", type: "image" },
{ prop: "author", label: "Author", type: "text" },
{ prop: "isbn", label: "ISBN", type: "text" },
{ prop: "numberOfPages", label: "Pages", type: "text" },
{ prop: "datePublished", label: "Published", type: "text" },
{ prop: "publisher", label: "Publisher", type: "text" },
{ prop: "description", label: "Description", type: "textarea" },
],
};
</script>
<script src="./app.js"></script>
</body>
</html>