buncha stuff, tweaking look

This commit is contained in:
Rory Hinnen
2026-05-05 22:27:01 -05:00
parent b6db6ebef6
commit a0ffd0f887
8 changed files with 86 additions and 60 deletions
+25
View File
@@ -0,0 +1,25 @@
import Ignite
struct Button: HTML {
private var name: String
private var link: String
let buttonWidth = 200
let buttonHeight = 70
init(name: String = "Hinnen", link: String = "Underground") {
self.name = name
self.link = link
}
var body: some HTML {
Link(name, target: link)
.linkStyle(.button)
.background(.blue)
.border(Color.black, width: 0)
.font(.custom("Futura", size: .em(1)))
.frame(width: buttonWidth, height: buttonHeight)
}
}
+4 -3
View File
@@ -9,15 +9,16 @@ import Ignite
struct Mastodon: HTML { struct Mastodon: HTML {
var body: some HTML { var body: some HTML {
// ── Mastodon / rel=me links (hidden, for verification) ──────────────── // ── Mastodon / rel=me links (hidden, for verification) ────────────────
Link("", target: "https://twit.social/@roryh") Link("", target: "https://twit.social/@roryh")
.relationship(.me) .relationship(.me)
.hidden(.responsive(true))
Link("", target: "https://mograph.social/@Roryhinnen") Link("", target: "https://mograph.social/@Roryhinnen")
.relationship(.me) .relationship(.me)
.hidden(.responsive(true))
Link("", target: "https://cinematheque.social/@Rory") Link("", target: "https://cinematheque.social/@Rory")
.relationship(.me) .relationship(.me)
.hidden(.responsive(true))
} }
} }
-7
View File
@@ -1,7 +0,0 @@
//
// Battlefleet.swift
// IgniteStarter
//
// Created by Rory on 5/3/26.
//
+1 -1
View File
@@ -12,7 +12,7 @@ struct Battlefleet: StaticPage {
VStack { VStack {
Logo(barTitle: String(title.split(separator: " ").first ?? ""), underTitle: "Sector Scarus") Logo(barTitle: String(title.split(separator: " ").first ?? ""), underTitle: "Sector Scarus")
.horizontalAlignment(.center) .horizontalAlignment(.center)
Link("Battlefleet Gothic Remastered Digital Rules", target: "BattlefleetGothicDigitalRemaster.epub") Link("Battlefleet Gothic Remastered Digital Rules", target: "epubs/BattlefleetGothicDigitalRemaster.epub")
} }
} }
} }
-17
View File
@@ -1,17 +0,0 @@
import Ignite
struct DungeonMaster: StaticPage {
var path = "/dungeonmaster"
let title: String
init() {
self.title = "Dungeon Master"
}
var body: some HTML {
VStack {
Logo(barTitle: String(title.split(separator: " ").first ?? ""), underTitle: String(title.split(separator: " ").last ?? ""))
.horizontalAlignment(.center)
}
}
}
+17 -27
View File
@@ -2,52 +2,42 @@ import Ignite
struct Home: StaticPage { struct Home: StaticPage {
var title = "Hinnen Underground" var title = "Hinnen Underground"
let buttonWidth = 200
let buttonHeight = 70
var body: some HTML { var body: some HTML {
VStack{ VStack{
Logo() Logo()
.horizontalAlignment(.center) .horizontalAlignment(.center)
Grid(alignment: .center) { Grid(alignment: .center, spacing: 5) {
Link("Rory", target: "https://rory.hinnen.us") Button(name: "Rory", link: "https://rory.hinnen.us")
.linkStyle(.button)
.width(4) .width(4)
Link("Robin", target: "https://robin.hinnen.us") Button(name: "Robin", link: "https://robin.hinnen.us")
.linkStyle(.button)
.width(4) .width(4)
Link("Robin's Cancer Blog", target: "https://bab.hinnen.us") Button(name: "Robin's Cancer Blog", link: "https://bab.hinnen.us")
.linkStyle(.button)
.width(4) .width(4)
Link("MGA", target: "mga/") Button(name: "MGA", link: "/mga/")
.linkStyle(.button)
.width(4) .width(4)
Link("Drive In", target: "drive-in/") Button(name: "Drive In", link: "/drive-in/")
.linkStyle(.button)
.width(4) .width(4)
Link("Minecraft", target: "minecraft/") Button(name: "Minecraft", link: "https://treznzelore.hinnen.us")
.linkStyle(.button)
.width(4) .width(4)
Link("Legends of Dying Mars", target: "lods-dying-mars/") Button(name: "Legends of Dying Mars", link: "/dying-mars/")
.linkStyle(.button)
.width(4) .width(4)
Link("X-Wing Rules", target: "xwing/") Button(name: "X-Wing Rules", link: "/xwing/")
.linkStyle(.button)
.width(4) .width(4)
Link("Adventures in Modern Coding", target: "modern-coding/") Button(name: "Adventures in Modern Coding", link: "/modern-coding/")
.linkStyle(.button)
.width(4) .width(4)
Link("The Library", target: "library/") Button(name: "The Library", link: "/library/")
.linkStyle(.button)
.width(4) .width(4)
Link("Archeological remains", target: "archeological-remains/") Button(name: "Archeological remains", link: "/archeological-remains/")
.linkStyle(.button)
.width(4) .width(4)
Link("Battlefleet: Sector Scarus", target: Battlefleet()) Button(name: "Battlefleet: Sector Scarus", link: "/battlefleet/")
.linkStyle(.button)
.width(4) .width(4)
} }
Mastodon()
} }
.frame(maxWidth: .percent(80%))
.horizontalAlignment(.center) .horizontalAlignment(.center)
Mastodon()
} }
} }
+36
View File
@@ -0,0 +1,36 @@
//
// Library.swift
// IgniteStarter
//
// Created by Rory on 5/5/26.
//
import Ignite
struct Library: StaticPage {
var path = "/library"
let title: String
init() {
self.title = "The Library"
}
var body: some HTML {
VStack {
Logo(barTitle: title, underTitle: "")
.horizontalAlignment(.center)
Text("""
I love reading.
I really don’t get enough time to do that anymore. I’m in the process of creating e-books of some of my favorites
""")
Group{
Text("""
Edgar Rice Burrough’s Barsoom Series
Burroughs wrote these in the early part of the last century, and a they can be challenging to modern readers, both for the writing style and the content. They’re straightforward action, mostly focused and beating the bad guys and getting the girl, who seems to spend a lot of time not understanding our poor hero’s intentions.
""")
Link("Battlefleet Gothic Remastered Digital Rules", target: "epubs/BattlefleetGothicDigitalRemaster.epub")
}
}
}
}
+3 -5
View File
@@ -30,10 +30,8 @@ struct Hinnen: Site {
var favicon: URL? { URL(static: "/favicon/favicon.ico") } var favicon: URL? { URL(static: "/favicon/favicon.ico") }
var pages: [any StaticPage] { var staticPages: [any StaticPage] {
return [ Battlefleet()
Battlefleet(), Library()
DungeonMaster()
]
} }
} }