Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix chatroom height and cdd join our discord button #87

Merged
merged 1 commit into from
Nov 1, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions pages/chat.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ import { useRef } from "react";
import PageMeta from "../components/seo/page";
import DiscordEmbed from "../components/DiscordEmbed";
import { DISCORD_INVITE_URL } from "../constants";
import { Arrow } from "../icons/arrow";
import LivePlayer from "../components/livePlayer";
import { BsDiscord } from "react-icons/bs";
export default function ChatPage() {
const ref = useRef<HTMLDivElement>();

Expand All @@ -13,19 +13,21 @@ export default function ChatPage() {

<div className="h-screen w-screen max-h-lg mx-auto bg-[#36393E]">
<LivePlayer />
<div className="absolute top-12 sm:top-16 left-0 w-full bg-black text-white h-[50px] px-4 border-b border-white">
<div className="absolute top-12 sm:top-16 left-0 w-full bg-black text-white h-[50px] px-4 border-b border-white border-t">
<div className="flex gap-4 items-center h-full">
<span className="leading-6 flex-grow">Chatroom</span>
<a
href={DISCORD_INVITE_URL}
target="_blank"
rel="noopener noreferrer"
className="flex items-center gap-2 bg-[#36393E] py-2 px-4 rounded-full text-small"
>
<Arrow className="-rotate-45" colour="white" />
<p>Join our Discord</p>
<BsDiscord color="white" />
</a>
</div>
</div>
<div className="w-full h-[calc(100vh-130px)] sm:h-[calc(100vh-55px)] pb-safe">
<div className="w-full h-[calc(100vh-40px)] sm:h-[calc(100vh-55px)] mb-safe">
<DiscordEmbed />
</div>
</div>
Expand Down