diff --git a/src/app/page.tsx b/src/app/page.tsx index 931958a..e7be2b5 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -18,11 +18,11 @@ export default function Home() { - View on GitHub + View on Gitea diff --git a/src/components/dashboard/StyleControls.tsx b/src/components/dashboard/StyleControls.tsx index fac8964..39a64f6 100644 --- a/src/components/dashboard/StyleControls.tsx +++ b/src/components/dashboard/StyleControls.tsx @@ -9,6 +9,8 @@ interface StyleControlsProps { } export default function StyleControls({ settings, updateSettings }: StyleControlsProps) { + const [copySuccess, setCopySuccess] = React.useState(false); + const handleChange = (e: React.ChangeEvent) => { const { name, value, type } = e.target; let newValue: string | number | boolean = value; @@ -32,9 +34,53 @@ export default function StyleControls({ settings, updateSettings }: StyleControl }); }; + const copyLink = () => { + // Mock token for now + const url = `${window.location.origin}/overlay/mock-token`; + navigator.clipboard.writeText(url); + setCopySuccess(true); + setTimeout(() => setCopySuccess(false), 2000); + }; + return (
-

Style Editor

+ + {/* Copy Link Section */} +
+

Overlay URL

+
+ + +
+
+ +
+

Style Editor

+

Customize your chat appearance

+
+ + {/* Resolution */} +
+ + +
{/* Font Family */}
diff --git a/src/lib/types.ts b/src/lib/types.ts index aea6b8f..d26ab16 100644 --- a/src/lib/types.ts +++ b/src/lib/types.ts @@ -8,6 +8,7 @@ export interface OverlaySettings { textShadow: string; messageSpacing: string; usernameColor: string; // 'custom' or 'twitch' + resolution: '720p' | '1080p'; emotes: { bttv: boolean; seventv: boolean; @@ -25,6 +26,7 @@ export const DEFAULT_SETTINGS: OverlaySettings = { textShadow: '1px 1px 2px rgba(0,0,0,0.8)', messageSpacing: '0.5rem', usernameColor: 'twitch', + resolution: '1080p', emotes: { bttv: true, seventv: true,