Last active
December 22, 2015 19:49
-
-
Save Injac/6521727 to your computer and use it in GitHub Desktop.
Bootstrap 3.0 Version of _Layout.cshtml and index.cshtml for Visual Studio 2013 MVC project.
This file contains hidden or 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
<!-- _LAYOUT.CSHTML --> | |
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8" /> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<title>@ViewBag.Title - My ASP.NET Application</title> | |
@Styles.Render("~/Content/css") | |
@Scripts.Render("~/bundles/modernizr") | |
</head> | |
<body> | |
<div class="navbar navbar-default navbar-fixed-top"> | |
<div class="navbar-inner"> | |
<div class="navbar-header"> | |
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target=".bs-navbar-collapse"> | |
<span class="icon-bar"></span> | |
<span class="icon-bar"></span> | |
<span class="icon-bar"></span> | |
</button> | |
@Html.ActionLink("Application name", "Index", "Home", null, new { @class = "navbar-brand" }) | |
</div> | |
<div class="collapse navbar-collapse navbar-ex1-collapse bs-navbar-collapse"> | |
<ul class="nav navbar-nav"> | |
<li>@Html.ActionLink("Home", "Index", "Home")</li> | |
<li>@Html.ActionLink("About", "About", "Home")</li> | |
<li>@Html.ActionLink("Contact", "Contact", "Home")</li> | |
</ul> | |
@Html.Partial("_LoginPartial") | |
</div> | |
</div> | |
</div> | |
<div class="container"> | |
@RenderBody() | |
<hr /> | |
<footer> | |
<p>© @DateTime.Now.Year - My ASP.NET Application</p> | |
</footer> | |
</div> | |
@Scripts.Render("~/bundles/jquery") | |
@Scripts.Render("~/bundles/bootstrap") | |
@RenderSection("scripts", required: false) | |
</body> | |
</html> | |
<!-- INDEX.CSHTML --> | |
@{ | |
ViewBag.Title = "Home Page"; | |
} | |
<div class="jumbotron"> | |
<h1>ASP.NET</h1> | |
<p class="lead">ASP.NET is a free web framework for building great Web sites and Web applications using HTML, CSS and JavaScript.</p> | |
<p><a href="http://asp.net" class="btn btn-primary btn-large">Learn more »</a></p> | |
</div> | |
<div class="row"> | |
<div class="col-md-4"> | |
<h2>Getting started</h2> | |
<p>ASP.NET MVC gives you a powerful, patterns-based way to build dynamic websites that | |
enables a clean separation of concerns and gives you full control over markup | |
for enjoyable, agile development.</p> | |
<p><a class="btn" href="http://go.microsoft.com/fwlink/?LinkId=301865">Learn more »</a></p> | |
</div> | |
<div class="col-md-4"> | |
<h2>Get more libraries</h2> | |
<p>NuGet is a free Visual Studio extension that makes it easy to add, remove, and update libraries and tools in Visual Studio projects.</p> | |
<p><a class="btn" href="http://go.microsoft.com/fwlink/?LinkId=301866">Learn more »</a></p> | |
</div> | |
<div class="col-md-4"> | |
<h2>Web Hosting</h2> | |
<p>You can easily find a web hosting company that offers the right mix of features and price for your applications.</p> | |
<p><a class="btn" href="http://go.microsoft.com/fwlink/?LinkId=301867">Learn more »</a></p> | |
</div> | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment