Skip to content

Commit

Permalink
The one that looks good PR #303
Browse files Browse the repository at this point in the history
Release v1.2.2
  • Loading branch information
bardsley authored Nov 28, 2024
2 parents a01640e + 8292fcd commit c5673e9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
8 changes: 4 additions & 4 deletions app/timetable/nownext/now-and-next.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ const TimeSlot = ({session,numberOfSessions,basic}) => {
<h1 className={`${titleSize} font-bold leading-none`}>{session?.title}</h1>
<p className={`${artistSize} leading-none`}>{session?.artist?.name}</p>
<div className={`${infoSize} leading-none mt-2`}>
<TinaMarkdown content={session?.details}/> {session?.location } ---
<TinaMarkdown content={session?.details}/> {session?.location }
</div>

{/* {JSON.stringify(session,null,2)} */}
Expand All @@ -133,9 +133,9 @@ const SingleTimeSlot = ({session,numberOfSessions}) => {

const RoomHeaders = ({rooms,day,numberOfSessions}) => {
const gridSize = numberOfSessions < 2 ? 5 : numberOfSessions

return <div className={`grid grid-cols-${gridSize} `}>
{rooms.map((location)=>{ return <div className="bg-richblack-700 p-4 block text-center text-white text-xl font-bold uppercase " key={`${day}-${location}`}>{location}</div>})}
const gridCss = `grid-cols-${gridSize}`
return <div className={`grid ${gridCss}`}>
{rooms.map((location)=>{ return <div className="bg-richblack-700 p-4 block text-center text-white text-xl font-bold uppercase col-span-1" key={`${day}-${location}`}>{location}{numberOfSessions}</div>})}
</div>

}
Expand Down
4 changes: 3 additions & 1 deletion tailwind.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@ import { fontFamily } from "tailwindcss/defaultTheme";
module.exports = {
content: ["./components/**/*.{js,ts,jsx,tsx}", "./app/**/*.{js,ts,jsx,tsx}"],
darkMode: "class",
safelist: ["dark", "light"],
safelist: ["dark", "light",{
pattern: /grid/
}],
theme: {
colors: {
transparent: "transparent",
Expand Down

0 comments on commit c5673e9

Please sign in to comment.