diff --git a/frontend/src/lib/editor/AIModal.svelte b/frontend/src/lib/editor/AIModal.svelte new file mode 100644 index 0000000..f38f367 --- /dev/null +++ b/frontend/src/lib/editor/AIModal.svelte @@ -0,0 +1,51 @@ + + + +
+ (open = true)}>✨ Generate with AI +
+ +{#if open} +
+
+

Generate Quiz with AI

+ +
+ + +
+
+
+{/if} diff --git a/frontend/src/lib/editor/sidebar.svelte b/frontend/src/lib/editor/sidebar.svelte index 7c0b021..097965d 100644 --- a/frontend/src/lib/editor/sidebar.svelte +++ b/frontend/src/lib/editor/sidebar.svelte @@ -13,6 +13,7 @@ SPDX-License-Identifier: MPL-2.0 import { getLocalization } from '$lib/i18n'; import AddNewQuestionPopup from '$lib/editor/AddNewQuestionPopup.svelte'; import BrownButton from '$lib/components/buttons/brown.svelte'; + import AIModal from '$lib/editor/AIModal.svelte'; import { fade } from 'svelte/transition'; const { t } = getLocalization(); @@ -74,7 +75,7 @@ SPDX-License-Identifier: MPL-2.0
-
+
(reorder_mode = !reorder_mode)} >{#if reorder_mode}{$t('editor.disable_reorder')}{:else}{$t( @@ -82,6 +83,9 @@ SPDX-License-Identifier: MPL-2.0 )}{/if}
+
+ +