Skip to content

Commit

Permalink
Add placeholder for DFRPG templates
Browse files Browse the repository at this point in the history
  • Loading branch information
MaxWilson committed Dec 5, 2023
1 parent c808a10 commit 5a2fe9b
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/App.fsproj
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
<Compile Include="Core\Packrat.fs" />
<Compile Include="UI\CommonUI.fs" />
<Compile Include="UI\LocalStorage.fs" />
<Compile Include="UI\DFRPG\ChargenView.fs" />
<Compile Include="UI\Components\PriestSpells.fs" />
<Compile Include="UI\Components\PriestSpellsView.fs" />
<Compile Include="UI\Components.fs" />
Expand Down
3 changes: 2 additions & 1 deletion src/Main.fs
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ let Router() =
router.children [
let lookup = [
"priestSpells", "Priest Spells by Sphere", (fun () -> UI.PriestSpellsView.View())
"dfrpgChargen", "Create a character for Dungeon Fantasy RPG", (fun () -> UI.DFRPG.ChargenView.View())
]
let (|Segment|_|) segment =
lookup |> List.tryFind (fun (s, _, _) -> s = segment)
Expand All @@ -26,7 +27,7 @@ let Router() =
class' "mainPage" Html.div [
Html.h1 "Shining Sword RPG apps"
for (segment, name, _) in lookup do
Html.a [prop.text name; prop.href ("#" + segment)]
Html.a [prop.text name; prop.href ("#" + segment)] |> List.singleton |> Html.div
]
]
]
Expand Down
5 changes: 5 additions & 0 deletions src/UI/DFRPG/ChargenView.fs
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
module UI.DFRPG.ChargenView
open Feliz

let View() =
Html.div "placeholder"

0 comments on commit 5a2fe9b

Please sign in to comment.