Skip to content

Commit

Permalink
Add github link to header
Browse files Browse the repository at this point in the history
  • Loading branch information
MaxWilson committed Nov 24, 2023
1 parent 401fa91 commit 9e57d15
Show file tree
Hide file tree
Showing 4 changed files with 178 additions and 170 deletions.
1 change: 1 addition & 0 deletions src/App.fsproj
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
<Compile Include="UI\CommonUI.fs" />
<Compile Include="UI\LocalStorage.fs" />
<Compile Include="UI\Components\PriestSpells.fs" />
<Compile Include="UI\Components\PriestSpellsView.fs" />
<Compile Include="UI\Components.fs" />
<Compile Include="Main.fs" />
</ItemGroup>
Expand Down
11 changes: 9 additions & 2 deletions src/Main.fs
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,17 @@ let Router() =
React.router [
router.onUrlChanged updateUrl
router.children [
class' "header" Html.div [
classP' "srcLink" Html.a [
prop.href "https://github.com/MaxWilson/rpg/"
prop.children [Html.img [prop.ariaLabel "GitHub"; prop.src "img/GitHub_Logo.png"]]
prop.target "_blank"
]
]
match currentUrl with
| [ "spells" ] -> UI.PriestSpells.View()
| [ "spells" ] -> UI.PriestSpellsView.View()
| otherwise ->
UI.PriestSpells.View()
UI.PriestSpellsView.View()
]
]

Expand Down
Loading

0 comments on commit 9e57d15

Please sign in to comment.