Skip to content

Commit

Permalink
Added an about website
Browse files Browse the repository at this point in the history
  • Loading branch information
pmachapman committed Sep 27, 2021
1 parent b4c5aac commit a5af05a
Show file tree
Hide file tree
Showing 39 changed files with 14,274 additions and 4 deletions.
4 changes: 2 additions & 2 deletions GoToBible.Web/Client/Pages/Index.razor
Original file line number Diff line number Diff line change
Expand Up @@ -108,8 +108,8 @@
<button class="btn btn-outline-secondary ml-lg-auto mt-2 mt-lg-0" data-toggle="modal" data-target="#settings-dialog">
<span class="fa fa-cog" aria-hidden="true"></span><span class="d-lg-none d-xl-inline"> Settings</span>
</button>
<a class="btn btn-secondary ml-lg-2 d-lg-none d-xl-block mt-2 mt-lg-0" href="https://github.com/pmachapman/GoTo.Bible" target="_blank">
<span class="fa fa-github" aria-hidden="true"></span> Contribute
<a class="btn btn-secondary ml-lg-2 d-lg-none d-xl-block mt-2 mt-lg-0" href="https://goto.bible/about" target="_blank">
<span class="fa fa-info-circle" aria-hidden="true"></span> About
</a>
</div>
<div class="d-flex flex-grow-1 d-lg-none" id="navbar-text">
Expand Down
4 changes: 2 additions & 2 deletions GoToBible.Web/Client/wwwroot/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
<title>GoTo.Bible (Beta)</title>
<title>GoTo.Bible</title>
<meta name="description" content="View and compare Bible Translations in an innovative interlinear format - many translations in most languages are supported." />
<base href="/" />
<link href="css/bootstrap.min.css" rel="stylesheet" />
Expand All @@ -17,7 +17,7 @@
<body>
<div id="app">
<div style="position:absolute; top:30vh; width:100%; text-align:center; font-family:Calibri, Arial, Helvetica, sans-serif">
<h1>GoTo.Bible (Beta)</h1>
<h1>GoTo.Bible</h1>
<p><i class="fa fa-spin fa-spinner"></i> The application is loading...</p>
</div>
</div>
Expand Down
108 changes: 108 additions & 0 deletions GoToBible.Web/Server/GoToBible.Web.Server.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -42,5 +42,113 @@
<ProjectReference Include="..\Client\GoToBible.Web.Client.csproj" />
</ItemGroup>

<ItemGroup>
<None Update="about\assets\css\custom.css">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="about\assets\css\fontawesome-all.min.css">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="about\assets\css\images\overlay.png">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="about\assets\css\main.css">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="about\assets\css\noscript.css">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="about\assets\js\breakpoints.min.js">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="about\assets\js\browser.min.js">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="about\assets\js\jquery.min.js">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="about\assets\js\jquery.scrollex.min.js">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="about\assets\js\jquery.scrolly.min.js">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="about\assets\js\main.js">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="about\assets\js\util.js">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="about\assets\webfonts\fa-brands-400.eot">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="about\assets\webfonts\fa-brands-400.svg">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="about\assets\webfonts\fa-brands-400.ttf">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="about\assets\webfonts\fa-brands-400.woff">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="about\assets\webfonts\fa-brands-400.woff2">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="about\assets\webfonts\fa-regular-400.eot">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="about\assets\webfonts\fa-regular-400.svg">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="about\assets\webfonts\fa-regular-400.ttf">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="about\assets\webfonts\fa-regular-400.woff">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="about\assets\webfonts\fa-regular-400.woff2">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="about\assets\webfonts\fa-solid-900.eot">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="about\assets\webfonts\fa-solid-900.svg">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="about\assets\webfonts\fa-solid-900.ttf">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="about\assets\webfonts\fa-solid-900.woff">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="about\assets\webfonts\fa-solid-900.woff2">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="about\images\logo.svg">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="about\images\pic01.jpg">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="about\images\pic04.jpg">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="about\index.html">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="about\LICENSE.txt">
<CopyToOutputDirectory>Never</CopyToOutputDirectory>
</None>
<None Update="about\privacy.html">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="about\README.txt">
<CopyToOutputDirectory>Never</CopyToOutputDirectory>
</None>
<None Update="about\terms.html">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
</ItemGroup>


</Project>
16 changes: 16 additions & 0 deletions GoToBible.Web/Server/Startup.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,20 @@

namespace GoToBible.Web.Server
{
using System.IO;
using GoToBible.Model;
using GoToBible.Providers;
using GoToBible.Web.Server.Models;
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Hosting;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.HttpOverrides;
using Microsoft.EntityFrameworkCore;
using Microsoft.Extensions.Caching.Distributed;
using Microsoft.Extensions.Caching.SqlServer;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.FileProviders;
using Microsoft.Extensions.Hosting;
using Pomelo.Extensions.Caching.MySql;

Expand Down Expand Up @@ -165,8 +168,21 @@ public void Configure(IApplicationBuilder app, IWebHostEnvironment env)

app.UseHttpsRedirection();
app.UseBlazorFrameworkFiles();
app.UseDefaultFiles(new DefaultFilesOptions
{
DefaultFileNames = { "index.html" },
RequestPath = new PathString("/about"),
});
app.UseStaticFiles();

// Allow static files within the about directory to allow for automatic SSL renewal
app.UseStaticFiles(new StaticFileOptions()
{
ServeUnknownFileTypes = true, // this was needed as IIS would not serve extensionless URLs from the directory without it
FileProvider = new PhysicalFileProvider(Path.Combine(Directory.GetCurrentDirectory(), "about")),
RequestPath = new PathString("/about"),
});

app.UseForwardedHeaders(new ForwardedHeadersOptions
{
ForwardedHeaders = ForwardedHeaders.XForwardedFor | ForwardedHeaders.XForwardedProto,
Expand Down
Loading

0 comments on commit a5af05a

Please sign in to comment.