11import Countdown from "react-countdown" ;
22import React , { FC } from "react" ;
33import { SectionWrapper } from "@components/SectionWrapper/SectionWrapper" ;
4- import TimeCountDown from "./components/TimeCountdown" ;
5- import { useWindowSize } from "react-use" ;
4+ import {
5+ TimeCountDown ,
6+ CountDownCompleted ,
7+ } from "@components/common/countdown" ;
68import { useDateInterval } from "@hooks/useDateInterval" ;
79// @ts -expect-error some quirky import
810import { motion } from "motion/react" ;
@@ -18,13 +20,11 @@ import {
1820import ActionButtons from "../ActionButtons/ActionButtons" ;
1921import { Color } from "@styles/colors" ;
2022import InfoButtons from "../InfoButtons/InfoButtons" ;
21- import { formatDateRange } from "./DateUtil " ;
23+ import { formatDateRange } from "@utils/dateUtils " ;
2224import { Link } from "react-router" ;
2325import edition from "@data/2026.json" ;
24- import CountDownCompleted from "./components/CountDownCompleted" ;
2526
2627const HomeWTC : FC < React . PropsWithChildren < unknown > > = ( ) => {
27- useWindowSize ( ) ;
2828 const { isTicketsDisabled, isSponsorDisabled, isCfpDisabled } =
2929 useDateInterval ( new Date ( ) , edition ) ;
3030
@@ -39,7 +39,8 @@ const HomeWTC: FC<React.PropsWithChildren<unknown>> = () => {
3939 >
4040 < StyledDevBcnLogo src = "images/logo.png" alt = "DevBcn logo" />
4141 </ StyledLogoDiv >
42- < StyledTitleContainer color = { Color . TRANSPARENT }
42+ < StyledTitleContainer
43+ color = { Color . TRANSPARENT }
4344 initial = { { opacity : 0 , y : 50 } }
4445 animate = { { opacity : 1 , y : 0 } }
4546 transition = { { duration : 0.6 , delay : 0.3 } }
@@ -51,15 +52,17 @@ const HomeWTC: FC<React.PropsWithChildren<unknown>> = () => {
5152 >
5253 The Barcelona Developers Conference { edition ?. edition }
5354 </ StyledTitle >
54- < StyledSubtitle fontWeight = { 600 }
55+ < StyledSubtitle
56+ fontWeight = { 600 }
5557 initial = { { opacity : 0 } }
5658 animate = { { opacity : 1 } }
5759 transition = { { duration : 0.5 , delay : 0.8 } }
5860 >
5961 { edition ?. trackNumber } tracks with the following topics: < br />
6062 { edition ?. tracks }
6163 </ StyledSubtitle >
62- < StyledSubtitle shadow = { true }
64+ < StyledSubtitle
65+ shadow = { true }
6366 initial = { { opacity : 0 } }
6467 animate = { { opacity : 1 } }
6568 transition = { { duration : 0.5 , delay : 1 } }
0 commit comments