Skip to content

Commit 8f4d0b4

Browse files
Format
1 parent a885c54 commit 8f4d0b4

File tree

6 files changed

+93
-77
lines changed

6 files changed

+93
-77
lines changed

src/website/component.gleam

+1-1
Original file line numberDiff line numberDiff line change
@@ -63,5 +63,5 @@ pub fn text_page(
6363
}
6464

6565
pub fn dangerous_html(html: String) -> Element(a) {
66-
html.span([attribute.attribute("dangerous-unescaped-html", html)],[])
66+
html.span([attribute.attribute("dangerous-unescaped-html", html)], [])
6767
}

src/website/component/footer.gleam

+25-5
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,31 @@ type Social {
88
}
99

1010
const socials = [
11-
Social(icon: "youtube.png", name: "YouTube", url: "https://youtube.com/@GearsDatapacks"),
12-
Social(icon: "github.png", name: "Github", url: "https://github.com/GearsDatapacks"),
13-
Social(icon: "bluesky.svg", name: "Bluesky", url: "https://bsky.app/profile/gearsco.de"),
14-
Social(icon: "modrinth.svg", name: "Modrinth", url: "https://modrinth.com/user/GearsDatapacks"),
15-
Social(icon: "discord.png", name: "Discord", url: "https://discord.gg/fmPKDqf9ze"),
11+
Social(
12+
icon: "youtube.png",
13+
name: "YouTube",
14+
url: "https://youtube.com/@GearsDatapacks",
15+
),
16+
Social(
17+
icon: "github.png",
18+
name: "Github",
19+
url: "https://github.com/GearsDatapacks",
20+
),
21+
Social(
22+
icon: "bluesky.svg",
23+
name: "Bluesky",
24+
url: "https://bsky.app/profile/gearsco.de",
25+
),
26+
Social(
27+
icon: "modrinth.svg",
28+
name: "Modrinth",
29+
url: "https://modrinth.com/user/GearsDatapacks",
30+
),
31+
Social(
32+
icon: "discord.png",
33+
name: "Discord",
34+
url: "https://discord.gg/fmPKDqf9ze",
35+
),
1636
]
1737

1838
pub fn view() -> Element(a) {

src/website/page/about.gleam

+35-35
Original file line numberDiff line numberDiff line change
@@ -4,42 +4,42 @@ import website/component
44

55
pub fn view() {
66
component.text_page("About", "About me", [
7-
html.span([attribute.class("text-2xl font-bold")], [
8-
html.text(
9-
"I'm Gears; a programmer, Minecraft enthusiast, YouTuber and nerd.",
10-
),
11-
]),
12-
html.br([]),
13-
html.br([]),
7+
html.span([attribute.class("text-2xl font-bold")], [
148
html.text(
15-
"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.",
9+
"I'm Gears; a programmer, Minecraft enthusiast, YouTuber and nerd.",
1610
),
17-
html.br([]),
18-
html.text("I make "),
19-
html.a(
20-
[
21-
attribute.target("_blank"),
22-
attribute.class("text-blue-500 underline"),
23-
attribute.href("https://youtube.com/@Gearsdatapacks"),
24-
],
25-
[html.text("YouTube videos")],
26-
),
27-
html.text(
28-
" about my ongoing struggle with Minecraft datapacks, as well as other fun Minecraft content.",
29-
),
30-
html.br([]),
31-
html.text(
32-
"Projects I've made include a programming language with Minecraft datapacks (not alone), and a Datapack Package Manager.",
33-
),
34-
html.br([]),
35-
html.text("More information on the "),
36-
html.a(
37-
[
38-
attribute.class("font-bold hover:underline"),
39-
attribute.href("/projects/"),
40-
],
41-
[html.text("projects")],
42-
),
43-
html.text("page."),
11+
]),
12+
html.br([]),
13+
html.br([]),
14+
html.text(
15+
"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.",
16+
),
17+
html.br([]),
18+
html.text("I make "),
19+
html.a(
20+
[
21+
attribute.target("_blank"),
22+
attribute.class("text-blue-500 underline"),
23+
attribute.href("https://youtube.com/@Gearsdatapacks"),
24+
],
25+
[html.text("YouTube videos")],
26+
),
27+
html.text(
28+
" about my ongoing struggle with Minecraft datapacks, as well as other fun Minecraft content.",
29+
),
30+
html.br([]),
31+
html.text(
32+
"Projects I've made include a programming language with Minecraft datapacks (not alone), and a Datapack Package Manager.",
33+
),
34+
html.br([]),
35+
html.text("More information on the "),
36+
html.a(
37+
[
38+
attribute.class("font-bold hover:underline"),
39+
attribute.href("/projects/"),
40+
],
41+
[html.text("projects")],
42+
),
43+
html.text("page."),
4444
])
4545
}

src/website/page/commissions.gleam

+1-3
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,7 @@ If you would like me to make you a datapack, please ",
1515
],
1616
[html.text("contact me")],
1717
),
18-
html.text(
19-
".",
20-
),
18+
html.text("."),
2119
html.span([attribute.class("absolute right-10 bottom-20 text-slate-800")], [
2220
html.text("Hi :)"),
2321
]),

src/website/page/index.gleam

+28-32
Original file line numberDiff line numberDiff line change
@@ -4,37 +4,33 @@ import website/component
44

55
pub fn view() {
66
component.text_page("Home", "Hello and welcome to my website!", [
7-
html.text("I am Gears, a software developer and Minecraft YouTuber."),
8-
html.br([]),
9-
html.text("More about me in the "),
10-
html.a(
11-
[attribute.href("/about/"), attribute.class("underline font-bold")],
12-
[html.text("about")],
13-
),
14-
html.text(" section."),
15-
html.br([]),
16-
html.text("You can check out my finished and ongoing projects in "),
17-
html.a(
18-
[attribute.href("/projects/"), attribute.class("underline font-bold")],
19-
[html.text("projects")],
20-
),
21-
html.text("."),
22-
html.br([]),
23-
html.text("For information on Minecraft datapack commissions, see "),
24-
html.a(
25-
[
26-
attribute.href("/commissions/"),
27-
attribute.class("underline font-bold"),
28-
],
29-
[html.text("commissions")],
30-
),
31-
html.text("."),
32-
html.br([]),
33-
html.text("If you have more questions, you can "),
34-
html.a(
35-
[attribute.href("/contact/"), attribute.class("underline font-bold")],
36-
[html.text("contact me")],
37-
),
38-
html.text("."),
7+
html.text("I am Gears, a software developer and Minecraft YouTuber."),
8+
html.br([]),
9+
html.text("More about me in the "),
10+
html.a([attribute.href("/about/"), attribute.class("underline font-bold")], [
11+
html.text("about"),
12+
]),
13+
html.text(" section."),
14+
html.br([]),
15+
html.text("You can check out my finished and ongoing projects in "),
16+
html.a(
17+
[attribute.href("/projects/"), attribute.class("underline font-bold")],
18+
[html.text("projects")],
19+
),
20+
html.text("."),
21+
html.br([]),
22+
html.text("For information on Minecraft datapack commissions, see "),
23+
html.a(
24+
[attribute.href("/commissions/"), attribute.class("underline font-bold")],
25+
[html.text("commissions")],
26+
),
27+
html.text("."),
28+
html.br([]),
29+
html.text("If you have more questions, you can "),
30+
html.a(
31+
[attribute.href("/contact/"), attribute.class("underline font-bold")],
32+
[html.text("contact me")],
33+
),
34+
html.text("."),
3935
])
4036
}

src/website/page/project.gleam

+3-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,9 @@ pub fn view(project: Project) -> Element(a) {
1414
]),
1515
html.div([attribute.class("mx-auto max-w-4xl px-4 sm:px-6 lg:px-8")], [
1616
html.div([attribute.class("py-8 leading-8")], [
17-
html.p([attribute.class("text-xl")], [component.dangerous_html(project.description)]),
17+
html.p([attribute.class("text-xl")], [
18+
component.dangerous_html(project.description),
19+
]),
1820
]),
1921
component.dangerous_html(project.youtube),
2022
html.a(

0 commit comments

Comments
 (0)