-
-
-
-
-
+ Prompt Catalog - Edit Prompt
-
-
-
-
-
+
+
-
-
+
+
-
+
-
+
-
-
-
+ }
+
+
diff --git a/src/pages/index.astro b/src/pages/index.astro
index 31e2af4..4f7813c 100644
--- a/src/pages/index.astro
+++ b/src/pages/index.astro
@@ -16,10 +16,10 @@ const allTags = Array.from(
).sort();
---
-
+
-
+
+
-
+
-
-
-
+
+ const url = URL.createObjectURL(blob);
+ const link = document.createElement('a');
+ link.href = url;
+ link.download = selectedIds.length > 0 ? 'selected-prompts.json' : 'all-prompts.json';
+ link.click();
+ URL.revokeObjectURL(url);
+ });
+
+
diff --git a/src/pages/edit.astro b/src/pages/edit.astro
index ba20cf6..af23999 100644
--- a/src/pages/edit.astro
+++ b/src/pages/edit.astro
@@ -1,160 +1,154 @@
---
-import "../styles/global.css";
+import MainLayout from '../layouts/MainLayout.astro';
import Sidebar from "../components/SidebarEdit.astro";
const supabaseUrl = import.meta.env.PUBLIC_SUPABASE_URL;
const supabaseKey = import.meta.env.PUBLIC_SUPABASE_ANON_KEY;
---
-
-
-
+
+
+
+
-
+
+
+ >
- Prompt Catalog - Add New Prompt
-Add a new AI prompt to the catalog
-Prompt Catalog - Edit Prompt
+Edit an existing AI prompt in the catalog
+
-
-
-
- Loading...
-
+
+
+
+ Loading...
+ Prompt Catalog
-Explore and filter AI prompts
+Prompt Catalog
+Save and explore AI prompts