Hide keyboard shortcuts

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 * 

3 

4def heroUnit( 

5 headline="", 

6 tagline="", 

7 buttonStyle="primary", 

8 buttonText="", 

9 buttonHref="#" 

10): 

11 """ 

12 *Generate a heroUnit - TBS style* 

13 

14 **Key Arguments** 

15 

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 

21  

22 

23 **Return** 

24 

25 - ``heroUnit`` -- the heroUnit 

26  

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() 

38 

39 return heroUnit