From 9b03d2790b8b8db1b5a6755b6130f37e5f7f2455 Mon Sep 17 00:00:00 2001 From: Kyren223 Date: Thu, 8 Oct 2026 19:44:46 +0300 Subject: WIP --- website.templ | 352 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 342 insertions(+), 10 deletions(-) (limited to 'website.templ') diff --git a/website.templ b/website.templ index face9f9..1f4f636 100644 --- a/website.templ +++ b/website.templ @@ -19,18 +19,97 @@ templ HeadComponent(title string, description string) { + + + { children... } } +templ BlogItem(header string, blog Blog, extra string) { + @TerminalBorder(header, blog.Date.Format("January 2, 2006"), extra) { + + +

+ { blog.Title } +

+

{ blog.Desc }

+
+
+ } +} + +templ Link(href string, newTab bool) { + + { children... } + +} + +templ TerminalStack(joined bool, extra string) { +
*+*]:mt-[-0.1rem]", joined), templ.KV("gap-4", !joined), extra }> + { children... } +
+} + +templ TerminalBorder(header string, footer string, extra string) { +
+ { header } + { footer } + { children... } +
+} + +templ CopyIcon() { + +} + +templ TerminalBorderWithCopy(header string, footer string, extra string, text string, href string, showLabel bool) { + @TerminalBorder(header, footer, extra) { +
+ if href != "" { + + { children... } + + } else { + + { children... } + + } + + if showLabel { + + } + + +
+ } +} + +templ CopyPre(text string, preClass string) { + +} + templ NavLink(href string, label string) { { label } } -templ NavComponent(path string) { -