You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Feb 6, 2024. It is now read-only.
Copy file name to clipboardExpand all lines: README.md
+8-17Lines changed: 8 additions & 17 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -17,7 +17,6 @@ Create a lightweight presentation using HTML and Web Components.
17
17
-[Framework integration](#framework-integration)
18
18
-[Editing](#editing)
19
19
-[Detailed documentation](doc/slides/slides.md)
20
-
-[Showcasing code](#showcasing-code)
21
20
-[Navigation](#navigation)
22
21
-[Extra features](#extra-features)
23
22
-[Lazy loading](#lazy-loading)
@@ -87,34 +86,26 @@ The [Stencil documentation](https://stenciljs.com/docs/overview) provide example
87
86
88
87
## Editing
89
88
90
-
[DeckDeckGo] is a deck of slides where each slide has its own layout and behaviour. Their content could be edited and structured using the provided `slots`.
89
+
[DeckDeckGo] is a deck of slides where each slide has its own layout and behaviour. Their content could be edited and structured using the provided `slots` and other attributes.
91
90
92
-
The slides [documentation](doc/slides/slides.md) display all templates and all options available for each slide.
91
+
The deck should be declared using the tag `<deckgo-deck>` and each slide should be added to its children.
93
92
94
93
```
95
94
<deckgo-deck>
96
95
<deckgo-slide-title>
97
-
<h1 slot="title">My presentation title</h1>
96
+
<h1 slot="title">The first slide</h1>
98
97
<p slot="content">
99
98
Hello World 🚀
100
99
</p>
101
100
</deckgo-slide-title>
101
+
102
+
<deckgo-slide-content>
103
+
<h1 slot="title">The second slide</h1>
104
+
</deckgo-slide-content>
102
105
</deckgo-deck>
103
106
```
104
107
105
-
### Showcasing code
106
-
107
-
[DeckDeckGo] offers an handy slide to showcase code in your presentation. Instead of having to copy/paste your code inside the presentation itself, the provided template only need an url to the piece of code you would like display.
108
-
109
-
For example, in the following example, the slide is showcasing a piece of code of [DeckDeckGo] hosted on [Github](https://raw.githubusercontent.com/fluster/deckdeckgo/master/src/components/slides/deckdeckgo-slide-code/deckdeckgo-slide-code.tsx).
@@ -314,4 +323,85 @@ The library [Prism.js](https://prismjs.com) from [James DiGioia](https://github.
314
323
315
324
No extra [Prism.js](https://prismjs.com) languages than the default one are bundled in the [DeckDeckGo] Web Component. If you would specify another `language` (see above list of attributes) the component will inject and load the required extra scripts from [unpkg](https://unpkg.com) at runtime.
316
325
326
+
## Slide: Author
327
+
328
+
The "Author" slide let you introduce the author of the presentation.
Both slots `title`, `author` and `social-link` are optional, but of course the slide would looks better with at least the slot `author` would be provided.
354
+
355
+
Notes:
356
+
357
+
* The slot `title` is hidden. If you use the [DeckDeckGo] starter, it will be use for the navigation modal.
358
+
359
+
* You could provide up to six `social-link` slots.
360
+
361
+
### Attributes
362
+
363
+
This component offers the following options which could be set using attributes:
0 commit comments