diff --git a/qcbadge.sln b/qcbadge.sln new file mode 100644 index 0000000..e2c4dbc --- /dev/null +++ b/qcbadge.sln @@ -0,0 +1,22 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio 15 +VisualStudioVersion = 15.0.26430.14 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "qcbadge", "qcbadge\qcbadge.csproj", "{6A0E6298-D701-4058-B168-2AA56CC4BD66}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {6A0E6298-D701-4058-B168-2AA56CC4BD66}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {6A0E6298-D701-4058-B168-2AA56CC4BD66}.Debug|Any CPU.Build.0 = Debug|Any CPU + {6A0E6298-D701-4058-B168-2AA56CC4BD66}.Release|Any CPU.ActiveCfg = Release|Any CPU + {6A0E6298-D701-4058-B168-2AA56CC4BD66}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection +EndGlobal diff --git a/qcbadge/Controllers/HomeController.cs b/qcbadge/Controllers/HomeController.cs new file mode 100644 index 0000000..c8bdd5d --- /dev/null +++ b/qcbadge/Controllers/HomeController.cs @@ -0,0 +1,35 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Threading.Tasks; +using Microsoft.AspNetCore.Mvc; + +namespace qcbadge.Controllers +{ + public class HomeController : Controller + { + public IActionResult Index() + { + return View(); + } + + public IActionResult About() + { + ViewData["Message"] = "Your application description page."; + + return View(); + } + + public IActionResult Contact() + { + ViewData["Message"] = "Your contact page."; + + return View(); + } + + public IActionResult Error() + { + return View(); + } + } +} diff --git a/qcbadge/Program.cs b/qcbadge/Program.cs new file mode 100644 index 0000000..3504735 --- /dev/null +++ b/qcbadge/Program.cs @@ -0,0 +1,25 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using Microsoft.AspNetCore.Hosting; + +namespace qcbadge +{ + public class Program + { + public static void Main(string[] args) + { + var host = new WebHostBuilder() + .UseKestrel() + .UseContentRoot(Directory.GetCurrentDirectory()) + .UseIISIntegration() + .UseStartup() + .UseApplicationInsights() + .Build(); + + host.Run(); + } + } +} diff --git a/qcbadge/Properties/launchSettings.json b/qcbadge/Properties/launchSettings.json new file mode 100644 index 0000000..ea401bf --- /dev/null +++ b/qcbadge/Properties/launchSettings.json @@ -0,0 +1,27 @@ +{ + "iisSettings": { + "windowsAuthentication": false, + "anonymousAuthentication": true, + "iisExpress": { + "applicationUrl": "http://localhost:55091/", + "sslPort": 0 + } + }, + "profiles": { + "IIS Express": { + "commandName": "IISExpress", + "launchBrowser": true, + "environmentVariables": { + "ASPNETCORE_ENVIRONMENT": "Development" + } + }, + "qcbadge": { + "commandName": "Project", + "launchBrowser": true, + "environmentVariables": { + "ASPNETCORE_ENVIRONMENT": "Development" + }, + "applicationUrl": "http://localhost:55092" + } + } +} diff --git a/qcbadge/Startup.cs b/qcbadge/Startup.cs new file mode 100644 index 0000000..faff2a2 --- /dev/null +++ b/qcbadge/Startup.cs @@ -0,0 +1,60 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Threading.Tasks; +using Microsoft.AspNetCore.Builder; +using Microsoft.AspNetCore.Hosting; +using Microsoft.Extensions.Configuration; +using Microsoft.Extensions.DependencyInjection; +using Microsoft.Extensions.Logging; + +namespace qcbadge +{ + public class Startup + { + public Startup(IHostingEnvironment env) + { + var builder = new ConfigurationBuilder() + .SetBasePath(env.ContentRootPath) + .AddJsonFile("appsettings.json", optional: false, reloadOnChange: true) + .AddJsonFile($"appsettings.{env.EnvironmentName}.json", optional: true) + .AddEnvironmentVariables(); + Configuration = builder.Build(); + } + + public IConfigurationRoot Configuration { get; } + + // This method gets called by the runtime. Use this method to add services to the container. + public void ConfigureServices(IServiceCollection services) + { + // Add framework services. + services.AddMvc(); + } + + // This method gets called by the runtime. Use this method to configure the HTTP request pipeline. + public void Configure(IApplicationBuilder app, IHostingEnvironment env, ILoggerFactory loggerFactory) + { + loggerFactory.AddConsole(Configuration.GetSection("Logging")); + loggerFactory.AddDebug(); + + if (env.IsDevelopment()) + { + app.UseDeveloperExceptionPage(); + app.UseBrowserLink(); + } + else + { + app.UseExceptionHandler("/Home/Error"); + } + + app.UseStaticFiles(); + + app.UseMvc(routes => + { + routes.MapRoute( + name: "default", + template: "{controller=Home}/{action=Index}/{id?}"); + }); + } + } +} diff --git a/qcbadge/Views/Home/About.cshtml b/qcbadge/Views/Home/About.cshtml new file mode 100644 index 0000000..50476d1 --- /dev/null +++ b/qcbadge/Views/Home/About.cshtml @@ -0,0 +1,7 @@ +@{ + ViewData["Title"] = "About"; +} +

