Moustache & Pipe HTML Template Documentation
By: Crafted PixelsHTML Files & Structure
Moustache & Pipe is a fully responsive HTML template based on Bootstrap 3, W3C Markup Validated, Retina-Ready and cross-browser compatible.
- Contact form requires a real web server (local or online);
- Google Maps app requires an internet connection.
The template's main component parts are: main nav, header, content and footer. The html is heavily commented, for easy modifications, and the main structure looks like this:
<!-- nav -->
<nav id="bt-menu" class="bt-menu">
<!-- nav content here -->
</nav>
<!-- end nav -->
<!-- hero -->
<div class="hero">
<!-- hero area content here (h1, h2 subheadline) -->
</div>
<!-- end hero-->
<!-- content starts here -->
<!-- sections content here -->
<!-- content ends here -->
<!-- footer -->
<footer class="clearfix">
<!-- footer content here (copyright) -->
</footer>
<!-- end footer -->
-
Hero Section contains the headline H1 and the subheadline H2. You can also add a logo above the H1.
<!-- hero --> <div class="hero"> <div class="container"> <h1>Moustache & Pipe</h1> <h2>Artisans of Web Beauty</h2> </div> </div> <!-- end hero-->
-
Content structure:
<!-- content starts here --> <!-- section About --> <section class="clearfix" id="page-nav-about"> <!-- About section content here --> </section> <!-- end section About --> <!-- section Work--> <section class="clearfix portfolio" id="page-nav-work"> <!-- Portfolio section content here --> </section> <!-- end section work --> <!-- section Solutions --> <section class="clearfix" id="page-nav-solutions"> <!-- Solutions section content here --> </section> <!-- end section Solutions --> <!-- section Team --> <section class="clearfix" id="page-nav-team"> <!-- Team section content here --> </section> <!-- end section Team --> <!-- section Blog --> <section class="clearfix" id="page-nav-blog"> <!-- Blog section content here --> </section> <!-- end section Blog --> <!-- section Contact --> <section class="clearfix" id="page-nav-contact"> <!-- Contact section content here --> </section> <!-- end section Contact --> <!-- content ends here -->
CSS Files & Structure
Moustache & Pipe uses 3 css files: style.css, font-awesome.min.css and bootstrap.min.css (minified for performance reasons).
style.css file is heavy commented for easy modifications. The content is structured like this:
- Line 1: GENERAL STYLES
- Line 97: MAIN NAV
- Line 283: HERO SECTION
- Line 329: CONTENT SECTIONS
- Line 337: ABOUT SECTION - with testimonials slider styles
- Line 507: PORTFOLIO SECTION - with styles for Colio jQuery plugin, Flex Slider, Isotope and clients logo slider
- Line 1009: SOLUTIONS SECTION
- Line 1030: TEAM SECTION
- Line 1183: BLOG SECTION
- Line 1214: CONTACT SECTION
- Line 1322: FOOTER
- Line 1366: RETINA/HIDPI QUERIES
- Line 1404: MEDIA QUERIES
Grid
Moustache & Pipe is based on Bootstrap 3 grid.
You can find more information on the Boostrap framework website getbootstrap.com, in the documentation grid section: getbootstrap.com/css/#grid.
Elements
You can find all the elements that can be used here: getbootstrap.com/components/.
JavaScript
To optimize performance, Moustache & Pipe template includes all the scripts in the footer, before </body> tag.
The scripts included are the following (each script is explained below):
<!-- javascript -->
<script src="js/jquery-2.1.0.min.js"></script>
<script src="js/bootstrap.min.js"></script>
<script src="js/borderMenu.js"></script>
<script src="js/classie.js"></script>
<script src="js/jquery.bxslider.min.js"></script>
<script src="js/isotope.pkgd.min.js"></script>
<script src="js/jquery.colio.min.js"></script>
<script src="js/jquery.scrollUp.min.js"></script>
<script src="js/jquery.flexslider.min.js"></script>
<script src="https://maps.googleapis.com/maps/api/js?sensor=false"></script>
<script src="js/gmaps.js"></script>
<script src="js/custom.js"></script>
<!-- end javascript -->
- borderMenu.js and classie.js - used for the menu;
- jquery.bxslider.min.js - used for the testimonials slider;
- isotope.pkgd.min.js, jquery.colio.min.js, jquery.scrollUp.min.js and jquery.flexslider.min.js - used for the Portfolio section;
- https://maps.googleapis.com/maps/api/js?sensor=false"> and gmaps.js - used for displaying your address on Google Maps;
- custom.js - custom javascript for the template.
Contact Section
Google Maps
The Google map is automatically focusing on the address that you input in the html.
Just replace "Eiffel Tower, Avenue Anatole France, Paris, France" with your own address and refresh the page.
<div class="col-lg-3 col-xs-12 clearfix" id="contact-text">
<div class="row clearfix">
<p id="address">Eiffel Tower, Avenue Anatole France, Paris, France</p><!-- input your address on this line -->
<p class="fa fa-phone"> 0099-4572386</p><br>
<p class="fa fa-envelope-o"> <a href="mailto:#" target="_blank">hello@leemail.com</a></p>
</div>
<div class="row clearfix" id="contact-social">
<a class="fa fa-twitter-square" href="#" target="_blank"></a>
<a class="fa fa-linkedin-square" href="#" target="_blank"></a>
<a class="fa fa-facebook-square" href="#" target="_blank"></a>
<a class="fa fa-google-plus-square" href="#" target="_blank"></a>
<a class="fa fa-instagram" href="#" target="_blank"></a>
<a class="fa fa-skype" href="#" target="_blank"></a>
</div>
</div>
Contact Form
To use the contact form, you must replace yourmail@demo.com with your email on line 49 of contact.php file (located in "contact-form" folder).
Please note that using the contact form requires an actual server.
Social Media
All icons are webfont format (FontAwesome), so they look just as perfect on Retina/HiDPI screens. In the Social Media part of the Contact section are included Google+, Facebook, Twitter, Instagram, LinkedIn and Skype, but any other FontAwesome icons can be added.
Updates
-
V 1.0
Initial release.
Sources and Credits
- Fonts:
- Webfont Icons: FontAwesome;
- Scripts:
- Isotope v2 - properly licensed, included in the template;
- Colio jQuery Plugin (Portfolio content expander): CodeCanyon - properly licensed, included in the template;
- Bootstrap 3.
- Images used in the demo (not included in the template):
- Team Section Images: PhotoDune;
- Parallax Backgrounds: unsplash.com;
- Portfolio: Vecteezy Premium.