fix: styling
This commit is contained in:
parent
1954ed03fc
commit
c537fcbb81
3 changed files with 16 additions and 7 deletions
|
|
@ -123,4 +123,11 @@ export const WithOccurrences: Story = {
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
|
}
|
||||||
|
|
||||||
|
export const WithOccurrencesAndGroup: Story = {
|
||||||
|
args: {
|
||||||
|
...WithOccurrences.args,
|
||||||
|
group: 'some_group',
|
||||||
|
},
|
||||||
}
|
}
|
||||||
|
|
@ -6,7 +6,7 @@ import { Container } from '@/components/Container/Container'
|
||||||
import { Col } from '@/components/Flex/Col'
|
import { Col } from '@/components/Flex/Col'
|
||||||
import { Pill } from '@/components/Pill/Pill'
|
import { Pill } from '@/components/Pill/Pill'
|
||||||
import { useDate } from '@/hooks/useCompactDate'
|
import { useDate } from '@/hooks/useCompactDate'
|
||||||
import { readableDateTime } from '@/utils/readableDate'
|
import { formatEventDate } from '@/utils/formatEventDate'
|
||||||
import { TextDiv } from '@/components/Text/TextDiv'
|
import { TextDiv } from '@/components/Text/TextDiv'
|
||||||
import { Button } from '@/components/Button/Button'
|
import { Button } from '@/components/Button/Button'
|
||||||
import Image, { StaticImageData } from 'next/image'
|
import Image, { StaticImageData } from 'next/image'
|
||||||
|
|
@ -72,7 +72,7 @@ export function EventPage(
|
||||||
}: EventProps
|
}: EventProps
|
||||||
) {
|
) {
|
||||||
const published = useDate(createdAt)
|
const published = useDate(createdAt)
|
||||||
const readableDate = readableDateTime(date, endDateTime)
|
const readableDate = formatEventDate(new Date(date), endDateTime ? new Date(endDateTime) : undefined, "long")
|
||||||
const where = locationString(location);
|
const where = locationString(location);
|
||||||
const contactPersonPhoto = typeof contact === "object" ? getPhoto("thumbnail", contact.photo) : undefined;
|
const contactPersonPhoto = typeof contact === "object" ? getPhoto("thumbnail", contact.photo) : undefined;
|
||||||
const isRecurring = recurrenceType && recurrenceType !== 'none'
|
const isRecurring = recurrenceType && recurrenceType !== 'none'
|
||||||
|
|
@ -93,12 +93,13 @@ export function EventPage(
|
||||||
|
|
||||||
<div className={styles.header}>
|
<div className={styles.header}>
|
||||||
<div className={styles.headerText}>
|
<div className={styles.headerText}>
|
||||||
<p>
|
|
||||||
{shortDescription}
|
<div className={styles.published}>
|
||||||
</p>
|
|
||||||
<p className={styles.published}>
|
|
||||||
Publiziert am {published}
|
Publiziert am {published}
|
||||||
</p>
|
</div>
|
||||||
|
<div>
|
||||||
|
{shortDescription}
|
||||||
|
</div>
|
||||||
|
|
||||||
<div className={styles.pills}>
|
<div className={styles.pills}>
|
||||||
{ isRecurring &&
|
{ isRecurring &&
|
||||||
|
|
|
||||||
|
|
@ -14,6 +14,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
.pills {
|
.pills {
|
||||||
|
margin-top: 10px;
|
||||||
display: flex;
|
display: flex;
|
||||||
gap: 10px;
|
gap: 10px;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue