mirror of
https://github.com/nunocoracao/blowfish.git
synced 2025-05-20 23:01:53 +02:00
upd: carousel
This commit is contained in:
parent
4e9ba961df
commit
9bd061323a
1 changed files with 52 additions and 4 deletions
|
@ -39,10 +39,58 @@
|
|||
</div>
|
||||
<div class="relative flex flex-col grow">
|
||||
<main id="main-content" class="grow video-margin">
|
||||
{{ block "main" . }}{{ end }}
|
||||
{{ if and (.Site.Params.footer.showScrollToTop | default true) (gt .WordCount 1) }}
|
||||
{{- partial "scroll-to-top.html" . -}}
|
||||
{{ end }}
|
||||
{{ 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 }}
|
||||
</main>
|
||||
{{- partial "footer.html" . -}}
|
||||
{{ if .Site.Params.enableSearch | default false }}
|
||||
|
|
Loading…
Add table
Reference in a new issue