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 session list styles #1743

Merged
merged 1 commit into from
Aug 6, 2024
Merged
Show file tree
Hide file tree
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
1 change: 1 addition & 0 deletions src/app/conf/2024/pricing.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,7 @@ export function Pricing() {
</h3>

<SessionList
minimalVersion
year="2024"
filterCategories={filterCategories2024}
eventsColors={eventsColors}
Expand Down
10 changes: 6 additions & 4 deletions src/app/conf/_components/schedule/session-list.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ interface Props {
options: string[]
}[]
eventsColors: Record<string, string>
minimalVersion?: boolean
}

export function SessionList({
Expand All @@ -104,6 +105,7 @@ export function SessionList({
year,
filterCategories,
eventsColors,
minimalVersion
}: Props): ReactElement {
const [filtersState, setFiltersState] = useState<
Record<CategoryName, string[]>
Expand Down Expand Up @@ -166,15 +168,15 @@ export function SessionList({
key={session.id}
className={`${clsx(
"white shadow-2xl rounded-md overflow-hidden flex flex-col text-current hover:no-underline focus:no-underline",
)} ${year === "2024" ? "bg-[#251f30]" : ""}`}
)} ${minimalVersion ? "bg-[#251f30]" : ""}`}
href={
year === "2024"
minimalVersion
? `/conf/${year}/schedule/${session.id}`
: `/conf/${year}/sessions/${session.id}`
}
>
<div
className={`${year === "2024" ? "hidden" : ""} bg-[#251F30] text-white flex justify-between py-5 px-7 relative`}
className={`${minimalVersion ? "hidden" : ""} bg-[#251F30] text-white flex justify-between py-5 px-7 relative`}
>
<div className="text-sm flex flex-col gap-2 [*:hover>*>&]:opacity-0 transition-opacity duration-300 opacity-100">
{year !== "2024" && (
Expand Down Expand Up @@ -276,4 +278,4 @@ function ClockIcon(props: ComponentProps<"svg">) {
/>
</svg>
)
}
}
Loading