diff --git a/frontend/src/routes/create-goals/+page.svelte b/frontend/src/routes/create-goals/+page.svelte index 49d79cbe..7f0353f8 100644 --- a/frontend/src/routes/create-goals/+page.svelte +++ b/frontend/src/routes/create-goals/+page.svelte @@ -17,7 +17,7 @@ }; let selectAll = false; - let loadingGenerate = false; + let goalError = false; const toggleAll = () => { @@ -49,17 +49,64 @@ console.log(error); } } + + let loadingGenerate = false; + + function handleClick() { + loadingGenerate = true; + + // Simulate an async operation + setTimeout(() => { + loadingGenerate = false; + }, 2000); + } + + import { blur } from 'svelte/transition'; + let isOpen = false; + + function toggleDropdown() { + isOpen = !isOpen; + }
-
- +
+
+ + + +
+
- + {#if loadingGenerate}
@@ -79,320 +126,307 @@
-
-
-
-

Specific

-
- -
-
+ +
-
-
-
-

Measurable

-
- - +
+

Measurable

+
+ +
-
-
+ +
- -
-
-
-

Attainable

-
- -
-
-
+ +
+ +
+
- -
-
-
-

Relevant

-
- -
-
-
+ + + + + - -
-
-
-

Time-Bound

-
- -
-
-
+ + + + + -
-
-
-
- {#if goal.days_of_week} -
-

Days

+
+
+
+
+ {#if goal.days_of_week} +
+

Days

-
- + + + + +
+ +
-
- - {/if} -
-
+ + {/if} + + +
- - -
-
-
-

Time

-
- -
-
-
+ + + + -
-
-
-

Date

-
- -
-
-
-
- +
+ + + +
+ +
- - -
-
+
+
+
+ +
+
+
+

Measurable

+
+
+ AchievAIm's Measurable suggestion +
+
+
+
+
+ + +
+
+
+

Attainable

+
+
+ AchievAIm's Attainable suggestion +
+
+
+
+
+ + +
+
+
+

Relevant

+
+
+ AchievAIm's Relevant suggestion +
+
+
+
+
+ + +
+
+
+

Time-Bound

+
+
+ AchievAIm's Time-Bound suggestion +
+
+
+
+
+ +
+
+
+
+ {#if goal.days_of_week} +
+

Days

+
+ + {/if} +
+
+
+
+ +
+
+
+

Date

+
+ +
+
+
+
+ +
+
+
+

Time

+
+ +
+
+
+
+