From f05a472585b2506da21aed71f0252b2d4c04a221 Mon Sep 17 00:00:00 2001 From: Indrajith K L Date: Mon, 5 Feb 2024 04:15:02 +0530 Subject: React Slides * Adds useState * State * useEffect * Side Effects --- src/lib/components/code.svelte | 22 ++++++++++ src/lib/components/fit.svelte | 13 ++++++ src/lib/components/index.ts | 25 +++++++++++ src/lib/components/markdown.svelte | 13 ++++++ src/lib/components/media.svelte | 22 ++++++++++ src/lib/components/notes.svelte | 3 ++ src/lib/components/presentation.svelte | 77 ++++++++++++++++++++++++++++++++++ src/lib/components/slide.svelte | 48 +++++++++++++++++++++ src/lib/components/stack.svelte | 3 ++ src/lib/components/step.svelte | 53 +++++++++++++++++++++++ src/lib/components/stretch.svelte | 13 ++++++ src/lib/components/vertical.svelte | 3 ++ 12 files changed, 295 insertions(+) create mode 100644 src/lib/components/code.svelte create mode 100644 src/lib/components/fit.svelte create mode 100644 src/lib/components/index.ts create mode 100644 src/lib/components/markdown.svelte create mode 100644 src/lib/components/media.svelte create mode 100644 src/lib/components/notes.svelte create mode 100644 src/lib/components/presentation.svelte create mode 100644 src/lib/components/slide.svelte create mode 100644 src/lib/components/stack.svelte create mode 100644 src/lib/components/step.svelte create mode 100644 src/lib/components/stretch.svelte create mode 100644 src/lib/components/vertical.svelte (limited to 'src/lib/components') diff --git a/src/lib/components/code.svelte b/src/lib/components/code.svelte new file mode 100644 index 0000000..255bf7e --- /dev/null +++ b/src/lib/components/code.svelte @@ -0,0 +1,22 @@ + + +
+  
+
+  
+
diff --git a/src/lib/components/fit.svelte b/src/lib/components/fit.svelte new file mode 100644 index 0000000..8772061 --- /dev/null +++ b/src/lib/components/fit.svelte @@ -0,0 +1,13 @@ + + + + + diff --git a/src/lib/components/index.ts b/src/lib/components/index.ts new file mode 100644 index 0000000..392800d --- /dev/null +++ b/src/lib/components/index.ts @@ -0,0 +1,25 @@ +import Code from './code.svelte' +import FitText from './fit.svelte' +import Markdown from './markdown.svelte' +import Media from './media.svelte' +import Notes from './notes.svelte' +import Presentation from './presentation.svelte' +import Slide from './slide.svelte' +import Stack from './stack.svelte' +import Step from './step.svelte' +import Stretch from './stretch.svelte' +import Vertical from './vertical.svelte' + +export { + Code, + FitText, + Markdown, + Media, + Notes, + Presentation, + Slide, + Stack, + Step, + Stretch, + Vertical, +} diff --git a/src/lib/components/markdown.svelte b/src/lib/components/markdown.svelte new file mode 100644 index 0000000..204815b --- /dev/null +++ b/src/lib/components/markdown.svelte @@ -0,0 +1,13 @@ + + +{#if file} +
+{:else} +
+
+ +
+
+{/if} diff --git a/src/lib/components/media.svelte b/src/lib/components/media.svelte new file mode 100644 index 0000000..ffa2633 --- /dev/null +++ b/src/lib/components/media.svelte @@ -0,0 +1,22 @@ + + + + + diff --git a/src/lib/components/notes.svelte b/src/lib/components/notes.svelte new file mode 100644 index 0000000..198e18d --- /dev/null +++ b/src/lib/components/notes.svelte @@ -0,0 +1,3 @@ + diff --git a/src/lib/components/presentation.svelte b/src/lib/components/presentation.svelte new file mode 100644 index 0000000..c11010a --- /dev/null +++ b/src/lib/components/presentation.svelte @@ -0,0 +1,77 @@ + + +
+
+ +
+
diff --git a/src/lib/components/slide.svelte b/src/lib/components/slide.svelte new file mode 100644 index 0000000..439d312 --- /dev/null +++ b/src/lib/components/slide.svelte @@ -0,0 +1,48 @@ + + +
+ +
diff --git a/src/lib/components/stack.svelte b/src/lib/components/stack.svelte new file mode 100644 index 0000000..a03d205 --- /dev/null +++ b/src/lib/components/stack.svelte @@ -0,0 +1,3 @@ +
+ +
diff --git a/src/lib/components/step.svelte b/src/lib/components/step.svelte new file mode 100644 index 0000000..13c2f7c --- /dev/null +++ b/src/lib/components/step.svelte @@ -0,0 +1,53 @@ + + +

+ +

diff --git a/src/lib/components/stretch.svelte b/src/lib/components/stretch.svelte new file mode 100644 index 0000000..be808d5 --- /dev/null +++ b/src/lib/components/stretch.svelte @@ -0,0 +1,13 @@ + + + + + diff --git a/src/lib/components/vertical.svelte b/src/lib/components/vertical.svelte new file mode 100644 index 0000000..fb20c0a --- /dev/null +++ b/src/lib/components/vertical.svelte @@ -0,0 +1,3 @@ +
+ +
-- cgit v1.2.3