UNPKG

sitic

Version:

Generate static sites using Markdown and YAML. Straightforward, zero-complexity. Complete toolkit for landing pages, blogs, documentation, admin dashboards, and more.git remote add origin git@github.com:yuusoft-org/sitic.git

31 lines (29 loc) 1.03 kB
{%- if hero.video -%} <rtgl-view h="8vh"></rtgl-view> {%- else -%} <rtgl-view h="20vh"></rtgl-view> {%- endif -%} <rtgl-view w="f" pv="xl" av="c" ah="c" ph="xl"> <rtgl-text s="dm" c="on-su" at="c" mb="l"> {{ hero.title }} </rtgl-text> {%- for subtitle in hero.subtitles -%} <rtgl-text s="bl" c="on-suv" at="c"> {{ subtitle }} </rtgl-text> {%- endfor -%} {%- if hero.cta -%} <rtgl-button mt="xl" t="p" href="{{ hero.cta.href }}" target="_blank" rel="noreferrer"> {{ hero.cta.text }} </rtgl-button> {%- endif -%} </rtgl-view> {%- if hero.video-%} <rtgl-view w="f" ah="c" mt="xl"> <rtgl-view lg-h="calc((100vw - 32px) / 1.777)" lg-w="calc(100vw - 32px)" h="calc(66.66vw / 1.777)" w="66.66vw" bc="ov" bw="xs" br="xs" shadow="s"> <video playsinline loop controls width="100%" aria-label="{{ hero.video.title | default: 'Video content' }}"> <source src="{{ hero.video.url }}" type="video/mp4"> </video> </rtgl-view> </rtgl-view> {%- else -%} <rtgl-view h="20vh"> </rtgl-view> {%- endif -%}