From 2ed255e770c5211ea573a4bb6416800338ef469e Mon Sep 17 00:00:00 2001 From: Ben Visness Date: Fri, 1 Nov 2024 20:13:41 -0500 Subject: [PATCH 1/4] Improve testimonial styles --- assets/scss/utilities.scss | 5 +++++ content/english/tickets/index.md | 9 ++++++--- layouts/partials/components/testimonials.html | 8 ++++---- 3 files changed, 15 insertions(+), 7 deletions(-) diff --git a/assets/scss/utilities.scss b/assets/scss/utilities.scss index 154570e..7629ca9 100644 --- a/assets/scss/utilities.scss +++ b/assets/scss/utilities.scss @@ -18,3 +18,8 @@ .shadow { box-shadow: 0px 4px 40px rgba(0, 0, 0, 0.05); } + +/* This was supposed to be in tailwind, but whatever... */ +.flex-shrink-0 { + flex-shrink: 0; +} diff --git a/content/english/tickets/index.md b/content/english/tickets/index.md index e519edb..a40a1ce 100644 --- a/content/english/tickets/index.md +++ b/content/english/tickets/index.md @@ -230,17 +230,20 @@ features: title: "Bravo all, looking forward to next time!" link: "https://twitter.com/QuadeZaban/status/1593991041430196225" avatar: "/images/people/quade.jpg" - content: "Has been a joy watching this conference grow, and this one may have been the best so far in my books!" + content: | + Has been a joy watching this conference grow, and this one may have been the best so far in my books! - name: "Hadjar Homaei, CTO [@compdem](https://twitter.com/compdem)" title: "Huge thanks to Abner Coimbre for making this possible! We appreciate you!" link: "https://twitter.com/xeegeex/status/1594056776508637184" avatar: "/images/people/hadjar.jpg" - content: "I had such a wonderful time at Handmade Seattle this week connecting with an amazing community of people who passionately love the craft of software development!" + content: | + I had such a wonderful time at Handmade Seattle this week connecting with an amazing community of people who passionately love the craft of software development! - name: "Alasdair Monk, VP of Design ▲ [@vercel](https://twitter.com/vercel)" title: "My first Handmade Seattle was so great." link: "https://twitter.com/almonk/status/1593439527351484416" avatar: "/images/people/alasdair.jpg" - content: "Abner Coimbre is a fantastic host & organiser with an important vision for building better software that benefits all of us, in his words: “reclaiming user value" + content: | + Abner Coimbre is a fantastic host & organiser with an important vision for building better software that benefits all of us, in his words: "reclaiming user value" --- \ No newline at end of file diff --git a/layouts/partials/components/testimonials.html b/layouts/partials/components/testimonials.html index a792ddd..5b871cd 100644 --- a/layouts/partials/components/testimonials.html +++ b/layouts/partials/components/testimonials.html @@ -1,15 +1,15 @@ {{ if .testimonials }} -
+
{{ range $index, $testimonial := .testimonials }}
+ class="flex-shrink-0 mr-6 w-24 lg:w-32 object-cover rounded-lg"> {{ $img := resources.Get $testimonial.avatar }} - + -
+

"{{ $testimonial.title }}"

{{ $testimonial.content | markdownify }}

- {{ $testimonial.name | markdownify }} From e23b5e94aff30d349a2f27f1b8e623924c4644d7 Mon Sep 17 00:00:00 2001 From: Ben Visness Date: Fri, 1 Nov 2024 21:01:59 -0500 Subject: [PATCH 2/4] Tweak styles on ticket page (WIP) --- content/english/tickets/index.md | 6 +++--- layouts/partials/components/ticket_list.html | 22 ++++++++++++++------ 2 files changed, 19 insertions(+), 9 deletions(-) diff --git a/content/english/tickets/index.md b/content/english/tickets/index.md index a40a1ce..6feb3c8 100644 --- a/content/english/tickets/index.md +++ b/content/english/tickets/index.md @@ -7,7 +7,7 @@ layout: "tickets" features: - title: "Tickets" - title_class: "text-center text-white mt-16" + title_class: "text-center text-white mt-8" side: "center" content_class: "mt-16 pt-0 pb-0 text-white" image: "/images/hmc/cities-light-mode.svg" @@ -19,7 +19,7 @@ features: tickets: - title: "Physical Track" title_class: "text-white" - subtitle: "Status: Early Bird" + subtitle: "Available now" subtitle_class: "text-white" section_class: "text-white" options: @@ -114,7 +114,7 @@ features: tickets: - title: "Online Track" title_class: "text-black dark:text-white" - subtitle: "Status: Early Bird" + subtitle: "Available now" subtitle_class: "text-black dark:text-white" section_class: "text-black dark:text-white" options: diff --git a/layouts/partials/components/ticket_list.html b/layouts/partials/components/ticket_list.html index 04432ab..267d619 100644 --- a/layouts/partials/components/ticket_list.html +++ b/layouts/partials/components/ticket_list.html @@ -3,7 +3,7 @@
{{ $tickets := .tickets }} {{ range $index, $ticket := $tickets }} -

{{ $ticket.title }}

+

{{ $ticket.title }}

{{ $ticket.subtitle }}

