-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Jessy Kyalo Musyimi
authored and
Jessy Kyalo Musyimi
committed
May 21, 2021
1 parent
f019c83
commit 0a7c6d6
Showing
8 changed files
with
22 additions
and
133 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,106 +1,24 @@ | ||
@{ | ||
@using System.Security.Claims | ||
@{ | ||
ViewData["Title"] = "Home Page"; | ||
} | ||
|
||
<div id="myCarousel" class="carousel slide" data-ride="carousel" data-interval="6000"> | ||
<ol class="carousel-indicators"> | ||
<li data-target="#myCarousel" data-slide-to="0" class="active"></li> | ||
<li data-target="#myCarousel" data-slide-to="1"></li> | ||
<li data-target="#myCarousel" data-slide-to="2"></li> | ||
<li data-target="#myCarousel" data-slide-to="3"></li> | ||
</ol> | ||
<div class="carousel-inner" role="listbox"> | ||
<div class="item active"> | ||
<img src="~/images/banner1.svg" alt="ASP.NET" class="img-responsive" /> | ||
<div class="carousel-caption" role="option"> | ||
<p> | ||
Learn how to build ASP.NET apps that can run anywhere. | ||
<a class="btn btn-default" href="https://go.microsoft.com/fwlink/?LinkID=525028&clcid=0x409"> | ||
Learn More | ||
</a> | ||
</p> | ||
</div> | ||
</div> | ||
<div class="item"> | ||
<img src="~/images/banner2.svg" alt="Visual Studio" class="img-responsive" /> | ||
<div class="carousel-caption" role="option"> | ||
<p> | ||
There are powerful new features in Visual Studio for building modern web apps. | ||
<a class="btn btn-default" href="https://go.microsoft.com/fwlink/?LinkID=525030&clcid=0x409"> | ||
Learn More | ||
</a> | ||
</p> | ||
</div> | ||
</div> | ||
<div class="item"> | ||
<img src="~/images/banner3.svg" alt="Package Management" class="img-responsive" /> | ||
<div class="carousel-caption" role="option"> | ||
<p> | ||
Bring in libraries from NuGet and npm, and automate tasks using Grunt or Gulp. | ||
<a class="btn btn-default" href="https://go.microsoft.com/fwlink/?LinkID=525029&clcid=0x409"> | ||
Learn More | ||
</a> | ||
</p> | ||
</div> | ||
</div> | ||
<div class="item"> | ||
<img src="~/images/banner4.svg" alt="Microsoft Azure" class="img-responsive" /> | ||
<div class="carousel-caption" role="option"> | ||
<p> | ||
Learn how Microsoft's Azure cloud platform allows you to build, deploy, and scale web apps. | ||
<a class="btn btn-default" href="https://go.microsoft.com/fwlink/?LinkID=525027&clcid=0x409"> | ||
Learn More | ||
</a> | ||
</p> | ||
</div> | ||
</div> | ||
</div> | ||
<a class="left carousel-control" href="#myCarousel" role="button" data-slide="prev"> | ||
<span class="glyphicon glyphicon-chevron-left" aria-hidden="true"></span> | ||
<span class="sr-only">Previous</span> | ||
</a> | ||
<a class="right carousel-control" href="#myCarousel" role="button" data-slide="next"> | ||
<span class="glyphicon glyphicon-chevron-right" aria-hidden="true"></span> | ||
<span class="sr-only">Next</span> | ||
</a> | ||
</div> | ||
|
||
<div class="row"> | ||
<div class="col-md-3"> | ||
<h2>Application uses</h2> | ||
<ul> | ||
<li>Sample pages using ASP.NET Core MVC</li> | ||
<li>Theming using <a href="https://go.microsoft.com/fwlink/?LinkID=398939">Bootstrap</a></li> | ||
</ul> | ||
</div> | ||
<div class="col-md-3"> | ||
<h2>How to</h2> | ||
<ul> | ||
<li><a href="https://go.microsoft.com/fwlink/?LinkID=398600">Add a Controller and View</a></li> | ||
<li><a href="https://go.microsoft.com/fwlink/?LinkId=699315">Manage User Secrets using Secret Manager.</a></li> | ||
<li><a href="https://go.microsoft.com/fwlink/?LinkId=699316">Use logging to log a message.</a></li> | ||
<li><a href="https://go.microsoft.com/fwlink/?LinkId=699317">Add packages using NuGet.</a></li> | ||
<li><a href="https://go.microsoft.com/fwlink/?LinkId=699319">Target development, staging or production environment.</a></li> | ||
</ul> | ||
</div> | ||
<div class="col-md-3"> | ||
<h2>Overview</h2> | ||
<ul> | ||
<li><a href="https://go.microsoft.com/fwlink/?LinkId=518008">Conceptual overview of what is ASP.NET Core</a></li> | ||
<li><a href="https://go.microsoft.com/fwlink/?LinkId=699320">Fundamentals of ASP.NET Core such as Startup and middleware.</a></li> | ||
<li><a href="https://go.microsoft.com/fwlink/?LinkId=398602">Working with Data</a></li> | ||
<li><a href="https://go.microsoft.com/fwlink/?LinkId=398603">Security</a></li> | ||
<li><a href="https://go.microsoft.com/fwlink/?LinkID=699321">Client side development</a></li> | ||
<li><a href="https://go.microsoft.com/fwlink/?LinkID=699322">Develop on different platforms</a></li> | ||
<li><a href="https://go.microsoft.com/fwlink/?LinkID=699323">Read more on the documentation site</a></li> | ||
</ul> | ||
</div> | ||
<div class="col-md-3"> | ||
<h2>Run & Deploy</h2> | ||
<hr/> | ||
@if (Context.User.Identities.Any(i => i.IsAuthenticated)) | ||
{ | ||
<p>User is logged in as <strong>@Context.User.Claims.FirstOrDefault(c => c.Type == ClaimTypes.Name)?.Value</strong></p> | ||
<p>Claims:</p> | ||
<ul> | ||
<li><a href="https://go.microsoft.com/fwlink/?LinkID=517851">Run your app</a></li> | ||
<li><a href="https://go.microsoft.com/fwlink/?LinkID=517853">Run tools such as EF migrations and more</a></li> | ||
<li><a href="https://go.microsoft.com/fwlink/?LinkID=398609">Publish to Microsoft Azure Web Apps</a></li> | ||
@foreach (var claim in Context.User.Claims) | ||
{ | ||
<li>@claim.Type: <strong>@claim.Value</strong></li> | ||
} | ||
</ul> | ||
</div> | ||
</div> | ||
} | ||
else | ||
{ | ||
<p>User is not logged in</p> | ||
} | ||
|
||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters