From 9515a21dc6f6bedbbd3ee6dce6cab4683c679b34 Mon Sep 17 00:00:00 2001 From: DecDuck Date: Tue, 11 Mar 2025 12:20:56 +1100 Subject: [PATCH] feat: move article creation into a modal --- components/NewsArticleCreate.vue | 390 ++++++++++++++++--------------- components/NewsDirectory.vue | 2 +- drop-base | 2 +- 3 files changed, 202 insertions(+), 192 deletions(-) diff --git a/components/NewsArticleCreate.vue b/components/NewsArticleCreate.vue index f5d0b93..661a7ff 100644 --- a/components/NewsArticleCreate.vue +++ b/components/NewsArticleCreate.vue @@ -6,212 +6,224 @@ @click="isCreateExpanded = !isCreateExpanded" class="inline-flex items-center gap-x-2 px-4 py-2 rounded-lg bg-blue-600 text-white font-semibold font-display shadow-sm transition-all duration-200 hover:bg-blue-500 hover:scale-105 hover:shadow-blue-500/25 hover:shadow-lg active:scale-95" > - New Article - -
-

Create New Article

-
-
- - -
+ +

+ Create New Article +

+ +
+ + +
-
- - -
+
+ + +
-
- -
- -
- -
- -
- -
- Editor - -
- - -
- Preview -
-
-
-
-
-
-

- Use the shortcuts above or write Markdown directly. Supports **bold**, *italic*, [links](url), and more. -

-
- -
- - -
- -
- -
- - {{ tag }} - - -
-
- +
+ +
+ +
-
-
-
+

+ Use the shortcuts above or write Markdown directly. Supports + **bold**, *italic*, [links](url), and more. +

+
+ +
+ + +
+ +
+ +
+ - {{ isSubmitting ? 'Creating...' : 'Create Article' }} + {{ tag }} + + +
+
+ +
- -
- +
+ +
+ diff --git a/components/NewsDirectory.vue b/components/NewsDirectory.vue index d4e0572..c95ddca 100644 --- a/components/NewsDirectory.vue +++ b/components/NewsDirectory.vue @@ -58,7 +58,7 @@