Skip to content

Commit 4db3b94

Browse files
authored
Upgrade to Tailwind v4 (#281)
1 parent 04b17c8 commit 4db3b94

File tree

7 files changed

+8
-10
lines changed

7 files changed

+8
-10
lines changed

src/components/CopyableInput.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ export function CopyableInput({
1616
<InputLabel>{label}</InputLabel>
1717
<div className="flex w-full">
1818
<input
19-
className="flex-grow px-3 py-2 text-xs border border-r-0 rounded-l text-stone-900 dark:text-stone-100 bg-white dark:bg-stone-800 border-stone-300 dark:border-stone-600"
19+
className="grow px-3 py-2 text-xs border border-r-0 rounded-l text-stone-900 dark:text-stone-100 bg-white dark:bg-stone-800 border-stone-300 dark:border-stone-600"
2020
value={value}
2121
readOnly
2222
/>

src/components/DownloadButton.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ export default function DownloadButton({
88
return (
99
<button
1010
onClick={onClick}
11-
className="h-12 px-4 bg-gradient-to-b from-green-500 to-green-600 text-white rounded-md hover:from-green-500 hover:to-green-700 transition-all duration-200 border border-green-600 shadow-sm hover:shadow-md text-shadow"
11+
className="h-12 px-4 bg-linear-to-b from-green-500 to-green-600 text-white rounded-md hover:from-green-500 hover:to-green-700 transition-all duration-200 border border-green-600 shadow-sm hover:shadow-md text-shadow"
1212
>
1313
Download
1414
</button>

src/components/ProgressBar.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ export default function ProgressBar({
1818
<div
1919
className={`h-full ${
2020
isComplete
21-
? 'bg-gradient-to-b from-green-500 to-green-600'
22-
: 'bg-gradient-to-b from-blue-500 to-blue-600'
21+
? 'bg-linear-to-b from-green-500 to-green-600'
22+
: 'bg-linear-to-b from-blue-500 to-blue-600'
2323
} transition-all duration-300 ease-in-out`}
2424
style={{ width: `${percentage}%` }}
2525
/>

src/components/ReportTermsViolationButton.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ export default function ReportTermsViolationButton({
128128
<button
129129
disabled={isReporting}
130130
onClick={handleReport}
131-
className={`px-4 py-2 bg-gradient-to-b from-red-500 to-red-600 text-white rounded-md border border-red-600 shadow-sm text-shadow disabled:opacity-50 disabled:cursor-not-allowed enabled:hover:from-red-500 enabled:hover:to-red-700 enabled:hover:shadow-md transition-all duration-200`}
131+
className={`px-4 py-2 bg-linear-to-b from-red-500 to-red-600 text-white rounded-md border border-red-600 shadow-sm text-shadow disabled:opacity-50 disabled:cursor-not-allowed enabled:hover:from-red-500 enabled:hover:to-red-700 enabled:hover:shadow-md transition-all duration-200`}
132132
aria-label="Confirm report"
133133
>
134134
{isReporting ? 'Reporting...' : 'Report'}

src/components/StartButton.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ export default function StartButton({
88
return (
99
<button
1010
onClick={onClick}
11-
className="px-4 py-2 bg-gradient-to-b from-green-500 to-green-600 text-white rounded-md hover:from-green-500 hover:to-green-700 transition-all duration-200 border border-green-600 shadow-sm hover:shadow-md text-shadow"
11+
className="px-4 py-2 bg-linear-to-b from-green-500 to-green-600 text-white rounded-md hover:from-green-500 hover:to-green-700 transition-all duration-200 border border-green-600 shadow-sm hover:shadow-md text-shadow"
1212
>
1313
Start
1414
</button>

src/components/UnlockButton.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ export default function UnlockButton({
88
return (
99
<button
1010
onClick={onClick}
11-
className="px-4 py-2 bg-gradient-to-b from-green-500 to-green-600 text-white rounded-md hover:from-green-500 hover:to-green-700 transition-all duration-200 border border-green-600 shadow-sm hover:shadow-md text-shadow"
11+
className="px-4 py-2 bg-linear-to-b from-green-500 to-green-600 text-white rounded-md hover:from-green-500 hover:to-green-700 transition-all duration-200 border border-green-600 shadow-sm hover:shadow-md text-shadow"
1212
>
1313
Unlock
1414
</button>

src/styles.css

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
@tailwind base;
2-
@tailwind components;
3-
@tailwind utilities;
1+
@import 'tailwindcss';
42

53
html {
64
height: 100dvh;

0 commit comments

Comments
 (0)