{{/*
*/}}
{{ $option.title | markdownify }} -
+
+ {{ $original_styles := "box-border text-light line-through text-2xl font-semibold leading-none border-solid" }} {{ if $option.original_price }} -

+

{{ $option.original_price | markdownify }}

{{ end }} -

$

-

- {{ $option.price | markdownify }} +

+

$

+

+ {{ $option.price | markdownify }} +

+
+ + {{/* to center the overall content */}} + {{ if $option.original_price }} + + {{ end }}
    {{ range $feature_index, $feature := $option.features }} From ce4b17ac2a91b4e9a79acdc92c160d3432ad8e2a Mon Sep 17 00:00:00 2001 From: Asaf Gartner Date: Sat, 2 Nov 2024 04:49:43 +0200 Subject: [PATCH 3/4] Initial media index --- content/english/media/_index.md | 3 +++ content/english/media/boston-2023/_index.md | 5 +++++ content/english/media/seattle-2023/_index.md | 5 +++++ layouts/_default/baseof.html | 4 ++-- layouts/media/section.html | 22 ++++++++++++++++++++ 5 files changed, 37 insertions(+), 2 deletions(-) create mode 100644 content/english/media/_index.md create mode 100644 content/english/media/boston-2023/_index.md create mode 100644 content/english/media/seattle-2023/_index.md create mode 100644 layouts/media/section.html diff --git a/content/english/media/_index.md b/content/english/media/_index.md new file mode 100644 index 0000000..69463d3 --- /dev/null +++ b/content/english/media/_index.md @@ -0,0 +1,3 @@ ++++ +title="Media" ++++ diff --git a/content/english/media/boston-2023/_index.md b/content/english/media/boston-2023/_index.md new file mode 100644 index 0000000..1f6a8b7 --- /dev/null +++ b/content/english/media/boston-2023/_index.md @@ -0,0 +1,5 @@ ++++ +title="Handmade Boston 2023" +date="2023-07-03T09:00:00-04:00" +enddate="2023-07-04T17:00:00-04:00" ++++ diff --git a/content/english/media/seattle-2023/_index.md b/content/english/media/seattle-2023/_index.md new file mode 100644 index 0000000..0ffcc11 --- /dev/null +++ b/content/english/media/seattle-2023/_index.md @@ -0,0 +1,5 @@ ++++ +title="Handmade Seattle 2023" +date="2023-11-15T09:00:00-08:00" +enddate="2023-11-17T17:00:00-08:00" ++++ diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index 4b1246b..6b72c62 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -16,7 +16,7 @@ - + {{ if hugo.IsProduction }} {{ partialCached "preloader.html" . }} @@ -39,7 +39,7 @@ {{ partial "search-modal.html" (dict "Context" . ) }} -
    +
    {{ block "main" . }}{{ end }}
    diff --git a/layouts/media/section.html b/layouts/media/section.html new file mode 100644 index 0000000..abca1db --- /dev/null +++ b/layouts/media/section.html @@ -0,0 +1,22 @@ +{{ define "main" }} +
    +
    + {{ $sections := slice . }} + {{ if .Sections }} + {{ $sections = .Sections.ByDate.Reverse }} + {{ end }} + {{ range $sections }} +
    + +
    + {{ range .RegularPages.ByDate }} + {{ .Title }} + {{ end }} +
    +
    + {{ end }} +
    +
    +{{ end }} From 451823de197dde1190b2fef106b3beb474c67407 Mon Sep 17 00:00:00 2001 From: Ben Visness Date: Fri, 1 Nov 2024 22:35:36 -0500 Subject: [PATCH 4/4] Add a description to the ticket page --- content/english/tickets/index.md | 2 ++ layouts/partials/components/ticket_list.html | 11 ++++++++--- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/content/english/tickets/index.md b/content/english/tickets/index.md index 6feb3c8..0f39cdc 100644 --- a/content/english/tickets/index.md +++ b/content/english/tickets/index.md @@ -16,6 +16,8 @@ features: img: "/images/devon_starfield.png" end_img: "/images/software-15.png" end_img_class: "relative h-96 bg-contain bg-bottom bg-repeat-x" + description: | + Handmade Seattle is a fully hybrid conference, and both physical and online tickets are available. Buying a ticket supports the conference and gains you access to the private chat server used for speaker Q&A, the virtual job fair, and more. tickets: - title: "Physical Track" title_class: "text-white" diff --git a/layouts/partials/components/ticket_list.html b/layouts/partials/components/ticket_list.html index 267d619..3b168f8 100644 --- a/layouts/partials/components/ticket_list.html +++ b/layouts/partials/components/ticket_list.html @@ -1,13 +1,18 @@ {{ if .tickets }} -
    +
    + {{ with .description }} +
    + {{ . | markdownify }} +
    + {{ end }} {{ $tickets := .tickets }} {{ range $index, $ticket := $tickets }}

    {{ $ticket.title }}

    {{ $ticket.subtitle }}

    {{/*
    */}}
    + class="grid grid-cols-1 gap-4 leading-7 text-gray-900 border-0 border-gray-200 py-4 sm:gap-6 md:gap-4 lg:grid-cols-2 {{ $ticket.section_class }}"> {{ range $option_index, $option := $ticket.options }} @@ -34,7 +39,7 @@
*/}} -
+

{{ $option.name | markdownify }}