From 0619a4efff7793803e0ee8b271cd2d0162d6981c Mon Sep 17 00:00:00 2001 From: sirlilpanda Date: Sun, 22 Mar 2026 23:41:24 +1300 Subject: [PATCH] now shows the 88x31 buttons added website link to the forum and updated styles --- src/pages/index.astro | 89 ++++++++++++++++++++++++++++++++++++++++--- 1 file changed, 84 insertions(+), 5 deletions(-) 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

    { guest_logs.map((log) => (
  • -

    [{log.date.toDateString()}] {log.name} : {log.message}

    +

    [{log.date.toDateString()}] {log.name} + {log.website_link? ({log.website_link}) : ""} + : {log.message}

  • )) }
-

sign the guest book

+

sign the guest book

+ + +
+ + + check out a man driven to insanity + + + + Come Chat With Us! + +