farthergate.com/pages/home.rb

54 lines
1.5 KiB
Ruby

class Pages::Home < ::Phlex::HTML
def project_link(name:, url:, desc:)
li {
a(href: url) { name }
span { " - " + desc }
}
end
def view_template
render ::Pages::Layout.new(:home) {
p { "i'm aleks rūtiņš." }
p { "i'm a student and programmer, skilled with a wide variety of languages and tools." }
h2 { "featured projects" }
ul {
project_link(
name: "phlexite",
url: "https://github.com/aleksrutins/phlexite",
desc: "a simple static site generator using phlex for templating"
)
project_link(
name: "phlexite-docker",
url: "https://git.farthergate.com/p/rad:z3PY7qd21HkdCEG7uBXnxHrtVTLiP",
desc: "build your phlexite site without worrying about a ruby environment"
)
project_link(
name: "mzk",
url: "https://sr.ht/~aleksrutins/mzk/",
desc: "bash scripts to help you manage your zettelkasten"
)
project_link(
name: "dynamite",
url: "https://sr.ht/~aleksrutins/dynamite/",
desc: "a customizable lv2 distortion plugin"
)
project_link(
name: "packsnap",
url: "https://packsnap.farthergate.com/",
desc: "a reproducible container build system"
)
project_link(
name: "biocircuits for mere mortals",
url: "https://bc.farthergate.com/",
desc: "a daunting topic broken down in a (hopefully) friendly way"
)
}
}
end
end