Skip to content

Commit 8595029

Browse files
committed
refactor: some tailwind classes
1 parent b882cfb commit 8595029

4 files changed

Lines changed: 9 additions & 12 deletions

File tree

app/host/page.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -127,8 +127,8 @@ export default function HostPage() {
127127
</CardHeader>
128128
<CardContent className="flex flex-col gap-4">
129129
<ShareOptions roomId={roomId} />
130-
<div className="flex items-center justify-between rounded-lg bg-gray-50 p-4 dark:bg-gray-800">
131-
<div className="flex items-center gap-2 text-gray-500">
130+
<div className="bg-muted/50 flex items-center justify-between rounded-lg p-4">
131+
<div className="text-muted-foreground flex items-center gap-2">
132132
<Users className="size-4" />
133133
<span className="text-sm">Current Viewers</span>
134134
</div>

app/join/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ export default function JoinPage() {
112112
</Button>
113113
</div>
114114
) : (
115-
<div className="group relative aspect-video overflow-hidden rounded-lg bg-gray-900">
115+
<div className="relative overflow-hidden rounded-lg">
116116
<video ref={videoRef} className="h-full w-full object-contain" autoPlay playsInline loop controls muted />
117117
</div>
118118
)}

app/layout.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@ export default function RootLayout({ children }: { children: React.ReactNode })
2020
return (
2121
<html lang="en">
2222
<body className={inter.className}>
23-
<main className="flex min-h-screen flex-col justify-between bg-linear-to-b from-gray-50 to-gray-100 dark:from-gray-900 dark:to-gray-800">
23+
<main className="from-background to-muted flex min-h-screen flex-col justify-between bg-linear-to-b">
2424
{children}
25-
<footer className="px-4 py-8 text-center text-sm text-gray-500">
25+
<footer className="text-muted-foreground px-4 py-8 text-center text-sm">
2626
Built by{" "}
2727
<Link href="https://tonghohin.vercel.app" className="underline" target="_blank">
2828
Hin

app/page.tsx

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,11 @@ export default function Home() {
99
return (
1010
<div className="mx-auto flex max-w-4xl flex-col gap-8 px-4 py-8">
1111
<div className="flex flex-col gap-4 text-center">
12-
<h1 className="text-4xl font-bold tracking-tight text-gray-900 sm:text-6xl dark:text-gray-100">Share Your Screen Instantly</h1>
13-
<p className="text-xl text-gray-600 dark:text-gray-300">Create a room, share the code, and start presenting to your audience in seconds.</p>
12+
<h1 className="text-4xl font-bold tracking-tight sm:text-6xl">Share Your Screen Instantly</h1>
13+
<p className="text-primary text-xl">Create a room, share the code, and start presenting to your audience in seconds.</p>
1414
</div>
15-
1615
<div className="grid gap-4 md:grid-cols-2">
17-
<Card className="transition-shadow hover:shadow-lg">
16+
<Card>
1817
<CardHeader>
1918
<CardTitle className="flex items-center gap-2">
2019
<Monitor />
@@ -29,8 +28,7 @@ export default function Home() {
2928
<CustomRoomIdForm />
3029
</CardContent>
3130
</Card>
32-
33-
<Card className="transition-shadow hover:shadow-lg">
31+
<Card>
3432
<CardHeader>
3533
<CardTitle className="flex items-center gap-2">
3634
<Users />
@@ -47,7 +45,6 @@ export default function Home() {
4745
</CardContent>
4846
</Card>
4947
</div>
50-
5148
<Alert>
5249
<AlertCircle />
5350
<AlertTitle>Note</AlertTitle>

0 commit comments

Comments
 (0)