|
35 | 35 | Progress, |
36 | 36 | SpectacleLogo, |
37 | 37 | Slide, |
38 | | - Text |
| 38 | + Text, |
| 39 | + indentNormalizer |
39 | 40 | } = Spectacle; |
40 | 41 |
|
41 | 42 | import htm from 'https://unpkg.com/htm@^3?module'; |
|
46 | 47 | fonts: { |
47 | 48 | header: '"Open Sans Condensed", Helvetica, Arial, sans-serif', |
48 | 49 | text: '"Open Sans Condensed", Helvetica, Arial, sans-serif' |
49 | | - }, |
50 | | - space: { |
51 | | - headerMargin: '0' |
52 | 50 | } |
53 | 51 | }; |
54 | 52 | // SPECTACLE_CLI_THEME_END |
|
67 | 65 | // SPECTACLE_CLI_TEMPLATE_END |
68 | 66 |
|
69 | 67 | const formidableLogo = 'https://avatars2.githubusercontent.com/u/5078602?s=280&v=4'; |
70 | | - const cppCodeBlock = `#include <iostream> |
| 68 | + const cppCodeBlock = indentNormalizer(` |
| 69 | + #include <iostream> |
71 | 70 | #include <cstdlib> |
72 | 71 | #include <sstream> |
73 | 72 | #include <pthread.h> |
|
112 | 111 | } |
113 | 112 |
|
114 | 113 | return 0; |
115 | | - }`; |
| 114 | + }`); |
116 | 115 |
|
117 | 116 | const Presentation = () => html` |
118 | | - <${Deck} theme=${theme} template=${template}> |
| 117 | + <${Deck} theme=${theme} template=${template} transitionEffect="fade"> |
119 | 118 | <${Slide}> |
120 | 119 | <${FlexBox} height="100%"> |
121 | 120 | <${SpectacleLogo} size=${500} /> |
122 | 121 | </${FlexBox}> |
123 | 122 | </${Slide}> |
124 | 123 | <${Slide}> |
125 | 124 | <${FlexBox} height="100%" flexDirection="column"> |
126 | | - <${Heading} fontSize="150px">SPECTACLE</${Heading}> |
127 | | - <${Heading} fontSize="h2">A ReactJS Presentation Library</${Heading}> |
128 | | - <${Heading} color="primary" fontSize="h3">Where you can write your decks in JSX, Markdown, or MDX!</${Heading}> |
| 125 | + <${Heading} margin="0px" fontSize="150px">SPECTACLE</${Heading}> |
| 126 | + <${Heading} margin="0px" fontSize="h2">A ReactJS Presentation Library</${Heading}> |
| 127 | + <${Heading} margin="0px 32px" color="primary" fontSize="h3">Where you can write your decks in JSX, Markdown, or MDX!</${Heading}> |
129 | 128 | </${FlexBox}> |
130 | 129 | <${Notes}> |
131 | 130 | <p>Notes are shown in presenter mode. Open up localhost:3000/?presenterMode=true to see them.</p> |
132 | 131 | </${Notes}> |
133 | 132 | </${Slide}> |
134 | | - <${Slide}> |
| 133 | + <${Slide} transitionEffect="slide"> |
135 | 134 | <${Heading}>Code Blocks</${Heading}> |
136 | 135 | <${CodePane} fontSize=${18} language="cpp" autoFillHeight> |
137 | 136 | ${cppCodeBlock} |
|
167 | 166 | <${Text}>Double-size Grid Item</${Text}> |
168 | 167 | </${Box}> |
169 | 168 | </${Grid}> |
170 | | - <${Heading}>Create Grids in Spectacle</${Heading}> |
171 | | - <${Grid} gridTemplateColumns="1fr 1fr 1fr" gridTemplateRows="1fr 1fr 1fr" alignItems="center" justifyContent="center" gridRowGap=${15}> |
172 | | - ${Array(9).fill('').map((_, index) => html`<${FlexBox} key=${`formidable-logo-${index}`} flex=${1}> |
| 169 | + <${Grid} gridTemplateColumns="1fr 1fr 1fr" gridTemplateRows="1fr 1fr 1fr" alignItems="center" justifyContent="center" gridRowGap=${1}> |
| 170 | + ${Array(9).fill('').map((_, index) => html`<${FlexBox} paddingTop=${0} key=${`formidable-logo-${index}`} flex=${1}> |
173 | 171 | <${Image} src=${formidableLogo} width=${100} /> |
174 | 172 | </${FlexBox}>`)} |
175 | 173 | </${Grid}> |
|
0 commit comments