Add Chat design
This commit is contained in:
@@ -1,11 +1,11 @@
|
||||
"use client";
|
||||
|
||||
import Link from "next/link";
|
||||
import { Connection } from "./_components/Connection";
|
||||
import { ThemeSwap } from "./_components/ThemeSwap";
|
||||
import { Audio } from "./_components/Audio";
|
||||
import { useState } from "react";
|
||||
import { ExitIcon, ExternalLinkIcon } from "@radix-ui/react-icons";
|
||||
import { Chat } from "./_components/Chat";
|
||||
|
||||
export default function Navbar() {
|
||||
const [isDark, setIsDark] = useState(false);
|
||||
@@ -20,14 +20,20 @@ export default function Navbar() {
|
||||
};
|
||||
|
||||
return (
|
||||
<div className="navbar bg-base-100 shadow-sm flex gap-5">
|
||||
<div className="flex-1">
|
||||
<div className="navbar bg-base-100 shadow-sm flex gap-5 justify-between">
|
||||
<div className="flex items-center gap-2">
|
||||
<a className="btn btn-ghost text-xl">VAR Leitstelle V2</a>
|
||||
</div>
|
||||
<div className="flex gap-2">
|
||||
<Audio />
|
||||
<div className="bg-base-200 rounded-box flex items-center gap-2 p-1">
|
||||
<div className="flex items-center gap-2">
|
||||
<Chat />
|
||||
</div>
|
||||
</div>
|
||||
<div className="flex gap-5 items-center">
|
||||
|
||||
<div className="flex items-center gap-5">
|
||||
<div className="flex items-center gap-2">
|
||||
<Audio />
|
||||
</div>
|
||||
<div className="flex items-center">
|
||||
<Connection />
|
||||
</div>
|
||||
|
||||
@@ -0,0 +1,81 @@
|
||||
import { ChatBubbleIcon, PaperPlaneIcon } from "@radix-ui/react-icons";
|
||||
|
||||
export const Chat = () => {
|
||||
return (
|
||||
<div className="dropdown">
|
||||
<div
|
||||
tabIndex={0}
|
||||
role="button"
|
||||
className="btn btn-soft btn-sm btn-primary"
|
||||
>
|
||||
<ChatBubbleIcon className="w-4 h-4" />
|
||||
</div>
|
||||
<div
|
||||
tabIndex={0}
|
||||
className="dropdown-content card bg-base-200 w-150 shadow-md z-[1100]"
|
||||
>
|
||||
<div className="card-body">
|
||||
<div className="join">
|
||||
<select defaultValue="Small" className="select select-sm w-full">
|
||||
<option disabled={true}>Wähle einen Chatpartner...</option>
|
||||
<option><LST_01> Nicolas Kratsos #VAR0002</option>
|
||||
<option><CHX31> Vorname Nachname #VAR1010</option>
|
||||
<option><CHX100> Vorname Nachname #VAR1010</option>
|
||||
</select>
|
||||
<button className="btn btn-sm btn-soft btn-primary join-item">
|
||||
<span className="text-xl">+</span>
|
||||
</button>
|
||||
</div>
|
||||
<div className="tabs tabs-lift">
|
||||
<input
|
||||
type="radio"
|
||||
name="my_tabs_3"
|
||||
className="tab"
|
||||
aria-label="<LST_01>"
|
||||
/>
|
||||
<div className="tab-content bg-base-100 border-base-300 p-6">
|
||||
<div className="chat chat-start">
|
||||
<div className="chat-header">
|
||||
<LST_01> Nicolas Kratsos #VAR0002
|
||||
</div>
|
||||
<div className="chat-bubble">LST v2 ist schon nice</div>
|
||||
</div>
|
||||
<div className="chat chat-end">
|
||||
<div className="chat-bubble">Hast recht.</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<input
|
||||
type="radio"
|
||||
name="my_tabs_3"
|
||||
className="tab"
|
||||
aria-label="<CHX31>"
|
||||
defaultChecked
|
||||
/>
|
||||
<div className="tab-content bg-base-100 border-base-300 p-6">
|
||||
<div className="chat chat-start">
|
||||
<div className="chat-header">
|
||||
<LST_01> Nicolas Kratsos #VAR0002
|
||||
</div>
|
||||
<div className="chat-bubble">get rekt lmao</div>
|
||||
</div>
|
||||
<div className="chat chat-end">
|
||||
<div className="chat-bubble">no u.</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div className="join">
|
||||
<div className="w-full">
|
||||
<label className="input validator join-item w-full">
|
||||
<input type="text" required className="w-full" />
|
||||
</label>
|
||||
</div>
|
||||
<button className="btn btn-soft join-item">
|
||||
<PaperPlaneIcon />
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
};
|
||||
Reference in New Issue
Block a user