Skip to content

feat: add About page and link in navigation #374

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions src/BlazingPizza.Client/Pages/About.razor
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
@page "/about"

<h3>About Us</h3>

<h5>This is the About Page. Welcome to Blazor Pizza!</h5>
8 changes: 7 additions & 1 deletion src/BlazingPizza.Client/Shared/MainLayout.razor
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
@inherits LayoutComponentBase
@using Microsoft.AspNetCore.Components.Routing
@inherits LayoutComponentBase

<div class="top-bar">
<a class="logo" href="">
Expand All @@ -10,6 +11,11 @@
<div>Get Pizza</div>
</NavLink>

<NavLink href="about" class="nav-tab">
<img src="img/pizza-slice.svg" />
<div>About Us</div>
</NavLink>

<AuthorizeView>
<NavLink href="myorders" class="nav-tab">
<img src="img/bike.svg" />
Expand Down