Fix Astro configuration error and secure Appwrite integration

This commit is contained in:
SpaghetGaming committed 2025-08-14 13:16:53 -04:00
1 parent 39eba48efd
commit 773e8ebaeb
7 files changed
+27 -7

No files matched your search

+1 -3
View File
@@ -26,9 +26,7 @@ import Container from "@components/Container.astro"
<div class="grid grid-cols-1 sm:grid-cols-2 gap-3">
<div class="flex flex-col items-center sm:items-start">
<a href="/" class="flex gap-1 w-fit font-semibold text-current hover:text-black dark:hover:text-white transition-colors duration-300 ease-in-out">
<svg class="size-6 fill-current">
<use href="/brand.svg#brand"/>
</svg>
<img src="https://appdev.spaghet.io/v1/storage/buckets/689cda7900102e12abf2/files/689d265e0036955a618d/view?project=689783c90022d294b15c" alt="Logo" class="size-6" />
{SITE.TITLE}
</a>
</div>
+1 -3
View File
@@ -11,9 +11,7 @@ import Container from "@components/Container.astro"
<div class="relative h-full w-full">
<div class="absolute left-0 top-1/2 -translate-y-1/2 flex gap-1 font-semibold">
<a href="/" class="flex gap-1 text-current hover:text-spaghetti-brown dark:hover:text-spaghetti-brown transition-colors duration-300 ease-in-out">
<svg class="size-6 fill-current">
<use href="/brand.svg#brand"></use>
</svg>
<img src="${import.meta.env.APPWRITE_ENDPOINT}/v1/storage/buckets/${import.meta.env.APPWRITE_BUCKET_ID}/files/689d265e0036955a618d/view?project=${import.meta.env.APPWRITE_PROJECT_ID}" alt="Logo" class="size-6" />
<div>
{SITE.TITLE}
</div>
+9
View File
@@ -0,0 +1,9 @@
import { Client, Storage } from "appwrite";
const client = new Client();
client
.setEndpoint(import.meta.env.APPWRITE_ENDPOINT) // Your Appwrite endpoint
.setProject(import.meta.env.APPWRITE_PROJECT_ID); // Your Project ID
export const storage = new Storage(client);
+1
View File
@@ -79,6 +79,7 @@ const stack = [
<div class="animate absolute h-full w-full flex items-center justify-center">
<div class='relative w-full h-full flex items-center justify-center'>
<div class='p-5 text-center'>
<img src="${import.meta.env.APPWRITE_ENDPOINT}/v1/storage/buckets/${import.meta.env.APPWRITE_BUCKET_ID}/files/689d27a400194d326f69/view?project=${import.meta.env.APPWRITE_PROJECT_ID}" alt="Quinn Marvin" class="rounded-full w-32 h-32 mx-auto mb-4 border-4 border-spaghetti-red" />
<p class='animated text-lg md:text-xl lg:text-2xl font-semibold opacity-75 text-spaghetti-brown'>
Hello, I am Quinn Marvin
</p>