Beispiel #1
0
 def build_slides(self):
     COPY_CLASS = 'track-copy'
     s1 = Slide(
         '/assets/img/landing/track_1.png',
         CenteredContents(863, 0, [
             CenteredContent("COLLABORATE AT EVERY STAGE",
                             [COPY_CLASS, "header-1", "center-align"])
         ], False))
     s2 = Slide(
         '/assets/img/landing/track_2.png',
         CenteredContents(863, 0, [
             CenteredContent("TRACK IN REAL TIME",
                             [COPY_CLASS, "header-1", "center-align"])
         ], False))
     return [s1, s2]
Beispiel #2
0
def get_landing_centered_contents():
    contents_arr = [("BUILD TOGETHER", ["header-1", "white-font"], None),
                    ("Hire creative startups to build innovative apps",
                     ["header-3", "white-font"], None),
                    (None, None, "components/get_started_button.html")]
    contents = [CenteredContent(s[0], s[1], s[2]) for s in contents_arr]
    return CenteredContents(None, 0, contents, False)
Beispiel #3
0
def get_why_beaglesloft_centered_contents():
    centered_contents = []
    contents_arr = [("WHY BEAGLES LOFT?", ["header-2", "white-font"])]
    contents = [CenteredContent(s[0], s[1]) for s in contents_arr]
    centered_contents.append(CenteredContents(None, 0, contents, False))
    contents_arr = [(
        "The name is inspired by an old basketball playground in Bangalore. In this playground, we built "
        "friendships that have lasted the length of our current lives, we discussed how we'd disrupt the "
        "status quo and we tinkered with technology and music. We often underestimate the value of these "
        "playgrounds in our lives, but these little playgrounds offer the three key tools that are "
        "sufficient to work on the really big ideas that can push life forward - community, disruptive "
        "ideas and a framework for tinkering.",
        ["why-beaglesloft-copy", "white-font"])]
    contents = [CenteredContent(s[0], s[1]) for s in contents_arr]
    centered_contents.append(CenteredContents(308, 0, contents))
    return centered_contents
Beispiel #4
0
def get_footer_centered_contents():
    contents_arr = [("HIRE PIRATES",["header-1","dark-font"], None),
                    ("Engage an innovative startup to build your app",["header-3","dark-font"], None),
                    (None, None, 'components/get_started_button_inverse.html')]
    contents = [CenteredContent(s[0], s[1], s[2]) for s in contents_arr]
    for c in contents:
        print c.component
    return CenteredContents(0, 0, contents, False)
Beispiel #5
0
 def get(self):
     template_values = {}
     contents_arr = [("MEMBERSHIPS", ["page_heading", "tracks-page-title"])]
     contents = [CenteredContent(s[0], s[1]) for s in contents_arr]
     template_values['page_title_centered'] = CenteredContents(
         None, 0, contents, False)
     template_values['table_rows'] = table_rows
     self.render_template(template_name='membership.html',
                          template_values=template_values)
Beispiel #6
0
def get_steve_centered_contents():
    contents_arr = [
        ("\"It's better to be a pirate than join the navy\"",
         ["header-2", "center-align"]),
        ("Steve Jobs, 1984", ["header-3", "right-align"]),
        ("Urban legend has it that the original Macintosh team flew a Pirate flag over the building as they raced against time and naysayers to build the Mac.",
         ["normal-copy"])
    ]
    contents = [CenteredContent(s[0], s[1]) for s in contents_arr]
    return CenteredContents(406, 0, contents)
Beispiel #7
0
def get_centered_contents_for(contents_arr):
    contents = [CenteredContent(s[0], s[1]) for s in contents_arr]
    return CenteredContents(None, 0, contents, False)