11---
22import { getRelativeLocaleUrl } from ' astro:i18n'
3- import { useI18n , getLocaleFromPath } from ' ~/i18n/utils'
3+ import { getLocaleFromPath } from ' ~/i18n/utils'
44import schedule from ' ~/data/schedule.json'
55import { extractHHmm } from ' ~/utils/build/agenda/extractHHmm'
6- import Time from ' ~/components/agenda/Time.astro'
6+ import DayLink from ' ~/components/agenda/desktop/DayLink.astro'
7+ import RoomCard from ' ~/components/agenda/desktop/RoomCard.astro'
8+ import Time from ' ~/components/agenda/desktop/Time.astro'
79import Session from ' ~/components/agenda/Session.astro'
810
9- const { t } = useI18n (Astro .url .pathname )
1011const locale = getLocaleFromPath (Astro .url .pathname )
1112const { title, date } = Astro .props
1213
@@ -22,26 +23,24 @@ schedule.sessions.forEach(session => {
2223---
2324
2425<div class =" agenda hidden lg:block" >
25- <div class =" sticky top-0 z-30 flex flex-col justify-center bg-white shadow " style =" height: var(--agenda-header-height);" >
26+ <div class =" sticky top-0 z-30 mb-6 flex flex-col justify-center bg-white" style =" height: var(--agenda-header-height);" >
2627 <div class =" container" >
27- <div class =" mb-5 flex justify-center gap-4 font-bold" >
28- <a class = { title === ' Day 1 ' ? ' text-info-dark ' : ' text-info ' } href ={ getRelativeLocaleUrl (locale , ' agenda/day1' )} > Day 1</ a >
29- <a class = { title === ' Day 2 ' ? ' text-info-dark ' : ' text-info ' } href ={ getRelativeLocaleUrl (locale , ' agenda/day2' )} > Day 2</ a >
28+ <div class =" mt-4 mb-5 flex gap-4 font-bold" >
29+ <DayLink href ={ getRelativeLocaleUrl (locale , ' agenda/day1' )} title = " Day 1" curTitle = { title } / >
30+ <DayLink href ={ getRelativeLocaleUrl (locale , ' agenda/day2' )} title = " Day 2" curTitle = { title } / >
3031 </div >
3132
3233 <div class =" agenda-grid grid text-center" >
3334 <div ></div >
34- <div class = " bg-primary mx-3 py-2 text-white " > { t ( ' room.R0 ' ) } </ div >
35- <div class = " bg-primary mx-3 py-2 text-white " > { t ( ' room.R1 ' ) } </ div >
36- <div class = " bg-primary mx-3 py-2 text-white " > { t ( ' room.R2 ' ) } </ div >
37- <div class = " bg-primary mx-3 py-2 text-white " > { t ( ' room.RH ' ) } </ div >
35+ <RoomCard room = " R0 " / >
36+ <RoomCard room = " R1 " / >
37+ <RoomCard room = " R2 " / >
38+ <RoomCard room = " RH " / >
3839 </div >
3940 </div >
4041 </div >
4142
4243 <div class =" container" >
43- <h2 class =" mt-8 mb-12" >{ title } </h2 >
44-
4544 <div id =" agenda-grid" class =" agenda-grid relative grid" >
4645 { Array .from (times ).map (time => <Time at = { time } />)}
4746 { sessions .map (session => <Session session = { session } />)}
0 commit comments