@@ -32,7 +32,6 @@ const people = [...hosts, ...speakers];
3232const scheduleItem = (event .data .schedule ?.items ?? []).find (
3333 (conference ) => conference .slug ?.id === talk ?.id ,
3434);
35- console .log (" lena" , scheduleItem );
3635---
3736
3837{
@@ -44,25 +43,6 @@ console.log("lena", scheduleItem);
4443 })}
4544 class = " group flex w-full flex-col gap-4 rounded-lg bg-white/5 p-4 backdrop-blur-md transition hover:bg-white/10 sm:px-6 sm:py-5"
4645 >
47- { scheduleItem ?.status === " cancelled" && (
48- <div class = " h-full w-fit rounded-full bg-gradient-to-r from-destructive to-destructive/80 px-2 py-1 text-destructive-foreground" >
49- <div class = " flex items-center gap-2" >
50- <FiXCircle className = " h-4 w-4" />
51- <span class = " text-sm font-medium" >
52- TALK CANCELLED - Speaker Withdrawal
53- </span >
54- </div >
55- </div >
56- )}
57- { scheduleItem ?.status === " replacement" && (
58- <div class = " h-full w-fit justify-center rounded-full bg-success from-accent px-2 py-1 text-accent-foreground text-white" >
59- <div class = " flex items-center gap-2" >
60- <FiPlus className = " h-4 w-4 text-white" />
61- <span class = " text-sm font-medium text-white" >New Talk</span >
62- </div >
63- </div >
64- )}
65-
6646 <div class = " flex justify-between" >
6747 <p
6848 class = { cn (
@@ -72,6 +52,22 @@ console.log("lena", scheduleItem);
7252 >
7353 { talk .data .title }
7454 </p >
55+ { scheduleItem ?.status === " cancelled" && (
56+ <div class = " h-full w-fit rounded-full bg-gradient-to-r from-destructive to-destructive/80 px-2 py-1 text-destructive-foreground" >
57+ <div class = " flex items-center gap-1" >
58+ <FiXCircle className = " h-4 w-4" />
59+ <span class = " text-sm font-medium" >Cancelled</span >
60+ </div >
61+ </div >
62+ )}
63+ { scheduleItem ?.status === " replacement" && (
64+ <div class = " isolate h-full w-fit justify-center rounded-full bg-success from-accent px-2 py-1 text-accent-foreground text-white" >
65+ <div class = " flex items-center gap-1" >
66+ <FiPlus className = " h-4 w-4 text-white" />
67+ <span class = " text-sm font-medium text-white" >New</span >
68+ </div >
69+ </div >
70+ )}
7571 </div >
7672
7773 { !! people .length && (
@@ -91,8 +87,13 @@ console.log("lena", scheduleItem);
9187 </div >
9288 )}
9389
94- <div class = " flex flex-row gap-2" >
95- <span class = " flex w-fit items-center gap-1.5 rounded-full border border-black/60 bg-black/40 px-2 py-0.5 text-2xs font-bold uppercase leading-none opacity-60 transition group-hover:opacity-100" >
90+ <div
91+ class = { cn (
92+ " flex flex-row gap-2" ,
93+ scheduleItem ?.status === " cancelled" ? " grayscale" : " " ,
94+ )}
95+ >
96+ <span class = " flex w-fit items-center gap-1.5 rounded-full border border-black/60 bg-black/40 px-2 py-0.5 text-2xs font-bold uppercase leading-none opacity-60 grayscale transition group-hover:opacity-100" >
9697 <IoLanguageSharp className = " text-base" />
9798 <span >Talk in { talk .data .language } </span >
9899 </span >
0 commit comments