diff --git a/astro.config.mjs b/astro.config.mjs index b67de38..c0ea3a4 100644 --- a/astro.config.mjs +++ b/astro.config.mjs @@ -1,4 +1,4 @@ -import { defineConfig } from "astro/config" +import { defineConfig, envField } from "astro/config" import mdx from "@astrojs/mdx" import sitemap from "@astrojs/sitemap" import tailwind from "@astrojs/tailwind" @@ -10,5 +10,25 @@ export default defineConfig({ site: "https://spaghet.io", integrations: [mdx(), sitemap(), solidJs(), tailwind({ applyBaseStyles: false })], output: "server", - adapter: node({ mode: "ssr" }) + adapter: node({ mode: "ssr" }), + env: { + schema: { + VITE_APPWRITE_ENDPOINT: envField.string({ context: "server", access: "public" }), + VITE_APPWRITE_PROJECT_ID: envField.string({ context: "server", access: "public" }), + VITE_APPWRITE_BUCKET_ID: envField.string({ context: "server", access: "public" }), + VITE_APPWRITE_DATABASE_ID: envField.string({ context: "server", access: "public" }), + VITE_APPWRITE_BLOG_COLLECTION_ID: envField.string({ context: "server", access: "public" }), + VITE_APPWRITE_PROJECTS_COLLECTION_ID: envField.string({ context: "server", access: "public" }), + VITE_APPWRITE_WORK_COLLECTION_ID: envField.string({ context: "server", access: "public" }), + VITE_APPWRITE_LEGAL_COLLECTION_ID: envField.string({ context: "server", access: "public" }), + PUBLIC_APPWRITE_ENDPOINT: envField.string({ context: "client", access: "public" }), + PUBLIC_APPWRITE_PROJECT_ID: envField.string({ context: "client", access: "public" }), + PUBLIC_APPWRITE_BUCKET_ID: envField.string({ context: "client", access: "public" }), + PUBLIC_APPWRITE_DATABASE_ID: envField.string({ context: "client", access: "public" }), + PUBLIC_APPWRITE_BLOG_COLLECTION_ID: envField.string({ context: "client", access: "public" }), + PUBLIC_APPWRITE_PROJECTS_COLLECTION_ID: envField.string({ context: "client", access: "public" }), + PUBLIC_APPWRITE_WORK_COLLECTION_ID: envField.string({ context: "client", access: "public" }), + PUBLIC_APPWRITE_LEGAL_COLLECTION_ID: envField.string({ context: "client", access: "public" }), + } + } }) diff --git a/public/favicon.png b/public/favicon.png new file mode 100644 index 0000000..fd9b4d2 Binary files /dev/null and b/public/favicon.png differ diff --git a/public/favicon.svg b/public/favicon.svg index f157bd1..f5d2e16 100644 --- a/public/favicon.svg +++ b/public/favicon.svg @@ -1,9 +1,5 @@ - - - - + + + + + \ No newline at end of file diff --git a/public/stack.svg b/public/stack.svg index 25864ce..ba214a3 100644 --- a/public/stack.svg +++ b/public/stack.svg @@ -23,5 +23,8 @@ + + + \ No newline at end of file diff --git a/src/components/ArrowCard.tsx b/src/components/ArrowCard.tsx index 9ade68d..1c7322d 100644 --- a/src/components/ArrowCard.tsx +++ b/src/components/ArrowCard.tsx @@ -9,34 +9,34 @@ type Props = { export default function ArrowCard({entry, pill, collection}: Props) { return ( - -
+ +
{pill && -
+
{collection === "blog" ? "post" : "project"}
} -
+
{formatDate(entry.date)}
-
+
{entry.title}
-
+
{entry.summary}
    {entry.tags.map((tag:string) => ( -
  • +
  • {tag}
  • ))}
- + diff --git a/src/components/Blog.tsx b/src/components/Blog.tsx index 87b9199..8e90c37 100644 --- a/src/components/Blog.tsx +++ b/src/components/Blog.tsx @@ -38,7 +38,7 @@ export default function Blog({ data, tags }: Props) {
-
Filter
+
Filter
{/* Tag Filter */}
Tags
@@ -46,7 +46,7 @@ export default function Blog({ data, tags }: Props) { {(tag) => (
  • -