-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: add css linear-orange-red, orange-flare * fix: move id 'about' to description & apply warning by remove objectFit * fix: support small screen and use GradientCard * style: change option buttons overflow to scroll (was wrap) * refactor: use scroll-padding-top instead of anchor-holder
- Loading branch information
Showing
7 changed files
with
47 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,43 +1,44 @@ | ||
import type { SeminarSlot } from '../_types'; | ||
import { formatStr, fTime } from '@/shared/utils'; | ||
import { GradientCard } from '@/shared/components'; | ||
|
||
type Props = { | ||
seminars: SeminarSlot[]; | ||
}; | ||
|
||
export function SeminarTable({ seminars }: Props) { | ||
return ( | ||
<div className="overflow-auto rounded-lg"> | ||
<table className="w-full table-auto border-collapse animate-fade rounded-lg border-none bg-linear-gray-orange"> | ||
<GradientCard className="overflow-auto rounded-lg bg-linear-gray-orange p-0.5"> | ||
<table className="w-full table-auto border-collapse animate-fade rounded-lg border-none"> | ||
<thead> | ||
<tr> | ||
<th className="md:pl-15 mx-6 w-1/3 animate-fade border-b-2 border-gray-300 py-3 pl-10 text-left md:py-6 lg:py-8 lg:pl-20"> | ||
<th className="md:pl-15 mx-6 w-1/3 animate-fade border-b-2 border-gray-500 p-2 text-left md:px-10 md:py-6 lg:py-8 lg:pl-20"> | ||
เวลา | ||
</th> | ||
<th className="w-1/3 animate-fade border-b-2 border-gray-300 py-3 pl-10 text-left md:py-6 lg:py-8 lg:pl-20"> | ||
ห้องที่ 1 (001) | ||
<th className="w-1/3 animate-fade border-b-2 border-gray-500 p-2 text-left md:px-10 md:py-6 lg:py-8 lg:pl-20"> | ||
ห้องที่ 1 (802) | ||
</th> | ||
<th className="w-1/3 animate-fade border-b-2 border-gray-300 py-3 pl-10 text-left md:py-6 lg:py-8 lg:pl-20"> | ||
ห้องที่ 2 (002) | ||
<th className="w-1/3 animate-fade border-b-2 border-gray-500 p-2 text-left md:px-10 md:py-6 lg:py-8 lg:pl-20"> | ||
ห้องที่ 2 (807) | ||
</th> | ||
</tr> | ||
</thead> | ||
<tbody> | ||
{seminars.map((seminar, index) => ( | ||
<tr key={index}> | ||
<td className="md:pl-15 mx-6 w-1/3 animate-fade border-none py-3 pl-10 md:py-6 lg:py-8 lg:pl-20"> | ||
<td className="md:pl-15 mx-6 w-1/3 animate-fade border-none p-2 md:px-10 md:py-6 lg:py-8 lg:pl-20"> | ||
{`${fTime(seminar.startAt, formatStr.time24Hr)}-${fTime(seminar.endAt, formatStr.time24Hr)}`} | ||
</td> | ||
<td className="w-1/3 animate-fade border-none py-3 pl-10 md:py-6 lg:py-8 lg:pl-20"> | ||
<td className="w-1/3 animate-fade border-none p-2 md:px-10 md:py-6 lg:py-8 lg:pl-20"> | ||
{seminar.room1} | ||
</td> | ||
<td className="w-1/3 animate-fade border-none py-3 pl-10 md:py-6 lg:py-8 lg:pl-20"> | ||
<td className="w-1/3 animate-fade border-none p-2 md:px-10 md:py-6 lg:py-8 lg:pl-20"> | ||
{seminar.room2} | ||
</td> | ||
</tr> | ||
))} | ||
</tbody> | ||
</table> | ||
</div> | ||
</GradientCard> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters