Skip to content

Commit

Permalink
Finished Website Milestone 1
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewfschwartz committed Oct 30, 2020
1 parent 1b2ddc3 commit 2f4cb30
Show file tree
Hide file tree
Showing 56 changed files with 40,420 additions and 1 deletion.
8 changes: 7 additions & 1 deletion BleakwindBuffet.sln
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Data", "Data\Data.csproj",
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "DataTests", "DataTests\DataTests.csproj", "{B58727B9-F783-46C8-BCC7-5122A1A4537E}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "PointOfSale", "PointOfSale\PointOfSale.csproj", "{66460330-E4D0-4BB0-9CA9-1286012BB8A8}"
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "PointOfSale", "PointOfSale\PointOfSale.csproj", "{66460330-E4D0-4BB0-9CA9-1286012BB8A8}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Website", "Website\Website.csproj", "{D15B2AC6-9B20-42D3-AA4F-36EA18A9B791}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Expand All @@ -27,6 +29,10 @@ Global
{66460330-E4D0-4BB0-9CA9-1286012BB8A8}.Debug|Any CPU.Build.0 = Debug|Any CPU
{66460330-E4D0-4BB0-9CA9-1286012BB8A8}.Release|Any CPU.ActiveCfg = Release|Any CPU
{66460330-E4D0-4BB0-9CA9-1286012BB8A8}.Release|Any CPU.Build.0 = Release|Any CPU
{D15B2AC6-9B20-42D3-AA4F-36EA18A9B791}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{D15B2AC6-9B20-42D3-AA4F-36EA18A9B791}.Debug|Any CPU.Build.0 = Debug|Any CPU
{D15B2AC6-9B20-42D3-AA4F-36EA18A9B791}.Release|Any CPU.ActiveCfg = Release|Any CPU
{D15B2AC6-9B20-42D3-AA4F-36EA18A9B791}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
Expand Down
Binary file modified Documentation/BleakwindBuffetClassUML.vsdx
Binary file not shown.
12 changes: 12 additions & 0 deletions Website/Pages/About.cshtml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
@page
@model Website.Pages.AboutModel
@{
ViewData["Title"] = "About";
}

<h1>About Bleakwind Buffet</h1>
<p class="description">
Founded in 2020 from the game-saturated mind of Undergraduate Teaching Assistant Zachery Brunner,
Bleakwind Buffet is devoted to bringing you the finest in Skyrim-themed dining experiences.
So put your bow down, pull up a chair, and join the feast!
</p>
16 changes: 16 additions & 0 deletions Website/Pages/About.cshtml.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Mvc.RazorPages;

namespace Website.Pages
{
public class AboutModel : PageModel
{
public void OnGet()
{
}
}
}
26 changes: 26 additions & 0 deletions Website/Pages/Error.cshtml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
@page
@model ErrorModel
@{
ViewData["Title"] = "Error";
}

<h1 class="text-danger">Error.</h1>
<h2 class="text-danger">An error occurred while processing your request.</h2>

@if (Model.ShowRequestId)
{
<p>
<strong>Request ID:</strong> <code>@Model.RequestId</code>
</p>
}

<h3>Development Mode</h3>
<p>
Swapping to the <strong>Development</strong> environment displays detailed information about the error that occurred.
</p>
<p>
<strong>The Development environment shouldn't be enabled for deployed applications.</strong>
It can result in displaying sensitive information from exceptions to end users.
For local debugging, enable the <strong>Development</strong> environment by setting the <strong>ASPNETCORE_ENVIRONMENT</strong> environment variable to <strong>Development</strong>
and restarting the app.
</p>
31 changes: 31 additions & 0 deletions Website/Pages/Error.cshtml.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Mvc.RazorPages;
using Microsoft.Extensions.Logging;

namespace Website.Pages
{
[ResponseCache(Duration = 0, Location = ResponseCacheLocation.None, NoStore = true)]
public class ErrorModel : PageModel
{
public string RequestId { get; set; }

public bool ShowRequestId => !string.IsNullOrEmpty(RequestId);

private readonly ILogger<ErrorModel> _logger;

public ErrorModel(ILogger<ErrorModel> logger)
{
_logger = logger;
}

public void OnGet()
{
RequestId = Activity.Current?.Id ?? HttpContext.TraceIdentifier;
}
}
}
114 changes: 114 additions & 0 deletions Website/Pages/Index.cshtml
Original file line number Diff line number Diff line change
@@ -0,0 +1,114 @@
@page
@model IndexModel
@{
ViewData["Title"] = "Home page";
}

<div class="text-center">
<h1 class="display-4">Welcome to Bleakwind Buffet!</h1>
<p class="description">
We at Bleakwind Buffet are proud to bring you authentic fantasy meals straight from the world of Skyrim.
Shake the blood off your sword and sake your thirst with one of our old-fashioned sailor sodas.
Hack into a Smokehouse Skeleton with your dagger. Or vanquish the the mighty Thalmor Triple Burger!
You’ve had a hard adventure and earned your loot, so spend it with us!.
</p>

<ul class="menu-list">
<li>
<div>
<h2 class="category-name">Combo Meal</h2>
<p class="menu-notes">*A Combo Meal is composed of an Entree, Side, and Drink of choice. These options are listed below.</p>
<p class="menu-notes">*Each Combo Meal comes with a discount of $1.00 off the total cost of their Combo Items.</p>
</div>
</li>

<li>
<div>
<h2 class="category-name">Entrees</h2>
<div class="entrees">
@foreach (BleakwindBuffet.Data.IOrderItem entree in BleakwindBuffet.Data.Menu.Entrees())
{
<div class="menu-item">
<h3>@entree.ToString()</h3>
<div class="item-details">Price: $@entree.Price</div>
<div class="item-details">Calories: @entree.Calories</div>
</div>
}
</div>

</div>

</li>

<li>
<div>
<h2 class="category-name">Sides</h2>
<div class="sides">
<h3 class="dragonborn-fries name-col">Dragonborn Waffle Fries</h3>
<h3 class="fried-miraak name-col">Fried Miraak</h3>
<h3 class="mad-otar-grits name-col">Mad Otar Grits</h3>
<h3 class="vokun-salad name-col">Vokun Salad</h3>
@foreach (BleakwindBuffet.Data.IOrderItem side in BleakwindBuffet.Data.Menu.Sides())
{
<div class="menu-item">
<div class="size-col">@side.ToString()</div>
<div class="price-col">Price: $@side.Price</div>
<div class="calories-col">Calories: @side.Calories</div>
</div>

}

<div class="menu-notes">
<p>*Each side can be purchased in sizes: Small, Medium, or Large.</p>
</div>
</div>

</div>

</li>
<li>
<div>
<h2 class="category-name">Drinks</h2>
<div class="drinks">
<h3 class="apple-juice name-col">Aretino Apple Juice</h3>
<h3 class="coffee name-col">Candlehearth Coffee</h3>
<h3 class="milk name-col">Markarth Milk</h3>
<h3 class="water name-col">Warrior Water</h3>
<h3 class="soda name-col">Sailor Soda</h3>
@foreach (BleakwindBuffet.Data.IOrderItem drink in BleakwindBuffet.Data.Menu.Drinks())
{
if (drink is BleakwindBuffet.Data.Drinks.SailorSoda s)
{
if (s.Flavor is BleakwindBuffet.Data.Enums.SodaFlavor.Cherry)
{
<div class="menu-item">
<div class="size-col">@drink.ToString()</div>
<div class="price-col">Price: $@drink.Price</div>
<div class="calories-col">Calories: @drink.Calories</div>
</div>
}
}
else
{
<div class="menu-item">
<div class="size-col">@drink.ToString()</div>
<div class="price-col">Price: $@drink.Price</div>
<div class="calories-col">Calories: @drink.Calories</div>
</div>
}

}

<div class="menu-notes">
<p>*Each drink can be purchased in sizes: Small, Medium, or Large.</p>
<p>*Sailor Soda flavors available are: Blackberry, Cherry, Grapefruit, Lemon, Peach, Watermelon.</p>
</div>
</div>

</div>
</li>

</ul>


</div>
26 changes: 26 additions & 0 deletions Website/Pages/Index.cshtml.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Mvc.RazorPages;
using Microsoft.Extensions.Logging;
using BleakwindBuffet.Data;

namespace Website.Pages
{
public class IndexModel : PageModel
{
private readonly ILogger<IndexModel> _logger;

public IndexModel(ILogger<IndexModel> logger)
{
_logger = logger;
}

public void OnGet()
{

}
}
}
13 changes: 13 additions & 0 deletions Website/Pages/Privacy.cshtml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
@page
@model PrivacyModel
@{
ViewData["Title"] = "Privacy Policy";
}
<h1>Cowboy Cafe Website Privacy Policy</h1>

<p class="description">
Bleakwind Buffet respects and values the privacy of its customers, as we hope you respect and value our own.
This site does not collect any data on you. This site does not use cookies.
This site only displays information about Bleakwind Buffet and its delectable food
and delightful Skyrim-themed ambiance.
</p>
24 changes: 24 additions & 0 deletions Website/Pages/Privacy.cshtml.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Mvc.RazorPages;
using Microsoft.Extensions.Logging;

namespace Website.Pages
{
public class PrivacyModel : PageModel
{
private readonly ILogger<PrivacyModel> _logger;

public PrivacyModel(ILogger<PrivacyModel> logger)
{
_logger = logger;
}

public void OnGet()
{
}
}
}
53 changes: 53 additions & 0 deletions Website/Pages/Shared/_Layout.cshtml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>@ViewData["Title"] - Cowboy Cafe</title>
<link rel="stylesheet" href="~/lib/bootstrap/dist/css/bootstrap.min.css" />
<link rel="stylesheet" href="~/css/site.css" asp-append-version="true"/>
</head>
<body>
<header>
<nav class="navbar navbar-expand-sm navbar-toggleable-sm navbar-light bg-white border-bottom box-shadow mb-3">
<div class="container">
<a class="navbar-brand" asp-area="" asp-page="/Index">Website</a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target=".navbar-collapse" aria-controls="navbarSupportedContent"
aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="navbar-collapse collapse d-sm-inline-flex flex-sm-row-reverse">
<ul class="navbar-nav flex-grow-1">
<li class="nav-item">
<a class="nav-link text-dark" asp-area="" asp-page="/Index">Home</a>
</li>
<li class="nav-item">
<a class="nav-link text-dark" asp-area="" asp-page="/Privacy">Privacy</a>
</li>
<li class="nav-item">
<a class="nav-link text-dark" asp-area="" asp-page="/About">About</a>
</li>
</ul>
</div>
</div>
</nav>
</header>
<div class="container">
<main role="main" class="pb-3">
@RenderBody()
</main>
</div>

<footer class="border-top footer text-muted">
<div class="container">
&copy; 2020 - Bleakwind Buffet LLC. - <a asp-area="" asp-page="/Privacy">Privacy</a>
</div>
</footer>

<script src="~/lib/jquery/dist/jquery.min.js"></script>
<script src="~/lib/bootstrap/dist/js/bootstrap.bundle.min.js"></script>
<script src="~/js/site.js" asp-append-version="true"></script>

@RenderSection("Scripts", required: false)
</body>
</html>
2 changes: 2 additions & 0 deletions Website/Pages/Shared/_ValidationScriptsPartial.cshtml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
<script src="~/lib/jquery-validation/dist/jquery.validate.min.js"></script>
<script src="~/lib/jquery-validation-unobtrusive/jquery.validate.unobtrusive.min.js"></script>
3 changes: 3 additions & 0 deletions Website/Pages/_ViewImports.cshtml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
@using Website
@namespace Website.Pages
@addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers
3 changes: 3 additions & 0 deletions Website/Pages/_ViewStart.cshtml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
@{
Layout = "_Layout";
}
26 changes: 26 additions & 0 deletions Website/Program.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.Hosting;
using Microsoft.Extensions.Logging;

namespace Website
{
public class Program
{
public static void Main(string[] args)
{
CreateHostBuilder(args).Build().Run();
}

public static IHostBuilder CreateHostBuilder(string[] args) =>
Host.CreateDefaultBuilder(args)
.ConfigureWebHostDefaults(webBuilder =>
{
webBuilder.UseStartup<Startup>();
});
}
}
Loading

0 comments on commit 2f4cb30

Please sign in to comment.