Skip to content

Commit

Permalink
Merge branch 'main' of github.com:dddwa/ddd-2024
Browse files Browse the repository at this point in the history
# Conflicts:
#	website/app/routes/_layout.agenda.($year).tsx
  • Loading branch information
CoreyGinnivan committed Aug 20, 2024
2 parents f90c3a1 + fbf5cd6 commit 7bdcad9
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 13 deletions.
13 changes: 10 additions & 3 deletions website/app/components/footer/footer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,14 @@ export const Footer = () => (
}}
>
<Divider color="#8D8DFF33" mb={6} />
<Grid gridTemplateColumns="repeat(4, 1fr)" width="full" gap={6} maxW="1200px" mx="auto">
<Grid
gridTemplateColumns="1fr"
md={{ gridTemplateColumns: 'repeat(4, 1fr)' }}
width="full"
gap={6}
maxW="1200px"
mx="auto"
>
<Flex flexGrow={2}>
<Logo width={153} />
</Flex>
Expand All @@ -34,8 +41,8 @@ export const Footer = () => (
About
</styled.a>
{/* <styled.a href={`/blog`} color="white" _hover={{ color: '#8282FB' }}>
Blog
</styled.a> */}
Blog
</styled.a> */}
<styled.a href={`/faq`} color="white" _hover={{ color: '#8282FB' }}>
FAQ
</styled.a>
Expand Down
43 changes: 33 additions & 10 deletions website/app/routes/_layout.agenda.($year).tsx
Original file line number Diff line number Diff line change
Expand Up @@ -187,11 +187,19 @@ export default function Agenda() {
{schedule.timeSlots.map((timeSlot, timeSlotIndex) => {
const startTime12 = DateTime.fromISO(timeSlot.slotStart).toFormat('h:mm a').toLowerCase()
const timeSlotSimple = timeSlot.slotStart.replace(/:/g, '')
const nextTimeSlot = schedule.timeSlots[timeSlotIndex + 1]
const nextTimeSlotStart = nextTimeSlot?.slotStart.replace(/:/g, '')

return (
<Fragment key={timeSlot.slotStart}>
<styled.h2 gridColumn="times" style={{ gridRow: `time-${timeSlotSimple}` }}>
<styled.h2 gridColumn="times" style={{ gridRow: `time-${timeSlotSimple}` }} mt="2" md={{ mt: 0 }}>
{startTime12}
{nextTimeSlot?.slotStart ? (
<styled.span display={{}} md={{ display: 'none' }}>
{' '}
- {DateTime.fromISO(nextTimeSlot.slotStart).toFormat('h:mm a').toLowerCase()}
</styled.span>
) : null}
</styled.h2>

{timeSlot.rooms.map((room) => {
Expand All @@ -203,12 +211,10 @@ export default function Agenda() {
? DateTime.fromISO(fullSession.endsAt).toFormat('h:mm a').toLowerCase()
: undefined

const nextTimeSlot = schedule.timeSlots[timeSlotIndex + 1]
const nextTimeSlotEnd = nextTimeSlot?.slotStart.replace(/:/g, '')
const timeSlotEnd = endsAtTime?.replace(/:/g, '') ?? ''
const earliestEnd = !availableTimeSlots?.includes(timeSlotEnd)
? nextTimeSlotEnd
: timeSlotEnd ?? nextTimeSlotEnd
? nextTimeSlotStart
: timeSlotEnd ?? nextTimeSlotStart

return (
<styled.div
Expand All @@ -223,7 +229,17 @@ export default function Agenda() {
: `room-${room.id}`,
}}
>
<Box rounded="sm" bgColor="#1F1F4E" fontSize="sm" height="full" padding={2}>
<Box
rounded="sm"
bgColor="#1F1F4E"
fontSize="sm"
height="full"
padding={2}
mt="2"
md={{
mt: 0,
}}
>
<styled.h3
wordWrap="break-word"
color="white"
Expand All @@ -234,15 +250,22 @@ export default function Agenda() {
>
<a href="#">{fullSession?.title}</a>
</styled.h3>
<styled.span display="block" color="#C2C2FF" textWrap="nowrap">
{startTime12}{endTime12}
<styled.span
display="none"
md={{
display: 'block',
}}
color="#C2C2FF"
textWrap="nowrap"
>
🕓 {startTime12} - {endTime12}
</styled.span>
<styled.span display="block" color="#C2C2FF" textOverflow="ellipsis" textWrap="nowrap">
{room.name}
📍 {room.name}
</styled.span>
{fullSession?.speakers?.length ? (
<styled.span display="block" color="#C2C2FF">
{fullSession?.speakers.map((speaker) => speaker.name)?.join(', ')}
💬 {fullSession?.speakers.map((speaker) => speaker.name)?.join(', ')}
</styled.span>
) : null}
</Box>
Expand Down

0 comments on commit 7bdcad9

Please sign in to comment.