2022-09-10 20:05:37 +01:00
<!DOCTYPE html>
2022-11-13 19:39:55 +00:00
< html lang = "{{ with .Site.Params.isoCode | default (.Site.LanguageCode | default " en " ) } } { { - . - } } { { end } } " dir = "{{ if . Site . Params . rtl | default false - } }
2022-09-10 20:05:37 +01:00
rtl
{{- else -}}
ltr
2022-11-13 19:39:55 +00:00
{{- end }}" class="scroll-smooth" data-default-appearance="{{ .Site.Params.defaultAppearance | default " light" }}"
data-auto-appearance="{{ .Site.Params.autoSwitchAppearance | default " true" }}">
{{- partial "head.html" . -}}
< body
2023-12-02 18:14:36 +01:00
class="flex flex-col h-screen px-6 m-auto text-lg leading-7 lg:max-w-7xl bg-neutral text-neutral-900 dark:bg-neutral-800 dark:text-neutral sm:px-14 md:px-24 lg:px-32">
2022-11-13 19:39:55 +00:00
{{ $header := print "partials/header/" .Site.Params.header.layout ".html" }}
{{ if templates.Exists $header }}
{{ partial $header . }}
{{ else }}
{{ partial "partials/header/basic.html" . }}
{{ end }}
2023-11-26 19:12:32 +01:00
{{ if .IsHome }}
{{ if .Site.Params.homePageVideo }}
< style >
2023-12-02 18:14:36 +01:00
@media screen and (min-width: 1023px) {
.video-margin {
margin-top: 97vh;
}
2023-11-26 19:12:32 +01:00
}
< / style >
2023-12-02 18:14:36 +01:00
< div class = "lg:absolute inset-0 w-full lg:w-screen h-screen" >
< video class = "h-full mx-auto object-cover" autoplay loop muted >
< source src = "{{ .Site.Params.homePageVideo }}" data-src = "{{ .Site.Params.homePageVideo }}" type = "video/mp4" >
< / video >
< / div >
2023-11-26 19:12:32 +01:00
{{ end }}
{{ end }}
2023-12-02 18:14:36 +01:00
<!-- <div id="the - top" class="absolute flex self - center">
2023-11-26 19:12:32 +01:00
< a class = "px-3 py-1 text-sm -translate-y-8 rounded-b-lg bg-primary-200 focus:translate-y-0 dark:bg-neutral-600"
href="#main-content">< span
class="font-bold text-primary-600 ltr:pr-2 rtl:pl-2 dark:text-primary-400">↓ < / span > {{ i18n
2023-12-02 18:14:36 +01:00
"nav.skip_to_main" }}< / a > -->
2023-11-26 19:12:32 +01:00
< / div >
2022-11-13 19:39:55 +00:00
< div class = "relative flex flex-col grow" >
2023-11-26 19:12:32 +01:00
< main id = "main-content" class = "grow video-margin" >
2023-12-02 22:47:36 +01:00
{{ if .IsHome }}
< h2 class = "mt-8 text-2xl font-extrabold mb-10" > Sponsors< / h1 >
{{ $images := .Site.Params.sponsors }}
< link rel = "stylesheet" href = "css/infinite.css" >
< script src = "js/main.js" > < / script >
< div class = "marquee-wrapper" style = "user-select: none;" >
< div class = "marquee-content scrollingX" >
{{ $num := 0 }}
{{ range $images }}
< div class = "card-testimonial flex items-center" >
< article >
< picture >
{{ if .site }}
< a href = "{{ .site }}" target = "_blank" > < img src = "{{ .img }}" alt = "{{ .img }}" > < / a >
{{ else }}
< img src = "{{ .img }}" alt = "{{ .img }}" >
{{ end }}
< / picture >
{{ if .name }}
< article class = "short-description" > < p class = "text-center mt-1" > {{ .name }}< / p > < / article >
{{ end }}
< / article >
< / div >
{{ $num = add $num 1 }}
{{ end }}
{{ $num := 0 }}
{{ range $images }}
< div class = "card-testimonial flex items-center" >
< article >
< picture >
{{ if .site }}
< a href = "{{ .site }}" target = "_blank" > < img src = "{{ .img }}" alt = "{{ .img }}" > < / a >
{{ else }}
< img src = "{{ .img }}" alt = "{{ .img }}" >
{{ end }}
< / picture >
{{ if .name }}
< article class = "short-description" >
< p class = "text-center mt-1" > {{ .name }}< / p >
< / article >
{{ end }}
< / article >
< / div >
{{ $num = add $num 1 }}
{{ end }}
< / div >
< / div >
{{ end }}
{{ block "main" . }}{{ end }}
{{ if and (.Site.Params.footer.showScrollToTop | default true) (gt .WordCount 1) }}
{{- partial "scroll-to-top.html" . -}}
{{ end }}
2022-11-13 19:39:55 +00:00
< / main >
{{- partial "footer.html" . -}}
{{ if .Site.Params.enableSearch | default false }}
{{- partial "search.html" . -}}
{{ end }}
< / div >
< / body >
{{ if .Site.Params.buymeacoffee.globalWidget | default false }}
< script data-name = "BMC-Widget" data-cfasync = "false" src = "https://cdnjs.buymeacoffee.com/1.0.0/widget.prod.min.js"
data-id="{{ .Site.Params.buymeacoffee.identifier }}" data-description="Support me on Buy me a coffee!" data-message="{{ .Site.Params.buymeacoffee.globalWidgetMessage | default "" }}"
data-color="{{ .Site.Params.buymeacoffee.globalWidgetColor | default "#FFDD00" }}" data-position="{{ .Site.Params.buymeacoffee.globalWidgetPosition | default "Left" }}" data-x_margin="18" data-y_margin="18">< / script >
{{ end }}
2022-12-11 18:28:14 +05:30
< / html >