Skip to content

Commit 774e9c6

Browse files
Add about page
1 parent f25f2a2 commit 774e9c6

File tree

3 files changed

+61
-2
lines changed

3 files changed

+61
-2
lines changed

src/build.gleam

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ pub fn main() {
1717
let build =
1818
ssg.new("./priv")
1919
|> ssg.add_static_route("/", index.view())
20+
|> ssg.add_static_route("/about", about.view())
2021
|> ssg.add_static_dir("./static")
2122
// |> ssg.add_static_route("/blog", blog.view(posts.all()))
2223
// |> ssg.add_dynamic_route("/blog", posts, post.view)

src/website/page/about.gleam

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
import lustre/attribute.{attribute}
2+
import lustre/element/html
3+
import website/component
4+
5+
pub fn view() {
6+
component.page("About", [
7+
html.div([attribute.class("mx-auto max-w-3xl")], [
8+
html.h1(
9+
[attribute.class("text-3xl font-bold leading-tight text-center")],
10+
[html.text("About me")],
11+
),
12+
]),
13+
html.div(
14+
[attribute.class("mx-auto max-w-4xl py-8 leading-8")],
15+
[
16+
html.p([attribute.class("text-xl")], [
17+
html.span([attribute.class("text-2xl font-bold")], [
18+
html.text(
19+
"I'm Gears; a programmer, Minecraft enthusiast, YouTuber and nerd.",
20+
),
21+
]),
22+
html.br([]),
23+
html.br([]),
24+
html.text(
25+
"The programming language I know most about, and therefore use the most, is JavaScript/TypeScript. However, I also know Ruby, MCFunction and Golang, and dabble in Rust and Python.",
26+
),
27+
html.br([]),
28+
html.text("I make "),
29+
html.a(
30+
[
31+
attribute.target("_blank"),
32+
attribute.class("text-blue-500 underline"),
33+
attribute.href("https://youtube.com/@Gearsdatapacks"),
34+
],
35+
[html.text("YouTube videos")],
36+
),
37+
html.text(
38+
" about my ongoing struggle with Minecraft datapacks, as well as other fun Minecraft content.",
39+
),
40+
html.br([]),
41+
html.text(
42+
"Projects I've made include a programming language with Minecraft datapacks (not alone), and a Datapack Package Manager.",
43+
),
44+
html.br([]),
45+
html.text("More information on the "),
46+
html.a(
47+
[
48+
attribute.class("font-bold hover:underline"),
49+
attribute.href("/projects/"),
50+
],
51+
[html.text("projects")],
52+
),
53+
html.text("page."),
54+
]),
55+
],
56+
),
57+
])
58+
}

src/website/page/index.gleam

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,14 @@ import website/component
44

55
pub fn view() {
66
component.page("Home", [
7-
html.div([attribute.class("mx-auto max-w-3xl px-4 sm:px-6 lg:px-8")], [
7+
html.div([attribute.class("mx-auto max-w-3xl")], [
88
html.h1(
99
[attribute.class("text-3xl font-bold leading-tight text-center")],
1010
[html.text("Hello and welcome to my website!")],
1111
),
1212
]),
1313
html.div(
14-
[attribute.class("mx-auto max-w-3xl px-4 sm:px-6 lg:px-8 py-8 leading-8")],
14+
[attribute.class("mx-auto max-w-4xl py-8 leading-8")],
1515
[
1616
html.p([attribute.class("text-xl")], [
1717
html.text("I am Gears, a software developer and Minecraft YouTuber."),

0 commit comments

Comments
 (0)