diff --git a/src/pages/index.astro b/src/pages/index.astro
index 6c26ba5..f4b91a9 100644
--- a/src/pages/index.astro
+++ b/src/pages/index.astro
@@ -6,6 +6,7 @@ import Icon from '../components/Icon.astro';
import { SITE_DESCRIPTION, SITE_TITLE } from '../consts';
+import SkillCard from '../components/skillCard.astro'
import { desc } from "drizzle-orm";
import { drizzle } from "drizzle-orm/d1";
import { GuestLog } from "../schema";
@@ -21,9 +22,11 @@ if (Astro.request.method === 'POST') {
console.log(formData);
const name = formData.get('name');
const message = formData.get('message');
+ const website_link = formData.get('website_link');
if (
typeof name === 'string' &&
+ typeof website_link === 'string' &&
typeof message === 'string' &&
name !== "" &&
message !== ""
@@ -36,16 +39,21 @@ if (Astro.request.method === 'POST') {
await db.insert(GuestLog).values([{
name : name,
message : message,
+ website_link : website_link,
date_viewed : new Date(),
}]);
}
}
-
-const guest_logs = await db
+let guest_logs : {id: number; name: string; message: string | null; date: Date;}[] = [];
+try {
+guest_logs = await db
.select()
.from(GuestLog)
- .orderBy(desc(GuestLog.date));
+ .orderBy(GuestLog.date);
+} catch (err) {
+ console.log(err);
+}
guest_logs.forEach(log => {
console.log(log)
@@ -60,28 +68,99 @@ guest_logs.forEach(log => {
+
+ Hello!!, im sirlilpanda
+
+
+ About me
+
+ im an insane computer engineer who has to many hobbies and projects for me to actually work on.
+ That is just the best way to describe me you think of a hobby ive probably dabbled in it.
+
+
guest book
- sign the guest book
+ sign the guest book
+
+
+
+
+
+
+
+
+