This event was created in the timezone {event.timezone}. { + e.preventDefault(); + setTimezone(event.timezone); + }}>Click here to use it.
} + {(( + Intl.DateTimeFormat().resolvedOptions().timeZone !== timezone + && (event?.timezone && event.timezone !== Intl.DateTimeFormat().resolvedOptions().timeZone) + ) || ( + event?.timezone === undefined + && Intl.DateTimeFormat().resolvedOptions().timeZone !== timezone + )) && ( +Your local timezone is detected to be {Intl.DateTimeFormat().resolvedOptions().timeZone}. { + e.preventDefault(); + setTimezone(Intl.DateTimeFormat().resolvedOptions().timeZone); + }}>Click here to use it.
+ )} diff --git a/crabfit-frontend/src/pages/Event/eventStyle.ts b/crabfit-frontend/src/pages/Event/eventStyle.ts index f5f3354..2727b99 100644 --- a/crabfit-frontend/src/pages/Event/eventStyle.ts +++ b/crabfit-frontend/src/pages/Event/eventStyle.ts @@ -24,7 +24,7 @@ export const Title = styled.span` export const EventName = styled.h1` text-align: center; font-weight: 800; - margin: 20px 0 14px; + margin: 20px 0 5px; ${props => props.isLoading && ` &:after { @@ -39,6 +39,28 @@ export const EventName = styled.h1` `} `; +export const EventDate = styled.span` + display: block; + text-align: center; + font-size: 14px; + opacity: .8; + margin: 0 0 10px; + font-weight: 500; + letter-spacing: .01em; + + ${props => props.isLoading && ` + &:after { + content: ''; + display: inline-block; + height: 1em; + width: 200px; + max-width: 100%; + background-color: ${props.theme.loading}; + border-radius: 3px; + } + `} +`; + export const LoginForm = styled.form` display: grid; grid-template-columns: 1fr 1fr 100px;