Skip to content

Commit 093b6df

Browse files
authored
UX Cleanup, Content Refresh: Added play button to workshops
UX Cleanup, Content Refresh: Added play button to workshops
2 parents 9b37457 + d6a0763 commit 093b6df

File tree

6 files changed

+30
-8
lines changed

6 files changed

+30
-8
lines changed

content/english/workshops/visual-place-recognition-tobias-fischer/index.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ description: "Tobias Fischer shares advances in neuromorphic visual place recogn
88
end_time: 00:30
99
time_zone: CET
1010
draft: false
11+
video: dTE6eDzwSJU
1112
upcoming: false
1213
image: advances-in-neuromorphic-visual-place-rec.png
1314
speaker_photo: speaker.jpeg

themes/hugoplate/layouts/journalclub/list.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
<h3 class="pb-5 pt-5 text-xl">Upcoming Journal clubs</h3>
2626
{{ partial "components/upcoming-events" . }}
2727
<div class="text-right pb-5">
28-
<a href="/getting-involved/" class="btn-primary btn-sm pt-6 btn">Host a workshop</a>
28+
<a href="/getting-involved/" class="btn-primary btn-sm btn">Host a workshop</a>
2929
</div>
3030
</div> -->
3131
</div>

themes/hugoplate/layouts/partials/components/session-card-wide.html

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,19 @@
22
<div class="lg:col-4 md:col-12">
33
{{ $image := .Params.image }}
44
{{ if $image }}
5-
<a href="{{ .RelPermalink }}" class="pb-4">
5+
<div class="relative group">
6+
<a href="{{ .RelPermalink }}" class="pb-4 block">
67
{{ partial "override-image" (dict "Src" $image "Context" .Page "Alt" .Title "Class" "w-full rounded" "Size" "500x") }}
78
</a>
9+
<div class="absolute top-1/2 left-1/2 transform -translate-x-1/2 -translate-y-1/2 opacity-40 group-hover:opacity-100 transition-opacity duration-300">
10+
<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
11+
viewBox="0 0 330 330" class="h-12 w-12 text-gray-300" style="enable-background:new 0 0 330 330;" xml:space="preserve">
12+
<path id="XMLID_308_" d="M37.728,328.12c2.266,1.256,4.77,1.88,7.272,1.88c2.763,0,5.522-0.763,7.95-2.28l240-149.999
13+
c4.386-2.741,7.05-7.548,7.05-12.72c0-5.172-2.664-9.979-7.05-12.72L52.95,2.28c-4.625-2.891-10.453-3.043-15.222-0.4
14+
C32.959,4.524,30,9.547,30,15v300C30,320.453,32.959,325.476,37.728,328.12z"/>
15+
</svg>
16+
</div>
17+
</div>
818
{{ else }}
919
<a href="{{ .RelPermalink }}" class="pb-4">
1020

themes/hugoplate/layouts/partials/components/session-card.html

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,24 @@
11
<div class="">
22
{{ $image := .Params.image }}
33
{{ if $image }}
4-
<a href="{{ .RelPermalink }}">
4+
<div class="relative group">
5+
<a href="{{ .RelPermalink }}" class="pb-4 block">
56
{{ partial "override-image" (dict "Src" $image "Context" .Page "Alt" .Title "Class" "mb-6 w-full rounded" "Size" "500x") }}
67
</a>
8+
<div class="absolute top-1/2 left-1/2 transform -translate-x-1/2 -translate-y-1/2 opacity-40 group-hover:opacity-100 transition-opacity duration-300">
9+
<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
10+
viewBox="0 0 330 330" class="h-12 w-12 text-gray-300" style="enable-background:new 0 0 330 330;" xml:space="preserve">
11+
<path id="XMLID_308_" d="M37.728,328.12c2.266,1.256,4.77,1.88,7.272,1.88c2.763,0,5.522-0.763,7.95-2.28l240-149.999
12+
c4.386-2.741,7.05-7.548,7.05-12.72c0-5.172-2.664-9.979-7.05-12.72L52.95,2.28c-4.625-2.891-10.453-3.043-15.222-0.4
13+
C32.959,4.524,30,9.547,30,15v300C30,320.453,32.959,325.476,37.728,328.12z"/>
14+
</svg>
15+
</div>
16+
</div>
717
{{ else }}
818
<a href="{{ .RelPermalink }}">
919
{{ partial "override-image" (dict "Src" "images/workshop-thumbnail-default.png" "Alt" .Title "Class" "w-full rounded" "Size" "500x") }}
1020
</a>
21+
1122
{{ end }}
1223
<h4 class="mb-3">
1324
<a href="{{ .RelPermalink }}">

themes/hugoplate/layouts/workshops/list.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@
1919
<div class="px-7 pt-7 bg-theme-light dark:bg-darkmode-theme-light rounded">
2020
<h3 class="pb-5 pt-5 text-xl">Upcoming Workshops</h3>
2121
{{ partial "components/upcoming-events" . }}
22-
<div class="text-right pb-5"> <!-- Right-align the button -->
23-
<a href="/getting-involved/" class="btn-primary btn-sm pt-6 btn">Host a workshop</a>
22+
<div class="text-right pb-5 pt-5"> <!-- Right-align the button -->
23+
<a href="/getting-involved/" class="btn-primary btn-sm btn">Host a workshop</a>
2424
</div>
2525
</div>
2626
</div>

themes/hugoplate/layouts/workshops/single.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,10 +65,10 @@
6565
"Telegram" false) }}
6666
</div>
6767
<div class="px-7 pt-7 bg-theme-light dark:bg-darkmode-theme-light rounded">
68-
<h3 class="pb-5 text-xl">Upcoming Workshops</h3>
68+
<h3 class="pb-5 pt-5 text-xl">Upcoming Workshops</h3>
6969
{{ partial "components/upcoming-events" . }}
70-
<div class="text-right pb-5"> <!-- Right-align the button -->
71-
<a href="/getting-involved/" class="btn-primary btn-sm pt-6 btn">Host a workshop</a>
70+
<div class="text-right pb-5 pt-5"> <!-- Right-align the button -->
71+
<a href="/getting-involved/" class="btn-primary btn-sm btn">Host a workshop</a>
7272
</div>
7373
</div>
7474
</div>

0 commit comments

Comments
 (0)