From 332051138391a86325e4e780895aa4148f81c5d5 Mon Sep 17 00:00:00 2001 From: Kyren223 Date: Sat, 10 Oct 2026 04:43:44 +0300 Subject: Website stuff, mostly done, needs finishing touches that I am too lazy to do --- website.templ | 86 +++++++++++++++++++++++++++++++++++++++++++++++------------ 1 file changed, 69 insertions(+), 17 deletions(-) (limited to 'website.templ') diff --git a/website.templ b/website.templ index 733aca1..10fd1bd 100644 --- a/website.templ +++ b/website.templ @@ -96,7 +96,12 @@ templ TerminalBorder(header string, footer string, extra string) { } templ CopyIcon() { - + + @IconCopy("text-[#ffffff]") + + } templ TerminalBorderWithCopy(header string, footer string, extra string, text string, href string, showLabel bool) { @@ -141,7 +146,7 @@ templ Nav(path string) { { path } @NavLink("/", "home") - for _, dir := range []string{"projects", "info", "blogs"} { + for _, dir := range []string{"projects", "blogs"} { @NavLink("/"+dir, dir) } @NavLink("/shell", "shell") @@ -247,19 +252,6 @@ func footerClass(connected bool) string { return style } -templ InfoPage(style Style) { - @TerminalLayout(style, "/home/kyren/info.md") { - @TerminalStack(false, "") { - @TerminalBorder("Info", "", "") { - - $ fastfetch - @Fastfetch(fetchRows) - - } - } - } -} - type Project struct { Slug string Title string @@ -416,6 +408,18 @@ templ IconGit(color string) { } } +templ IconCheckmark(color string) { + @Icon(color) { + + } +} + +templ IconCopy(color string) { + @Icon(color) { + + } +} + templ IconGithub(color string) { @Icon(color) { @@ -557,7 +561,7 @@ templ ScrollBox(extra string) { } templ BlogsPage(style Style, blogs []Blog) { - @TerminalLayout(style, "blogs") { + @TerminalLayout(style, "/home/kyren/blogs") { @TerminalBorder("Shell", "", "mb-[1rem]") { $ ls -lh ~/blogs } @@ -751,7 +755,7 @@ templ Icon(color string) { } templ BlogPage(style Style, blog Blog, prev *Blog, next *Blog) { - @TerminalLayout(style, blog.Title) { + @TerminalLayout(style, "/home/kyren/blogs/"+blog.Slug) { @ScrollBox("") { @BlogItem("", blog, "mb-[1rem]")
@@ -774,3 +778,51 @@ templ BlogNav(label string, blog *Blog, extra string) {
} } + +templ ShellPage(style Style) { + @TerminalLayout(style, "/bin/bash") { + @ScrollBox("") { +
+
+ @ShellEntry("fastfetch", Fastfetch(fetchRows)) +
+
+ $ +
+ + +
+
+
+ } + + } +} + +templ ShellLines(lines []string) { +
+ for _, line := range lines { + { line } + } +
+} + +templ ShellEntry(cmd string, output templ.Component) { + @TerminalBorder("$ "+cmd, "", "") { +
+ @output +
+ } +} + +templ ShellText(text string) { +

{ text }

+} + +templ ShellHelp(names []string) { +
+ for _, name := range names { + { name } + } +
+} -- cgit v1.3.1