Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix ch2 schedule icon and marquee key #131

Merged
merged 1 commit into from
May 31, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 11 additions & 7 deletions components/livePlayer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,11 @@ export default function LivePlayer() {

return (
<section className={playerWrapperClassNames}>
<div className="h-12 sm:h-16 flex items-center flex-1 truncate border-b-2 border-white lg:border-0 lg:min-w-[50%]">
<div
className={`h-12 sm:h-16 flex items-center flex-1 truncate lg:border-0 lg:min-w-[50%] ${
ch2IsOnline && "border-b-2 border-white"
}`}
>
{isOnline && (
<>
<button
Expand Down Expand Up @@ -167,7 +171,7 @@ export default function LivePlayer() {
<>
{hasBack && isSchedulePage ? (
<button
className="lg:hidden flex pt-2 pb-2 sm:pt-4 sm:pb-4 px-4 !ml-0 self-stretch items-center bg-black border-white border-l-2 border-r-0 text-white"
className="lg:hidden flex pt-0.5 pb-0.5 sm:pt-4 sm:pb-4 px-4 !ml-0 self-stretch items-center bg-black border-white border-l-2 border-r-0 text-white"
onClick={() => router.back()}
>
{isSchedulePage ? (
Expand All @@ -183,7 +187,7 @@ export default function LivePlayer() {
</button>
) : (
<Link
className="lg:hidden flex pt-2 pb-2 sm:pt-4 sm:pb-4 px-4 !ml-0 self-stretch items-center bg-black border-white border-l-2 border-r-0 text-white"
className="lg:hidden flex pt-0.5 pb-0.5 sm:pt-4 sm:pb-4 px-4 !ml-0 self-stretch items-center bg-black border-white border-l-2 border-r-0 text-white"
href={isSchedulePage ? "/" : "/schedule"}
>
{isSchedulePage ? (
Expand All @@ -193,7 +197,7 @@ export default function LivePlayer() {
className="h-6 w-[24px] rotate-180 "
/>
) : (
<AiOutlineCalendar />
<AiOutlineCalendar className="h-[22px] w-[22px]" />
)}
<span className="sr-only lg:hidden">
{isSchedulePage ? "Back" : "Schedule"}
Expand Down Expand Up @@ -228,7 +232,7 @@ export default function LivePlayer() {
href={"/news/gisira-festival"}
>
<Marquee
key={scheduleData?.liveNow.title + ch2IsOnline}
key={scheduleData?.ch2.liveNow + ch2IsOnline}
text={<span className="pr-8">{scheduleData?.ch2.liveNow}</span>}
speed={0.3}
/>
Expand All @@ -244,7 +248,7 @@ export default function LivePlayer() {
<>
{hasBack && isSchedulePage ? (
<button
className="hidden lg:flex pt-2 pb-2 sm:pt-4 sm:pb-4 px-4 !ml-0 self-stretch items-center bg-black border-white border-l-2 border-r-0 text-white"
className="hidden lg:flex pt-0.5 pb-0.5 sm:pt-4 sm:pb-4 px-4 !ml-0 self-stretch items-center bg-black border-white border-l-2 border-r-0 text-white"
onClick={() => router.back()}
>
{isSchedulePage ? (
Expand All @@ -260,7 +264,7 @@ export default function LivePlayer() {
</button>
) : (
<Link
className="hidden lg:flex pt-2 pb-2 sm:pt-4 sm:pb-4 px-4 !ml-0 self-stretch items-center bg-black border-white border-l-2 border-r-0 text-white"
className="hidden lg:flex pt-0.5 pb-0.5 sm:pt-4 sm:pb-4 px-4 !ml-0 self-stretch items-center bg-black border-white border-l-2 border-r-0 text-white"
href={isSchedulePage ? "/" : "/schedule"}
>
{isSchedulePage ? (
Expand Down
Loading