@ViewData["Title"].

+

@ViewData["Message"]

+ +

Use this area to provide additional information.

diff --git a/qcbadge/Views/Home/Contact.cshtml b/qcbadge/Views/Home/Contact.cshtml new file mode 100644 index 0000000..15c12c6 --- /dev/null +++ b/qcbadge/Views/Home/Contact.cshtml @@ -0,0 +1,17 @@ +@{ + ViewData["Title"] = "Contact"; +} +

@ViewData["Title"].

+

@ViewData["Message"]

+ +
+ One Microsoft Way
+ Redmond, WA 98052-6399
+ P: + 425.555.0100 +
+ +
+ Support: Support@example.com
+ Marketing: Marketing@example.com +
diff --git a/qcbadge/Views/Home/Index.cshtml b/qcbadge/Views/Home/Index.cshtml new file mode 100644 index 0000000..e3f313d --- /dev/null +++ b/qcbadge/Views/Home/Index.cshtml @@ -0,0 +1,108 @@ +@{ + ViewData["Title"] = "Home Page"; +} + + + +
+
+

Application uses

+
    +
  • Sample pages using ASP.NET Core MVC
  • +
  • Bower for managing client-side libraries
  • +
  • Theming using Bootstrap
  • +
+
+ + + +
diff --git a/qcbadge/Views/Shared/Error.cshtml b/qcbadge/Views/Shared/Error.cshtml new file mode 100644 index 0000000..e514139 --- /dev/null +++ b/qcbadge/Views/Shared/Error.cshtml @@ -0,0 +1,14 @@ +@{ + ViewData["Title"] = "Error"; +} + +

Error.

+

An error occurred while processing your request.

+ +

Development Mode

+

+ Swapping to Development environment will display more detailed information about the error that occurred. +

+

+ Development environment should not be enabled in deployed applications, as it can result in sensitive information from exceptions being displayed to end users. For local debugging, development environment can be enabled by setting the ASPNETCORE_ENVIRONMENT environment variable to Development, and restarting the application. +

diff --git a/qcbadge/Views/Shared/_Layout.cshtml b/qcbadge/Views/Shared/_Layout.cshtml new file mode 100644 index 0000000..b29b508 --- /dev/null +++ b/qcbadge/Views/Shared/_Layout.cshtml @@ -0,0 +1,73 @@ +@inject Microsoft.ApplicationInsights.AspNetCore.JavaScriptSnippet JavaScriptSnippet + + + + + + @ViewData["Title"] - qcbadge + + + + + + + + + + @Html.Raw(JavaScriptSnippet.FullScript) + + + +
+ @RenderBody() +
+
+

© 2017 - qcbadge

