On Github aragonwa / revealjs-demo
Presented by Alex Aragon
Developers who know HTML, CSS and JavaScript.
Content owners who want more control of their pages.
People who are about to migrate.
Regular content editors (minimal contact with Sitecore)
How to use Sitecore?
http://edit.kingcounty.gov/help/styleguide/
Go to: http://getbootstrap.com/
Twitter Bootstrap is a collection of UI (user interface) elements, layouts and JavaScript tools that King County is using as a framework for our website.
TRY IT: Use TBS code to create a panel with a heading.
Solution
<div class="panel panel-default"> <div class="panel-heading"> <h3 class="panel-title">Panel title</h3> </div> <div class="panel-body"> Panel content </div> </div>
King County policy on custom code
TRY IT: Create an addon and add a blockquote and anchor buttons
EXTRA CREDIT: Add a a portal list
<blockquote>To infinity and beyond</blockquote> <a target="_blank" href="http://www.google.com" role="button" class="btn btn-default">Link </a> <div class="portal-list"> <h2>List title</h2> <ul> <li><a target="_blank" href="#">Lorem ipsum</a></li> <li><a target="_blank" href="#">Phasellus iaculis</a></li> <li><a target="_blank" href="#">Nulla volutpat</a></li> </ul> </div>
Font Awesome Version 4.1.0
TRY IT: Insert a facebook icon to a button link
EXTRA CREDIT: Color your icons
<a target="_blank" href="http://www.google.com" role="button" class="btn btn-default"> <i class="fa-facebook-square"></i> Like me </a>
By default all images are responsive
Make images not responsive by adding class .img-non-responsive
TRY IT: Add an image that floats to right of text
<img src="http://lorempixel.com/250/250/animals/color/" class="pull-right"> <p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean commodo ligula eget dolor. </p>
TRY IT: Add a calendar to an addon
Make sure to add JavaScript snippet to customCode section
<div id="my-cal"></div> <script> $('#my-cal').eventsCalendar({ calNum: '69gk-ky9a' }); </script>
TRY IT: Add a news feed to an addon
Make sure to add Javascript snippet to customCode section
<div id="my-news"></div> <script> $('#my-news').deliciousNewsFeed({ title: 'My News Feed' }); </script>
TRY IT: Add a row of thumbails to an addon
EXTRA CREDIT: Add a title, text and buttons to thumbnail
<div class="row"> <div class="col-xs-6 col-md-3"><a target="_blank" href="#" class="thumbnail"><img src="http://placekitten.com/171/180"></a></div> <div class="col-xs-6 col-md-3"><a target="_blank" href="#" class="thumbnail"><img src="http://placekitten.com/171/180"></a></div> <div class="col-xs-6 col-md-3"><a target="_blank" href="#" class="thumbnail"><img src="http://placekitten.com/171/180"></a></div> <div class="col-xs-6 col-md-3"><a target="_blank" href="#" class="thumbnail"><img src="http://placekitten.com/171/180"></a></div> </div>
TRY IT: Add a label
<p> Example heading <span class="label label-default">New</span> </p>
Twitter Bootstrap uses a 12-column grid system
Grid automatically stacks at mobile.
Desktop view
Mobile view
Use visibility classes to toggle visibility of sections at certain sizes
TRY IT: Create a div with text and hide it from mobile view.
<div> <p> Lots of text I don't want anyone using on an mobile device to see</p> </div>
Email: webteam@kingcounty.gov