22
331 . Create a plain old html file
442 . Add latest PodOS script tag and stylesheet to the head
5- 3 . Add a <pos-app ></pos-app > to the body and use any PodOS element within it.
6- 4 . Host the page on any webserver (like your Solid Pod 😉)
5+ 3 . Add a ` <pos-app></pos-app> ` to the body and use any PodOS element within it.
6+ 4 . Host the page on any webserver (like your [ Solid] ( ../solid/index.md ) Pod 😉)
77
88Try this 🤩:
99
10- ``` html
10+ ``` html linenums="1" hl_lines="5-12 15 16 17 19 22"
1111<!DOCTYPE html>
1212<html >
1313<head >
@@ -19,25 +19,31 @@ Try this 🤩:
1919 <link
2020 href =" https://cdn.jsdelivr.net/npm/@pod-os/elements/dist/elements/elements.css"
2121 rel =" stylesheet"
22- />
22+ /> <!-- (1)! -->
2323</head >
2424<body >
25- <pos-app > <!-- will provide a PodOS instance -->
25+ <pos-app > <!-- (2)! -->
2626 <pos-resource
27- uri =" https://solidproject.solidcommunity.net/profile/card#me"
28- > <!-- Loads the resource and sets the context for all the child elements -->
29- <h1 > <!-- You can just combine normal HTML with PodOS elements -->
30- <pos-label /> <!-- renders a human-readable name of the resource -->
27+ uri =" https://solidproject.solidcommunity.net/profile/card#me" > <!-- (3)! -->
28+ <h1 > <!-- (4)! -->
29+ <pos-label /> <!-- (5)! -->
3130 </h1 >
3231 <blockquote >
33- <pos-description /> <!-- renders a description of the resource -->
32+ <pos-description /> <!-- (6)! -->
3433 </blockquote >
3534 </pos-resource >
3635</pos-app >
3736</body >
3837</html >
3938```
4039
40+ 1 . PodOS can be easily included from any CDN
41+ 2 . ` <pos-app> ` will provide PodOS to child elements. All other PodOS elements must be nested inside a ` <pos-app> `
42+ 3 . Loads the resource and sets the context for all the child elements
43+ 4 . You can just combine normal HTML with PodOS elements
44+ 5 . ` <pos-label ` renders a human-readable name of the resource
45+ 6 . ` <pos-description> ` renders a renders a description of the resource
46+
4147Check out the [ 📖 Storybook documentation] ( https://pod-os.github.io/PodOS/storybook/ ) to learn about the available elements.
4248
4349Also, check out the [ 🧑🏫 tutorial section] ( ../tutorials/index.md ) on practical guides.
0 commit comments