+
+
+ + + + + + + + + + + + + @RenderSection("Scripts", required: false) + + diff --git a/qcbadge/Views/Shared/_ValidationScriptsPartial.cshtml b/qcbadge/Views/Shared/_ValidationScriptsPartial.cshtml new file mode 100644 index 0000000..27e0ea7 --- /dev/null +++ b/qcbadge/Views/Shared/_ValidationScriptsPartial.cshtml @@ -0,0 +1,18 @@ + + + + + + + + diff --git a/qcbadge/Views/_ViewImports.cshtml b/qcbadge/Views/_ViewImports.cshtml new file mode 100644 index 0000000..d02dc25 --- /dev/null +++ b/qcbadge/Views/_ViewImports.cshtml @@ -0,0 +1,2 @@ +@using qcbadge +@addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers diff --git a/qcbadge/Views/_ViewStart.cshtml b/qcbadge/Views/_ViewStart.cshtml new file mode 100644 index 0000000..a5f1004 --- /dev/null +++ b/qcbadge/Views/_ViewStart.cshtml @@ -0,0 +1,3 @@ +@{ + Layout = "_Layout"; +} diff --git a/qcbadge/appsettings.Development.json b/qcbadge/appsettings.Development.json new file mode 100644 index 0000000..fa8ce71 --- /dev/null +++ b/qcbadge/appsettings.Development.json @@ -0,0 +1,10 @@ +{ + "Logging": { + "IncludeScopes": false, + "LogLevel": { + "Default": "Debug", + "System": "Information", + "Microsoft": "Information" + } + } +} diff --git a/qcbadge/appsettings.json b/qcbadge/appsettings.json new file mode 100644 index 0000000..5fff67b --- /dev/null +++ b/qcbadge/appsettings.json @@ -0,0 +1,8 @@ +{ + "Logging": { + "IncludeScopes": false, + "LogLevel": { + "Default": "Warning" + } + } +} diff --git a/qcbadge/bundleconfig.json b/qcbadge/bundleconfig.json new file mode 100644 index 0000000..6d3f9a5 --- /dev/null +++ b/qcbadge/bundleconfig.json @@ -0,0 +1,24 @@ +// Configure bundling and minification for the project. +// More info at https://go.microsoft.com/fwlink/?LinkId=808241 +[ + { + "outputFileName": "wwwroot/css/site.min.css", + // An array of relative input file paths. Globbing patterns supported + "inputFiles": [ + "wwwroot/css/site.css" + ] + }, + { + "outputFileName": "wwwroot/js/site.min.js", + "inputFiles": [ + "wwwroot/js/site.js" + ], + // Optionally specify minification options + "minify": { + "enabled": true, + "renameLocals": true + }, + // Optionally generate .map file + "sourceMap": false + } +] diff --git a/qcbadge/qcbadge.csproj b/qcbadge/qcbadge.csproj new file mode 100644 index 0000000..39fcf83 --- /dev/null +++ b/qcbadge/qcbadge.csproj @@ -0,0 +1,22 @@ + + + + netcoreapp1.1 + + + + $(PackageTargetFallback);portable-net45+win8+wp8+wpa81; + + + + + + + + + + + + + + diff --git a/qcbadge/wwwroot/css/site.css b/qcbadge/wwwroot/css/site.css new file mode 100644 index 0000000..e31abde --- /dev/null +++ b/qcbadge/wwwroot/css/site.css @@ -0,0 +1,37 @@ +body { + padding-top: 50px; + padding-bottom: 20px; +} + +/* Wrapping element */ +/* Set some basic padding to keep content from hitting the edges */ +.body-content { + padding-left: 15px; + padding-right: 15px; +} + +/* Set widths on the form inputs since otherwise they're 100% wide */ +input, +select, +textarea { + max-width: 280px; +} + +/* Carousel */ +.carousel-caption p { + font-size: 20px; + line-height: 1.4; +} + +/* Make .svg files in the carousel display properly in older browsers */ +.carousel-inner .item img[src$=".svg"] { + width: 100%; +} + +/* Hide/rearrange for smaller screens */ +@media screen and (max-width: 767px) { + /* Hide captions */ + .carousel-caption { + display: none; + } +} diff --git a/qcbadge/wwwroot/css/site.min.css b/qcbadge/wwwroot/css/site.min.css new file mode 100644 index 0000000..3beb45f --- /dev/null +++ b/qcbadge/wwwroot/css/site.min.css @@ -0,0 +1 @@ +body{padding-top:50px;padding-bottom:20px}.body-content{padding-left:15px;padding-right:15px}input,select,textarea{max-width:280px}.carousel-caption p{font-size:20px;line-height:1.4}.carousel-inner .item img[src$=".svg"]{width:100%}@media screen and (max-width:767px){.carousel-caption{display:none}} \ No newline at end of file diff --git a/qcbadge/wwwroot/favicon.ico b/qcbadge/wwwroot/favicon.ico new file mode 100644 index 0000000..a3a7999 Binary files /dev/null and b/qcbadge/wwwroot/favicon.ico differ diff --git a/qcbadge/wwwroot/images/banner1.svg b/qcbadge/wwwroot/images/banner1.svg new file mode 100644 index 0000000..1ab32b6 --- /dev/null +++ b/qcbadge/wwwroot/images/banner1.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/qcbadge/wwwroot/images/banner2.svg b/qcbadge/wwwroot/images/banner2.svg new file mode 100644 index 0000000..9679c60 --- /dev/null +++ b/qcbadge/wwwroot/images/banner2.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/qcbadge/wwwroot/images/banner3.svg b/qcbadge/wwwroot/images/banner3.svg new file mode 100644 index 0000000..9be2c25 --- /dev/null +++ b/qcbadge/wwwroot/images/banner3.svg @@ -0,0 +1 @@ +banner3b \ No newline at end of file diff --git a/qcbadge/wwwroot/images/banner4.svg b/qcbadge/wwwroot/images/banner4.svg new file mode 100644 index 0000000..38b3d7c --- /dev/null +++ b/qcbadge/wwwroot/images/banner4.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/qcbadge/wwwroot/js/site.js b/qcbadge/wwwroot/js/site.js new file mode 100644 index 0000000..82ecce7 --- /dev/null +++ b/qcbadge/wwwroot/js/site.js @@ -0,0 +1 @@ +// Write your Javascript code. diff --git a/qcbadge/wwwroot/js/site.min.js b/qcbadge/wwwroot/js/site.min.js new file mode 100644 index 0000000..e69de29