Baker & Coffee HTML5/CSS3 Template
By: Crafted PixelsHTML Files & Structure
Baker & Coffee is a fully responsive HTML5/CSS3 template based on Bootstrap 3, W3C Markup Validated, Retina-Ready and cross-browser compatible.
- The Reservation form and the Contact form require a real web server (local or online);
- Google Maps app requires an internet connection.
The template's main component parts are: header, content and footer. The html is heavily commented, for easy modifications, and the main structure looks like this:
<!-- header -->
<header>
header content goes here (including main navigation)
</header>
<!-- end header -->
<!-- hero -->
<div id="hero" class="animated fadeInDown">
hero content goes here
</section>
<!-- hero -->
<!-- content starts here -->
<div id="content">
content sections go here
</div>
<!-- content ends here -->
<!-- footer -->
<footer>
footer content goes here
</footer>
<!-- end footer -->
-
Header contains the main navigation menu.
<!-- header --> <header> <div class="container"> <a id="nav-toggle" class="nav-slide-button" href="#"><span></span></a> </div> <nav class="pull"> <ul class="top-nav"> <li><a href="#top">Home</a></li> <li><a href="index.html#menu-section">Menu</a></li> <li><a href="index.html#about-section">About</a></li> <li><a href="index.html#gallery-section">Gallery</a></li> <li><a href="index.html#journal-section">Journal</a></li> <li><a href="index.html#reservations-section">Reservations</a></li> <li><a href="index.html#contact">Contact</a></li> </ul> </nav> </header> <!-- end header -->
-
Content structure:
1. Home Page
<!-- content starts here --> <div id="content"> content sections go here </div> <!-- content ends here -->
2. Journal/Blog secondary pages
<!-- content starts here --> <div id="content"> content sections go here </div> <!-- content ends here -->
CSS Files & Structure
Baker & Coffee uses five css files: bootstrap.min.css, font-awesome.min.css, animate.min.css, style.css, jquery-ui-datepicker.min.css.
With the exception of the custom css file (style.css), all the css files are minified, for performance reasons.
The css rules/styles in style.css are organized in grouped. These are the groups:
- Line 1: Custom fonts
- Line 12: LOADING (Styles for the preloader NProgress Loading Bar)
- Line 82: GENERAL STYLES
- Line 208: MAIN NAV
- Line 352: HERO
- Line 403: CONTENT
- Line 509: FEATURED SECTION
- Line 514: MENU SECTION
- Line 585: ABOUT SECTION
- Line 594: GALLERY SECTION
- Line 745: JOURNAL SECTION
- Line 919: RESERVATIONS SECTION
- Line 1076: CONTACT SECTION
- Line 1171: FOOTER
- Line 1234: WAYPOINTS
- Line 1272: BXSLIDER v4.1.2
- Line 1445: MAGNIFIC POPUP STYLES
- Line 1809: RETINA/HIDPI
- Line 1846: MEDIA QUERIES FOR FONT ROOT SIZE
- Line 1860: MEDIA QUERIES
- Line 1918: MEDIA QUERIES FOR MAGNIFIC POPUP PLUGIN
Grid
Baker & Coffee 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/.
Typography
Baker & Coffee uses 2 fonts (all fonts are included):
- RufinaALT02 Bold from TipoType - premium font used for titles
(free Google Fonts alternatives to RufinaALT02 are Rufina and Playfair Display); - Raleway - free font from Google Fonts, used everywhere else.
JavaScript
.js Files
To optimize performance, Baker & Coffee 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.1.min.js"></script> - jQuery
<script src="js/bind-polyfill.min.js"></script> - polyfill for browsers that do not have the bind method
<script src="js/nprogress.min.js"></script> - nprogress preloader
<script src="js/bootstrap.min.js"></script> - Bootstrap .js file
<script src="js/smooth-scroll.min.js"></script> - for smooth scrolling
<script src="js/waypoints.min.js"></script> - for css3 animations
<script src="js/jquery.easing.1.3.min.js"></script> - for smooth scrolling
<script src="js/isotope.pkgd.min.js"></script> - Isotope masonry
<script src="js/jquery.magnific-popup.min.js"></script> - Magnific Popup lightbox
<script src="js/jquery.bxslider.min.js"></script> - BXSlider - used in journal/blog galleries
<script src="twitter/min/tweetie-min.js"></script> - Latest tweets app
<script src="js/tweenmax.min.js"></script> - Latest tweets animation
<script src="js/scrolltoplugin.min.js"></script> - for scrolling
<script src="js/custom.js"></script> - other custom scripts
<!-- end javascript -->
There are some additional scripts in index.html:
<script src="//maps.google.com/maps/api/js?sensor=false"></script> - for Google maps app
<script src="js/gmaps.js"></script> - for Google maps app
<script src="js/jquery-ui-datepicker.min.js"></script> - calendar for the reservation form
<script> - inline scripts for Google maps app and for the reservation form
GMaps.geocode({
address: $('#address').html(),
callback: function(results, status) {
if (status == 'OK') {
map = new GMaps({
div: '#map',
lat: -12.043333,
lng: -77.028333
});
var latlng = results[0].geometry.location;
map.setCenter(latlng.lat(), latlng.lng());
map.addMarker({
lat: latlng.lat(),
lng: latlng.lng()
});
}
}
});
$("#reservation-calendar").datepicker({
inline: true,
dateFormat: "dd MM yy",
monthNames: [ "January", "February", "March", "April", "May", "June", "July", "August",
"September", "October", "November", "December" ]
});
</script>
Google Maps app
The Google map is automatically focusing on the address that you input in the html.
Just replace "Großer Tiergarten, Straße des 17. Juni 31 10785 Berlin Germany" with your own address in index.html file, on line 422.
Reservations form
To use the reservations form, you must replace demo@email.com with your email on line 3 of reservation.php file (located in the "reservation-form" folder). Also, the email subject can be changed, on line 4.
/** Configuration **/
$emailDestination = 'demo@email.com';
$emailSubject = 'New reservation!';
The reservation email that you receive when a reservation is made can be customized:
- You can add your own logo: just replace the default logo.png (located in the "reservation-form" folder) with your image. The image size can be any size you want.
- You can modify the css styles or the form (the form is reservation_email.phtml file, located in the "reservation-form" folder).
Please note that using the reservation form requires an actual server.
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 the "contact-form" folder).
Please note that using the contact form requires an actual server.
PSD Files
You can find the .psd files in the "PSD-files" folder.
9 .psd files are included:
- 01_homepage.psd
- 01_homepage@2x.psd
- 01_homepage@3x.psd
- 02_homepage_menu.psd
- 02_homepage_menu@2x.psd
- 03_journalpage.psd
- 03_journalpage@2x.psd
- 04_journalpost.psd
- 04_journalpost@2x.psd
The psd files content is structured in three main groups: Header, Content and Footer.

