11---
2- import ButtonLink from " ../button-link/button-link.astro" ;
3- import { Title } from " ../typography/title" ;
42import Keynoter from " ./keynoter.astro" ;
3+ import Headline from " @ui/Headline.astro" ;
4+ import Button from " @ui/Button.astro" ;
55
66import { getCollection } from " astro:content" ;
77
88const keynoters = await getCollection (" keynoters" );
99
10- const placeholders = Math .max (0 , 6 - keynoters .length );
10+ const placeholders = Math .max (0 , 5 - keynoters .length );
1111---
1212
13- <section class =" relative my-12 px-6" >
13+ <section class =" prose-xl relative my-12 px-6" >
1414 <svg viewBox =" 0 0 729 704" class =" absolute top-0 left-0 w-full h-full -z-10" >
1515 <g
1616 stroke =" none"
1717 stroke-width ={ 1 }
1818 fill =" none"
1919 fill-rule =" evenodd"
20- opacity ={ 0.4 }
20+ opacity ={ 0.1 }
2121 >
2222 <g
2323 transform =" translate(-297.000000, -4131.000000)"
24- class =" fill-hero-primary "
24+ class =" fill-secondary-light "
2525 >
2626 <g transform =" translate(81.000000, 3688.000000)" >
2727 <g transform =" translate(216.000000, 443.000000)" >
@@ -79,25 +79,26 @@ const placeholders = Math.max(0, 6 - keynoters.length);
7979 </g >
8080 </svg >
8181
82- <Title className =" text-primary" >
83- <a href =" /keynoters" >Keynote Speakers</a >
84- </Title >
82+ <Headline id =" keynoters" title =" Keynote Speakers" />
8583
86- <ul class =" mt-12 mb-24 flex gap-6 flex-wrap" >
84+ <ul class =" p-0 mt-12 flex gap-6 flex-wrap justify-center " >
8785 {
88- keynoters .map ((keynoter , index ) => (
89- <Keynoter
90- name = { keynoter .data .name }
91- slug = { keynoter .slug }
92- tagline = { keynoter .data .tagline }
93- image = { keynoter .data .image }
94- placeholder = { false }
95- class :list = { [
96- " w-full sm:w-[calc(50%-1rem)] md:w-[calc(30%-1rem)]" ,
97- { " md:ml-[10%]" : index === 0 },
98- ]}
99- />
100- ))
86+ keynoters
87+ .sort ((a , b ) => a .data .order - b .data .order )
88+ .map ((keynoter , index ) => (
89+ <Keynoter
90+ name = { keynoter .data .name }
91+ slug = { keynoter .slug }
92+ tagline = { keynoter .data .tagline }
93+ image = { keynoter .data .image }
94+ placeholder = { false }
95+ order = { keynoter .data .order }
96+ class :list = { [
97+ " w-full sm:w-[calc(50%-1rem)] md:w-[calc(30%-1rem)]" ,
98+ { " md:ml-[10%]" : index === 0 },
99+ ]}
100+ />
101+ ))
101102 }
102103 {
103104 new Array (placeholders )
@@ -114,13 +115,16 @@ const placeholders = Math.max(0, 6 - keynoters.length);
114115 }
115116 </ul >
116117
117- <div class =" flex items-end flex-col pr-6" >
118+ <div class =" flex items-center flex-col pr-6" >
118119 <div class =" text-center" >
119120 <h3 class =" font-bold text-3xl mb-4" >
120121 <span class =" text-body-light inline-block mr-2" >#</span >
121122 See other sessions
122123 </h3 >
123- <ButtonLink url =" /sessions" >List of Sessions</ ButtonLink >
124+ <Button url =" /programme/ sessions" >See sessions preview</ Button >
124125 </div >
125126 </div >
126127</section >
128+ <style >
129+ .fill-hero-primary {}
130+ </style >
0 commit comments