diff --git a/Dockerfile b/Dockerfile
index 6f958f1..6cfaf0d 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -33,7 +33,7 @@ COPY --from=builder /app/prisma ./prisma
# Install production dependencies only
RUN apk add --no-cache openssl
RUN yarn install --frozen-lockfile --production && \
- yarn cache clean
+ yarn cache clean && yarn run prepare
# Remove unnecessary files
RUN rm -rf /app/.git \
diff --git a/src/app/(public)/page.tsx b/src/app/(public)/page.tsx
index 5261e1e..08a14d3 100644
--- a/src/app/(public)/page.tsx
+++ b/src/app/(public)/page.tsx
@@ -1,5 +1,6 @@
import LandingPage from '@/components/app/LandingPage/LandingPage';
import { Card, CardContent } from '@/components/ui/card';
+import ConfusedDino from '@/components/ui/confuseddino';
import { validateRequest } from '@/lib/auth';
import prisma from '@/lib/db';
import { Avatar, AvatarImage, AvatarFallback } from '@radix-ui/react-avatar';
@@ -24,11 +25,17 @@ export default async function Home() {
return ;
}
if (!streams.length) {
- return
No streams found
;
+ return (
+
+
No streams found!!
+
...maybe start one?
+
+
+ );
}
return (
-
+
{streams.map((stream) => (
diff --git a/src/components/app/ChatPanel/ChatPanel.tsx b/src/components/app/ChatPanel/ChatPanel.tsx
index 2f36a0f..1877dfb 100644
--- a/src/components/app/ChatPanel/ChatPanel.tsx
+++ b/src/components/app/ChatPanel/ChatPanel.tsx
@@ -72,7 +72,7 @@ export default function ChatPanel() {
};
return (
-
+
{chatMessages.map((msg, i) => (
diff --git a/src/components/app/Livestream/Livestream.tsx b/src/components/app/Livestream/Livestream.tsx
index 22d0a79..ec78a27 100644
--- a/src/components/app/Livestream/Livestream.tsx
+++ b/src/components/app/Livestream/Livestream.tsx
@@ -4,15 +4,28 @@ import StreamPlayer from '../StreamPlayer/StreamPlayer';
import UserInfoCard from '../UserInfoCard/UserInfoCard';
import ChatPanel from '../ChatPanel/ChatPanel';
import type { StreamInfo, User } from '@prisma/client';
+import { useIsMobile } from '@/lib/hooks/useMobile';
export default function LiveStream(props: Props) {
+ const isMobile = useIsMobile();
+
return (
-
-
+
+
+ {isMobile && (
+
+
+
+ )}
-
+
+ {!isMobile && (
+
+
+
+ )}
);
}
@@ -20,4 +33,4 @@ export default function LiveStream(props: Props) {
interface Props {
username: string;
streamInfo: StreamInfo & { ownedBy: User };
-}
+}
\ No newline at end of file
diff --git a/src/components/app/NavBar/NavBar.tsx b/src/components/app/NavBar/NavBar.tsx
index 89d70ee..d5c7e7e 100644
--- a/src/components/app/NavBar/NavBar.tsx
+++ b/src/components/app/NavBar/NavBar.tsx
@@ -1,4 +1,4 @@
-'use client'
+'use client';
import { Avatar, AvatarFallback, AvatarImage } from '@/components/ui/avatar';
import { Button } from '@/components/ui/button';
@@ -37,55 +37,61 @@ export default function Navbar(props: Props) {
const { user } = useSession();
return (
<>
-