"layout"
Bootstrap 3.0.0 Snippet by evarevirus

<link href="//netdna.bootstrapcdn.com/bootstrap/3.0.0/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css"> <script src="//netdna.bootstrapcdn.com/bootstrap/3.0.0/js/bootstrap.min.js"></script> <script src="//code.jquery.com/jquery-1.11.1.min.js"></script> <!------ Include the above in your HEAD tag ----------> <!--JQuery on codepen is failing for some reason - hence the include --> <script src="https://code.jquery.com/jquery-1.11.0.min.js"></script> <div ng-app="portfolio"> <nav class="navbar navbar-inverse navbar-fixed-top"> <div class="container"> <div class="nav-header"> <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#navi"> <span class="sr-only"></span> <span class="icon-bar"></span> <span class="icon-bar"></span> <span class="icon-bar"></span> </button> <!--end navbar-toggle --> <a class="navbar-brand" href="#"></a> </div> <!--end nav header--> <div class="collapse navbar-collapse pull-right " id="navi"> <ul class="nav navbar-nav" ng-controller="navCtrl"> <li ng-repeat="nav in navigation"> <a href="{{nav.id}}">{{ nav.name }} <span class="sr-only">(current)</span> </a> </li> </ul> <!--end ul--> </div> <!--end collapse navbar-collapse--> </div> <!--end container-fluid--> </nav> <!--end nav--> <section id="home" ng-controller="homeCtrl as home"> <header> <div class="container"> <div class="header-content text-center"> <div class="header-content-inner"> <h1>{{title}}</h1> <hr> <p>{{description}}</p> </div> </div> <!--<div class="seemore"></a><i class="indicator glyphicon glyphicon-chevron-down"></i></a></div>--> </div> </header> </section> <!--end header section--> <section id="about" ng-controller="aboutCtrl as about"> <div class="container"> <div class="header-content text-center"> <div class="header-content-inner"> <h1>{{aboutText.title}}</h1> <hr> <p class="lead">{{aboutText.copyText}}</p> </div> </div> </div> </section> <!--end about section--> <section id="portfolio" ng-controller="portfolioCtrl"> <div class="container"> <div class="row"> <div class="col-xs-12 col-sm-6 col-md-4" ng-repeat="item in works"> <div href="{{item.url}}" class="thumbnail"> <img ng-src="{{item.thumbnail}}" alt="{{item.title}}"> <div class="caption"> <h3 class="title">{{item.title}}</h3> <p>{{item.caption}}</p> </div> </div> </div> </div> </div> </section> <!--end portfolio section--> <section id="contact"> <div class="container"> <div class="row"> <div class="col-lg-12 text-center"> <h2 class="section-heading">Get in Touch</h2> </div> </div> <!--end second row--> <div class="row"> <div class="col-lg-12"> <form name="sentMessage" id="contactForm" novalidate=""> <div class="row"> <div class="col-md-6"> <div class="form-group"> <input type="text" class="form-control" placeholder="Your Name" id="name" required="" data-validation-required-message="Please enter your name." aria-invalid="false"> <p class="help-block text-danger"></p> </div> <!--end form-group--> <div class="form-group"> <input type="email" class="form-control" placeholder="Your Email *" id="email" required="" data-validation-required-message="Please enter your email address."> <p class="help-block text-danger"></p> </div> <!--end form-group--> <div class="form-group"> <input type="tel" class="form-control" placeholder="Your Phone *" id="phone" required="" data-validation-required-message="Please enter your phone number."> <p class="help-block text-danger"></p> </div> <!--end form-group--> </div> <div class="col-md-6"> <div class="form-group"> <textarea class="form-control" placeholder="Your Message *" id="message" required="" data-validation-required-message="Please enter a message." aria-invalid="false"></textarea> <p class="help-block text-danger"></p> </div> </div> <div class="clearfix"></div> <div class="col-lg-12 text-center"> <div id="success"></div> <button type="submit" class="btn btn-xl">Send Message</button> </div> </div> <!--end row--> </form> <!--end form--> </div> </div> <!--end first row--> </div> <!--end container --> </section> <!--end contact section--> <footer> <div class="container"> <div class="row"> <div class="col-md-4"> <span class="copyright">Copyright © 2016</span> </div> <div class="col-md-4"> <ul class="list-inline social-buttons"> <li><a href="https://www.facebook.com/adhiskeke" target="_blank"><i class="fa fa-facebook"></i></a></li> <li><a href="https://github.com/mnyamor"><i class="fa fa-github" target="_blank"></i></a></li> <li><a href="https://fi.linkedin.com/in/mnyamor"><i class="fa fa-linkedin" target="_blank"></i></a></li> <li><a href="https://www.instagram.com/kadhis/"><i class="fa fa-instagram" target="_blank"></i></a></li> </ul> </div> <div class="col-md-4"> <ul class="list-inline quicklinks"> <li><a href="#">Privacy Policy</a> </li> <li><a href="#">Terms of Use</a> </li> </ul> </div> </div> <!--end row --> </div> <!--end form container--> </footer> <!--end footer--> </div> <!--end ng-app-->
@import url('https://fonts.googleapis.com/css?family=Tangerine'); @import url(https://fonts.googleapis.com/css?family=Kaushan+Script); @import url(https://fonts.googleapis.com/css?family=Open+Sans:300italic,400italic,700italic,300,400,700); @import url('//netdna.bootstrapcdn.com/font-awesome/4.0.3/css/font-awesome.css'); body { font-family: "Open Sans"; font-size: 16px; background-color: #eae1d5; overflow-x: hidden; } h1, h2 { font-family: "Kaushan Script", "Helvetica Neue", Helvetica, Arial, cursive; } /*Nav*/ .navbar-inverse { background-color: transparent; border-color: transparent; } .navbar-inverse .navbar-brand:focus, .navbar-inverse .navbar-brand:hover { color: #FF0052; background-color: transparent; outline: none; } .navbar-inverse .navbar-nav>li>a:focus, .navbar-inverse .navbar-nav>li>a:hover { color: #E05416; background-color: transparent; } .navbar-brand { padding: 15px 0; -webkit-transition: all 0.3s; -moz-transition: all 0.3s; transition: all 0.3s; } .navbar-inverse.navbar-animated { background-color: #222222; } .navbar-inverse .navbar-brand { color: #fed136; font-family: "Kaushan Script", "Helvetica Neue", Helvetica, Arial, cursive; } a { color: #fff; } a:hover, a:focus { color: #e05416; text-decoration: none; } .navbar-brand:before { content: 'MN'; background-color: #E05416; position: absolute; width: 60px; height: 60px; font-size: 20px; line-height: 50px; color: #fff; padding: 3px 10px; z-index: -1; border: 3px solid; vertical-align: bottom; } .navbar-inverse .navbar-toggle:focus, .navbar-inverse .navbar-toggle:hover { background-color: transparent; } .navbar-inverse .navbar-nav>.active>a, .navbar-inverse .navbar-nav>.active>a:focus, .navbar-inverse .navbar-nav>.active>a:hover { color: #E05416; background-color: transparent; } .navbar-inverse .navbar-toggle { border-color: transparent; } .navbar-inverse .navbar-toggle .icon-bar { background-color: #E05416; } .navbar-toggle { margin-right: 0; padding: 9px 0; } .navbar-inverse .navbar-nav>li>a { color: #fff; } section#about, footer { background: #222222; color: #fff; } section#contact { background: #fff; color: #000; } section#about, section#contact, section#portfolio { padding: 150px 0; min-height: 100vh; } /*header*/ header { background-repeat: none; background-attachment: scroll; background-position: center center; -webkit-background-size: cover; -moz-background-size: cover; background-size: cover; -o-background-size: cover; text-align: center; color: white; /*background-image: url('http://static2.format-assets.com/static/marketing/home/testimonials/03/background-477ec11262dc2aa237c099a6342af29cdf6ad4b507941450cc7481c7d4f0ee78.jpg');*/ background-image: url('http://media02.hongkiat.com/freebies-web-designer-sep-2015/free-5k-retina-and-27-imac-psd-mockup.jpg'); z-index: -2; font-family: "Kaushan Script", "Helvetica Neue", Helvetica, Arial, cursive; height: 100vh; } header:before { content: ''; position: absolute; background: #000; opacity: .5; top: 0; left: 0; right: 0; bottom: 0; } p.lead { color: #eae1d5; } header .header-content .header-content-inner { padding: 100px 0 50px; position: relative; z-index: 1; } header .header-content .header-content-inner p { font-size: 22px; line-height: 30px; margin-bottom: 25px; } header .header-content .header-content-inner h1 { font-size: 50px; line-height: 50px; margin-bottom: 25px; } hr { border-color: #f05f40; border-width: 3px; max-width: 50px; } .thumbnail .caption { height: 150px; } footer { padding: 10px 0; text-align: center; } #contact .section-heading { margin: 0 0 2em; } #contact #message { min-height: 132px; height: auto; } footer span.copyright { line-height: 40px; text-transform: uppercase; text-transform: none; } footer ul.quicklinks { margin-bottom: 0; line-height: 40px; text-transform: uppercase; text-transform: none; } ul.social-buttons { margin-bottom: 0; } ul.social-buttons li a { display: block; background-color: #222222; height: 40px; width: 40px; border-radius: 100%; font-size: 20px; line-height: 40px; color: white; outline: none; -webkit-transition: all 0.3s; -moz-transition: all 0.3s; transition: all 0.3s; } ul.social-buttons li a:hover, ul.social-buttons li a:focus, ul.social-buttons li a:active { background-color: #E05416; } @media (min-width: 768px) { .navbar-inverse { padding: 25px 0; -webkit-transition: padding 0.3s; -moz-transition: padding 0.3s; transition: padding 0.3s; border: none; } .navbar-brand { font-size: 2em; -webkit-transition: all 0.3s; -moz-transition: all 0.3s; transition: all 0.3s; } header .header-content .header-content-inner { padding: 0; height: 300px; top: 50%; margin-top: -150px; left: 50%; margin-left: -300px; width: 600px; position: absolute; } header .header-content .header-content-inner p { font-size: 40px; line-height: 40px; margin: 0 0 25px; } header .header-content .header-content-inner h1 { font-size: 75px; line-height: 75px; } .navbar-brand { font-size: 2em; -webkit-transition: all 0.3s; -moz-transition: all 0.3s; transition: all 0.3s; } .navbar-inverse.navbar-animated { background-color: #222222; padding: 10px 0; } .navbar-inverse.navbar-shrink .navbar- brand { font-size: 1.5em; } } @media screen and (max-width:768px) { .navbar-inverse .navbar-collapse, .navbar-inverse .navbar-form { float: left!important; background: #222; width: 100vw; position: absolute; } .navbar-inverse .navbar-toggle { z-index: 1; position: relative; } }
var app = angular.module('portfolio', []) //navigation controller .controller('navCtrl', function($scope) { //navigation menu items $scope.navigation = [{ id: '#about', name: 'About' }, { id: '#portfolio', name: 'Portfolio' }, { id: '#contact', name: 'Contacts' }, ]; // Highlight the top nav as scrolling occurs $('body').scrollspy({ target: '.navbar-fixed-top' }) // Closes the Responsive Menu on Menu Item Click $('.navbar-collapse ul li a:not(.dropdown-toggle)').click(function() { $('.navbar-toggle:visible').click(); }); //animation on Scroll $scope.animateHeader = function() { var doc = document, elem = doc.documentElement, header = doc.querySelector('.navbar-inverse'), didScroll = false, changeEffect = 220; window.addEventListener('scroll', function(e) { if (!didScroll) { didScroll = true; setTimeout($scope.scrollPage, 250); } }, false); $scope.scrollPage = function() { var sy = window.scrollY; if (sy >= changeEffect) { $('.navbar-inverse').addClass('navbar-animated'); } else { $('.navbar-inverse').removeClass('navbar-animated'); } didScroll = false; }; }; $scope.animateHeader(); }) //home controller .controller('homeCtrl', function($scope) { $scope.title = "Welcome!"; $scope.description = "Sit back, relax and explore some amazing portfolios!"; }) //about controller .controller('aboutCtrl', function($scope) { $scope.aboutText = { title: "Hello there!", copyText: "It is a long established fact that a reader will be distracted by the readable content of a page when looking at its layout. The point of using Lorem Ipsum is that it has a more-or-less normal distribution of letters, as opposed to using 'Content here, content here', making it look like readable English. Many desktop publishing packages and web page editors now use Lorem Ipsum as their default model text, and a search for 'lorem ipsum' will uncover many web sites still in their infancy. Various versions have evolved over the years, sometimes by accident, sometimes on purpose (injected humour and the like).", facebookUrl: "", githubUrl: "", codepenUrl: "" }; }) //portfolio controller .controller('portfolioCtrl', function($scope) { $scope.works = [{ id: 1, thumbnail: 'http://placehold.it/360x400', url: '', caption: 'Cras justo odio, dapibus ac facilisis in, egestas eget quam. Donec id elit non mi porta gravida at eget metus.', title: 'Project 1' }, { id: 2, thumbnail: 'http://placehold.it/360x400', url: '', caption: 'Donec id elit non mi porta gravida at eget metus. Nullam id dolor id nibh ultricies vehicula ut id elit.', title: 'Project 2' }, { id: 3, thumbnail: 'http://placehold.it/360x400', url: '', caption: 'Nullam id dolor id nibh ultricies vehicula ut id elit.', title: 'Project 3' }, { id: 4, thumbnail: 'http://placehold.it/360x400', url: '', caption: 'Cras justo odio, dapibus ac facilisis in, egestas eget quam. Nullam id dolor id nibh ultricies vehicula ut id elit.', title: 'Project 4' }, { id: 5, thumbnail: 'http://placehold.it/360x400', url: '', caption: 'Nullam id dolor id nibh ultricies vehicula ut id elit.', title: 'Project 5' }, { id: 6, thumbnail: 'http://placehold.it/360x400', url: '', caption: 'Cras justo odio, dapibus ac facilisis in, egestas eget quam. Donec id elit non mi porta gravida at eget metus.', title: 'Project 6' }]; }) //contact controller .controller('contactCtrl', function($scope) { $scope.contact = {}; });

Related: See More


Questions / Comments: