805 lines
34 KiB
PHP
805 lines
34 KiB
PHP
<?php require_once("../members/gate.php"); ?>
|
|
<!doctype html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<meta name="description" content="Live at TyClifford.com/Live — Members Area">
|
|
<meta name="author" content="Ty Clifford">
|
|
<meta name="keywords" content="Ty Clifford, Live, Podcast, Keyser, West Virginia, Nerd, TikTok">
|
|
|
|
<meta property="og:url" content="https://tyclifford.com/live/" />
|
|
<meta property="og:type" content="website" />
|
|
<meta property="og:site_name" content="Ty Clifford — Live! Hobbies are my hobby." />
|
|
<meta property="og:title" content="Live TC | TyClifford.com/Live" />
|
|
<meta property="og:image" content="" />
|
|
<meta property="og:image:alt" content="Live stream" />
|
|
<meta name="twitter:site" content="@_tyclifford" />
|
|
<meta name="twitter:title" content="Live TC | TyClifford.com/Live" />
|
|
<meta name="twitter:description" content="Members live stream area — TyClifford.com">
|
|
|
|
<title>Live — TyClifford.com</title>
|
|
|
|
<link rel="shortcut icon" href="/images/ico/fa-bl.ico">
|
|
<link rel="apple-touch-icon" href="/images/ico/fa-bl.jpg">
|
|
|
|
<link rel="preconnect" href="https://fonts.googleapis.com">
|
|
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
|
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Share+Tech+Mono&display=swap" rel="stylesheet">
|
|
|
|
<style>
|
|
/* ── Reset & tokens (exact match to gate.php) ──────────────────────────── */
|
|
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
|
|
|
|
:root {
|
|
--bg: #09090f;
|
|
--surface: #0f0f1a;
|
|
--surface-2: #141425;
|
|
--border: #1e1e38;
|
|
--border-2: #2a2a48;
|
|
--text: #e8e8f8;
|
|
--text-2: #9898c0;
|
|
--text-3: #58587a;
|
|
|
|
--green: #00e87a;
|
|
--blue: #00c8ff;
|
|
--purple: #b060ff;
|
|
--red: #ff3355;
|
|
--orange: #ff8800;
|
|
--yellow: #ffd040;
|
|
|
|
--pat: #ff424d;
|
|
--pat-lite: rgba(255,66,77,.10);
|
|
--pat-border: rgba(255,66,77,.32);
|
|
--pat-glow: rgba(255,66,77,.18);
|
|
|
|
--libera: #f6c915;
|
|
--paypal: #009cde;
|
|
|
|
--r: 6px;
|
|
--gap: 1.25rem;
|
|
--pp: 1rem; /* page-pad */
|
|
|
|
/* chat panel */
|
|
--chat-w: 320px; /* desktop sidebar width */
|
|
--chat-h: 460px; /* mobile stacked height */
|
|
}
|
|
|
|
@media (min-width: 600px) { :root { --pp: 1.5rem; } }
|
|
@media (min-width: 1000px) { :root { --pp: 2rem; --chat-w: 340px; } }
|
|
@media (min-width: 1280px) { :root { --chat-w: 360px; } }
|
|
|
|
html { font-size: 16px; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
|
|
|
|
body {
|
|
min-height: 100dvh;
|
|
background: var(--bg);
|
|
background-image:
|
|
radial-gradient(ellipse 70% 50% at 20% 10%, rgba(176,96,255,.05) 0%, transparent 60%),
|
|
radial-gradient(ellipse 60% 40% at 80% 80%, rgba(0,200,255,.04) 0%, transparent 60%),
|
|
radial-gradient(ellipse 50% 60% at 50% 50%, rgba(255,66,77,.03) 0%, transparent 70%);
|
|
font-family: 'Inter', system-ui, sans-serif;
|
|
color: var(--text);
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
}
|
|
|
|
/* scanline overlay */
|
|
body::after {
|
|
content: '';
|
|
position: fixed; inset: 0; pointer-events: none; z-index: 999;
|
|
background: repeating-linear-gradient(
|
|
0deg, transparent 0px, transparent 3px,
|
|
rgba(0,0,0,.06) 3px, rgba(0,0,0,.06) 4px
|
|
);
|
|
}
|
|
|
|
/* ── Animations ─────────────────────────────────────────────────────────── */
|
|
@keyframes rise {
|
|
from { opacity: 0; transform: translateY(14px) scale(.98); }
|
|
to { opacity: 1; transform: translateY(0) scale(1); }
|
|
}
|
|
@keyframes shimmer {
|
|
from { background-position: 0% 50%; }
|
|
to { background-position: 200% 50%; }
|
|
}
|
|
@keyframes pulse-border {
|
|
0%,100% { box-shadow: 0 0 0 0 var(--pat-glow); }
|
|
50% { box-shadow: 0 0 0 6px transparent; }
|
|
}
|
|
@keyframes live-pulse {
|
|
0%,100% { opacity: 1; }
|
|
50% { opacity: .4; }
|
|
}
|
|
|
|
/* ── Page wrapper ───────────────────────────────────────────────────────── */
|
|
.page {
|
|
width: 100%;
|
|
max-width: 1280px;
|
|
padding: var(--pp);
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 1.5rem;
|
|
animation: rise .45s cubic-bezier(.22,.68,0,1.2) both;
|
|
}
|
|
|
|
/* ── Top bar ────────────────────────────────────────────────────────────── */
|
|
.topbar {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 1rem;
|
|
flex-wrap: wrap;
|
|
}
|
|
.topbar-brand { display: flex; align-items: center; gap: .75rem; }
|
|
.brand-name { font-size: 1rem; font-weight: 700; letter-spacing: -.01em; color: var(--text); }
|
|
.brand-sub {
|
|
font-family: 'Share Tech Mono', monospace;
|
|
font-size: .62rem; letter-spacing: .18em; text-transform: uppercase; color: var(--text-3);
|
|
}
|
|
.live-badge {
|
|
display: inline-flex; align-items: center; gap: .4rem;
|
|
padding: .25rem .65rem;
|
|
background: rgba(255,51,85,.12); border: 1px solid rgba(255,51,85,.3); border-radius: 99px;
|
|
font-family: 'Share Tech Mono', monospace;
|
|
font-size: .6rem; letter-spacing: .15em; text-transform: uppercase;
|
|
color: var(--red); text-shadow: 0 0 8px rgba(255,51,85,.4);
|
|
}
|
|
.live-dot {
|
|
width: 6px; height: 6px; border-radius: 50%;
|
|
background: var(--red); box-shadow: 0 0 6px rgba(255,51,85,.8);
|
|
animation: live-pulse 1.4s ease-in-out infinite;
|
|
}
|
|
.topbar-social { display: flex; align-items: center; gap: .5rem; }
|
|
.social-pill {
|
|
display: inline-flex; align-items: center; gap: .4rem;
|
|
padding: .35rem .75rem;
|
|
background: rgba(255,255,255,.03); border: 1px solid var(--border-2); border-radius: 99px;
|
|
font-family: 'Share Tech Mono', monospace; font-size: .65rem; letter-spacing: .08em;
|
|
color: var(--text-3); text-decoration: none;
|
|
transition: color .2s, background .2s;
|
|
}
|
|
.social-pill:hover { color: var(--text-2); background: rgba(255,255,255,.06); }
|
|
.social-pill svg { flex-shrink: 0; }
|
|
|
|
/* ══════════════════════════════════════════════════════════════════════════
|
|
STREAM + CHAT ZONE
|
|
Mobile → column: [stream-col] then [chat-col] stacked
|
|
≥900px → row: [stream-col] flex-grows | [chat-col] fixed width sidebar
|
|
══════════════════════════════════════════════════════════════════════════ */
|
|
.stream-zone {
|
|
display: flex;
|
|
flex-direction: column; /* mobile: stack */
|
|
background: var(--surface);
|
|
border: 1px solid var(--border);
|
|
border-radius: calc(var(--r) + 2px);
|
|
overflow: hidden;
|
|
position: relative;
|
|
box-shadow: 0 0 0 1px rgba(255,255,255,.03), 0 4px 50px rgba(0,0,0,.6);
|
|
}
|
|
|
|
/* rainbow shimmer rule along the top */
|
|
.stream-zone::before {
|
|
content: '';
|
|
position: absolute; top: 0; left: 0; right: 0; height: 2px; z-index: 2;
|
|
background: linear-gradient(90deg,
|
|
var(--pat), var(--purple), var(--blue), var(--green),
|
|
var(--blue), var(--purple), var(--pat));
|
|
background-size: 300% 100%;
|
|
animation: shimmer 5s linear infinite;
|
|
}
|
|
|
|
@media (min-width: 900px) {
|
|
.stream-zone {
|
|
flex-direction: row; /* desktop: side-by-side */
|
|
align-items: stretch;
|
|
}
|
|
}
|
|
|
|
/* ── Stream column ──────────────────────────────────────────────────────── */
|
|
.stream-col {
|
|
display: flex;
|
|
flex-direction: column;
|
|
flex: 1 1 auto; /* fills remaining width on desktop */
|
|
min-width: 0;
|
|
}
|
|
|
|
/* Pure-CSS 16:9 — zero layout shift, no JS resize loop */
|
|
.stream-ratio {
|
|
position: relative;
|
|
width: 100%;
|
|
padding-top: 56.25%; /* 9/16 */
|
|
background: #000;
|
|
flex-shrink: 0;
|
|
}
|
|
.stream-ratio iframe {
|
|
position: absolute; inset: 0;
|
|
width: 100%; height: 100%;
|
|
border: 0; display: block;
|
|
}
|
|
|
|
/* bar below the stream video */
|
|
.stream-bar {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: .75rem;
|
|
padding: .6rem 1rem;
|
|
border-top: 1px solid var(--border);
|
|
flex-wrap: wrap;
|
|
flex-shrink: 0;
|
|
}
|
|
.stream-bar-right { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
|
|
|
|
/* ── Chat column ────────────────────────────────────────────────────────── */
|
|
.chat-col {
|
|
display: flex;
|
|
flex-direction: column;
|
|
/* mobile: fixed height beneath stream */
|
|
height: var(--chat-h);
|
|
flex-shrink: 0;
|
|
border-top: 1px solid var(--border);
|
|
}
|
|
|
|
@media (min-width: 900px) {
|
|
.chat-col {
|
|
width: var(--chat-w);
|
|
height: auto; /* stretch to full row height */
|
|
flex-shrink: 0;
|
|
flex-grow: 0;
|
|
border-top: none;
|
|
border-left: 1px solid var(--border);
|
|
min-height: 340px;
|
|
}
|
|
}
|
|
|
|
/* thin header strip inside chat column */
|
|
.chat-bar {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
padding: .5rem .85rem;
|
|
border-bottom: 1px solid var(--border);
|
|
background: var(--surface-2);
|
|
flex-shrink: 0;
|
|
}
|
|
.chat-bar-actions { display: flex; align-items: center; gap: .35rem; }
|
|
|
|
/* iframe wrapper — fills remaining column height */
|
|
.chat-embed {
|
|
flex: 1;
|
|
position: relative;
|
|
overflow: hidden;
|
|
min-height: 0;
|
|
}
|
|
.chat-embed iframe {
|
|
position: absolute; inset: 0;
|
|
width: 100%; height: 100%;
|
|
border: 0; display: block;
|
|
background: #000;
|
|
}
|
|
|
|
/* placeholder shown when chat is in a popup window */
|
|
.chat-placeholder {
|
|
display: none; /* JS reveals this */
|
|
flex: 1;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: .85rem;
|
|
padding: 1.5rem;
|
|
text-align: center;
|
|
}
|
|
.chat-placeholder.visible { display: flex; }
|
|
.chat-embed.hidden { display: none; }
|
|
|
|
.ph-icon {
|
|
width: 42px; height: 42px; border-radius: 50%;
|
|
background: rgba(0,200,255,.07);
|
|
border: 1px solid rgba(0,200,255,.2);
|
|
display: flex; align-items: center; justify-content: center;
|
|
color: var(--blue);
|
|
}
|
|
.ph-title { font-size: .85rem; font-weight: 600; color: var(--text-2); }
|
|
.ph-sub {
|
|
font-family: 'Share Tech Mono', monospace;
|
|
font-size: .68rem; color: var(--text-3); line-height: 1.65;
|
|
}
|
|
.ph-sub strong { color: var(--text-2); }
|
|
|
|
/* ── Shared eyebrow ─────────────────────────────────────────────────────── */
|
|
.eyebrow {
|
|
font-family: 'Share Tech Mono', monospace;
|
|
font-size: .62rem; letter-spacing: .2em; text-transform: uppercase;
|
|
}
|
|
.eyebrow-green { color: var(--green); text-shadow: 0 0 10px rgba(0,232,122,.5); }
|
|
.eyebrow-green::before { content: '> '; opacity: .5; }
|
|
.eyebrow-blue { color: var(--blue); text-shadow: 0 0 8px rgba(0,200,255,.4); }
|
|
.eyebrow-blue::before { content: '> '; opacity: .5; }
|
|
|
|
.stream-meta {
|
|
font-family: 'Share Tech Mono', monospace;
|
|
font-size: .63rem; letter-spacing: .08em; color: var(--text-3);
|
|
}
|
|
.stream-meta span { color: var(--text-2); }
|
|
|
|
/* ── Small icon-style buttons (popout / re-embed / stream-out) ────────── */
|
|
.btn-sm {
|
|
display: inline-flex; align-items: center; gap: .38rem;
|
|
padding: .28rem .65rem;
|
|
background: rgba(255,255,255,.04);
|
|
border: 1px solid var(--border-2);
|
|
border-radius: calc(var(--r) - 1px);
|
|
font-family: 'Share Tech Mono', monospace;
|
|
font-size: .6rem; letter-spacing: .07em;
|
|
color: var(--text-3);
|
|
cursor: pointer; text-decoration: none;
|
|
transition: border-color .2s, color .2s, background .2s;
|
|
white-space: nowrap; min-height: 28px; line-height: 1;
|
|
background: none;
|
|
}
|
|
.btn-sm svg { flex-shrink: 0; }
|
|
.btn-sm:hover { border-color: var(--blue); color: var(--blue); background: rgba(0,200,255,.05); }
|
|
.btn-sm.btn-sm-green:hover { border-color: var(--green); color: var(--green); background: rgba(0,232,122,.05); }
|
|
|
|
/* ══════════════════════════════════════════════════════════════════════════
|
|
LOWER GRID
|
|
══════════════════════════════════════════════════════════════════════════ */
|
|
.lower-grid {
|
|
display: grid;
|
|
grid-template-columns: 1fr;
|
|
gap: 1rem;
|
|
}
|
|
@media (min-width: 640px) { .lower-grid { grid-template-columns: 1fr 1fr; } }
|
|
@media (min-width: 900px) { .lower-grid { grid-template-columns: 2fr 1fr 1fr; } }
|
|
|
|
/* shared card */
|
|
.card {
|
|
background: var(--surface);
|
|
border: 1px solid var(--border);
|
|
border-radius: calc(var(--r) + 2px);
|
|
padding: 1.4rem 1.5rem;
|
|
display: flex; flex-direction: column; gap: .9rem;
|
|
position: relative; overflow: hidden;
|
|
}
|
|
.card::after {
|
|
content: '';
|
|
position: absolute; bottom: -1px; right: -1px;
|
|
width: 14px; height: 14px;
|
|
border-bottom: 2px solid var(--purple);
|
|
border-right: 2px solid var(--purple);
|
|
border-radius: 0 0 calc(var(--r) + 2px) 0;
|
|
opacity: .5;
|
|
}
|
|
.card-title { font-size: .95rem; font-weight: 700; letter-spacing: -.01em; color: var(--text); line-height: 1.2; }
|
|
.card-body { font-size: .85rem; color: var(--text-2); line-height: 1.7; }
|
|
.card-body strong { color: var(--text); font-weight: 600; }
|
|
.card-body a {
|
|
color: var(--pat); text-decoration: none;
|
|
border-bottom: 1px solid rgba(255,66,77,.25); transition: border-color .15s;
|
|
}
|
|
.card-body a:hover { border-color: rgba(255,66,77,.6); }
|
|
|
|
/* Patreon support card */
|
|
.card-patreon { border-color: var(--pat-border); box-shadow: 0 0 30px rgba(255,66,77,.05); }
|
|
.card-patreon::before {
|
|
content: '';
|
|
position: absolute; top: 0; left: 0; right: 0; height: 2px;
|
|
background: linear-gradient(90deg,
|
|
var(--pat), var(--purple), var(--blue), var(--green),
|
|
var(--blue), var(--purple), var(--pat));
|
|
background-size: 300% 100%;
|
|
animation: shimmer 5s linear infinite;
|
|
}
|
|
.card-about { background: var(--surface-2); }
|
|
.card-social { background: var(--surface-2); }
|
|
|
|
/* Donate buttons */
|
|
.donate-stack { display: flex; flex-direction: column; gap: .55rem; }
|
|
.btn-donate {
|
|
display: flex; align-items: center; justify-content: center; gap: .55rem;
|
|
padding: .75rem 1.1rem; border-radius: var(--r);
|
|
font-family: 'Inter', sans-serif; font-size: .85rem; font-weight: 700; letter-spacing: .02em;
|
|
text-decoration: none; position: relative; overflow: hidden;
|
|
transition: transform .15s, filter .15s; min-height: 44px;
|
|
}
|
|
.btn-donate::before {
|
|
content: ''; position: absolute; inset: 0;
|
|
background: linear-gradient(180deg, rgba(255,255,255,.1) 0%, transparent 60%);
|
|
pointer-events: none;
|
|
}
|
|
.btn-donate:hover { transform: translateY(-1px); filter: brightness(1.08); }
|
|
.btn-donate:active { transform: scale(.98); filter: brightness(.96); }
|
|
.btn-patreon-donate {
|
|
background: var(--pat); color: #fff;
|
|
box-shadow: 0 0 0 1px rgba(255,255,255,.1) inset, 0 4px 18px rgba(255,66,77,.3);
|
|
animation: pulse-border 3s ease-in-out infinite;
|
|
}
|
|
.btn-libera { background: var(--libera); color: #1a1400; box-shadow: 0 4px 18px rgba(246,201,21,.2); }
|
|
.btn-paypal { background: var(--paypal); color: #fff; box-shadow: 0 4px 18px rgba(0,156,222,.2); }
|
|
|
|
/* Social list */
|
|
.social-list { list-style: none; display: flex; flex-direction: column; gap: .5rem; }
|
|
.social-list a {
|
|
display: flex; align-items: center; gap: .65rem;
|
|
padding: .6rem .8rem;
|
|
border: 1px solid var(--border-2); border-radius: var(--r);
|
|
font-family: 'Share Tech Mono', monospace; font-size: .78rem;
|
|
color: var(--text-2); text-decoration: none;
|
|
transition: border-color .2s, color .2s, background .2s;
|
|
}
|
|
.social-list a:hover { border-color: var(--green); color: var(--text); background: rgba(0,232,122,.04); }
|
|
.social-list a svg { flex-shrink: 0; color: var(--text-3); transition: color .2s; }
|
|
.social-list a:hover svg { color: var(--green); }
|
|
|
|
/* Page footer */
|
|
.page-footer {
|
|
padding: .5rem 0 1rem;
|
|
display: flex; align-items: center; justify-content: center;
|
|
gap: 1.5rem; flex-wrap: wrap;
|
|
border-top: 1px solid var(--border);
|
|
}
|
|
.footer-note {
|
|
font-family: 'Share Tech Mono', monospace;
|
|
font-size: .63rem; color: var(--text-3); letter-spacing: .06em; text-align: center;
|
|
}
|
|
.footer-note::before { content: '// '; opacity: .4; }
|
|
.footer-note a { color: var(--text-3); text-decoration: none; transition: color .15s; }
|
|
.footer-note a:hover { color: var(--text-2); }
|
|
</style>
|
|
</head>
|
|
|
|
<body>
|
|
<main class="page" role="main">
|
|
|
|
<!-- ── Top bar ──────────────────────────────────────────────────────────── -->
|
|
<header class="topbar">
|
|
<div class="topbar-brand">
|
|
<div>
|
|
<div class="brand-name">Ty Clifford</div>
|
|
<div class="brand-sub">tyclifford.com / live</div>
|
|
</div>
|
|
<div class="live-badge" aria-label="Live stream indicator">
|
|
<span class="live-dot" aria-hidden="true"></span>Live
|
|
</div>
|
|
</div>
|
|
|
|
<nav class="topbar-social" aria-label="Social links">
|
|
<a class="social-pill" href="https://github.com/snick512"
|
|
target="_blank" rel="noopener" aria-label="GitHub">
|
|
<svg width="13" height="13" viewBox="0 0 24 24" fill="none" stroke="currentColor"
|
|
stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
|
|
<path d="M9 19c-5 1.5-5-2.5-7-3m14 6v-3.87a3.37 3.37 0 0 0-.94-2.61
|
|
c3.14-.35 6.44-1.54 6.44-7A5.44 5.44 0 0 0 20 4.77
|
|
5.07 5.07 0 0 0 19.91 1S18.73.65 16 2.48a13.38 13.38 0 0 0-7
|
|
0C6.27.65 5.09 1 5.09 1A5.07 5.07 0 0 0 5 4.77a5.44 5.44 0 0
|
|
0-1.5 3.78c0 5.42 3.3 6.61 6.44 7A3.37 3.37 0 0 0 9 18.13V22"/>
|
|
</svg>GitHub
|
|
</a>
|
|
<a class="social-pill" href="mailto:ty@tyclifford.com" aria-label="Email Ty">
|
|
<svg width="13" height="13" viewBox="0 0 24 24" fill="none" stroke="currentColor"
|
|
stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
|
|
<rect x="2" y="4" width="20" height="16" rx="2"/>
|
|
<polyline points="2,4 12,13 22,4"/>
|
|
</svg>Email
|
|
</a>
|
|
</nav>
|
|
</header>
|
|
|
|
<!-- ══════════════════════════════════════════════════════════════════════
|
|
STREAM + CHAT ZONE
|
|
Mobile → stream on top, chat panel below (fixed height)
|
|
≥ 900px → stream fills left, chat sidebar pinned to right
|
|
═══════════════════════════════════════════════════════════════════════ -->
|
|
<section class="stream-zone" aria-label="Live stream and chat">
|
|
|
|
<!-- ── Stream column ──────────────────────────────────────────────────── -->
|
|
<div class="stream-col">
|
|
|
|
<!-- 16:9 ratio container — pure CSS, no JS resize -->
|
|
<div class="stream-ratio">
|
|
<iframe
|
|
src="https://stream.place/embed/tyclifford.com"
|
|
allowfullscreen
|
|
allow="autoplay; fullscreen"
|
|
title="Ty Clifford live stream"
|
|
></iframe>
|
|
</div>
|
|
|
|
<!-- bar: eyebrow + meta + open-in-new-tab -->
|
|
<div class="stream-bar">
|
|
<p class="eyebrow eyebrow-green">Members stream</p>
|
|
<div class="stream-bar-right">
|
|
<p class="stream-meta">stream.place / <span>tyclifford.com</span></p>
|
|
<!-- Opens the full stream page in a new tab — not a duplicate session -->
|
|
<a class="btn-sm btn-sm-green"
|
|
href="https://stream.place/embed/tyclifford.com"
|
|
target="_blank" rel="noopener"
|
|
aria-label="Open stream in new tab">
|
|
<svg width="11" height="11" viewBox="0 0 24 24" fill="none" stroke="currentColor"
|
|
stroke-width="2.2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
|
|
<path d="M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6"/>
|
|
<polyline points="15 3 21 3 21 9"/><line x1="10" y1="14" x2="21" y2="3"/>
|
|
</svg>
|
|
Open stream ↗
|
|
</a>
|
|
</div>
|
|
</div>
|
|
</div><!-- /stream-col -->
|
|
|
|
<!-- ── Chat column ────────────────────────────────────────────────────── -->
|
|
<div class="chat-col" id="chatCol">
|
|
|
|
<!-- chat top bar -->
|
|
<div class="chat-bar">
|
|
<p class="eyebrow eyebrow-blue">Live Chat</p>
|
|
<div class="chat-bar-actions">
|
|
|
|
<!-- Pop-out button (visible when embedded) -->
|
|
<button class="btn-sm" id="btnPopout" onclick="popoutChat()"
|
|
aria-label="Open chat in a separate window" title="Pop chat out">
|
|
<svg width="11" height="11" viewBox="0 0 24 24" fill="none" stroke="currentColor"
|
|
stroke-width="2.2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
|
|
<polyline points="15 3 21 3 21 9"/>
|
|
<line x1="10" y1="14" x2="21" y2="3"/>
|
|
<polyline points="9 21 3 21 3 15"/>
|
|
<line x1="14" y1="10" x2="3" y2="21"/>
|
|
</svg>
|
|
Pop out
|
|
</button>
|
|
|
|
<!-- Re-embed button (visible when popped out) -->
|
|
<button class="btn-sm" id="btnReembed" style="display:none"
|
|
onclick="reembedChat()"
|
|
aria-label="Re-embed chat here" title="Re-embed chat">
|
|
<svg width="11" height="11" viewBox="0 0 24 24" fill="none" stroke="currentColor"
|
|
stroke-width="2.2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
|
|
<polyline points="1 4 1 10 7 10"/>
|
|
<path d="M3.51 15a9 9 0 1 0 .49-4"/>
|
|
</svg>
|
|
Re-embed
|
|
</button>
|
|
|
|
</div>
|
|
</div>
|
|
|
|
<!-- live iframe (src set via JS on init to allow clean src-clearing on popout) -->
|
|
<div class="chat-embed" id="chatEmbed">
|
|
<iframe id="chatIframe" title="Live chat" allow="autoplay"></iframe>
|
|
</div>
|
|
|
|
<!-- placeholder shown while chat is in its own window -->
|
|
<div class="chat-placeholder" id="chatPlaceholder" aria-live="polite">
|
|
<div class="ph-icon" aria-hidden="true">
|
|
<svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor"
|
|
stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
|
|
<path d="M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z"/>
|
|
</svg>
|
|
</div>
|
|
<p class="ph-title">Chat is in a separate window</p>
|
|
<p class="ph-sub">
|
|
Keep that window alongside your stream.<br>
|
|
Click <strong>Re-embed</strong> to bring chat back here.
|
|
</p>
|
|
</div>
|
|
|
|
</div><!-- /chat-col -->
|
|
|
|
</section>
|
|
|
|
<!-- ── Lower grid ──────────────────────────────────────────────────────── -->
|
|
<div class="lower-grid">
|
|
|
|
<!-- Support card -->
|
|
<div class="card card-patreon">
|
|
<div>
|
|
<p class="eyebrow eyebrow-green" style="margin-bottom:.35rem">Support the stream</p>
|
|
<h2 class="card-title">Hobbies are my hobby.</h2>
|
|
</div>
|
|
<p class="card-body">
|
|
If you're enjoying the stream, consider throwing a few bucks in the jar.
|
|
<strong>Patreon</strong> members keep this going — even a free membership helps.
|
|
You can also tip once via Liberapay or PayPal, no account needed.
|
|
</p>
|
|
<div class="donate-stack">
|
|
|
|
<a class="btn-donate btn-patreon-donate"
|
|
href="https://go.tyclifford.com/patreon"
|
|
target="_blank" rel="noopener noreferrer" aria-label="Become a Patreon supporter">
|
|
<svg width="12" height="14" viewBox="0 0 12 14" fill="white" aria-hidden="true">
|
|
<ellipse cx="7.5" cy="4.8" rx="4.5" ry="4.5"/>
|
|
<rect x="0" y="0" width="2.8" height="14" rx="1.2"/>
|
|
</svg>Become a Patron
|
|
</a>
|
|
|
|
<a class="btn-donate btn-libera"
|
|
href="https://go.tyclifford.com/liberapay"
|
|
target="_blank" rel="noopener noreferrer" aria-label="Support via Liberapay">
|
|
<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor"
|
|
stroke-width="2.2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
|
|
<path d="M12 2L2 7l10 5 10-5-10-5z"/>
|
|
<path d="M2 17l10 5 10-5"/><path d="M2 12l10 5 10-5"/>
|
|
</svg>Donate via Liberapay
|
|
</a>
|
|
|
|
<a class="btn-donate btn-paypal"
|
|
href="https://www.paypal.com/donate/?hosted_button_id=ZDJ9TXPPMNZ6U"
|
|
target="_blank" rel="noopener noreferrer" aria-label="Donate via PayPal">
|
|
<svg width="13" height="15" viewBox="0 0 24 28" fill="white" aria-hidden="true">
|
|
<path d="M7.8 27H3.5L6.3 9.5h7.6c3.1 0 5.3.7 6.4 2 1.1 1.3 1.3 3 .5 5.1
|
|
-.9 2.4-2.4 4.2-4.5 5.3-2 1-4.5 1.5-7.3 1.5H7l-.8 3.6zm1.1-6.5
|
|
h1.6c1.5 0 2.8-.3 3.8-.9 1-.6 1.7-1.5 2.1-2.7.4-1.2.2-2-.5-2.6
|
|
-.7-.5-1.9-.8-3.6-.8H10L8.9 20.5z"/>
|
|
</svg>Donate via PayPal
|
|
</a>
|
|
|
|
</div>
|
|
</div>
|
|
|
|
<!-- About card -->
|
|
<div class="card card-about">
|
|
<p class="eyebrow eyebrow-green" style="margin-bottom:.1rem">About</p>
|
|
<h2 class="card-title">Ty Clifford</h2>
|
|
<p class="card-body">
|
|
Based in <strong>Keyser, West Virginia</strong>. Nerd, tinkerer, and
|
|
creator. Hobbies are my hobby — from tech and podcasting to whatever
|
|
rabbit hole I fell into this week.
|
|
<br><br>
|
|
Follow along on
|
|
<a href="https://go.tyclifford.com/patreon" target="_blank" rel="noopener">Patreon</a>
|
|
and join the conversation.
|
|
</p>
|
|
</div>
|
|
|
|
<!-- Social card -->
|
|
<div class="card card-social">
|
|
<p class="eyebrow eyebrow-green" style="margin-bottom:.1rem">Links</p>
|
|
<h2 class="card-title">Find me online</h2>
|
|
<ul class="social-list" aria-label="Social media links">
|
|
<li>
|
|
<a href="https://github.com/snick512" target="_blank" rel="noopener">
|
|
<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor"
|
|
stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
|
|
<path d="M9 19c-5 1.5-5-2.5-7-3m14 6v-3.87a3.37 3.37 0 0 0-.94-2.61
|
|
c3.14-.35 6.44-1.54 6.44-7A5.44 5.44 0 0 0 20 4.77 5.07 5.07
|
|
0 0 0 19.91 1S18.73.65 16 2.48a13.38 13.38 0 0 0-7 0C6.27.65
|
|
5.09 1 5.09 1A5.07 5.07 0 0 0 5 4.77a5.44 5.44 0 0 0-1.5
|
|
3.78c0 5.42 3.3 6.61 6.44 7A3.37 3.37 0 0 0 9 18.13V22"/>
|
|
</svg>github.com/snick512
|
|
</a>
|
|
</li>
|
|
<li>
|
|
<a href="mailto:ty@tyclifford.com">
|
|
<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor"
|
|
stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
|
|
<rect x="2" y="4" width="20" height="16" rx="2"/>
|
|
<polyline points="2,4 12,13 22,4"/>
|
|
</svg>ty@tyclifford.com
|
|
</a>
|
|
</li>
|
|
<li>
|
|
<a href="https://go.tyclifford.com/patreon" target="_blank" rel="noopener">
|
|
<svg width="14" height="14" viewBox="0 0 12 14" fill="currentColor" aria-hidden="true">
|
|
<ellipse cx="7.5" cy="4.8" rx="4.5" ry="4.5"/>
|
|
<rect x="0" y="0" width="2.8" height="14" rx="1.2"/>
|
|
</svg>patreon.com/tyclifford
|
|
</a>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
|
|
</div><!-- /lower-grid -->
|
|
|
|
<!-- ── Footer ───────────────────────────────────────────────────────────── -->
|
|
<footer class="page-footer" role="contentinfo">
|
|
<p class="footer-note">TyClifford.com · members area</p>
|
|
<p class="footer-note">hobbies are my hobby</p>
|
|
<p class="footer-note"><a href="mailto:ty@tyclifford.com">ty@tyclifford.com</a></p>
|
|
</footer>
|
|
|
|
</main>
|
|
|
|
<script>
|
|
/* ═══════════════════════════════════════════════════════════════════════════
|
|
Chat pop-out / re-embed controller
|
|
═══════════════════════════════════════════════════════════════════════════
|
|
|
|
Goals:
|
|
1. Embed the chat iframe by default.
|
|
2. "Pop out" opens the chat URL in a small named popup window, then
|
|
CLEARS the iframe src to eliminate the embedded session — no duplicate.
|
|
3. "Re-embed" closes the popup (if still open) and restores the iframe.
|
|
4. If the user manually closes the popup, a watcher auto-restores the embed.
|
|
5. sessionStorage preserves state across soft navigations in the same tab;
|
|
a hard reload always starts embedded (clean state).
|
|
|
|
No libraries. ~60 lines of vanilla JS.
|
|
═══════════════════════════════════════════════════════════════════════════ */
|
|
(function () {
|
|
var CHAT_SRC = 'https://stream.place/chat-popout/did:plc:wdolp7qjekv5jqgz7h2r5peb';
|
|
var STORE_KEY = 'tcChat_popped';
|
|
var POPUP_NAME = 'tcChatWin';
|
|
var POPUP_OPTS = 'width=400,height=680,resizable=yes,scrollbars=yes,toolbar=no,menubar=no,location=no,status=no';
|
|
|
|
var iframe = document.getElementById('chatIframe');
|
|
var embedWrap = document.getElementById('chatEmbed');
|
|
var placeholder = document.getElementById('chatPlaceholder');
|
|
var btnPopout = document.getElementById('btnPopout');
|
|
var btnReembed = document.getElementById('btnReembed');
|
|
|
|
var popupWin = null;
|
|
var watchTimer = null;
|
|
|
|
/* ── Render helpers ─────────────────────────────────────────────────── */
|
|
function showEmbed() {
|
|
iframe.src = CHAT_SRC;
|
|
embedWrap.classList.remove('hidden');
|
|
placeholder.classList.remove('visible');
|
|
btnPopout.style.display = '';
|
|
btnReembed.style.display = 'none';
|
|
}
|
|
|
|
function showPlaceholder() {
|
|
iframe.src = ''; // kill connection → no duplicate session
|
|
embedWrap.classList.add('hidden');
|
|
placeholder.classList.add('visible');
|
|
btnPopout.style.display = 'none';
|
|
btnReembed.style.display = '';
|
|
}
|
|
|
|
/* ── Popup watcher — auto-restore if user closes the window ─────────── */
|
|
function startWatcher() {
|
|
clearInterval(watchTimer);
|
|
watchTimer = setInterval(function () {
|
|
if (popupWin && popupWin.closed) {
|
|
stopWatcher();
|
|
sessionStorage.removeItem(STORE_KEY);
|
|
showEmbed();
|
|
}
|
|
}, 600);
|
|
}
|
|
|
|
function stopWatcher() {
|
|
clearInterval(watchTimer);
|
|
watchTimer = null;
|
|
}
|
|
|
|
/* ── Public actions (called from onclick) ───────────────────────────── */
|
|
window.popoutChat = function () {
|
|
popupWin = window.open(CHAT_SRC, POPUP_NAME, POPUP_OPTS);
|
|
|
|
if (!popupWin || popupWin.closed) {
|
|
// Popup was blocked — fall back gracefully; leave embed in place
|
|
alert('Popup was blocked.\nPlease allow popups for this site and try again.');
|
|
return;
|
|
}
|
|
|
|
sessionStorage.setItem(STORE_KEY, '1');
|
|
showPlaceholder();
|
|
startWatcher();
|
|
};
|
|
|
|
window.reembedChat = function () {
|
|
stopWatcher();
|
|
if (popupWin && !popupWin.closed) { popupWin.close(); }
|
|
popupWin = null;
|
|
sessionStorage.removeItem(STORE_KEY);
|
|
showEmbed();
|
|
};
|
|
|
|
/* ── Init ───────────────────────────────────────────────────────────── */
|
|
// If this tab session had chat popped (e.g. soft nav back), restore that state.
|
|
// On a hard reload sessionStorage is cleared → always start embedded.
|
|
if (sessionStorage.getItem(STORE_KEY)) {
|
|
showPlaceholder();
|
|
startWatcher(); // still watch in case popup was already open
|
|
} else {
|
|
showEmbed(); // default: embed is live
|
|
}
|
|
})();
|
|
</script>
|
|
|
|
</body>
|
|
</html>
|