From 378591dfb26fea3b5988cce48f3d4e62fc3c910b Mon Sep 17 00:00:00 2001 From: HotSocket Date: Thu, 4 Sep 2025 00:37:55 -0500 Subject: [PATCH] about window :) --- src/desktop.ts | 13 +++++++++++-- src/windowing_mod.ts | 2 +- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/src/desktop.ts b/src/desktop.ts index b5cb302..41e66dc 100644 --- a/src/desktop.ts +++ b/src/desktop.ts @@ -1,8 +1,16 @@ -import { Body, Button, Column, Input, Row } from "./domlink.ts"; +import { Body, Button, Column, Input, Link, Row } from "./domlink.ts"; import { resolveMiniDoc } from "./support/slingshot.ts"; import { Window } from "./windowing_mod.ts"; import { Feed } from "./windows/bluesky/feed.ts"; +const about = new Window("About", 150).with( + new Column().with( + new Row().with(`"Domlink"/toybox project by `, new Link("@hotsocket.fyi").to("https://bsky.app/profile/hotsocket.fyi")), + new Link("Source code here!").to("https://tangled.sh/@hotsocket.fyi/domlink"), + "Copyrighted by default(?), no license chosen or anything atp." + ) +).closable(false); // haha + const userInput = new Input(); const authorFeedWindowCreator = new Row().with( userInput, @@ -14,9 +22,10 @@ const authorFeedWindowCreator = new Row().with( }) ); const instantiator = new Column().with( - authorFeedWindowCreator + authorFeedWindowCreator, ).style((x) => x.maxWidth = "100ch"); Body.with( instantiator, + about ); diff --git a/src/windowing_mod.ts b/src/windowing_mod.ts index 64e0fb3..afd98f2 100644 --- a/src/windowing_mod.ts +++ b/src/windowing_mod.ts @@ -27,7 +27,7 @@ export class Window extends Container { titleBar: TitleBar; content = new Container().class("LWindowContent"); - constructor(title: string = "New Window", width: number = 400, height: number = 300) { + constructor(title: string = "New Window", height: number = 300, width: number = 400) { super(); this.class("LWindow"); this.titleBar = new TitleBar(title, ()=>{this.wraps.remove();}); -- 2.51.2