Coverage for khufu/typography/heroUnit.py : 100%

Hot-keys on this page
r m x p toggle line displays
j k next/prev highlighted chunk
0 (zero) top of page
1 (one) first highlighted chunk
1# encoding: utf-8
2from . import *
4def heroUnit(
5 headline="",
6 tagline="",
7 buttonStyle="primary",
8 buttonText="",
9 buttonHref="#"
10):
11 """
12 *Generate a heroUnit - TBS style*
14 **Key Arguments**
16 - ``headline`` -- the headline text
17 - ``tagline`` -- the tagline text for below the headline
18 - ``buttonStyle`` -- the style of the button to be used
19 - ``buttonText`` -- the text for the button
20 - ``buttonHref`` -- the anchor link for the button
23 **Return**
25 - ``heroUnit`` -- the heroUnit
27 """
28 heroUnit = """
29 <div class="hero-unit" id=" ">
30 <h1>%(headline)s</h1>
31 <p>%(tagline)s</p>
32 <p>
33 <a href="%(buttonHref)s" class="btn btn-%(buttonStyle)s btn-large">
34 %(buttonText)s
35 </a>
36 </p>
37 </div>""" % locals()
39 return heroUnit