From 1950a53b5c2054ca462f65fc1118d8e37b6dcdda Mon Sep 17 00:00:00 2001 From: Jake Visser Date: Wed, 5 Jul 2017 12:52:07 -0700 Subject: [PATCH] getting the layout right --- qcbadge/Views/Home/Index.cshtml | 105 +--------------------------- qcbadge/Views/Shared/_Layout.cshtml | 22 ++++-- qcbadge/qcbadge.csproj | 3 + qcbadge/wwwroot/css/site.css | 49 +++++-------- qcbadge/wwwroot/images/banner1.svg | 1 - qcbadge/wwwroot/images/banner2.svg | 1 - qcbadge/wwwroot/images/banner3.svg | 1 - qcbadge/wwwroot/images/banner4.svg | 1 - qcbadge/wwwroot/js/site.js | 1 + 9 files changed, 40 insertions(+), 144 deletions(-) delete mode 100644 qcbadge/wwwroot/images/banner1.svg delete mode 100644 qcbadge/wwwroot/images/banner2.svg delete mode 100644 qcbadge/wwwroot/images/banner3.svg delete mode 100644 qcbadge/wwwroot/images/banner4.svg diff --git a/qcbadge/Views/Home/Index.cshtml b/qcbadge/Views/Home/Index.cshtml index e3f313d..d324da6 100644 --- a/qcbadge/Views/Home/Index.cshtml +++ b/qcbadge/Views/Home/Index.cshtml @@ -2,107 +2,4 @@ ViewData["Title"] = "Home Page"; } - - -
-
-

Application uses

-
    -
  • Sample pages using ASP.NET Core MVC
  • -
  • Bower for managing client-side libraries
  • -
  • Theming using Bootstrap
  • -
-
- - - -
+

@ViewData["Message"]

diff --git a/qcbadge/Views/Shared/_Layout.cshtml b/qcbadge/Views/Shared/_Layout.cshtml index d324da6..fc0d298 100644 --- a/qcbadge/Views/Shared/_Layout.cshtml +++ b/qcbadge/Views/Shared/_Layout.cshtml @@ -1,5 +1,19 @@ -@{ - ViewData["Title"] = "Home Page"; -} + + + + + + @ViewData["Title"] + + -

@ViewData["Message"]

+ + +
+ @RenderBody() +
+ + + + + diff --git a/qcbadge/qcbadge.csproj b/qcbadge/qcbadge.csproj index ee12b69..da3b1d8 100644 --- a/qcbadge/qcbadge.csproj +++ b/qcbadge/qcbadge.csproj @@ -21,5 +21,8 @@ + + + diff --git a/qcbadge/wwwroot/css/site.css b/qcbadge/wwwroot/css/site.css index e31abde..ea4cd7c 100644 --- a/qcbadge/wwwroot/css/site.css +++ b/qcbadge/wwwroot/css/site.css @@ -1,37 +1,22 @@ -body { - padding-top: 50px; - padding-bottom: 20px; +div.mainold { + background-color: lightgrey; + width: 600px; + border: 5px solid black; + padding: 25px; + margin: 0 auto; + text-align: left; } -/* Wrapping element */ -/* Set some basic padding to keep content from hitting the edges */ -.body-content { - padding-left: 15px; - padding-right: 15px; +div.disclaim { + background-color: lightgrey; + width: 600px; + border: 5px solid black; + padding: 25px; + margin: 0 auto; + text-align: left; } -/* 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; - } +body { + background-color: Gainsboro; + align-content: center; } diff --git a/qcbadge/wwwroot/images/banner1.svg b/qcbadge/wwwroot/images/banner1.svg deleted file mode 100644 index 1ab32b6..0000000 --- a/qcbadge/wwwroot/images/banner1.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/qcbadge/wwwroot/images/banner2.svg b/qcbadge/wwwroot/images/banner2.svg deleted file mode 100644 index 9679c60..0000000 --- a/qcbadge/wwwroot/images/banner2.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/qcbadge/wwwroot/images/banner3.svg b/qcbadge/wwwroot/images/banner3.svg deleted file mode 100644 index 9be2c25..0000000 --- a/qcbadge/wwwroot/images/banner3.svg +++ /dev/null @@ -1 +0,0 @@ -banner3b \ No newline at end of file diff --git a/qcbadge/wwwroot/images/banner4.svg b/qcbadge/wwwroot/images/banner4.svg deleted file mode 100644 index 38b3d7c..0000000 --- a/qcbadge/wwwroot/images/banner4.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/qcbadge/wwwroot/js/site.js b/qcbadge/wwwroot/js/site.js index 82ecce7..26ea5f8 100644 --- a/qcbadge/wwwroot/js/site.js +++ b/qcbadge/wwwroot/js/site.js @@ -1 +1,2 @@ // Write your Javascript code. +