Library shaping up
This commit is contained in:
@@ -0,0 +1,53 @@
|
|||||||
|
//
|
||||||
|
// LibraryBurroughs.swift
|
||||||
|
// IgniteStarter
|
||||||
|
//
|
||||||
|
// Created by Rory on 5/6/26.
|
||||||
|
//
|
||||||
|
import Ignite
|
||||||
|
|
||||||
|
struct LibraryBurroughs: HTML {
|
||||||
|
var body: some HTML {
|
||||||
|
Group {
|
||||||
|
Text("Edgar Rice Burrough: Barsoom and Amtor")
|
||||||
|
.font(.title2)
|
||||||
|
.horizontalAlignment(.center)
|
||||||
|
Text("""
|
||||||
|
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.
|
||||||
|
""")
|
||||||
|
HStack(alignment: .top ) {
|
||||||
|
VStack {
|
||||||
|
Text("The Barsoom Series")
|
||||||
|
.font(.title3)
|
||||||
|
List {
|
||||||
|
Link("A Princess of Mars", target: "/epubs/PrincessOfMars.epub")
|
||||||
|
Link("The Gods of Mars", target: "/epubs/GodsOfMars.epub")
|
||||||
|
Link("Warlord of Mars", target: "/epubs/WarlordOfMars.epub")
|
||||||
|
Link("Thuvia, Maid of Mars", target: "/epubs/ThuviaMaidOfMars.epub")
|
||||||
|
Link("Chessmen of Mars", target: "/epubs/ChessmenOfMars.epub")
|
||||||
|
Link("Fighting Man of Mars", target: "/epubs/FightingManOfMars.epub")
|
||||||
|
Link("Swords of Mars", target: "/epubs/SwordsOfMars.epub")
|
||||||
|
Link("Synthetic Men of Mars", target: "/epubs/SyntheticMenOfMars.epub")
|
||||||
|
Link("Llana of Gathol", target: "/epubs/LlanaOfGathol.epub")
|
||||||
|
Link("The Mastermind Of Mars", target: "/epubs/MastermindOfMars.epub")
|
||||||
|
Link("John Carter of Mars", target: "/epubs/JohnCarterOfMars.epub")
|
||||||
|
}
|
||||||
|
.horizontalAlignment(.leading)
|
||||||
|
}
|
||||||
|
VStack {
|
||||||
|
Text("The Amtor Series")
|
||||||
|
.font(.title3)
|
||||||
|
List {
|
||||||
|
Link("Pirates of Venus", target: "/epubs/PiratesOfVenus.epub")
|
||||||
|
Link("Lost on Venus", target: "/epubs/LostOnVenus.epub")
|
||||||
|
Link("Carson of Venus", target: "/epubs/CarsonOfVenus.epub")
|
||||||
|
Link("Escape on Venus", target: "/epubs/EscapeOnVenus.epub")
|
||||||
|
Link("The Wizard of Venus", target: "/epubs/WizardOfVenus.epub")
|
||||||
|
}
|
||||||
|
.horizontalAlignment(.leading)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.horizontalAlignment(.center)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,14 @@
|
|||||||
|
//
|
||||||
|
// LibraryBurroughs.swift
|
||||||
|
// IgniteStarter
|
||||||
|
//
|
||||||
|
// Created by Rory on 5/6/26.
|
||||||
|
//
|
||||||
|
|
||||||
|
|
||||||
|
import Ignite
|
||||||
|
|
||||||
|
struct LibraryChandler: HTML {
|
||||||
|
var body: some HTML {
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,14 @@
|
|||||||
|
//
|
||||||
|
// LibraryBurroughs.swift
|
||||||
|
// IgniteStarter
|
||||||
|
//
|
||||||
|
// Created by Rory on 5/6/26.
|
||||||
|
//
|
||||||
|
|
||||||
|
|
||||||
|
import Ignite
|
||||||
|
|
||||||
|
struct LibraryGraham: HTML {
|
||||||
|
var body: some HTML {
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,14 @@
|
|||||||
|
//
|
||||||
|
// LibraryBurroughs.swift
|
||||||
|
// IgniteStarter
|
||||||
|
//
|
||||||
|
// Created by Rory on 5/6/26.
|
||||||
|
//
|
||||||
|
|
||||||
|
|
||||||
|
import Ignite
|
||||||
|
|
||||||
|
struct LibraryGray: HTML {
|
||||||
|
var body: some HTML {
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,33 @@
|
|||||||
|
//
|
||||||
|
// LibraryBurroughs.swift
|
||||||
|
// IgniteStarter
|
||||||
|
//
|
||||||
|
// Created by Rory on 5/6/26.
|
||||||
|
//
|
||||||
|
|
||||||
|
import Ignite
|
||||||
|
|
||||||
|
struct LibraryLovecraft: HTML {
|
||||||
|
var body: some HTML {
|
||||||
|
Group {
|
||||||
|
Text("Howard Phillips Lovecraft")
|
||||||
|
.font(.title2)
|
||||||
|
.horizontalAlignment(.center)
|
||||||
|
Text("""
|
||||||
|
Lovecraft has a cult following, which is funny because he always wrote about cults. He takes a view of a universe in which humanity is not only insignificant, but stands on the edge of doom once beings greater than we take notice.
|
||||||
|
""")
|
||||||
|
VStack{
|
||||||
|
List {
|
||||||
|
Link("At the Mountains of Madness", target: "/epubs/AtTheMountainsOfMadnes.epub")
|
||||||
|
Link("Dagon", target: "/epubs/dagon.epub")
|
||||||
|
Link("The Shadow Over Innsmouth", target: "/epubs/TheShadowOverInnsmouth.epub")
|
||||||
|
Link("Call of Cthulhu", target: "/epubs/CallOfCthulhu.epub")
|
||||||
|
Link("The Innsmouth Look", target: "/epubs/TheInnsmouthLook.epub")
|
||||||
|
}
|
||||||
|
.horizontalAlignment(.leading)
|
||||||
|
Emphasis("(All three in one!)")
|
||||||
|
}
|
||||||
|
.horizontalAlignment(.center)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,13 @@
|
|||||||
|
//
|
||||||
|
// LibraryBurroughs.swift
|
||||||
|
// IgniteStarter
|
||||||
|
//
|
||||||
|
// Created by Rory on 5/6/26.
|
||||||
|
//
|
||||||
|
|
||||||
|
import Ignite
|
||||||
|
|
||||||
|
struct LibrarySmith: HTML {
|
||||||
|
var body: some HTML {
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,14 @@
|
|||||||
|
//
|
||||||
|
// LibraryBurroughs.swift
|
||||||
|
// IgniteStarter
|
||||||
|
//
|
||||||
|
// Created by Rory on 5/6/26.
|
||||||
|
//
|
||||||
|
|
||||||
|
|
||||||
|
import Ignite
|
||||||
|
|
||||||
|
struct LibraryWells: HTML {
|
||||||
|
var body: some HTML {
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -15,44 +15,13 @@ struct Library: StaticPage {
|
|||||||
Text("""
|
Text("""
|
||||||
I love reading, but I really don’t get enough time to do that anymore. I've become enamoured of the the process of creating e-books. There's something about it that I very much enjoy.
|
I love reading, but I really don’t get enough time to do that anymore. I've become enamoured of the the process of creating e-books. There's something about it that I very much enjoy.
|
||||||
""")
|
""")
|
||||||
Group {
|
LibraryBurroughs()
|
||||||
Text("Edgar Rice Burrough’s Barsoom Series")
|
LibraryLovecraft()
|
||||||
.font(.title2)
|
LibrarySmith()
|
||||||
Text("""
|
LibraryGraham()
|
||||||
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.
|
LibraryWells()
|
||||||
""")
|
LibraryChandler()
|
||||||
HStack(alignment: .top ) {
|
LibraryGray()
|
||||||
VStack {
|
|
||||||
Text("The Barsoom Series")
|
|
||||||
.font(.title3)
|
|
||||||
List {
|
|
||||||
Link("A Princess of Mars", target: "/epubs/PrincessOfMars.epub")
|
|
||||||
Link("The Gods of Mars", target: "/epubs/GodsOfMars.epub")
|
|
||||||
Link("Warlord of Mars", target: "/epubs/WarlordOfMars.epub")
|
|
||||||
Link("Thuvia, Maid of Mars", target: "/epubs/ThuviaMaidOfMars.epub")
|
|
||||||
Link("Chessmen of Mars", target: "/epubs/ChessmenOfMars.epub")
|
|
||||||
Link("Fighting Man of Mars", target: "/epubs/FightingManOfMars.epub")
|
|
||||||
Link("Swords of Mars", target: "/epubs/SwordsOfMars.epub")
|
|
||||||
Link("Synthetic Men of Mars", target: "/epubs/SyntheticMenOfMars.epub")
|
|
||||||
Link("Llana of Gathol", target: "/epubs/LlanaOfGathol.epub")
|
|
||||||
Link("The Mastermind Of Mars", target: "/epubs/MastermindOfMars.epub")
|
|
||||||
Link("John Carter of Mars", target: "/epubs/JohnCarterOfMars.epub")
|
|
||||||
}
|
|
||||||
}
|
|
||||||
VStack {
|
|
||||||
Text("The Amtor Series")
|
|
||||||
.font(.title3)
|
|
||||||
List {
|
|
||||||
Link("Pirates of Venus", target: "/epubs/PiratesOfVenus.epub")
|
|
||||||
Link("Lost on Venus", target: "/epubs/LostOnVenus.epub")
|
|
||||||
Link("Carson of Venus", target: "/epubs/CarsonOfVenus.epub")
|
|
||||||
Link("Escape on Venus", target: "/epubs/EscapeOnVenus.epub")
|
|
||||||
Link("The Wizard of Venus", target: "/epubs/WizardOfVenus.epub")
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -14,7 +14,7 @@ extension BaseTheme {
|
|||||||
var siteWidth: ResponsiveValues { .init(small: .px(770)) }
|
var siteWidth: ResponsiveValues { .init(small: .px(770)) }
|
||||||
|
|
||||||
// Prefer Avenir Next for the core font
|
// Prefer Avenir Next for the core font
|
||||||
var font: Font { .init(name: "Avenir Next, system-ui, -apple-system, Segoe UI, Roboto, Helvetica Neue, Arial, Noto Sans, Liberation Sans, sans-serif", weight: .regular) }
|
var font: Font { .init(name: "Futura, system-ui, -apple-system, Segoe UI, Roboto, Helvetica Neue, Arial, Noto Sans, Liberation Sans, sans-serif", weight: .regular) }
|
||||||
|
|
||||||
// Prefer Menlo for monospaced font (code blocks)
|
// Prefer Menlo for monospaced font (code blocks)
|
||||||
var monospaceFont: Font { .init(name: "Menlo, SFMono-Regular, Monaco, Consolas, Liberation Mono, Courier New, monospace", weight: .regular) }
|
var monospaceFont: Font { .init(name: "Menlo, SFMono-Regular, Monaco, Consolas, Liberation Mono, Courier New, monospace", weight: .regular) }
|
||||||
|
|||||||
Reference in New Issue
Block a user