Skip to content

Commit 06ed0af

Browse files
committed
feat: tailwind v4 and theme builder
1 parent 4b33175 commit 06ed0af

File tree

36 files changed

+651
-468
lines changed

36 files changed

+651
-468
lines changed

app/academia/components/Attendance/Card/index.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ export default function AttendanceCard({
2424
return (
2525
<div
2626
role="cell"
27-
className={`odd:bg-light-background-normal relative even:bg-light-background-light odd:dark:bg-dark-background-normal even:dark:bg-dark-background-dark grid w-full grid-cols-[3fr_1fr] grid-rows-[repeat(2,1fr)] items-center gap-3 gap-y-2 p-4 px-6 transition duration-150 md:my-0 md:flex md:items-center md:justify-between ${continuous ? "md:first:rounded-t-xl md:last:rounded-b-xl first:rounded-t-2xl last:rounded-b-2xl" : "rounded-2xl md:rounded-xl"}`}
27+
className={`odd:bg-light-background-normal relative even:bg-light-background-light dark:odd:bg-dark-background-normal dark:even:bg-dark-background-dark grid w-full grid-cols-[3fr_1fr] grid-rows-[repeat(2,1fr)] items-center gap-3 gap-y-2 p-4 px-6 transition duration-150 md:my-0 md:flex md:items-center md:justify-between ${continuous ? "md:first:rounded-t-xl md:last:rounded-b-xl first:rounded-t-2xl last:rounded-b-2xl" : "rounded-2xl md:rounded-xl"}`}
2828
>
2929
<CourseTitle
3030
courseTitle={courseTitle.split(":")[0]}

app/academia/components/Attendance/Prediction/Predictor.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ export default function Predictor({
104104
<div
105105
role="button"
106106
tabIndex={0}
107-
className="fixed inset-0 z-50 flex animate-fastfade items-center justify-center bg-black bg-opacity-50 backdrop-blur-sm transition duration-150"
107+
className="fixed inset-0 z-50 flex animate-fastfade items-center justify-center bg-black/50 backdrop-blur-xs transition duration-150"
108108
onKeyDown={(e) => {
109109
if (e.key === "Escape") onClose();
110110
}}

app/academia/components/Attendance/Prediction/RangeCalendar.tsx

+3-3
Original file line numberDiff line numberDiff line change
@@ -133,11 +133,11 @@ export function LeaveODRangeCalendar({
133133
}}
134134
modifiersClassNames={{
135135
todayHoliday:
136-
"!bg-light-error-background border border-light-error-color dark:!bg-dark-error-background !text-light-error-color border-dark-error-color dark:!text-dark-error-color !opacity-100 !rounded-full",
136+
"bg-light-error-background! border border-light-error-color dark:bg-dark-error-background! text-light-error-color! border-dark-error-color dark:text-dark-error-color! opacity-100! rounded-full!",
137137
today:
138-
"bg-light-success-color dark:bg-dark-success-color !opacity-100 !text-white !dark:text-black !rounded-full",
138+
"bg-light-success-color dark:bg-dark-success-color opacity-100! text-white! !dark:text-black rounded-full!",
139139
holidays:
140-
"!text-light-error-color dark:!text-dark-error-color !opacity-60 cursor-not-allowed bg-transparent dark:bg-transparent",
140+
"text-light-error-color! dark:text-dark-error-color! opacity-60! cursor-not-allowed bg-transparent dark:bg-transparent",
141141
leave:
142142
"bg-light-error-color dark:bg-dark-error-color text-black border border-transparent hover:border-light-error-color dark:hover:border-dark-error-color hover:bg-light-error-background rounded-lg dark:hover:bg-dark-error-background hover:text-light-error-color dark:hover:text-dark-error-color",
143143
od: "bg-light-success-color dark:bg-dark-success-color text-black border border-transparent hover:bg-light-success-background rounded-lg hover:border-light-success-color dark:hover:border-dark-success-color dark:hover:bg-dark-success-background hover:text-light-success-color dark:hover:text-dark-success-color",

app/academia/courses/components/Card/index.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ export default function CourseCard({ course }: { course: Course }) {
1515
<div
1616
tabIndex={0}
1717
role="gridcell"
18-
className="animate-fadeIn odd:bg-light-background-normal relative even:bg-light-background-light odd:dark:bg-dark-background-normal even:dark:bg-dark-background-dark duration-150 transition grid w-full grid-cols-[3fr_1fr] grid-rows-[2fr_1fr] gap-3 rounded-3xl p-4 md:flex md:min-w-[900px] md:items-center md:justify-between md:rounded-xl"
18+
className="animate-fadeIn odd:bg-light-background-normal relative even:bg-light-background-light dark:odd:bg-dark-background-normal dark:even:bg-dark-background-dark duration-150 transition grid w-full grid-cols-[3fr_1fr] grid-rows-[2fr_1fr] gap-3 rounded-3xl p-4 md:flex md:min-w-[900px] md:items-center md:justify-between md:rounded-xl"
1919
>
2020
<div className="flex md:w-[35%] w-auto flex-col items-start gap-1 md:gap-3 lg:w-[40%] lg:flex-row lg:items-center lg:gap-8 xl:w-[40%] xl:justify-between">
2121
<CourseTitle courseTitle={course.title} category={course.slotType} />

app/academia/faculties/components/SearchBar.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ export function SearchBar({ searchQuery, setSearchQuery }: SearchBarProps) {
4343
placeholder="Search"
4444
value={searchQuery}
4545
onChange={(e) => setSearchQuery(e.target.value)}
46-
className="relative z-10 w-[250px] animate-fastfade rounded-xl bg-light-button px-4 py-2 text-lg font-medium shadow-lg outline-none backdrop-blur-lg dark:backdrop-blur-lg transition-all duration-200 md:w-[350px] dark:bg-dark-button"
46+
className="relative z-10 w-[250px] animate-fastfade rounded-xl bg-light-button px-4 py-2 text-lg font-medium shadow-lg outline-hidden backdrop-blur-lg dark:backdrop-blur-lg transition-all duration-200 md:w-[350px] dark:bg-dark-button"
4747
/>
4848
<div className="relative right-8 z-10 text-xl opacity-50">
4949
<LuSquareSlash />

app/academia/layout.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ export default async function RootLayout({
2828
const subscribed = data?.subscribed ?? false;
2929

3030
return (
31-
<div className="h-screen flex-shrink-0 w-full flex flex-row bg-light-background-normal lg:p-2 transition-all duration-150 text-light-color dark:bg-dark-background-normal dark:text-dark-color">
31+
<div className="h-screen shrink-0 w-full flex flex-row bg-light-background-normal lg:p-2 transition-all duration-150 text-light-color dark:bg-dark-background-normal dark:text-dark-color">
3232
<div id="attendance-predict" className="z-30" />
3333
<Sidebar
3434
dayorder={<DayOrder />}

app/academia/library/library.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -68,11 +68,11 @@ export default function Library({ courses, files }: { courses: Course[]; files:
6868
placeholder="Search for papers"
6969
value={searchQuery}
7070
onChange={(e) => handleSearch(e.target.value)}
71-
className="w-full py-2 px-4 rounded-xl focus:outline-none bg-light-input dark:bg-dark-input max-w-80 text-light-color dark:text-dark-color"
71+
className="w-full py-2 px-4 rounded-xl focus:outline-hidden bg-light-input dark:bg-dark-input max-w-80 text-light-color dark:text-dark-color"
7272
/>
7373
</div>
7474

75-
<div className="bg-light-background-light/50 pb-16 relative min-h-screen shadow-lg dark:bg-dark-background-darker/50 backdrop-blur-sm w-full h-full rounded-t-3xl p-4">
75+
<div className="bg-light-background-light/50 pb-16 relative min-h-screen shadow-lg dark:bg-dark-background-darker/50 backdrop-blur-xs w-full h-full rounded-t-3xl p-4">
7676
<div className="flex overflow-x-auto pb-4 gap-4 items-center mb-2 justify-start w-full">
7777
<button
7878
type="button"

app/academia/links/components/SearchBar.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ export function SearchBar({ searchQuery, setSearchQuery }: SearchBarProps) {
4343
placeholder="Search"
4444
value={searchQuery}
4545
onChange={(e) => setSearchQuery(e.target.value)}
46-
className="relative z-10 w-[250px] animate-fastfade rounded-xl bg-light-button px-4 py-2 text-lg font-medium shadow-lg outline-none backdrop-blur-lg dark:backdrop-blur-lg transition-all duration-200 md:w-[350px] dark:bg-dark-button"
46+
className="relative z-10 w-[250px] animate-fastfade rounded-xl bg-light-button px-4 py-2 text-lg font-medium shadow-lg outline-hidden backdrop-blur-lg dark:backdrop-blur-lg transition-all duration-200 md:w-[350px] dark:bg-dark-button"
4747
/>
4848
<div className="relative right-8 z-10 text-xl opacity-50">
4949
<LuSquareSlash />

app/auth/login/page.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ export default async function Login() {
1515
return (
1616
<main className="flex h-screen w-screen items-center justify-center bg-light-background-normal dark:bg-dark-background-dark">
1717
<span
18-
className="absolute z-0 top-0 left-0 bg-gradient-to-br from-light-accent/10 dark:from-dark-accent/10 to-transparent"
18+
className="absolute z-0 top-0 left-0 bg-linear-to-br from-light-accent/10 dark:from-dark-accent/10 to-transparent"
1919
style={{
2020
width: "100%",
2121
height: "100%",

app/demo/page.tsx

+4-2
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ import type { AllResponse } from '@/types/Response'
1212
import Marks from '../academia/components/Marks'
1313
import type { Mark } from '@/types/Marks'
1414
import type { Course } from '@/types/Course'
15+
import ColorPicker from '@/components/themes/ColorPicker'
1516

1617
export default function Demo() {
1718
const marks: Mark[] = json.courses.courses.map(c => {
@@ -46,10 +47,11 @@ export default function Demo() {
4647
testPerformance
4748
})
4849
})
49-
50+
5051
return (
51-
<div className="h-screen flex-shrink-0 w-full flex flex-row bg-light-background-normal lg:p-2 transition-all duration-150 text-light-color dark:bg-dark-background-normal dark:text-dark-color">
52+
<div className="h-screen shrink-0 w-full flex flex-row bg-light-background-normal lg:p-2 transition-all duration-150 text-light-color dark:bg-dark-background-normal dark:text-dark-color">
5253
<div id="attendance-predict" className="z-30" />
54+
<ColorPicker />
5355
<Sidebar
5456
dayorder={<DayOrder />}
5557
mini={

0 commit comments

Comments
 (0)