Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions assets/css/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -118,3 +118,10 @@ html {
border: 2px solid var(--color-py-yellow);
box-shadow: 0 0 40px rgba(255, 212, 59, 0.1);
}

/* Sessionize embeds (/schedule/, /grid/) */
/* Single-day event: the page header already shows the date, and Sessionize's
day title is an <h1> that would duplicate the page <h1>. */
.sessionize-embed .sz-day__title {
display: none;
}
4 changes: 1 addition & 3 deletions layouts/grid/list.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,5 @@
{{/* Structured Data for Schedule */}}
{{ partial "structured-data-schedule.html" . }}

<section class="relative min-h-screen flex items-center justify-center overflow-hidden py-24">
<script type="text/javascript" src="https://sessionize.com/api/v2/gcf50ep3/view/GridSmart"></script>
</section>
{{ partial "programme-page.html" (dict "page" . "view" "GridSmart") }}
{{ end }}
61 changes: 61 additions & 0 deletions layouts/partials/programme-page.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
{{- /*
Shared layout for the Sessionize-powered programme pages.

Params (dict):
page the current page
view Sessionize embed view: "Sessions" (list), "GridSmart" (grid)
or "Speakers"

The embed is constrained to the site container (it otherwise spans the
full viewport) and overflow-x is clipped: the Sessionize list renders a
few pixels wider than the viewport on mobile. See .sessionize-embed in
assets/css/main.css for the overrides of Sessionize's own markup.
*/ -}}
{{- $page := .page -}}
{{- $view := .view -}}
{{- $sz := partialCached "sessionize-data.html" $page -}}
{{- /* Session and speaker lists have long descriptions and bios: keep a
readable line length. The grid needs the full container width for
its room columns. */ -}}
{{- $width := cond (eq $view "GridSmart") "max-w-7xl" "max-w-4xl" -}}
{{- $tabs := slice
(dict "label" "List" "url" "/schedule/" "view" "Sessions")
(dict "label" "Grid" "url" "/grid/" "view" "GridSmart")
(dict "label" "Speakers" "url" "/speakers/" "view" "Speakers")
-}}
<div class="pt-24">
<section class="pt-12 pb-8 text-center">
<div class="max-w-4xl mx-auto px-4">
<h1 class="text-4xl sm:text-5xl font-extrabold text-text-heading mb-4">{{ $page.Title }}</h1>
<p class="text-text-secondary text-lg">
{{ site.Params.dateHuman }} &middot; {{ site.Params.venue }}, Dublin
</p>
{{- if $sz.ok }}
{{- $talks := 0 }}{{ $workshops := 0 }}
{{- range $sz.sessions }}
{{- if eq .type "Workshop" }}{{ $workshops = add $workshops 1 }}{{ else }}{{ $talks = add $talks 1 }}{{ end }}
{{- end }}
<p class="text-text-secondary mt-1">
{{ $talks }} talks &amp; panels &middot; {{ $workshops }} workshops &middot; {{ len $sz.speakers }} speakers
</p>
{{- end }}

<nav class="mt-8 inline-flex rounded-xl bg-bg-card p-1 border border-white/5" aria-label="Programme views">
{{- range $tabs }}
{{- $active := eq .view $view }}
<a href="{{ .url }}"
class="px-5 py-2 rounded-lg text-sm font-semibold transition-colors {{ if $active }}bg-py-yellow text-bg-primary{{ else }}text-text-secondary hover:text-py-yellow{{ end }}"
{{- if $active }} aria-current="page"{{ end }}>{{ .label }}</a>
{{- end }}
</nav>
</div>
</section>

<div class="section-divider max-w-7xl mx-auto"></div>

<section class="py-12">
<div class="sessionize-embed {{ $width }} mx-auto px-4 sm:px-6 lg:px-8 overflow-x-clip">
<script type="text/javascript" src="https://sessionize.com/api/v2/gcf50ep3/view/{{ $view }}"></script>
</div>
</section>
</div>
4 changes: 1 addition & 3 deletions layouts/schedule/list.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,5 @@
{{/* Structured Data for Schedule */}}
{{ partial "structured-data-schedule.html" . }}

<section class="relative min-h-screen flex items-center justify-center overflow-hidden py-20">
<script type="text/javascript" src="https://sessionize.com/api/v2/gcf50ep3/view/Sessions"></script>
</section>
{{ partial "programme-page.html" (dict "page" . "view" "Sessions") }}
{{ end }}
4 changes: 1 addition & 3 deletions layouts/speakers/list.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,5 @@
{{/* Structured Data for Speakers */}}
{{ partial "structured-data-speakers.html" . }}

<section class="relative min-h-screen flex items-center justify-center overflow-hidden py-20">
<script type="text/javascript" src="https://sessionize.com/api/v2/gcf50ep3/view/Speakers"></script>
</section>
{{ partial "programme-page.html" (dict "page" . "view" "Speakers") }}
{{ end }}
Loading