def baseComponents(self): logo = Logo() socialmedia = SocialMedia(twitterAccount='mymagazine', facebookAccount='mymagazine') homePage = Page(components=(logo, socialmedia)) return [homePage]
def baseComponents(self): logo = Logo(logoName='Type 2014', hoverColor='#888') # logoSrc=self.SRCLOGO menu = Menu() socialmedia = SocialMedia(twitterAccount='typo2014', facebookAccount='typo2014') title = self.TITLE + ': ' + self.SUBTITLE header = Header(components=(logo,menu, socialmedia), mobileContainerDisplay=self.NONE) mobileNavigation = MobileNavigation(title=title) # Is container by itself. Change?? footer = Footer(components=(menu,)) homePage = Page(name=self.TEMPLATE_INDEX, components=(mobileNavigation, header, footer), css=self.URL_CSS, fonts=self.URL_FONTS, js=self.URL_JAVASCRIPT, favicon=self.URL_FAVICON) return [homePage]
def baseComponents(self): logo = Logo(logoSrc=self.SRCLOGO) menu = Menu() socialmedia = SocialMedia(twitterAccount='typo2014', facebookAccount='typo2014') header = Header(components=(logo, menu, socialmedia), mobileContainerDisplay=C.NONE) mobileNavigation = MobileNavigation( ) # Is container by itself. Change?? footer = Footer(components=(menu, )) homePage = Page(name=C.TEMPLATE_INDEX, components=(mobileNavigation, header, footer), css=self.URL_CSS, fonts=self.URL_FONTS, js=self.URL_JAVASCRIPT, favicon=self.URL_FAVICON) return [homePage]
def baseComponents(self): logo = Logo(logoSrc=self.SRCLOGO, logoName=self.LOGO, color=C.WHITE, margintop=Em(0.5), fontsize=Em(2), fontfamily='AmplitudeComp Medium') menu = Menu() socialmedia = SocialMedia(twitterAccount='xierpa', facebookAccount='xierpa') header = Header(components=(logo, menu), mobileContainerDisplay=C.NONE) mobileNavigation = MobileNavigation( title=self.TITLE) # Is container by itself. Change?? # Articles featured by image featuredByImage = FeaturedByImage( ) # Featured article on a page. Main photo+link #featuredByImageList = FeaturedByImageList() # Featured article on a page. List of related links # Articles featured by summary text featuredSideText = FeaturedByDiapText(colWidth=4, itemStart=1, label='Featured course') featuredByText = FeaturedByText(itemStart=2, showPoster=False) featuredByTextList = FeaturedByTextList(itemStart=5) # Featured black container bgColor = '#323A47' featuredImages = Featured( class_='featuredImages', components=(featuredByImage, featuredSideText), #components=(featuredSideText, featuredByImage), containerBackgroundColor=bgColor) # Featured text container bgColor = '#E8E8E8' featuredTexts = Featured(class_='featuredTexts', components=(featuredByText, featuredByTextList), containerBackgroundColor=bgColor) # Footer group footer = Footer(components=(menu, ), containerBackgroundColor=FOOTERBACKGROUNDCOLOR) # Article featuredByTextList = FeaturedByTextList( ) # Default start a featured index 0 article = Container(class_=C.CLASS_ARTICLE, containerBackgroundImage=self.URL_BACKGROUNDIMAGE, containerBackgroundRepeat=C.REPEAT, components=(Article(), socialmedia, ArticleSideBar(), featuredByTextList)) homePage = Page(name=C.TEMPLATE_INDEX, components=(mobileNavigation, header, featuredImages, featuredTexts, footer), css=self.URL_CSS, fonts=self.URL_FONTS, js=self.URL_JAVASCRIPT, favicon=self.URL_FAVICON) articlePage = Page(name=C.TEMPLATE_ARTICLE, components=(mobileNavigation, header, article, footer), css=self.URL_CSS, fonts=self.URL_FONTS, js=self.URL_JAVASCRIPT, favicon=self.URL_FAVICON) return [homePage, articlePage]
def baseComponents(self): logo = Logo(logoSrc=self.SRCLOGO) menu = Menu() socialmedia = SocialMedia(twitterAccount='doingbydesign', facebookAccount='doingbydesign') header = Header(components=(logo, menu), mobileContainerDisplay=self.NONE) mobileNavigation = MobileNavigation( title=self.TITLE) # Is container by itself. Change?? # Articles featured by image featuredByImage = FeaturedByImage( ) # Featured article on a page. Main photo+link featuredByImage100 = FeaturedByImage( colWidth=9) # Featured article as group item #featuredByImageList = FeaturedByImageList() # Featured article on a page. List of related links # Articles featured by summary text featuredSideText = FeaturedByDiapText(colWidth=4, itemStart=1, label='Featured course') featuredByText = FeaturedByText(itemStart=2, showPoster=False) featuredByTextList = FeaturedByTextList(itemStart=5) # Featured black container bgColor = '#323A47' featuredImages = Featured( class_='featuredImages', components=(featuredByImage, featuredSideText), #components=(featuredSideText, featuredByImage), containerBackgroundColor=bgColor) # Featured text container bgColor = '#E8E8E8' featuredTexts = Featured(class_='featuredTexts', components=(featuredByText, featuredByTextList), containerBackgroundColor=bgColor) # Footer group footer = Footer(components=(menu, ), containerBackgroundColor=FOOTERBACKGROUNDCOLOR) # Article featuredByTextList = FeaturedByTextList( ) # Default start a featured index 0 article = Container(class_=self.C.CLASS_ARTICLE, containerBackgroundImage=self.URL_BACKGROUNDIMAGE, containerBackgroundRepeat=self.C.REPEAT, components=(Article(), socialmedia, ArticleSideBar(), featuredByTextList)) # Floating items thumbnails = ItemGroup(components=(featuredByImage100, )) # Documentation documentation = Documentation() homePage = Page(name=self.C.TEMPLATE_INDEX, components=(mobileNavigation, header, featuredImages, featuredTexts, footer), css=self.URL_CSS, fonts=self.URL_FONTS, js=self.URL_JAVASCRIPT, favicon=self.URL_FAVICON) articlePage = Page(name=self.C.TEMPLATE_ARTICLE, components=(mobileNavigation, header, article, footer), css=self.URL_CSS, fonts=self.URL_FONTS, js=self.URL_JAVASCRIPT, favicon=self.URL_FAVICON) thumbnailPage = Page(name=self.C.TEMPLATE_COURSES, components=(mobileNavigation, header, featuredImages, footer), css=self.URL_CSS, fonts=self.URL_FONTS, js=self.URL_JAVASCRIPT, favicon=self.URL_FAVICON) productsPage = Page(name=self.C.TEMPLATE_PRODUCTS, components=(mobileNavigation, header, thumbnails, footer), css=self.URL_CSS, fonts=self.URL_FONTS, js=self.URL_JAVASCRIPT, favicon=self.URL_FAVICON) categoryPage = Page(name=self.C.TEMPLATE_CATEGORY, components=(mobileNavigation, header, footer), css=self.URL_CSS, fonts=self.URL_FONTS, js=self.URL_JAVASCRIPT, favicon=self.URL_FAVICON) # Automatic documentation about Xierpa3 documentationPage = Page(name=self.C.TEMPLATE_DOCUMENTATION, components=(mobileNavigation, header, documentation, footer), css=self.URL_CSS, fonts=self.URL_FONTS, js=self.URL_JAVASCRIPT, favicon=self.URL_FAVICON) return [ homePage, articlePage, productsPage, thumbnailPage, categoryPage, documentationPage ]
def baseComponents(self): logo = Logo() menu = Menu() socialmedia = SocialMedia(twitterAccount='doingbydesign', facebookAccount='doingbydesign') header = Header(components=(logo,menu), mobileContainerDisplay=self.C.NONE, doc_mobileContainerDisplay=u'Header is not visible for mobile') mobileNavigation = MobileNavigation() # Is container by itself. Change?? # Articles featured by image #featuredByImage = FeaturedByImage() # Featured article on a page. Main photo+link #featuredByImage100 = FeaturedByImage(colWidth=9) # Featured article as group item #featuredByImageList = FeaturedByImageList() # Featured article on a page. List of related links # Articles featured by summary text #featuredSideText = FeaturedByDiapText(colWidth=4, itemStart=1, label='Featured course') #featuredByText = FeaturedByText(itemStart=2, showPoster=False) #featuredByTextList = FeaturedByTextList(itemStart=5) #featuredSideText = Featured(colWidth=4, itemStart=1, label='Featured course') #featuredByText = Featured(itemStart=2, showPoster=False) #featuredByTextList = Featured(itemStart=5) featuredSideText = featuredByImage = featuredByText = featuredByTextList = featuredByImage100 = FeaturedByImage() # Featured black container BGCOLOR = Color('#323A47') featuredImages = FeaturedByImage(class_='featuredImages', components=(featuredByImage, featuredSideText), containerBackgroundColor=BGCOLOR) # Featured text container BGCOLOR = Color('#E8E8E8') featuredTexts = FeaturedByImage(class_='featuredTexts', components=(featuredByText, featuredByTextList), containerBackgroundColor=BGCOLOR) # Footer group footer = Footer(components=(menu,), containerBackgroundColor=self.CSS_FOOTERBGCOLOR) # Documentation # The documentation class knows how to collect methods and their attributes # from components, adapters and builders and build them in an automated # documentation site. documentation = Documentation() # Article #featuredByTextList = FeaturedByTextList() # Default start at featured index 0 featuredByTextList = FeaturedByImage() # Default start at featured index 0 article = Container(class_=self.C.CLASS_ARTICLE, containerBackgroundImage=self.URL_BACKGROUNDIMAGE, containerBackgroundRepeat=self.C.REPEAT, components=(Article(), socialmedia, ArticleSideBar(), featuredByTextList)) # Floating items thumbnails = ItemGroup(components=(featuredByImage100,)) # Import current example site, as anchor for the article files. from xierpa3.sites import doingbydesign # Root path where to find the article Simples wiki file for this example page. articleRoot = TX.module2Path(doingbydesign) + '/files/articles/' adapter = DbDAdapter(articleRoot) # Preferred adapter class for articles in this site. #homePage = Page(name=self.C.TEMPLATE_INDEX, # components=(mobileNavigation, header, featuredImages, featuredTexts, footer), # css=self.C.URL_CSS, fonts=self.C.URL_FONTS, js=self.URL_JAVASCRIPT, # favicon=self.C.URL_FAVICON, adapter=adapter) homePage = Page(name=self.C.TEMPLATE_INDEX, components=featuredSideText, css=self.C.URL_CSS, fonts=self.C.URL_FONTS, js=self.URL_JAVASCRIPT, favicon=self.C.URL_FAVICON, adapter=adapter) articlePage = Page(name=self.C.TEMPLATE_ARTICLE, components=(mobileNavigation, header, article, footer), css=self.C.URL_CSS, fonts=self.C.URL_FONTS, js=self.URL_JAVASCRIPT, favicon=self.C.URL_FAVICON, adapter=adapter) thumbnailPage = Page(name=self.TEMPLATE_COURSES, components=(mobileNavigation, header, featuredImages, footer), css=self.C.URL_CSS, fonts=self.C.URL_FONTS, js=self.URL_JAVASCRIPT, favicon=self.C.URL_FAVICON, adapter=adapter) productsPage = Page(name=self.TEMPLATE_PRODUCTS, components=(mobileNavigation, header, thumbnails, footer), css=self.C.URL_CSS, fonts=self.C.URL_FONTS, js=self.URL_JAVASCRIPT, favicon=self.C.URL_FAVICON, adapter=adapter) categoryPage = Page(name=self.TEMPLATE_CATEGORY, components=(mobileNavigation, header, footer), css=self.C.URL_CSS, fonts=self.C.URL_FONTS, js=self.URL_JAVASCRIPT, favicon=self.C.URL_FAVICON, adapter=adapter) # Automatic documentation about Xierpa3 documentationPage = Page(name=self.C.TEMPLATE_DOCUMENTATION, components=(mobileNavigation, header, documentation, footer), css=self.C.URL_CSS, fonts=self.C.URL_FONTS, js=self.URL_JAVASCRIPT, favicon=self.C.URL_FAVICON, adapter=adapter) return [homePage, articlePage, productsPage, thumbnailPage, categoryPage, documentationPage]