|
| 1 | +# DeckDeckGo |
| 2 | + |
| 3 | +Add a lightweight presentation to your web project using HTML and Web Components. |
| 4 | + |
| 5 | +[DeckDeckGo] is build with [Stencil](https://stenciljs.com) and could be use in any modern framework or even without any. |
| 6 | + |
| 7 | +## Table of contents |
| 8 | + |
| 9 | +- [DeckDeckGo](#deckdeckgo) |
| 10 | + - [Table of contents](#table-of-contents) |
| 11 | + - [Features](#features) |
| 12 | + - [Starter kit extra features](#starter-kit-extra-features) |
| 13 | + - [Getting Started](#getting-started) |
| 14 | + - [Using DeckDeckGo from a CDN](#using-deckdeckgo-from-a-cdn) |
| 15 | + - [Install DeckDeckGo from npm](#install-deckdeckgo-from-npm) |
| 16 | + - [Framework integration](#framework-integration) |
| 17 | + - [Editing](#editing) |
| 18 | + - [Showcasing code](#showcasing-code) |
| 19 | + - [Navigation](#navigation) |
| 20 | + - [Extra features](#extra-features) |
| 21 | + - [Lazy loading](#lazy-loading) |
| 22 | + - [Theming](#theming) |
| 23 | + - [Talks](#talks) |
| 24 | + - [Send me your talks](#send-me-your-talks) |
| 25 | + - [Backstory](#backstory) |
| 26 | + - [License](#license) |
| 27 | + |
| 28 | +## Features |
| 29 | + |
| 30 | +* ✏️ Use HTML and CSS to create **without effort** your presentation |
| 31 | + |
| 32 | +* 📰 Use predefined **templates** |
| 33 | + |
| 34 | +* 🌈 **Style** your presentation quickly |
| 35 | + |
| 36 | +* 🌅 Create a **lightweight** presentation where images are **lazy** loaded |
| 37 | + |
| 38 | +* 📱 Ceate slides which looks good on **mobile** devices too |
| 39 | + |
| 40 | +* 🎁 Free and **open source** |
| 41 | + |
| 42 | +### Starter kit extra features |
| 43 | + |
| 44 | +[DeckDeckGo] offers also a [starter kit](https://github.com/fluster/deckdeckgo-starter) kit which lets you additionally: |
| 45 | + |
| 46 | +* 🚀 Bundles your presentation as a **Progressive Web App** |
| 47 | + |
| 48 | +* 🦄 Use **Ionic** components and icons to create the content or even add extra features |
| 49 | + |
| 50 | +*Note: [DeckDeckGo] will soon offer a CLI to let you initialize your presentation based on the starter kit more easily* |
| 51 | + |
| 52 | +## Getting Started |
| 53 | + |
| 54 | +Use [DeckDeckGo] directly in your project from a CDN using a simple script include or install it from [npm](https://www.npmjs.com/package/deckdeckgo) |
| 55 | + |
| 56 | +### Using DeckDeckGo from a CDN |
| 57 | + |
| 58 | +It's recommended to use [unpkg](https://unpkg.com/) to use the [DeckDeckGo] from a CDN. To do so, add the following include script in the main HTML file of your project: |
| 59 | + |
| 60 | +``` |
| 61 | +<script src="https://unpkg.com/deckdeckgo@latest/dist/deckdeckgo.js"></script> |
| 62 | +``` |
| 63 | + |
| 64 | +### Install DeckDeckGo from NPM |
| 65 | + |
| 66 | +Install [DeckDeckGo] in your project from [npm](https://www.npmjs.com/package/deckdeckgo) using the following command: |
| 67 | + |
| 68 | +```bash |
| 69 | +npm install deckdeckgo |
| 70 | +``` |
| 71 | + |
| 72 | +### Framework integration |
| 73 | + |
| 74 | +The [Stencil documentation](https://stenciljs.com/docs/overview) provide examples of framework integration for [Angular](https://stenciljs.com/docs/angular), [React](https://stenciljs.com/docs/react), [Vue](https://stenciljs.com/docs/vue) and [Ember](https://stenciljs.com/docs/ember). |
| 75 | + |
| 76 | +## Editing |
| 77 | + |
| 78 | +[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`. |
| 79 | + |
| 80 | +The slides [documentation](doc/slides/slides.md) display all templates and all options available for each slide. |
| 81 | + |
| 82 | +``` |
| 83 | +<deckgo-deck> |
| 84 | + <deckgo-slide-title> |
| 85 | + <h1 slot="title">My presentation title</h1> |
| 86 | + <p slot="content"> |
| 87 | + Hello World 🚀 |
| 88 | + </p> |
| 89 | + </deckgo-slide-title> |
| 90 | +</deckgo-deck> |
| 91 | +``` |
| 92 | + |
| 93 | +### Showcasing code |
| 94 | + |
| 95 | +[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. |
| 96 | + |
| 97 | +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). |
| 98 | + |
| 99 | +``` |
| 100 | +<deckgo-deck> |
| 101 | + <deckgo-slide-code src-file="https://raw.githubusercontent.com/fluster/deckdeckgo/master/src/components/slides/deckdeckgo-slide-code/deckdeckgo-slide-code.tsx"> |
| 102 | + <h1 slot="title">My code</h1> |
| 103 | + </deckgo-slide-title> |
| 104 | +</deckgo-deck> |
| 105 | +``` |
| 106 | + |
| 107 | +## Navigation |
| 108 | + |
| 109 | +Furthermore than the default swiping, the [DeckDeckGo] deck expose some asynchronous methods in case you would like to add navigation features to your presentation. |
| 110 | + |
| 111 | +These features are described in the separate [documentation](doc/features/navigation.md) about navigation. |
| 112 | + |
| 113 | +## Extra features |
| 114 | + |
| 115 | +Finally [DeckDeckGo] offers extra features, as for example a print feature or a full screen toggler, which could be added to your presentation too. |
| 116 | + |
| 117 | +These features are described in the separate [documentation](doc/features/extra.md) about extra features. |
| 118 | + |
| 119 | +## Lazy loading |
| 120 | + |
| 121 | +In order to lazy load the images of your presentation, provide their url using the attribute `data-src` instead of `src`. [DeckDeckGo] will then take care of loading them only when needed. |
| 122 | + |
| 123 | +``` |
| 124 | +<img data-src="https://deckdeckgo.com/assets/img/deckdeckgo.png"/> |
| 125 | +``` |
| 126 | + |
| 127 | +## Theming |
| 128 | + |
| 129 | +Theming is an ongoing improvement I'm currently working on. The already available options are described in the slides [documentation](doc/slides/slides.md). |
| 130 | + |
| 131 | +## Talks |
| 132 | + |
| 133 | +A collection of talks where [DeckDeckGo] was used: |
| 134 | + |
| 135 | +| Title | Event | Author and repo | Available online | |
| 136 | +| -------------------------- |:-----------------:|:-----------------:| ---------------:| |
| 137 | +| Ionic v4, web components, shadow dom and beyond | 2018/10/16 [Pantalks](https://www.meetup.com/fr-FR/Pantalks-tech-non-tech-talks-Panter-AG-Zurich/events/255430094/), Zürich | [Peterpeterparker](https://github.com/peterpeterparker/ionicv4-and-beyond) | | |
| 138 | +| Ionic v4 and web components | 2018/10/26 [Web Zürich October](https://www.meetup.com/fr-FR/Web-Zurich/events/255699446), Zürich | [Peterpeterparker](https://github.com/peterpeterparker/webzueri) | | |
| 139 | + |
| 140 | +### Send me your talks |
| 141 | + |
| 142 | +If you would publish online a talk you would have built with [DeckDeckGo], reach me out, I would be super duper happy to list these ❤️ |
| 143 | + |
| 144 | +## Backstory |
| 145 | + |
| 146 | +I had the opportunity to talk about Web Components and Ionic. While I was developing my presentation it came to my mind that I was not really following what I was about to present, that's why I wrapped up together [DeckDeckGo], this new tool to create lightweight presentation using HTML, Web Components and Ionic. |
| 147 | + |
| 148 | +## License |
| 149 | + |
| 150 | +MIT © [David Dal Busco ](mailto:[email protected]) |
| 151 | + |
| 152 | +[DeckDeckGo]: https://deckdeckgo.com |
0 commit comments