-
Header contains: logo, main menu (closed and opened), location/open hours sign and a featured image;
The logo is 100% editable. Three fonts were used: Nexa Rust Script L01, Nexa Rust Extras Words and Raleway (see "Sources and Credits" section for download links).
-
Content is divided into content sections (Products, Menu, About, Gallery, Journal, Reservations and Contact);
-
Footer is divided into Top (with three widget areas) and Bottom (with copyright).
All the layers are ordered, labeled and organized in groups.
Updates
-
V 1.0
Initial release.
Sources and Credits
- Vector illustrations (included in the template): Elena Pimonova, Vecteezy Premium or handcrafted by us;
- Icons: Elite Pro (reservations form icons), FontAwesome (social media icons);
- Fonts:
- Template:
- RufinaALT02 Bold from TipoType - premium font used for titles
(free Google Fonts alternatives to RufinaALT02 are Rufina and Playfair Display); - Raleway - free font from Google Fonts, used everywhere else.
- RufinaALT02 Bold from TipoType - premium font used for titles
- Logo:
- Nexa Rust Script L01 and Nexa Rust Extras Words from Fontfabric - premium fonts used in logo text;
- Raleway - free font from Google Fonts, used for tagline.
- Template:
- Pictures used in the preview files (not included in the template): DollarPhotoClub