Documentation ¶
Index ¶
- Constants
- Variables
- func BrandGridBody(data *BrandGrid, input *pagebuilder.RenderInput) (body HTMLComponent)
- func BrandsBody(brands []*Brand, input *pagebuilder.RenderInput) HTMLComponent
- func ContactFormBody(data *ContactForm, input *pagebuilder.RenderInput) (body HTMLComponent)
- func ContainerWrapper(...) HTMLComponent
- func FooterTemplate(data *WebFooter, input *pagebuilder.RenderInput) (body HTMLComponent)
- func HeaderTemplate(data *WebHeader, input *pagebuilder.RenderInput) (body HTMLComponent)
- func HeadingBody(data *Heading, input *pagebuilder.RenderInput) (body HTMLComponent)
- func ImageContainerBody(data *ImageContainer, input *pagebuilder.RenderInput) (body HTMLComponent)
- func ImageHtml(m media_library.MediaBox, class ...string) HTMLComponent
- func ImageListItemsBody(items []*ImageListItem) HTMLComponent
- func InNumbersBody(data *InNumbers, input *pagebuilder.RenderInput) (body HTMLComponent)
- func InNumbersItemsBody(items []*InNumbersItem) HTMLComponent
- func LazyImageHtml(m media_library.MediaBox, class ...string) HTMLComponent
- func LinkTextWithArrow(text, link string, class ...string) HTMLComponent
- func ListContentBody(data *ListContent, input *pagebuilder.RenderInput) (body HTMLComponent)
- func ListContentLiteBody(data *ListContentLite, input *pagebuilder.RenderInput) (body HTMLComponent)
- func ListContentWithImageBody(data *ListContentWithImage, input *pagebuilder.RenderInput) (body HTMLComponent)
- func ListItemsBody(items []*ListItem, input *pagebuilder.RenderInput) HTMLComponent
- func LiteItemsBody(items []*ListItemLite) HTMLComponent
- func PageTitleBody(data *PageTitle, input *pagebuilder.RenderInput) (body HTMLComponent)
- func PageTitleTagsBody(tags Tags) HTMLComponent
- func RegisterBrandGridContainer(pb *pagebuilder.Builder, db *gorm.DB)
- func RegisterContactFormContainer(pb *pagebuilder.Builder, db *gorm.DB)
- func RegisterFooter(pb *pagebuilder.Builder)
- func RegisterHeader(pb *pagebuilder.Builder)
- func RegisterHeadingContainer(pb *pagebuilder.Builder, db *gorm.DB)
- func RegisterImageContainer(pb *pagebuilder.Builder, db *gorm.DB)
- func RegisterInNumbersContainer(pb *pagebuilder.Builder, db *gorm.DB)
- func RegisterListContentContainer(pb *pagebuilder.Builder, db *gorm.DB)
- func RegisterListContentLiteContainer(pb *pagebuilder.Builder, db *gorm.DB)
- func RegisterListContentWithImageContainer(pb *pagebuilder.Builder, db *gorm.DB)
- func RegisterPageTitleContainer(pb *pagebuilder.Builder, db *gorm.DB)
- func RegisterVideoBannerContainer(pb *pagebuilder.Builder)
- func SetTagComponent(pb *pagebuilder.Builder, eb *presets.EditingBuilder)
- func VideoBannerBody(data *VideoBanner, input *pagebuilder.RenderInput) (body HTMLComponent)
- func VideoBannerFootBody(data *VideoBanner) HTMLComponent
- func VideoBannerHeadBody(data *VideoBanner) HTMLComponent
- type Brand
- type BrandGrid
- type Brands
- type ContactForm
- type Heading
- type ImageContainer
- type ImageListItem
- type ImageListItems
- type InNumbers
- type InNumbersItem
- type InNumbersItems
- type ListContent
- type ListContentLite
- type ListContentWithImage
- type ListItem
- type ListItemLite
- type ListItemLites
- type ListItems
- type PageTitle
- type Tags
- type VideoBanner
- type WebFooter
- type WebHeader
Constants ¶
View Source
const ( Blue = "blue" Orange = "orange" White = "white" Grey = "grey" )
View Source
const ( LINK_DISPLAY_OPTION_DESKTOP = "desktop" LINK_DISPLAY_OPTION_MOBILE = "mobile" LINK_DISPLAY_OPTION_ALL = "all" )
View Source
const ( ICON_NO = "no" ICON_SPEED = "speed" )
View Source
const (
CONTACT_FORM_ICON = RawHTML(`<lottie-player class="container-contact_form-icon" data-event-type="mouseover" data-event-target=".container-contact_form-inner" src='{"v":"5.5.7","meta":{"g":"LottieFiles AE 0.1.21","a":"","k":"","d":"","tc":""},"fr":24,"ip":0,"op":29,"w":256,"h":356,"nm":"contact","ddd":0,"assets":[],"layers":[{"ddd":0,"ind":1,"ty":4,"nm":"Shape Layer 3","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[128,178,0],"ix":2},"a":{"a":0,"k":[0,0,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"ty":"st","c":{"a":0,"k":[0.295881981943,0.644987996419,0.918154009651,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":0,"ix":5},"lc":1,"lj":1,"ml":4,"bm":0,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"fl","c":{"a":0,"k":[1,0.396078431373,0,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Shape 2","np":2,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false},{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":1,"k":[{"i":{"x":0.833,"y":0.833},"o":{"x":0.167,"y":0.167},"t":0,"s":[{"i":[[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0]],"v":[[58,-43],[-58,-28],[-58.5,43.5],[57,29]],"c":true}]},{"i":{"x":0.833,"y":0.833},"o":{"x":0.167,"y":0.167},"t":1,"s":[{"i":[[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0]],"v":[[58.5,-46.5],[-57,-32],[-57.5,43.5],[58,29]],"c":true}]},{"i":{"x":0.833,"y":0.833},"o":{"x":0.167,"y":0.167},"t":2,"s":[{"i":[[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0]],"v":[[58,-54],[-57,-40.5],[-57.5,43.5],[58,29]],"c":true}]},{"i":{"x":0.833,"y":0.833},"o":{"x":0.167,"y":0.167},"t":3,"s":[{"i":[[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0]],"v":[[58.5,-64],[-57.5,-49.5],[-57.5,43.5],[58,29]],"c":true}]},{"i":{"x":0.833,"y":0.833},"o":{"x":0.167,"y":0.167},"t":4,"s":[{"i":[[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0]],"v":[[58,-72],[-57,-58],[-57.5,41.75],[58,27.25]],"c":true}]},{"i":{"x":0.833,"y":0.833},"o":{"x":0.167,"y":0.167},"t":5,"s":[{"i":[[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0]],"v":[[58.5,-75.5],[-57,-61],[-57.5,37.75],[58,23.25]],"c":true}]},{"i":{"x":0.833,"y":0.833},"o":{"x":0.167,"y":0.167},"t":6,"s":[{"i":[[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0]],"v":[[58,-68.5],[-57,-54.5],[-57.25,33.5],[58.25,19]],"c":true}]},{"i":{"x":0.833,"y":0.833},"o":{"x":0.167,"y":0.167},"t":7,"s":[{"i":[[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0]],"v":[[58.5,-53],[-56.5,-38],[-57,29],[58.5,14.5]],"c":true}]},{"i":{"x":0.833,"y":0.833},"o":{"x":0.167,"y":0.167},"t":8,"s":[{"i":[[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0]],"v":[[58,-37.5],[-57,-23],[-57,27.25],[58.5,12.75]],"c":true}]},{"i":{"x":0.833,"y":0.833},"o":{"x":0.167,"y":0.167},"t":9,"s":[{"i":[[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0]],"v":[[58,-30],[-57,-15.5],[-57,30.75],[58.5,16.25]],"c":true}]},{"i":{"x":0.833,"y":0.833},"o":{"x":0.167,"y":0.167},"t":10,"s":[{"i":[[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0]],"v":[[58,-33],[-57,-18.5],[-57,38.25],[58.5,23.75]],"c":true}]},{"i":{"x":0.833,"y":0.833},"o":{"x":0.167,"y":0.167},"t":11,"s":[{"i":[[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0]],"v":[[58.5,-40.5],[-56.5,-26],[-57.5,47],[58,32.5]],"c":true}]},{"i":{"x":0.833,"y":0.833},"o":{"x":0.167,"y":0.167},"t":12,"s":[{"i":[[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0]],"v":[[58.5,-49],[-56.5,-34.5],[-57.5,54.5],[58,40]],"c":true}]},{"i":{"x":0.833,"y":0.833},"o":{"x":0.167,"y":0.167},"t":13,"s":[{"i":[[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0]],"v":[[58.5,-57.5],[-56.5,-43],[-57.5,58],[58,43.5]],"c":true}]},{"i":{"x":0.833,"y":0.833},"o":{"x":0.167,"y":0.167},"t":14,"s":[{"i":[[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0]],"v":[[58.5,-60.5],[-56.5,-46],[-58,55],[57.5,40.5]],"c":true}]},{"i":{"x":0.833,"y":0.833},"o":{"x":0.167,"y":0.167},"t":15,"s":[{"i":[[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0]],"v":[[58.5,-58.5],[-56.5,-44],[-57.5,49],[58,34.5]],"c":true}]},{"i":{"x":0.833,"y":0.833},"o":{"x":0.167,"y":0.167},"t":16,"s":[{"i":[[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0]],"v":[[58,-54],[-57,-39.5],[-57.5,42.5],[58,28]],"c":true}]},{"i":{"x":0.833,"y":0.833},"o":{"x":0.167,"y":0.167},"t":17,"s":[{"i":[[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0]],"v":[[58.5,-49.5],[-56.5,-35],[-57.5,36.5],[58,22]],"c":true}]},{"i":{"x":0.833,"y":0.833},"o":{"x":0.167,"y":0.167},"t":18,"s":[{"i":[[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0]],"v":[[58.5,-43],[-56.5,-28.5],[-57.5,33.5],[58,19]],"c":true}]},{"i":{"x":0.833,"y":0.833},"o":{"x":0.167,"y":0.167},"t":19,"s":[{"i":[[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0]],"v":[[58.5,-38],[-56.5,-23.5],[-57.5,36],[58,21.5]],"c":true}]},{"i":{"x":0.833,"y":0.833},"o":{"x":0.167,"y":0.167},"t":20,"s":[{"i":[[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0]],"v":[[58.5,-37],[-56.5,-22.5],[-57,42],[58.5,27.5]],"c":true}]},{"i":{"x":0.833,"y":0.833},"o":{"x":0.167,"y":0.167},"t":21,"s":[{"i":[[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0]],"v":[[58.5,-35.5],[-56.5,-21],[-57,48],[58.5,33.5]],"c":true}]},{"i":{"x":0.833,"y":0.833},"o":{"x":0.167,"y":0.167},"t":22,"s":[{"i":[[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0]],"v":[[58.5,-39],[-56.5,-24.5],[-57,50.5],[58.5,36]],"c":true}]},{"i":{"x":0.833,"y":0.833},"o":{"x":0.167,"y":0.167},"t":23,"s":[{"i":[[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0]],"v":[[58.5,-42],[-56.5,-27.5],[-57.5,51.5],[58,37]],"c":true}]},{"i":{"x":0.833,"y":0.833},"o":{"x":0.167,"y":0.167},"t":24,"s":[{"i":[[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0]],"v":[[58.5,-43],[-56.5,-28.5],[-58,50],[57.5,35.5]],"c":true}]},{"i":{"x":0.833,"y":0.833},"o":{"x":0.167,"y":0.167},"t":25,"s":[{"i":[[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0]],"v":[[58.5,-43],[-56.5,-28.5],[-58,47],[57.5,32.5]],"c":true}]},{"i":{"x":0.833,"y":0.833},"o":{"x":0.167,"y":0.167},"t":26,"s":[{"i":[[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0]],"v":[[58.5,-43],[-56.5,-28.5],[-58,44],[57.5,29.5]],"c":true}]},{"t":27,"s":[{"i":[[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0]],"v":[[58.5,-43],[-56.5,-28.5],[-58,43.5],[57.5,29]],"c":true}]}],"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"st","c":{"a":0,"k":[0.295881981943,0.644987996419,0.918154009651,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":0,"ix":5},"lc":1,"lj":1,"ml":4,"bm":0,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"fl","c":{"a":0,"k":[1,0.396078431373,0,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Shape 1","np":3,"cix":2,"bm":0,"ix":2,"mn":"ADBE Vector Group","hd":false}],"ip":0,"op":72,"st":0,"bm":0},{"ddd":0,"ind":2,"ty":4,"nm":"Shape Layer 2","sr":1,"ks":{"o":{"a":0,"k":99,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":1,"k":[{"i":{"x":0.667,"y":1},"o":{"x":0.333,"y":0},"t":0,"s":[127.5,178.5,0],"to":[0,-5.387,0],"ti":[0,-2.254,0]},{"i":{"x":0.667,"y":1},"o":{"x":0.333,"y":0},"t":5,"s":[127.5,146.177,0],"to":[0,2.254,0],"ti":[0,-2.564,0]},{"i":{"x":0.667,"y":1},"o":{"x":0.333,"y":0},"t":9,"s":[127.5,192.022,0],"to":[0,2.564,0],"ti":[0,4,0]},{"i":{"x":0.667,"y":1},"o":{"x":0.333,"y":0},"t":14,"s":[127.5,161.564,0],"to":[0,-2.283,0],"ti":[0,-6.508,0]},{"i":{"x":0.667,"y":1},"o":{"x":0.333,"y":0},"t":20,"s":[127.5,185.507,0],"to":[0,4.893,0],"ti":[0,-1.574,0]},{"t":24,"s":[127.5,178.5,0]}],"ix":2},"a":{"a":0,"k":[0,0,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0]],"v":[[128,-52.5],[-57.5,-29.5],[-59,111],[59.5,98],[103.5,159],[104,92],[127.5,89.5]],"c":true},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"st","c":{"a":0,"k":[0.295881981943,0.644987996419,0.918154009651,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":0,"ix":5},"lc":1,"lj":1,"ml":4,"bm":0,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"fl","c":{"a":0,"k":[1,0.549019607843,0.250980392157,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Shape 1","np":3,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":-4,"op":72,"st":0,"bm":0},{"ddd":0,"ind":3,"ty":4,"nm":"Shape Layer 1","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":1,"k":[{"i":{"x":0.667,"y":1},"o":{"x":0.333,"y":0},"t":3,"s":[128,177,0],"to":[0,-2.742,0],"ti":[0,-2.254,0]},{"i":{"x":0.667,"y":1},"o":{"x":0.333,"y":0},"t":8,"s":[128,160.551,0],"to":[0,2.254,0],"ti":[0,-1.059,0]},{"i":{"x":0.667,"y":1},"o":{"x":0.333,"y":0},"t":13,"s":[128,190.522,0],"to":[0,1.059,0],"ti":[0,4,0]},{"i":{"x":0.667,"y":1},"o":{"x":0.333,"y":0},"t":18,"s":[128,166.903,0],"to":[0,-2.283,0],"ti":[0,-6.508,0]},{"i":{"x":0.667,"y":1},"o":{"x":0.333,"y":0},"t":22,"s":[128,184.213,0],"to":[0,4.893,0],"ti":[0,-1.574,0]},{"t":27,"s":[128,177,0]}],"ix":2},"a":{"a":0,"k":[0,0,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0]],"v":[[-104,-158],[-104.5,-90.5],[-127,-87.5],[-128,53.5],[58,30.5],[57,-111],[-59.5,-97]],"c":true},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"st","c":{"a":0,"k":[0.295881981943,0.644987996419,0.918154009651,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":0,"ix":5},"lc":1,"lj":1,"ml":4,"bm":0,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"fl","c":{"a":0,"k":[0.321568627451,0.81568627451,0.945098039216,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Shape 1","np":3,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":0,"op":75,"st":3,"bm":0}],"markers":[]}'></lottie-player>`)
)
View Source
const LINK_ARROW_SVG = RawHTML(`<svg height=".7em" viewBox="0 0 10 12" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M0 11.4381V0.561882C0 0.315846 0.133038 0.14941 0.399113 0.0625736C0.67997 -0.0387357 0.938655 -0.017027 1.17517 0.1277L9.31264 4.99053C9.51959 5.12078 9.68219 5.26551 9.80044 5.42471C9.93348 5.58391 10 5.77929 10 6.01085C10 6.24242 9.93348 6.4378 9.80044 6.597C9.68219 6.74173 9.51959 6.87922 9.31264 7.00947L1.17517 11.8723C0.938655 12.017 0.67997 12.0387 0.399113 11.9374C0.133038 11.8361 0 11.6697 0 11.4381Z" fill="currentColor"/>
</svg>`)
Variables ¶
View Source
var BackgroundColors = []string{White, Grey, Blue}
View Source
var FontColors = []string{Blue, Orange, White}
View Source
var LinkDisplayOptions = []string{LINK_DISPLAY_OPTION_ALL, LINK_DISPLAY_OPTION_DESKTOP, LINK_DISPLAY_OPTION_MOBILE}
View Source
var TAG_ICON_SPEED = RawHTML(`<svg viewBox="0 0 21 21" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M17.833 7.499l-1.076 1.618a7 7 0 01-.193 6.633H4.437a7 7 0 019.196-9.756l1.619-1.077a8.75 8.75 0 00-12.32 11.708 1.75 1.75 0 001.505.875h12.118a1.75 1.75 0 001.523-.875 8.75 8.75 0 00-.236-9.135l-.01.009z" fill="currentColor"/><path d="M9.266 13.484a1.749 1.749 0 002.476 0l4.953-7.43-7.429 4.953a1.751 1.751 0 000 2.477z" fill="currentColor"/></svg>`)
View Source
var TagFontColors = []string{White, Blue, Grey}
View Source
var TagIcons = []string{ICON_NO, ICON_SPEED}
View Source
var TextArea = func(obj interface{}, field *presets.FieldContext, ctx *web.EventContext) HTMLComponent { return v.VTextarea().FieldName(field.Name).Label(field.Label).Value(field.Value(obj)) }
Functions ¶
func BrandGridBody ¶
func BrandGridBody(data *BrandGrid, input *pagebuilder.RenderInput) (body HTMLComponent)
func BrandsBody ¶
func BrandsBody(brands []*Brand, input *pagebuilder.RenderInput) HTMLComponent
func ContactFormBody ¶
func ContactFormBody(data *ContactForm, input *pagebuilder.RenderInput) (body HTMLComponent)
func ContainerWrapper ¶
func FooterTemplate ¶
func FooterTemplate(data *WebFooter, input *pagebuilder.RenderInput) (body HTMLComponent)
func HeaderTemplate ¶
func HeaderTemplate(data *WebHeader, input *pagebuilder.RenderInput) (body HTMLComponent)
func HeadingBody ¶
func HeadingBody(data *Heading, input *pagebuilder.RenderInput) (body HTMLComponent)
func ImageContainerBody ¶
func ImageContainerBody(data *ImageContainer, input *pagebuilder.RenderInput) (body HTMLComponent)
func ImageHtml ¶
func ImageHtml(m media_library.MediaBox, class ...string) HTMLComponent
func ImageListItemsBody ¶
func ImageListItemsBody(items []*ImageListItem) HTMLComponent
func InNumbersBody ¶
func InNumbersBody(data *InNumbers, input *pagebuilder.RenderInput) (body HTMLComponent)
func InNumbersItemsBody ¶
func InNumbersItemsBody(items []*InNumbersItem) HTMLComponent
func LazyImageHtml ¶
func LazyImageHtml(m media_library.MediaBox, class ...string) HTMLComponent
func LinkTextWithArrow ¶
func ListContentBody ¶
func ListContentBody(data *ListContent, input *pagebuilder.RenderInput) (body HTMLComponent)
func ListContentLiteBody ¶
func ListContentLiteBody(data *ListContentLite, input *pagebuilder.RenderInput) (body HTMLComponent)
func ListContentWithImageBody ¶
func ListContentWithImageBody(data *ListContentWithImage, input *pagebuilder.RenderInput) (body HTMLComponent)
func ListItemsBody ¶
func ListItemsBody(items []*ListItem, input *pagebuilder.RenderInput) HTMLComponent
func LiteItemsBody ¶
func LiteItemsBody(items []*ListItemLite) HTMLComponent
func PageTitleBody ¶
func PageTitleBody(data *PageTitle, input *pagebuilder.RenderInput) (body HTMLComponent)
func PageTitleTagsBody ¶
func PageTitleTagsBody(tags Tags) HTMLComponent
func RegisterBrandGridContainer ¶
func RegisterBrandGridContainer(pb *pagebuilder.Builder, db *gorm.DB)
func RegisterContactFormContainer ¶
func RegisterContactFormContainer(pb *pagebuilder.Builder, db *gorm.DB)
func RegisterFooter ¶
func RegisterFooter(pb *pagebuilder.Builder)
func RegisterHeader ¶
func RegisterHeader(pb *pagebuilder.Builder)
func RegisterHeadingContainer ¶
func RegisterHeadingContainer(pb *pagebuilder.Builder, db *gorm.DB)
func RegisterImageContainer ¶
func RegisterImageContainer(pb *pagebuilder.Builder, db *gorm.DB)
func RegisterInNumbersContainer ¶
func RegisterInNumbersContainer(pb *pagebuilder.Builder, db *gorm.DB)
func RegisterListContentContainer ¶
func RegisterListContentContainer(pb *pagebuilder.Builder, db *gorm.DB)
func RegisterListContentLiteContainer ¶
func RegisterListContentLiteContainer(pb *pagebuilder.Builder, db *gorm.DB)
func RegisterListContentWithImageContainer ¶
func RegisterListContentWithImageContainer(pb *pagebuilder.Builder, db *gorm.DB)
func RegisterPageTitleContainer ¶
func RegisterPageTitleContainer(pb *pagebuilder.Builder, db *gorm.DB)
func RegisterVideoBannerContainer ¶
func RegisterVideoBannerContainer(pb *pagebuilder.Builder)
func SetTagComponent ¶
func SetTagComponent(pb *pagebuilder.Builder, eb *presets.EditingBuilder)
func VideoBannerBody ¶
func VideoBannerBody(data *VideoBanner, input *pagebuilder.RenderInput) (body HTMLComponent)
func VideoBannerFootBody ¶
func VideoBannerFootBody(data *VideoBanner) HTMLComponent
func VideoBannerHeadBody ¶
func VideoBannerHeadBody(data *VideoBanner) HTMLComponent
Types ¶
type Brand ¶
type Brand struct { Image media_library.MediaBox `sql:"type:text;"` Name string }
type BrandGrid ¶
type ContactForm ¶
type ContactForm struct { ID uint AddTopSpace bool AddBottomSpace bool AnchorID string Heading string Text string SendButtonText string FormButtonText string MessagePlaceholder string NamePlaceholder string EmailPlaceholder string ThankyouMessage string ActionUrl string PrivacyPolicy string }
func (*ContactForm) TableName ¶
func (*ContactForm) TableName() string
type Heading ¶
type ImageContainer ¶
type ImageContainer struct { ID uint AddTopSpace bool AddBottomSpace bool AnchorID string Image media_library.MediaBox `sql:"type:text;"` BackgroundColor string TransitionBackgroundColor string }
func (*ImageContainer) TableName ¶
func (*ImageContainer) TableName() string
type ImageListItem ¶
type ImageListItems ¶
type ImageListItems []*ImageListItem
func (*ImageListItems) Scan ¶
func (this *ImageListItems) Scan(value interface{}) error
type InNumbers ¶
type InNumbersItem ¶
type InNumbersItems ¶
type InNumbersItems []*InNumbersItem
func (*InNumbersItems) Scan ¶
func (this *InNumbersItems) Scan(value interface{}) error
type ListContent ¶
type ListContent struct { ID uint AddTopSpace bool AddBottomSpace bool AnchorID string Items ListItems `sql:"type:text;"` BackgroundColor string Link string LinkText string LinkDisplayOption string }
func (*ListContent) TableName ¶
func (*ListContent) TableName() string
type ListContentLite ¶
type ListContentLite struct { ID uint AddTopSpace bool AddBottomSpace bool AnchorID string Items ListItemLites BackgroundColor string }
func (*ListContentLite) TableName ¶
func (*ListContentLite) TableName() string
type ListContentWithImage ¶
type ListContentWithImage struct { ID uint AddTopSpace bool AddBottomSpace bool AnchorID string Items ImageListItems }
func (*ListContentWithImage) TableName ¶
func (*ListContentWithImage) TableName() string
type ListItemLite ¶
type ListItemLites ¶
type ListItemLites []*ListItemLite
func (*ListItemLites) Scan ¶
func (this *ListItemLites) Scan(value interface{}) error
type PageTitle ¶
type VideoBanner ¶
type VideoBanner struct { ID uint AddTopSpace bool AddBottomSpace bool AnchorID string Video media_library.MediaBox `sql:"type:text;"` BackgroundVideo media_library.MediaBox `sql:"type:text;"` MobileBackgroundVideo media_library.MediaBox `sql:"type:text;"` VideoCover media_library.MediaBox `sql:"type:text;"` MobileVideoCover media_library.MediaBox `sql:"type:text;"` Heading string PopupText string Text string LinkText string Link string }
func (*VideoBanner) TableName ¶
func (*VideoBanner) TableName() string
Click to show internal directories.
Click to hide internal directories.