Skip to content

Instantly share code, notes, and snippets.

@kgiszewski
Created December 31, 2015 15:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kgiszewski/47d3e6be0f269130fdc4 to your computer and use it in GitHub Desktop.
Save kgiszewski/47d3e6be0f269130fdc4 to your computer and use it in GitHub Desktop.
MVP Part 4 - Header
@{
var keywordsQuery = HttpContext.Current.Request["q"];
}
<section id="header" class="container-fluid">
<div class="col-md-6 masthead">
<h1><a href="/">Kevin Giszewski</a></h1>
<p>Web Developer, Blogger, Freelancer, Filmmaker, Father</p>
</div>
<div class="col-md-6 not-masthead">
<form class="navbar-form pull-right" role="search" action="/search" method="GET">
<div class="input-group">
<input type="text" class="form-control" placeholder="Search" name="q" id="keywords" value="@keywordsQuery">
<div class="input-group-btn">
<button class="btn btn-default" type="submit"><i class="glyphicon glyphicon-search"></i></button>
<input type="submit" style="display:none" />
</div>
</div>
</form>
</div>
</section>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment