-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcourse.html
More file actions
47 lines (45 loc) · 1.7 KB
/
Copy pathcourse.html
File metadata and controls
47 lines (45 loc) · 1.7 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>Course — 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": "Course",
"name": "Introduction to Solid and Decentralized Web",
"image": "https://picsum.photos/seed/solid-course/800/400",
"description": "Learn how to build applications on the Solid platform — the decentralized web standard invented by Sir Tim Berners-Lee. This course covers Solid Pods, WebID authentication, Linked Data, LDP, ACL, and building decentralized apps that put users in control of their data.",
"provider": "MIT OpenCourseWare",
"courseCode": "6.S198",
"educationalLevel": "Undergraduate",
"url": "https://example.org/courses/intro-solid"
}
</script>
<main id="app"></main>
<!-- per-type config: this is the ONLY thing that changes between apps -->
<script>
window.APP = {
type: "Course",
titleProp: "name",
icon: "🎓",
accent: "#059669",
fields: [
{ prop: "name", label: "Title", type: "text" },
{ prop: "image", label: "Image", type: "image" },
{ prop: "description", label: "About", type: "textarea" },
{ prop: "provider", label: "Provider", type: "text" },
{ prop: "courseCode", label: "Code", type: "text" },
{ prop: "educationalLevel", label: "Level", type: "text" },
{ prop: "url", label: "Website", type: "url" },
],
};
</script>
<script src="./app.js"></script>
</body>
</html>