Content update
- Adds in some missing speakers - Under construction meetups - Fixes links in media descriptions - Adds hover indicators to img_grid - Adds esc key in modals
This commit is contained in:
@@ -2,9 +2,12 @@
|
||||
<div class="container relative mx-auto px-4 {{ .img_grid.section_class }} img_grid_container">
|
||||
<p class="{{ .img_grid.title_class }}">{{ .img_grid.title }}</p>
|
||||
<div class="flex flex-wrap justify-center mx-auto lg:w-full md:w-5/6">
|
||||
{{ $img_title_class := .img_grid.img_title_class }}
|
||||
{{ $img_subtitle_class := .img_grid.img_subtitle_class }}
|
||||
{{ $option_class := .img_grid.img_class }}
|
||||
{{ range $i, $option := .img_grid.imgs }}
|
||||
<div class="w-1/2 md:w-1/3 p-2">
|
||||
<div class="flex justify-center align-items-center items-center w-full justify-items-center row"
|
||||
<div class="flex justify-center align-items-center items-center w-full justify-items-center row {{ $option_class }}"
|
||||
{{ if .modal_target }} data-modal-show="{{ .modal_target }}" {{ end }}>
|
||||
{{ $imgres := .resources.Get $option.img }}
|
||||
{{ if $option.link}}
|
||||
@@ -12,10 +15,10 @@
|
||||
{{ end }}
|
||||
<img class="w-10/12 rounded-lg mx-auto col-12" src="{{ $option.img }}" alt="{{ $option.title }}">
|
||||
{{ if $option.title }}
|
||||
<p class="{{ $option.title_class }} {{ .img_grid.img_title_class }} col-12">{{ $option.title | markdownify }}</p>
|
||||
<p class="{{ $option.title_class }} {{ $img_title_class }} col-12">{{ $option.title | markdownify }}</p>
|
||||
{{ end }}
|
||||
{{ if $option.subtitle }}
|
||||
<p class="{{ $option.subtitle_class }} {{ .img_grid.img_subtitle_class }} col-12">{{ $option.subtitle | markdownify }}</p>
|
||||
<p class="{{ $option.subtitle_class }} {{ $img_subtitle_class }} col-12">{{ $option.subtitle | markdownify }}</p>
|
||||
{{ end }}
|
||||
{{ if $option.link}}
|
||||
</a>
|
||||
|
||||
@@ -24,10 +24,10 @@
|
||||
<!-- Modal body -->
|
||||
<div class="p-4 md:p-6 pb-8 md:pb-12 space-y-4">
|
||||
{{ if $option.img }}
|
||||
<img src="{{ $option.img }}" class="w-full max-h-48 object-contain {{ if $option.img_dark }}dark:hidden {{ end }}" />
|
||||
<img src="{{ $option.img }}" class="w-full max-h-48 object-contain {{ if $option.img_dark }}dark:hidden {{ end }}{{ $option.img_class }}" />
|
||||
{{ end }}
|
||||
{{ if $option.img_dark }}
|
||||
<img src="{{ $option.img_dark }}" class="w-full max-h-48 object-contain hidden dark:block" />
|
||||
<img src="{{ $option.img_dark }}" class="w-full max-h-48 object-contain hidden dark:block {{ $option.img_class }}" />
|
||||
{{ end }}
|
||||
<h3 class="text-xl font-semibold text-gray-900 dark:text-white">
|
||||
{{ $option.title | markdownify }}
|
||||
|
||||
Reference in New Issue
Block a user