From 96c6d959c04c29393ab5e7e788cf462efac1fb29 Mon Sep 17 00:00:00 2001 From: Steve Sanderson Date: Fri, 16 Feb 2018 16:04:49 +0000 Subject: [PATCH] Add simple NavMenu to StandaloneApp --- samples/StandaloneApp/Pages/Home.cshtml | 2 ++ .../StandaloneApp/Shared/MainLayout.cshtml | 14 +++++++---- samples/StandaloneApp/Shared/NavMenu.cshtml | 23 +++++++++++++++++++ samples/StandaloneApp/wwwroot/css/site.css | 4 +--- 4 files changed, 36 insertions(+), 7 deletions(-) create mode 100644 samples/StandaloneApp/Shared/NavMenu.cshtml diff --git a/samples/StandaloneApp/Pages/Home.cshtml b/samples/StandaloneApp/Pages/Home.cshtml index 08af6d96be..cb8804a77c 100644 --- a/samples/StandaloneApp/Pages/Home.cshtml +++ b/samples/StandaloneApp/Pages/Home.cshtml @@ -1,2 +1,4 @@ @(Layout())

Hello, world!

+ +Welcome to your new app. \ No newline at end of file diff --git a/samples/StandaloneApp/Shared/MainLayout.cshtml b/samples/StandaloneApp/Shared/MainLayout.cshtml index 6a830c938a..e9fc4a1131 100644 --- a/samples/StandaloneApp/Shared/MainLayout.cshtml +++ b/samples/StandaloneApp/Shared/MainLayout.cshtml @@ -1,10 +1,16 @@ @using Microsoft.AspNetCore.Blazor.RenderTree @(Implements()) -
- Layout - @Body -
+
+
+
+ +
+
+ @Body +
+
+
@functions { public RenderFragment Body { get; set; } diff --git a/samples/StandaloneApp/Shared/NavMenu.cshtml b/samples/StandaloneApp/Shared/NavMenu.cshtml new file mode 100644 index 0000000000..3ca758e03f --- /dev/null +++ b/samples/StandaloneApp/Shared/NavMenu.cshtml @@ -0,0 +1,23 @@ + diff --git a/samples/StandaloneApp/wwwroot/css/site.css b/samples/StandaloneApp/wwwroot/css/site.css index f958abf61a..2f6f811bb3 100644 --- a/samples/StandaloneApp/wwwroot/css/site.css +++ b/samples/StandaloneApp/wwwroot/css/site.css @@ -1,6 +1,4 @@ -body { -} -.main-nav li .glyphicon { +.main-nav li .glyphicon { margin-right: 10px; }