Browse Source

feat(Footer) Adding a basic footer (#32)

main
Jonathan McCaffrey 4 years ago
parent
commit
bd8d6e6373
  1. 57
      Components/Shared/FooterComponent.razor
  2. BIN
      IGP/Database.db
  3. 7
      IGP/PageLayout.razor
  4. 2
      IGP/wwwroot/generated/Variables.json
  5. 4
      IGP_Convert/Program.cs

57
Components/Shared/FooterComponent.razor

@ -0,0 +1,57 @@
@inject IVariableService VariableService
<div class="footerContainer">
<div class="footerSocials">
<a href="https://github.com/JonathanMcCaffrey/IGP-Fan-Reference/discussions" target="_blank">
<i class="fa-brands fa-github"></i>
</a>
<a href="mailto:igpfanreference@jonathanmccaffrey.com" target="_blank">
<i class="fa-solid fa-envelope"></i>
</a>
<a href="https://discord.gg/uMq8bMGeeN" target="_blank">
<i class="fa-brands fa-discord"></i>
</a>
<a href="https://www.youtube.com/channel/UCQx88d5C12yp4l7uszNYrdQ" target="_blank">
<i class="fa-brands fa-youtube"></i>
</a>
<a href="https://www.twitch.tv/jonathanmccaffrey" target="_blank">
<i class="fa-brands fa-twitch"></i>
</a>
<span>|</span>
<span>Updated @VariableService.Variables["LastUpdated"]</span>
</div>
<div class="footerDisclaimer">
This site is fan-made and not affiliated with SunSpear Games in any way.
</div>
</div>
<style>
.footerContainer {
width: 100%;
display: flex;
flex-direction: column;
justify-content: center;
padding-top: 8px;
padding-bottom: 64px;
gap: 24px;
}
.footerSocials {
display: flex;
flex-direction: row;
gap: 16px;
justify-content: center;
margin: auto;
}
.footerDisclaimer {
text-align: center;
margin: auto;
}
</style>

BIN
IGP/Database.db

Binary file not shown.

7
IGP/PageLayout.razor

@ -1,6 +1,4 @@
@inherits LayoutComponentBase
@inject IJSRuntime JsRuntime
@inject ISearchService SearchService
@inject IWebsiteService WebService
@inject IDataCollectionService DataCollectionService
@ -27,11 +25,16 @@
WebPages=WebService.WebPageModels/>
<MobileNavComponent WebSections=WebService.WebSectionModels
WebPages=WebService.WebPageModels/>
<FooterComponent/>
}
</div>
</div>
@code {
protected override void OnInitialized()

2
IGP/wwwroot/generated/Variables.json

@ -1 +1 @@
[{"Key":"GamePatch","Value":"v0.0.6.9553a"}]
[{"Key":"GamePatch","Value":"v0.0.6.9553a"},{"Key":"LastUpdated","Value":"May 02, 2022"}]

4
IGP_Convert/Program.cs

@ -27,6 +27,8 @@ using (var db = new DatabaseContext(options.Options))
File.WriteAllTextAsync($"{webPath}/NoteContentModels.json", JsonSerializer.Serialize(db.NoteContentModels));
File.WriteAllTextAsync($"{webPath}/NoteConnectionModels.json", JsonSerializer.Serialize(db.NoteConnectionModels));
File.WriteAllTextAsync($"{webPath}/NoteSectionModels.json", JsonSerializer.Serialize(db.NoteSectionModels));
// Set date variable
db.Variables.Find("LastUpdated")!.Value = $"{DateTime.Now:MMMM dd, yyyy}";
File.WriteAllTextAsync($"{webPath}/Variables.json", JsonSerializer.Serialize(db.Variables));
}
Loading…
Cancel
Save