2021-03-05 12:17:51 +00:00
|
|
|
import { h } from 'preact'
|
|
|
|
|
2021-10-12 12:45:52 +00:00
|
|
|
import { H1 } from './src/components/Text'
|
|
|
|
import Page from './src/layouts/Page'
|
2021-03-10 13:51:24 +00:00
|
|
|
|
2021-10-12 12:45:52 +00:00
|
|
|
export default () => (
|
|
|
|
<Page>
|
|
|
|
<H1>LANGING PAGE</H1>
|
|
|
|
</Page >
|
|
|
|
)
|
2021-10-11 13:50:24 +00:00
|
|
|
|
2021-03-11 20:24:44 +00:00
|
|
|
|
|
|
|
|
2021-10-12 12:45:52 +00:00
|
|
|
// useEffect(() => {
|
|
|
|
// if (calData && calData.length) {
|
|
|
|
// calData.forEach((stream, index) => {
|
|
|
|
// const utcStartDate = zonedTimeToUtc(
|
|
|
|
// new Date(stream.start),
|
|
|
|
// 'Europe/Berlin'
|
|
|
|
// )
|
|
|
|
// const utcEndDate = zonedTimeToUtc(new Date(stream.end), 'Europe/Berlin')
|
|
|
|
// const { timeZone } = Intl.DateTimeFormat().resolvedOptions()
|
|
|
|
|
|
|
|
// const zonedStartDate = utcToZonedTime(utcStartDate, timeZone)
|
|
|
|
// const zonedEndDate = utcToZonedTime(utcEndDate, timeZone)
|
|
|
|
// if (
|
|
|
|
// isWithinInterval(new Date(), {
|
|
|
|
// start: subHours(zonedStartDate, 1),
|
|
|
|
// end: addHours(zonedEndDate, 1),
|
|
|
|
// })
|
|
|
|
// ) {
|
|
|
|
// setCurrentVideo(stream)
|
|
|
|
// }
|
|
|
|
// if (
|
|
|
|
// isWithinInterval(new Date(), {
|
|
|
|
// start: zonedStartDate,
|
|
|
|
// end: zonedEndDate,
|
|
|
|
// })
|
|
|
|
// ) {
|
|
|
|
// setStreamIsLive(true)
|
|
|
|
// }
|
|
|
|
// })
|
|
|
|
// }
|
|
|
|
// }, [calData, eventsData, eventsLoading])
|
2021-05-23 15:21:15 +00:00
|
|
|
|
2021-03-05 12:17:51 +00:00
|
|
|
|