Skip to content

Commit

Permalink
Better twitch embed
Browse files Browse the repository at this point in the history
  • Loading branch information
GilMM27 committed Nov 1, 2024
1 parent 345ade8 commit 0d1b317
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 77 deletions.
76 changes: 0 additions & 76 deletions src/app/_components/TwitchEmbed.tsx

This file was deleted.

11 changes: 10 additions & 1 deletion src/app/scoreboard/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,19 @@ import React from "react";
import Footer from "../_components/footer";
import Header from "../_components/header";
import Title from "../_components/title";
import TwitchEmbed from "../_components/TwitchEmbed"; // Optional: Move TwitchEmbed to a separate file
import { api } from "~/trpc/react";
import { Round } from "../../lib/round";

const TwitchEmbed = ({ channel }: { channel: string }) => (
<div className="aspect-video w-full">
<iframe
src={`https://player.twitch.tv/?channel=${channel}&parent=localhost`}
className="h-full w-full"
allowFullScreen
/>
</div>
);

export default function ScoreboardPage() {
const { data: scores, isLoading } = api.scoreboard.getScoreboard.useQuery();

Expand Down

0 comments on commit 0d1b317

Please sign in to comment.