mirror of
https://github.com/DerTyp7/teamspeak-obs-overlay.git
synced 2026-07-31 16:49:04 +02:00
Compare commits
2 Commits
feature_sh
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
8b8bbb610d | ||
|
|
aaa770be2b |
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"tabWidth": 2,
|
"tabWidth": 2,
|
||||||
"useTabs": false,
|
"useTabs": false,
|
||||||
"printWidth": 120,
|
"printWidth": 180,
|
||||||
"singleQuote": false,
|
"singleQuote": false,
|
||||||
"semi": true
|
"semi": true
|
||||||
}
|
}
|
||||||
|
|||||||
20
README.md
20
README.md
@@ -1,13 +1,13 @@
|
|||||||
# TeamSpeak5-OBS-Overlay
|
# TeamSpeak-OBS-Overlay
|
||||||
|
|
||||||
This is an overlay for OBS to show the current talking clients in your TeamSpeak5 Channel.
|
This is an overlay for OBS to show the current talking clients in your TeamSpeak5/6 Channel.
|
||||||
This App uses the new "Remote Apps" feature of TeamSpeak5.
|
This App uses the new "Remote Apps" feature of TeamSpeak5/6.
|
||||||
|
|
||||||
This overlay uses the [TeamSpeak Remote App API](https://github.com/DerTyp7/react-teamspeak-remote-app-api).
|
This overlay uses the [TeamSpeak Remote App API](https://github.com/DerTyp7/react-teamspeak-remote-app-api).
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
- [TeamSpeak5-OBS-Overlay](#teamspeak5-obs-overlay)
|
- [TeamSpeak-OBS-Overlay](#teamspeak-obs-overlay)
|
||||||
- [Usage](#usage)
|
- [Usage](#usage)
|
||||||
- [Quick instructions](#quick-instructions)
|
- [Quick instructions](#quick-instructions)
|
||||||
- [Detailed instructions](#detailed-instructions)
|
- [Detailed instructions](#detailed-instructions)
|
||||||
@@ -20,16 +20,16 @@ This overlay uses the [TeamSpeak Remote App API](https://github.com/DerTyp7/reac
|
|||||||
|
|
||||||
### Quick instructions
|
### Quick instructions
|
||||||
|
|
||||||
1. Open this link in your Browser: [https://ts5-overlay.tealfire.de/#/generate](https://ts5-overlay.tealfire.de/#/generate)
|
1. Open this link in your Browser: [https://teamspeak-overlay.tealfire.de/#/generate](https://teamspeak-overlay.tealfire.de/#/generate)
|
||||||
2. Follow the instructions on the website
|
2. Follow the instructions on the website
|
||||||
3. Accept overlay inside TeamSpeak5
|
3. Accept overlay inside TeamSpeak5/6
|
||||||

|

|
||||||
|
|
||||||
### Detailed instructions
|
### Detailed instructions
|
||||||
|
|
||||||
Try this instruction if you have problems with the quick instructions above.
|
Try this instruction if you have problems with the quick instructions above.
|
||||||
|
|
||||||
1. Open this link in your Browser: [https://ts5-overlay.tealfire.de/#/generate](https://ts5-overlay.tealfire.de/#/generate)
|
1. Open this link in your Browser: [https://teamspeak-overlay.tealfire.de/#/generate](https://teamspeak-overlay.tealfire.de/#/generate)
|
||||||
|
|
||||||
2. Follow the instructions on the website
|
2. Follow the instructions on the website
|
||||||
|
|
||||||
@@ -56,7 +56,7 @@ Try this instruction if you have problems with the quick instructions above.
|
|||||||
Make sure you accepted the notification in your TeamSpeak Client.
|
Make sure you accepted the notification in your TeamSpeak Client.
|
||||||
|
|
||||||
**Fix 2**
|
**Fix 2**
|
||||||
Sadly TeamSpeak5 does not give us any information about the current active server tab.
|
Sadly TeamSpeak5/6 does not give us any information about the current active server tab.
|
||||||
So we try currently use a workaround, where the active server tab is determined by looking on which server the your hardware input was unmuted the latest, since the non-active server tabs in TS5 usually mute the client’s microphone.
|
So we try currently use a workaround, where the active server tab is determined by looking on which server the your hardware input was unmuted the latest, since the non-active server tabs in TS5 usually mute the client’s microphone.
|
||||||
|
|
||||||
However this workaround is not 100% accurate and can fail in some cases.
|
However this workaround is not 100% accurate and can fail in some cases.
|
||||||
@@ -64,7 +64,7 @@ However this workaround is not 100% accurate and can fail in some cases.
|
|||||||
Possible fixes:
|
Possible fixes:
|
||||||
|
|
||||||
- Unmute and mute yourself in the active server tab (Just a normal unmute and mute, not the hardware mute)
|
- Unmute and mute yourself in the active server tab (Just a normal unmute and mute, not the hardware mute)
|
||||||
- Reconnect to the TS5 server while the overlay is open
|
- Reconnect to the TS5/6 server while the overlay is open
|
||||||
|
|
||||||
### OBS doesn't show the latest version of the overlay
|
### OBS doesn't show the latest version of the overlay
|
||||||
|
|
||||||
|
|||||||
@@ -3,13 +3,10 @@
|
|||||||
<head>
|
<head>
|
||||||
<meta charset="UTF-8" />
|
<meta charset="UTF-8" />
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||||
<meta
|
<meta name="description" content="An OBS overlay for TeamSpeak5, so your audience can see who is talking. https://github.com/DerTyp7/ts5-obs-overlay" />
|
||||||
name="description"
|
|
||||||
content="An OBS overlay for TeamSpeak5/6, so your audience can see who is talking. https://github.com/DerTyp7/teamspeak-obs-overlay"
|
|
||||||
/>
|
|
||||||
<meta name="author" content="DerTyp7" />
|
<meta name="author" content="DerTyp7" />
|
||||||
<link rel="icon" href="/logo.svg" type="image/x-icon" />
|
<link rel="icon" href="/logo.svg" type="image/x-icon" />
|
||||||
<title>TeamSpeak-OBS-Overlay</title>
|
<title>TS5-OBS-Overlay</title>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div id="root"></div>
|
<div id="root"></div>
|
||||||
|
|||||||
930
package-lock.json
generated
930
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@@ -51,7 +51,6 @@
|
|||||||
"eslint-plugin-react-hooks": "^5.1.0",
|
"eslint-plugin-react-hooks": "^5.1.0",
|
||||||
"eslint-plugin-react-refresh": "^0.4.18",
|
"eslint-plugin-react-refresh": "^0.4.18",
|
||||||
"typescript": "^5.7.3",
|
"typescript": "^5.7.3",
|
||||||
"vite": "^6.0.11",
|
"vite": "^6.0.11"
|
||||||
"vite-plugin-svgr": "^4.3.0"
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -17,8 +17,6 @@ export default function App() {
|
|||||||
showChannelName={searchParams.get("showChannelName") === "true"}
|
showChannelName={searchParams.get("showChannelName") === "true"}
|
||||||
hideNonTalking={searchParams.get("hideNonTalking") === "true"}
|
hideNonTalking={searchParams.get("hideNonTalking") === "true"}
|
||||||
clientLimit={searchParams.get("clientLimit") ? parseInt(searchParams.get("clientLimit") ?? "0") : 0}
|
clientLimit={searchParams.get("clientLimit") ? parseInt(searchParams.get("clientLimit") ?? "0") : 0}
|
||||||
alignRight={searchParams.get("alignRight") === "true"}
|
|
||||||
showTsAvatar={searchParams.get("showTsAvatar") === "true"}
|
|
||||||
/>
|
/>
|
||||||
}
|
}
|
||||||
/>
|
/>
|
||||||
|
|||||||
@@ -1,7 +1,6 @@
|
|||||||
import { ChangeEvent, useRef, useState, useEffect } from "react";
|
import { ChangeEvent, useRef, useState, useEffect } from "react";
|
||||||
import "@styles/Generator.scss";
|
import "@styles/Generator.scss";
|
||||||
import Viewer from "./Viewer";
|
import Viewer from "./Viewer";
|
||||||
import { url } from "inspector";
|
|
||||||
|
|
||||||
export default function Generator() {
|
export default function Generator() {
|
||||||
// State variables
|
// State variables
|
||||||
@@ -10,15 +9,13 @@ export default function Generator() {
|
|||||||
|
|
||||||
const [remoteAppPort, setRemoteAppPort] = useState(5899);
|
const [remoteAppPort, setRemoteAppPort] = useState(5899);
|
||||||
const [showChannelName, setShowChannelName] = useState(true);
|
const [showChannelName, setShowChannelName] = useState(true);
|
||||||
const [alignRight, setAlignRight] = useState(false);
|
|
||||||
const [hideNonTalking, setHideNonTalking] = useState(false);
|
const [hideNonTalking, setHideNonTalking] = useState(false);
|
||||||
const [clientLimit, setClientLimit] = useState(0);
|
const [clientLimit, setClientLimit] = useState(0);
|
||||||
const [showTsAvatar, setShowTsAvatar] = useState(false);
|
|
||||||
|
|
||||||
// Effect to generate URL when dependencies change
|
// Effect to generate URL when dependencies change
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
generateUrl();
|
generateUrl();
|
||||||
}, [remoteAppPort, showChannelName, hideNonTalking, clientLimit, alignRight, showTsAvatar]);
|
}, [remoteAppPort, showChannelName, hideNonTalking, clientLimit]);
|
||||||
|
|
||||||
// Function to generate the output URL
|
// Function to generate the output URL
|
||||||
function generateUrl() {
|
function generateUrl() {
|
||||||
@@ -29,8 +26,6 @@ export default function Generator() {
|
|||||||
url.searchParams.set("showChannelName", showChannelName.toString());
|
url.searchParams.set("showChannelName", showChannelName.toString());
|
||||||
url.searchParams.set("hideNonTalking", hideNonTalking.toString());
|
url.searchParams.set("hideNonTalking", hideNonTalking.toString());
|
||||||
url.searchParams.set("clientLimit", clientLimit.toString());
|
url.searchParams.set("clientLimit", clientLimit.toString());
|
||||||
url.searchParams.set("alignRight", alignRight.toString());
|
|
||||||
url.searchParams.set("showTsAvatar", showTsAvatar.toString());
|
|
||||||
|
|
||||||
// url.hash function always sets the hash to the end of the URL, so we have to replace the question mark with a hash
|
// url.hash function always sets the hash to the end of the URL, so we have to replace the question mark with a hash
|
||||||
// gh-pages needs the hash to be between the base URL and the search params
|
// gh-pages needs the hash to be between the base URL and the search params
|
||||||
@@ -67,9 +62,7 @@ export default function Generator() {
|
|||||||
<p>1. Customize your settings</p>
|
<p>1. Customize your settings</p>
|
||||||
<p>2. Copy the generated URL</p>
|
<p>2. Copy the generated URL</p>
|
||||||
<p>3. Paste the URL into the BrowserSource URL field in OBS</p>
|
<p>3. Paste the URL into the BrowserSource URL field in OBS</p>
|
||||||
<a href="https://github.com/DerTyp7/ts5-obs-overlay#detailed-instructions">
|
<a href="https://github.com/DerTyp7/ts5-obs-overlay#detailed-instructions">Click here for detailed instructions</a>
|
||||||
Click here for detailed instructions
|
|
||||||
</a>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{/* Output Section */}
|
{/* Output Section */}
|
||||||
@@ -96,49 +89,27 @@ export default function Generator() {
|
|||||||
<section>
|
<section>
|
||||||
{/* Show Channel Name Option */}
|
{/* Show Channel Name Option */}
|
||||||
<div className="option" onClick={() => setShowChannelName(!showChannelName)}>
|
<div className="option" onClick={() => setShowChannelName(!showChannelName)}>
|
||||||
<input type="checkbox" defaultChecked={showChannelName} />
|
<input type="checkbox" checked={showChannelName} />
|
||||||
<label>Show channel name</label>
|
<label>Show channel name</label>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{/* Hide Non-Talking Clients Option */}
|
{/* Hide Non-Talking Clients Option */}
|
||||||
<div className="option" onClick={() => setHideNonTalking(!hideNonTalking)}>
|
<div className="option" onClick={() => setHideNonTalking(!hideNonTalking)}>
|
||||||
<input type="checkbox" defaultChecked={hideNonTalking} />
|
<input type="checkbox" checked={hideNonTalking} />
|
||||||
<label>Hide non talking clients</label>
|
<label>Hide non talking clients</label>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{/* Alignment Option */}
|
|
||||||
<div className="option" onClick={() => setAlignRight(!alignRight)}>
|
|
||||||
<input type="checkbox" defaultChecked={alignRight} />
|
|
||||||
<label>Align Right</label>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
{/* Show TeamSpeak Avatar */}
|
|
||||||
<div className="option" onClick={() => setShowTsAvatar(!showTsAvatar)}>
|
|
||||||
<input type="checkbox" defaultChecked={showTsAvatar} />
|
|
||||||
<label>Show TeamSpeak Avatar</label>
|
|
||||||
</div>
|
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
<section>
|
<section>
|
||||||
{/* Client Limit Option */}
|
{/* Client Limit Option */}
|
||||||
<div className="option">
|
<div className="option">
|
||||||
<input
|
<input type="number" value={clientLimit} min={0} onChange={(e: ChangeEvent<HTMLInputElement>) => setClientLimit(parseInt(e.target.value))} />
|
||||||
type="number"
|
|
||||||
value={clientLimit}
|
|
||||||
min={0}
|
|
||||||
onChange={(e: ChangeEvent<HTMLInputElement>) => setClientLimit(parseInt(e.target.value))}
|
|
||||||
/>
|
|
||||||
<label>Client Limit</label>
|
<label>Client Limit</label>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{/* RemoteApp-Port Option */}
|
{/* RemoteApp-Port Option */}
|
||||||
<div className="option">
|
<div className="option">
|
||||||
<input
|
<input type="number" value={remoteAppPort} min={0} onChange={(e: ChangeEvent<HTMLInputElement>) => setRemoteAppPort(parseInt(e.target.value))} />
|
||||||
type="number"
|
|
||||||
value={remoteAppPort}
|
|
||||||
min={0}
|
|
||||||
onChange={(e: ChangeEvent<HTMLInputElement>) => setRemoteAppPort(parseInt(e.target.value))}
|
|
||||||
/>
|
|
||||||
<label>RemoteApp-Port</label>
|
<label>RemoteApp-Port</label>
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
@@ -147,7 +118,7 @@ export default function Generator() {
|
|||||||
|
|
||||||
{/* Preview */}
|
{/* Preview */}
|
||||||
<div className="preview">
|
<div className="preview">
|
||||||
<iframe src={outputUrl}></iframe>
|
<Viewer remoteAppPort={remoteAppPort} showChannelName={showChannelName} hideNonTalking={hideNonTalking} clientLimit={clientLimit} />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
106
src/Viewer.tsx
106
src/Viewer.tsx
@@ -1,21 +1,16 @@
|
|||||||
import "@styles/Viewer.scss";
|
import "@styles/Viewer.scss";
|
||||||
import useTSRemoteApp, { IClient } from "react-teamspeak-remote-app-api";
|
import useTSRemoteApp, { IClient } from "react-teamspeak-remote-app-api";
|
||||||
import TalkStatus from "@/components/TalkStatus";
|
|
||||||
|
|
||||||
export default function Viewer({
|
export default function Viewer({
|
||||||
remoteAppPort = 5899,
|
remoteAppPort = 5899,
|
||||||
showChannelName = false,
|
showChannelName = false,
|
||||||
hideNonTalking = false,
|
hideNonTalking = false,
|
||||||
clientLimit = 0,
|
clientLimit = 0,
|
||||||
alignRight = false,
|
|
||||||
showTsAvatar = false,
|
|
||||||
}: {
|
}: {
|
||||||
remoteAppPort?: number;
|
remoteAppPort?: number;
|
||||||
showChannelName?: boolean;
|
showChannelName?: boolean;
|
||||||
hideNonTalking?: boolean;
|
hideNonTalking?: boolean;
|
||||||
clientLimit?: number;
|
clientLimit?: number;
|
||||||
alignRight?: boolean;
|
|
||||||
showTsAvatar?: boolean;
|
|
||||||
}) {
|
}) {
|
||||||
const { clients, activeConnectionId, currentChannel } = useTSRemoteApp({
|
const { clients, activeConnectionId, currentChannel } = useTSRemoteApp({
|
||||||
remoteAppPort: remoteAppPort,
|
remoteAppPort: remoteAppPort,
|
||||||
@@ -35,7 +30,7 @@ export default function Viewer({
|
|||||||
}) as IClient[];
|
}) as IClient[];
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className={`viewer ${alignRight ? "viewer--align-right" : ""}`}>
|
<div className="viewer">
|
||||||
{showChannelName && currentChannel ? (
|
{showChannelName && currentChannel ? (
|
||||||
<div className="channelNameContainer">
|
<div className="channelNameContainer">
|
||||||
<h1>{currentChannel?.properties.name}</h1>
|
<h1>{currentChannel?.properties.name}</h1>
|
||||||
@@ -49,20 +44,101 @@ export default function Viewer({
|
|||||||
|
|
||||||
if (client) {
|
if (client) {
|
||||||
//* Non-talking client
|
//* Non-talking client
|
||||||
if (
|
if (hideNonTalking && (client.properties.inputMuted || client.properties.outputMuted || client.talkStatus == 0)) {
|
||||||
hideNonTalking &&
|
|
||||||
(client.properties.inputMuted || client.properties.outputMuted || client.talkStatus == 0)
|
|
||||||
) {
|
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
//* Normal client
|
//* Normal client
|
||||||
return (
|
return (
|
||||||
<div
|
<div className="client" key={`${client.id}-${client.channel?.connection.id}`}>
|
||||||
className={`client ${alignRight ? "client--align-right" : ""}`}
|
{client.properties.outputHardware == false ? (
|
||||||
key={`${client.id}-${client.channel?.connection.id}`}
|
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 128 128">
|
||||||
>
|
<title>muted_hardware_output</title>
|
||||||
<TalkStatus client={client} showTsAvatar={showTsAvatar} />
|
<g id="muted_hardware_output.svg">
|
||||||
|
<path
|
||||||
|
d="M116.62,39a4.78,4.78,0,0,1-1.59.3l-6.29,3.63a45.42,45.42,0,0,1-13.33,57.64,49.4,49.4,0,0,1-5.82,3.62c-1.06.57-2.2.92-3.19,1.49-1.7,1-2.77,2.13-2.77,4.18a4.57,4.57,0,0,0,4.54,4.54,5.33,5.33,0,0,0,1.84-.35,54.49,54.49,0,0,0,26.94-75c-.12,0-.22,0-.34,0M88.18,13.58a4.57,4.57,0,0,0-4.54,4.54c0,2.06,1.06,3.19,2.77,4.18,1,.57,2.13.92,3.19,1.49a49.4,49.4,0,0,1,5.82,3.62,45.68,45.68,0,0,1,8.19,7.78l7-4a2.63,2.63,0,0,1,1.11-.34A54.31,54.31,0,0,0,90,13.94a5.33,5.33,0,0,0-1.84-.35"
|
||||||
|
fill="#d8d8d8"
|
||||||
|
/>
|
||||||
|
<path
|
||||||
|
d="M59.46,71.4,32.77,86.81l19,19a4.51,4.51,0,0,0,3.19,1.35,4.57,4.57,0,0,0,4.54-4.54V71.4M54.92,20.88a4.51,4.51,0,0,0-3.19,1.35L28.12,45.85H9.54A4.57,4.57,0,0,0,5,50.38V77.62a4.57,4.57,0,0,0,4.54,4.54H22.26l37.2-21.48V25.42a4.57,4.57,0,0,0-4.54-4.54"
|
||||||
|
fill="#d8d8d8"
|
||||||
|
/>
|
||||||
|
<path
|
||||||
|
d="M85.11,56.6l-7.87,4.54A10,10,0,0,1,77.62,64c0,8.58-8.23,7.09-8.23,12.48A4.53,4.53,0,0,0,73.93,81a4,4,0,0,0,1.77-.35A18.13,18.13,0,0,0,86.69,64a18.34,18.34,0,0,0-1.59-7.4M73.93,47a4.52,4.52,0,0,0-4.54,4.54,3.92,3.92,0,0,0,1.08,2.8l8.76-5.06a16.14,16.14,0,0,0-3.52-1.93A4,4,0,0,0,73.93,47"
|
||||||
|
fill="#d8d8d8"
|
||||||
|
/>
|
||||||
|
<path
|
||||||
|
d="M100.87,47.49,93,52a27.15,27.15,0,0,1-8.36,33.87A36.79,36.79,0,0,1,79.25,89a4.54,4.54,0,0,0,1.84,8.72,5.24,5.24,0,0,0,1.77-.35,36.34,36.34,0,0,0,18-49.91M81,30.25A4.54,4.54,0,0,0,79.25,39a36.82,36.82,0,0,1,5.39,3.12,27,27,0,0,1,2.86,2.4l8.14-4.7A35.37,35.37,0,0,0,82.86,30.6,5.31,5.31,0,0,0,81,30.25"
|
||||||
|
fill="#d8d8d8"
|
||||||
|
/>
|
||||||
|
<path
|
||||||
|
d="M126.57,43.71,10.42,110.77a2.88,2.88,0,0,1-3.93-1.05L4.33,106A2.88,2.88,0,0,1,5.38,102L121.53,35A2.88,2.88,0,0,1,125.46,36l2.16,3.75A2.88,2.88,0,0,1,126.57,43.71Z"
|
||||||
|
fill="#c9070a"
|
||||||
|
/>
|
||||||
|
</g>
|
||||||
|
</svg>
|
||||||
|
) : client.properties.inputHardware == false ? (
|
||||||
|
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 128 128">
|
||||||
|
<title>muted_hardware_input</title>
|
||||||
|
<g id="muted_hardware_input.svg">
|
||||||
|
<path
|
||||||
|
d="M88.62,54.15V64A24.69,24.69,0,0,1,64,88.62a25.26,25.26,0,0,1-8.38-1.46l-7.39,7.39A34,34,0,0,0,64,98.46,34.5,34.5,0,0,0,98.46,64V54.15a4.92,4.92,0,1,1,9.85,0V64a44.31,44.31,0,0,1-39.38,44v10.15H88.62a4.92,4.92,0,0,1,0,9.85H39.38a4.92,4.92,0,1,1,0-9.85H59.08V108A43.3,43.3,0,0,1,41,101.77L21.46,121.31a2.46,2.46,0,0,1-3.54,0L11.62,115a2.46,2.46,0,0,1,0-3.54l94.92-94.92a2.46,2.46,0,0,1,3.54,0l6.31,6.31a2.46,2.46,0,0,1,0,3.54ZM22.92,80.46A43.3,43.3,0,0,1,19.69,64V54.15a4.92,4.92,0,1,1,9.85,0V64a35.94,35.94,0,0,0,1.15,8.69ZM39.38,64V24.62a24.62,24.62,0,0,1,47.77-8.38Z"
|
||||||
|
fill="#d8d8d8"
|
||||||
|
/>
|
||||||
|
<rect x="-5.93" y="61.89" width="139.87" height="14.02" rx="2.87" ry="2.87" transform="translate(-29.97 65.43) rotate(-45)" fill="#c9070a" />
|
||||||
|
</g>
|
||||||
|
</svg>
|
||||||
|
) : client.properties.outputMuted ? (
|
||||||
|
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 128 128">
|
||||||
|
<title>muted_output</title>
|
||||||
|
<g id="muted_output">
|
||||||
|
<path
|
||||||
|
d="M116.62,39a4.78,4.78,0,0,1-1.59.3l-6.29,3.63a45.42,45.42,0,0,1-13.33,57.64,49.4,49.4,0,0,1-5.82,3.62c-1.06.57-2.2.92-3.19,1.49-1.7,1-2.77,2.13-2.77,4.18a4.57,4.57,0,0,0,4.54,4.54,5.33,5.33,0,0,0,1.84-.35,54.49,54.49,0,0,0,26.94-75c-.12,0-.22,0-.34,0M88.18,13.58a4.57,4.57,0,0,0-4.54,4.54c0,2.06,1.06,3.19,2.77,4.18,1,.57,2.13.92,3.19,1.49a49.4,49.4,0,0,1,5.82,3.62,45.68,45.68,0,0,1,8.19,7.78l7-4a2.63,2.63,0,0,1,1.11-.34A54.31,54.31,0,0,0,90,13.94a5.33,5.33,0,0,0-1.84-.35"
|
||||||
|
fill="#c9070a"
|
||||||
|
/>
|
||||||
|
<path
|
||||||
|
d="M59.46,71.4,32.77,86.81l19,19a4.51,4.51,0,0,0,3.19,1.35,4.57,4.57,0,0,0,4.54-4.54V71.4M54.92,20.88a4.51,4.51,0,0,0-3.19,1.35L28.11,45.85H9.53A4.57,4.57,0,0,0,5,50.38V77.62a4.57,4.57,0,0,0,4.54,4.54H22.25l37.2-21.48V25.42a4.57,4.57,0,0,0-4.54-4.54"
|
||||||
|
fill="#c9070a"
|
||||||
|
/>
|
||||||
|
<path
|
||||||
|
d="M85.1,56.6l-7.87,4.54A10,10,0,0,1,77.61,64c0,8.58-8.23,7.09-8.23,12.48A4.53,4.53,0,0,0,73.92,81a4,4,0,0,0,1.77-.35A18.13,18.13,0,0,0,86.69,64a18.34,18.34,0,0,0-1.59-7.4M73.92,47a4.52,4.52,0,0,0-4.54,4.54,3.92,3.92,0,0,0,1.08,2.8l8.76-5.06a16.14,16.14,0,0,0-3.52-1.93A4,4,0,0,0,73.92,47"
|
||||||
|
fill="#c9070a"
|
||||||
|
/>
|
||||||
|
<path
|
||||||
|
d="M100.87,47.49,93,52a27.15,27.15,0,0,1-8.36,33.87A36.79,36.79,0,0,1,79.24,89a4.54,4.54,0,0,0,1.84,8.72,5.24,5.24,0,0,0,1.77-.35,36.34,36.34,0,0,0,18-49.91M81,30.25A4.54,4.54,0,0,0,79.24,39a36.82,36.82,0,0,1,5.39,3.12,27,27,0,0,1,2.86,2.4l8.14-4.7A35.37,35.37,0,0,0,82.86,30.6,5.31,5.31,0,0,0,81,30.25"
|
||||||
|
fill="#c9070a"
|
||||||
|
/>
|
||||||
|
<path
|
||||||
|
d="M126.57,43.71,10.42,110.77a2.88,2.88,0,0,1-3.93-1.05L4.33,106A2.88,2.88,0,0,1,5.38,102L121.53,35A2.88,2.88,0,0,1,125.46,36l2.16,3.75A2.88,2.88,0,0,1,126.57,43.71Z"
|
||||||
|
fill="#c9070a"
|
||||||
|
/>
|
||||||
|
</g>
|
||||||
|
</svg>
|
||||||
|
) : client.properties.inputMuted ? (
|
||||||
|
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 128 128">
|
||||||
|
<title>muted_input</title>
|
||||||
|
<g id="muted_input.svg">
|
||||||
|
<path
|
||||||
|
d="M88.62,54.15V64A24.69,24.69,0,0,1,64,88.62a25.26,25.26,0,0,1-8.38-1.46l-7.39,7.39A34,34,0,0,0,64,98.46,34.5,34.5,0,0,0,98.46,64V54.15a4.92,4.92,0,1,1,9.85,0V64a44.31,44.31,0,0,1-39.38,44v10.15H88.62a4.92,4.92,0,0,1,0,9.85H39.38a4.92,4.92,0,1,1,0-9.85H59.08V108A43.3,43.3,0,0,1,41,101.77L21.46,121.31a2.46,2.46,0,0,1-3.54,0L11.62,115a2.46,2.46,0,0,1,0-3.54l94.92-94.92a2.46,2.46,0,0,1,3.54,0l6.31,6.31a2.46,2.46,0,0,1,0,3.54ZM22.92,80.46A43.3,43.3,0,0,1,19.69,64V54.15a4.92,4.92,0,1,1,9.85,0V64a35.94,35.94,0,0,0,1.15,8.69ZM39.38,64V24.62a24.62,24.62,0,0,1,47.77-8.38Z"
|
||||||
|
fill="#c9070a"
|
||||||
|
/>
|
||||||
|
</g>
|
||||||
|
</svg>
|
||||||
|
) : client.talkStatus == 1 ? (
|
||||||
|
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 128 128">
|
||||||
|
<title>player_on_v2</title>
|
||||||
|
<g id="player_on_v2.svg">
|
||||||
|
<path d="M64,128a64,64,0,1,1,64-64A64,64,0,0,1,64,128Z" fill="#00b4df" />
|
||||||
|
</g>
|
||||||
|
</svg>
|
||||||
|
) : (
|
||||||
|
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 128 128">
|
||||||
|
<title>player_off_v2</title>
|
||||||
|
<g id="player_off_v2.svg">
|
||||||
|
<path d="M64,128a64,64,0,1,1,64-64A64,64,0,0,1,64,128Z" fill="#3e4f5e" />
|
||||||
|
</g>
|
||||||
|
</svg>
|
||||||
|
)}
|
||||||
<p>{client.properties.nickname}</p>
|
<p>{client.properties.nickname}</p>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -1,19 +0,0 @@
|
|||||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 128 128">
|
|
||||||
<title>muted_hardware_input</title>
|
|
||||||
<g id="muted_hardware_input.svg">
|
|
||||||
<path
|
|
||||||
d="M88.62,54.15V64A24.69,24.69,0,0,1,64,88.62a25.26,25.26,0,0,1-8.38-1.46l-7.39,7.39A34,34,0,0,0,64,98.46,34.5,34.5,0,0,0,98.46,64V54.15a4.92,4.92,0,1,1,9.85,0V64a44.31,44.31,0,0,1-39.38,44v10.15H88.62a4.92,4.92,0,0,1,0,9.85H39.38a4.92,4.92,0,1,1,0-9.85H59.08V108A43.3,43.3,0,0,1,41,101.77L21.46,121.31a2.46,2.46,0,0,1-3.54,0L11.62,115a2.46,2.46,0,0,1,0-3.54l94.92-94.92a2.46,2.46,0,0,1,3.54,0l6.31,6.31a2.46,2.46,0,0,1,0,3.54ZM22.92,80.46A43.3,43.3,0,0,1,19.69,64V54.15a4.92,4.92,0,1,1,9.85,0V64a35.94,35.94,0,0,0,1.15,8.69ZM39.38,64V24.62a24.62,24.62,0,0,1,47.77-8.38Z"
|
|
||||||
fill="#d8d8d8"
|
|
||||||
/>
|
|
||||||
<rect
|
|
||||||
x="-5.93"
|
|
||||||
y="61.89"
|
|
||||||
width="139.87"
|
|
||||||
height="14.02"
|
|
||||||
rx="2.87"
|
|
||||||
ry="2.87"
|
|
||||||
transform="translate(-29.97 65.43) rotate(-45)"
|
|
||||||
fill="#c9070a"
|
|
||||||
/>
|
|
||||||
</g>
|
|
||||||
</svg>
|
|
||||||
|
Before Width: | Height: | Size: 964 B |
@@ -1,9 +0,0 @@
|
|||||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 128 128">
|
|
||||||
<title>muted_input</title>
|
|
||||||
<g id="muted_input.svg">
|
|
||||||
<path
|
|
||||||
d="M88.62,54.15V64A24.69,24.69,0,0,1,64,88.62a25.26,25.26,0,0,1-8.38-1.46l-7.39,7.39A34,34,0,0,0,64,98.46,34.5,34.5,0,0,0,98.46,64V54.15a4.92,4.92,0,1,1,9.85,0V64a44.31,44.31,0,0,1-39.38,44v10.15H88.62a4.92,4.92,0,0,1,0,9.85H39.38a4.92,4.92,0,1,1,0-9.85H59.08V108A43.3,43.3,0,0,1,41,101.77L21.46,121.31a2.46,2.46,0,0,1-3.54,0L11.62,115a2.46,2.46,0,0,1,0-3.54l94.92-94.92a2.46,2.46,0,0,1,3.54,0l6.31,6.31a2.46,2.46,0,0,1,0,3.54ZM22.92,80.46A43.3,43.3,0,0,1,19.69,64V54.15a4.92,4.92,0,1,1,9.85,0V64a35.94,35.94,0,0,0,1.15,8.69ZM39.38,64V24.62a24.62,24.62,0,0,1,47.77-8.38Z"
|
|
||||||
fill="#c9070a"
|
|
||||||
/>
|
|
||||||
</g>
|
|
||||||
</svg>
|
|
||||||
|
Before Width: | Height: | Size: 748 B |
@@ -1,25 +0,0 @@
|
|||||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 128 128">
|
|
||||||
<title>muted_hardware_output</title>
|
|
||||||
<g id="muted_hardware_output.svg">
|
|
||||||
<path
|
|
||||||
d="M116.62,39a4.78,4.78,0,0,1-1.59.3l-6.29,3.63a45.42,45.42,0,0,1-13.33,57.64,49.4,49.4,0,0,1-5.82,3.62c-1.06.57-2.2.92-3.19,1.49-1.7,1-2.77,2.13-2.77,4.18a4.57,4.57,0,0,0,4.54,4.54,5.33,5.33,0,0,0,1.84-.35,54.49,54.49,0,0,0,26.94-75c-.12,0-.22,0-.34,0M88.18,13.58a4.57,4.57,0,0,0-4.54,4.54c0,2.06,1.06,3.19,2.77,4.18,1,.57,2.13.92,3.19,1.49a49.4,49.4,0,0,1,5.82,3.62,45.68,45.68,0,0,1,8.19,7.78l7-4a2.63,2.63,0,0,1,1.11-.34A54.31,54.31,0,0,0,90,13.94a5.33,5.33,0,0,0-1.84-.35"
|
|
||||||
fill="#d8d8d8"
|
|
||||||
/>
|
|
||||||
<path
|
|
||||||
d="M59.46,71.4,32.77,86.81l19,19a4.51,4.51,0,0,0,3.19,1.35,4.57,4.57,0,0,0,4.54-4.54V71.4M54.92,20.88a4.51,4.51,0,0,0-3.19,1.35L28.12,45.85H9.54A4.57,4.57,0,0,0,5,50.38V77.62a4.57,4.57,0,0,0,4.54,4.54H22.26l37.2-21.48V25.42a4.57,4.57,0,0,0-4.54-4.54"
|
|
||||||
fill="#d8d8d8"
|
|
||||||
/>
|
|
||||||
<path
|
|
||||||
d="M85.11,56.6l-7.87,4.54A10,10,0,0,1,77.62,64c0,8.58-8.23,7.09-8.23,12.48A4.53,4.53,0,0,0,73.93,81a4,4,0,0,0,1.77-.35A18.13,18.13,0,0,0,86.69,64a18.34,18.34,0,0,0-1.59-7.4M73.93,47a4.52,4.52,0,0,0-4.54,4.54,3.92,3.92,0,0,0,1.08,2.8l8.76-5.06a16.14,16.14,0,0,0-3.52-1.93A4,4,0,0,0,73.93,47"
|
|
||||||
fill="#d8d8d8"
|
|
||||||
/>
|
|
||||||
<path
|
|
||||||
d="M100.87,47.49,93,52a27.15,27.15,0,0,1-8.36,33.87A36.79,36.79,0,0,1,79.25,89a4.54,4.54,0,0,0,1.84,8.72,5.24,5.24,0,0,0,1.77-.35,36.34,36.34,0,0,0,18-49.91M81,30.25A4.54,4.54,0,0,0,79.25,39a36.82,36.82,0,0,1,5.39,3.12,27,27,0,0,1,2.86,2.4l8.14-4.7A35.37,35.37,0,0,0,82.86,30.6,5.31,5.31,0,0,0,81,30.25"
|
|
||||||
fill="#d8d8d8"
|
|
||||||
/>
|
|
||||||
<path
|
|
||||||
d="M126.57,43.71,10.42,110.77a2.88,2.88,0,0,1-3.93-1.05L4.33,106A2.88,2.88,0,0,1,5.38,102L121.53,35A2.88,2.88,0,0,1,125.46,36l2.16,3.75A2.88,2.88,0,0,1,126.57,43.71Z"
|
|
||||||
fill="#c9070a"
|
|
||||||
/>
|
|
||||||
</g>
|
|
||||||
</svg>
|
|
||||||
|
Before Width: | Height: | Size: 1.8 KiB |
@@ -1,6 +0,0 @@
|
|||||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 128 128">
|
|
||||||
<title>player_off_v2</title>
|
|
||||||
<g id="player_off_v2.svg">
|
|
||||||
<path d="M64,128a64,64,0,1,1,64-64A64,64,0,0,1,64,128Z" fill="#3e4f5e" />
|
|
||||||
</g>
|
|
||||||
</svg>
|
|
||||||
|
Before Width: | Height: | Size: 215 B |
@@ -1,25 +0,0 @@
|
|||||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 128 128">
|
|
||||||
<title>muted_output</title>
|
|
||||||
<g id="muted_output">
|
|
||||||
<path
|
|
||||||
d="M116.62,39a4.78,4.78,0,0,1-1.59.3l-6.29,3.63a45.42,45.42,0,0,1-13.33,57.64,49.4,49.4,0,0,1-5.82,3.62c-1.06.57-2.2.92-3.19,1.49-1.7,1-2.77,2.13-2.77,4.18a4.57,4.57,0,0,0,4.54,4.54,5.33,5.33,0,0,0,1.84-.35,54.49,54.49,0,0,0,26.94-75c-.12,0-.22,0-.34,0M88.18,13.58a4.57,4.57,0,0,0-4.54,4.54c0,2.06,1.06,3.19,2.77,4.18,1,.57,2.13.92,3.19,1.49a49.4,49.4,0,0,1,5.82,3.62,45.68,45.68,0,0,1,8.19,7.78l7-4a2.63,2.63,0,0,1,1.11-.34A54.31,54.31,0,0,0,90,13.94a5.33,5.33,0,0,0-1.84-.35"
|
|
||||||
fill="#c9070a"
|
|
||||||
/>
|
|
||||||
<path
|
|
||||||
d="M59.46,71.4,32.77,86.81l19,19a4.51,4.51,0,0,0,3.19,1.35,4.57,4.57,0,0,0,4.54-4.54V71.4M54.92,20.88a4.51,4.51,0,0,0-3.19,1.35L28.11,45.85H9.53A4.57,4.57,0,0,0,5,50.38V77.62a4.57,4.57,0,0,0,4.54,4.54H22.25l37.2-21.48V25.42a4.57,4.57,0,0,0-4.54-4.54"
|
|
||||||
fill="#c9070a"
|
|
||||||
/>
|
|
||||||
<path
|
|
||||||
d="M85.1,56.6l-7.87,4.54A10,10,0,0,1,77.61,64c0,8.58-8.23,7.09-8.23,12.48A4.53,4.53,0,0,0,73.92,81a4,4,0,0,0,1.77-.35A18.13,18.13,0,0,0,86.69,64a18.34,18.34,0,0,0-1.59-7.4M73.92,47a4.52,4.52,0,0,0-4.54,4.54,3.92,3.92,0,0,0,1.08,2.8l8.76-5.06a16.14,16.14,0,0,0-3.52-1.93A4,4,0,0,0,73.92,47"
|
|
||||||
fill="#c9070a"
|
|
||||||
/>
|
|
||||||
<path
|
|
||||||
d="M100.87,47.49,93,52a27.15,27.15,0,0,1-8.36,33.87A36.79,36.79,0,0,1,79.24,89a4.54,4.54,0,0,0,1.84,8.72,5.24,5.24,0,0,0,1.77-.35,36.34,36.34,0,0,0,18-49.91M81,30.25A4.54,4.54,0,0,0,79.24,39a36.82,36.82,0,0,1,5.39,3.12,27,27,0,0,1,2.86,2.4l8.14-4.7A35.37,35.37,0,0,0,82.86,30.6,5.31,5.31,0,0,0,81,30.25"
|
|
||||||
fill="#c9070a"
|
|
||||||
/>
|
|
||||||
<path
|
|
||||||
d="M126.57,43.71,10.42,110.77a2.88,2.88,0,0,1-3.93-1.05L4.33,106A2.88,2.88,0,0,1,5.38,102L121.53,35A2.88,2.88,0,0,1,125.46,36l2.16,3.75A2.88,2.88,0,0,1,126.57,43.71Z"
|
|
||||||
fill="#c9070a"
|
|
||||||
/>
|
|
||||||
</g>
|
|
||||||
</svg>
|
|
||||||
|
Before Width: | Height: | Size: 1.8 KiB |
@@ -1,6 +0,0 @@
|
|||||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 128 128">
|
|
||||||
<title>player_on_v2</title>
|
|
||||||
<g id="player_on_v2.svg">
|
|
||||||
<path d="M64,128a64,64,0,1,1,64-64A64,64,0,0,1,64,128Z" fill="#00b4df" />
|
|
||||||
</g>
|
|
||||||
</svg>
|
|
||||||
|
Before Width: | Height: | Size: 212 B |
@@ -1,47 +0,0 @@
|
|||||||
import "@styles/TalkStatus.scss";
|
|
||||||
import { IClient } from "react-teamspeak-remote-app-api";
|
|
||||||
import MutedHardwareOutputSvg from "@assets/icons/muted_hardware_output.svg?react";
|
|
||||||
import InputHardwareSvg from "@assets/icons/input_hardware.svg?react";
|
|
||||||
import OutputMutedSvg from "@assets/icons/output_muted.svg?react";
|
|
||||||
import InputMutedSvg from "@assets/icons/input_muted.svg?react";
|
|
||||||
import TalkingSvg from "@assets/icons/talk.svg?react";
|
|
||||||
import NotTalkingSvg from "@assets/icons/not_talk.svg?react";
|
|
||||||
|
|
||||||
// TODO outsource svg to files
|
|
||||||
export default function TalkStatus({ client, showTsAvatar }: { client: IClient; showTsAvatar: boolean }) {
|
|
||||||
function getTeamSpeakAvatarUrl(): string {
|
|
||||||
// MyTeamSpeak avatar property looks like this:
|
|
||||||
// 1,https://storage.googleapis.com/ts-sys-myts-avatars/d4864285-0b77-4f2d-b0c5-1ae585e66ee5/258947109;2,https://storage.googleapis.com/ts-sys-myts-avatars/d4864285-0b77-4f2d-b0c5-1ae585e66ee5/71073868;4,https://storage.googleapis.com/ts-sys-myts-avatars/d4864285-0b77-4f2d-b0c5-1ae585e66ee5/1260429936
|
|
||||||
// 2, is the avatar we want to use. The other ones are away and busy avatars.
|
|
||||||
return (
|
|
||||||
client.properties.myteamspeakAvatar.split("2,")[1] ??
|
|
||||||
client.properties.myteamspeakAvatar.split(";")[0].split(",")[1]
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
return (
|
|
||||||
<div className={`talkStatus ${showTsAvatar ? "talkStatus--avatar" : ""} `}>
|
|
||||||
{showTsAvatar ? (
|
|
||||||
<div className={`avatar ${client.talkStatus === 1 ? "avatar--talk" : ""}`}>
|
|
||||||
<img src={getTeamSpeakAvatarUrl()} alt="" />
|
|
||||||
</div>
|
|
||||||
) : null}
|
|
||||||
|
|
||||||
{client.properties.outputHardware === false ? (
|
|
||||||
<MutedHardwareOutputSvg />
|
|
||||||
) : client.properties.inputHardware === false ? (
|
|
||||||
<InputHardwareSvg />
|
|
||||||
) : client.properties.outputMuted ? (
|
|
||||||
<OutputMutedSvg />
|
|
||||||
) : client.properties.inputMuted ? (
|
|
||||||
<InputMutedSvg />
|
|
||||||
) : client.talkStatus === 1 && !showTsAvatar ? (
|
|
||||||
<TalkingSvg />
|
|
||||||
) : !showTsAvatar ? (
|
|
||||||
<NotTalkingSvg />
|
|
||||||
) : (
|
|
||||||
<svg></svg>
|
|
||||||
)}
|
|
||||||
</div>
|
|
||||||
);
|
|
||||||
}
|
|
||||||
@@ -202,17 +202,27 @@ $breakpoint-3: 600px;
|
|||||||
|
|
||||||
// Preview styles
|
// Preview styles
|
||||||
.preview {
|
.preview {
|
||||||
display: flex;
|
|
||||||
flex: 1;
|
flex: 1;
|
||||||
|
border: 2px solid #31f39973;
|
||||||
|
|
||||||
|
// Viewer styles (see src/styles/Viewer.scss)
|
||||||
|
.viewer {
|
||||||
background-image: url("/images/viewer_example_background.png");
|
background-image: url("/images/viewer_example_background.png");
|
||||||
background-repeat: no-repeat;
|
background-repeat: no-repeat;
|
||||||
background-size: cover;
|
background-size: cover;
|
||||||
border: 2px solid #31f39973;
|
|
||||||
|
|
||||||
iframe {
|
|
||||||
width: 100%;
|
|
||||||
min-height: 500px;
|
min-height: 500px;
|
||||||
border: none;
|
h1 {
|
||||||
|
font-size: 2rem;
|
||||||
|
}
|
||||||
|
.client {
|
||||||
|
svg {
|
||||||
|
width: 2rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
p {
|
||||||
|
font-size: 2rem;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,42 +0,0 @@
|
|||||||
.talkStatus {
|
|
||||||
display: flex;
|
|
||||||
align-items: center;
|
|
||||||
justify-content: center;
|
|
||||||
|
|
||||||
&--avatar {
|
|
||||||
margin-right: 4rem;
|
|
||||||
|
|
||||||
svg {
|
|
||||||
width: 6rem !important;
|
|
||||||
margin-left: -9.5rem;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
svg {
|
|
||||||
width: 5rem;
|
|
||||||
aspect-ratio: 1/1;
|
|
||||||
margin-right: 0.5rem;
|
|
||||||
filter: drop-shadow(0 0 0.75rem rgba(15, 15, 15, 0.1));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.avatar {
|
|
||||||
$border-radius: 100rem;
|
|
||||||
$border-width: 0.7rem;
|
|
||||||
|
|
||||||
display: flex;
|
|
||||||
align-items: center;
|
|
||||||
justify-content: center;
|
|
||||||
aspect-ratio: 1/1;
|
|
||||||
border: $border-width solid transparent;
|
|
||||||
border-radius: $border-radius;
|
|
||||||
|
|
||||||
img {
|
|
||||||
width: 10rem;
|
|
||||||
border-radius: $border-radius;
|
|
||||||
}
|
|
||||||
|
|
||||||
&--talk {
|
|
||||||
border: $border-width solid rgb(0, 195, 255);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -5,22 +5,17 @@
|
|||||||
.viewer {
|
.viewer {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
padding: 0.3rem;
|
padding: 0.5rem;
|
||||||
gap: 0.3rem;
|
|
||||||
|
|
||||||
&--align-right {
|
|
||||||
align-items: flex-end;
|
|
||||||
}
|
|
||||||
|
|
||||||
h1 {
|
h1 {
|
||||||
font-size: 4.5rem;
|
font-size: 5vw;
|
||||||
}
|
}
|
||||||
|
|
||||||
h1,
|
h1,
|
||||||
p {
|
p {
|
||||||
background-color: #2f313680;
|
background-color: #2f313680;
|
||||||
padding: 0.25rem 1.2rem;
|
padding: 0.25rem 0.5rem;
|
||||||
border-radius: 1rem;
|
border-radius: 0.25rem;
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
text-overflow: ellipsis;
|
text-overflow: ellipsis;
|
||||||
@@ -37,16 +32,21 @@
|
|||||||
.client {
|
.client {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: row;
|
flex-direction: row;
|
||||||
gap: 0.5rem 0.5rem;
|
gap: 0 0;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
|
margin: 0.5rem 0;
|
||||||
|
|
||||||
&--align-right {
|
// icon styles
|
||||||
flex-direction: row-reverse;
|
svg {
|
||||||
|
width: 5vw;
|
||||||
|
aspect-ratio: 1/1;
|
||||||
|
margin-right: 0.5rem;
|
||||||
|
filter: drop-shadow(0 0 0.75rem rgba(15, 15, 15, 0.1));
|
||||||
}
|
}
|
||||||
|
|
||||||
// client name styles
|
// client name styles
|
||||||
p {
|
p {
|
||||||
font-size: 4rem;
|
font-size: 5vw;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
1
src/vite-env.d.ts
vendored
1
src/vite-env.d.ts
vendored
@@ -1,2 +1 @@
|
|||||||
/// <reference types="vite/client" />
|
/// <reference types="vite/client" />
|
||||||
/// <reference types="vite-plugin-svgr/client" />
|
|
||||||
@@ -1,7 +1,6 @@
|
|||||||
import { defineConfig } from 'vite'
|
import { defineConfig } from 'vite'
|
||||||
import react from '@vitejs/plugin-react-swc'
|
import react from '@vitejs/plugin-react-swc'
|
||||||
import path from 'path';
|
import path from 'path';
|
||||||
import svgr from "vite-plugin-svgr";
|
|
||||||
|
|
||||||
// https://vitejs.dev/config/
|
// https://vitejs.dev/config/
|
||||||
export default defineConfig({
|
export default defineConfig({
|
||||||
@@ -21,5 +20,5 @@ export default defineConfig({
|
|||||||
outDir: 'dist',
|
outDir: 'dist',
|
||||||
emptyOutDir: true,
|
emptyOutDir: true,
|
||||||
},
|
},
|
||||||
plugins: [react(), svgr()],
|
plugins: [react()],
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user