diff options
author | Indrajith K L | 2024-02-05 04:15:02 +0530 |
---|---|---|
committer | Indrajith K L | 2024-02-05 04:15:02 +0530 |
commit | f05a472585b2506da21aed71f0252b2d4c04a221 (patch) | |
tree | 4f65a3801f29250a049f3cc5cd2ac9c0a41d78f9 /src/config.ts | |
download | react-hooks-training-f05a472585b2506da21aed71f0252b2d4c04a221.tar.gz react-hooks-training-f05a472585b2506da21aed71f0252b2d4c04a221.tar.bz2 react-hooks-training-f05a472585b2506da21aed71f0252b2d4c04a221.zip |
React Slides
* Adds useState
* State
* useEffect
* Side Effects
Diffstat (limited to 'src/config.ts')
-rw-r--r-- | src/config.ts | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/src/config.ts b/src/config.ts new file mode 100644 index 0000000..0461e3d --- /dev/null +++ b/src/config.ts @@ -0,0 +1,52 @@ +import Markdown from 'reveal.js/plugin/markdown/markdown' +import Highlight from 'reveal.js/plugin/highlight/highlight' +import Math from 'reveal.js/plugin/math/math' +import Notes from 'reveal.js/plugin/notes/notes' + +import { registerLanguages } from '@languages' + +const options: Reveal.Options = { + // presentation size respecting aspect ratio + width: 960, + height: 700, + // content padding + margin: 0.04, + // smallest and largest possible scale + minScale: 0.2, + maxScale: 2.0, + // plugins + plugins: [Markdown, Highlight, Math.KaTeX, Notes], + // syntax highlight options + highlight: { + // add new languages + beforeHighlight: registerLanguages, + // disable automatic syntax highlighting + highlightOnLoad: false, + }, + // slide controls + controls: true, + // slide progress bar + progress: true, + // slide transition + transition: 'slide', + // bring your own layout + disableLayout: false, + // display mode used to show slides + display: 'block', + // center slides on the screen + center: true, + // auto-animate duration + autoAnimateDuration: 1, + // auto-animate easing + autoAnimateEasing: 'ease', + // animate unmatched elements + autoAnimateUnmatched: true, + // hide cursor + hideInactiveCursor: true, + // time before cursor is hidden (ms) + hideCursorTime: 5000, + // show current slide + hash: true, +} + +export default options |