/* ============================================================
Webinar page — "Бесплатный вебинар"
A focused landing: a faux YouTube-channel SCREEN (browser
window → channel header → featured webinar player) and a
single primary CTA — «Записаться на курс».
Monochrome brand + one accent: YouTube red.
Reuses ui.jsx (Label, Pill, Smoke) and Subpage.jsx chrome.
============================================================ */
const WB_RED = "#FF0000";
/* red YouTube play-button mark */
function WbMark({ size = 20 }) {
return (
);
}
/* round red play button overlaid on the player */
function WbPlay({ size = 96 }) {
return (
);
}
/* small channel-grid thumbnail */
function MiniThumb({ variant, duration, title }) {
const bgs = {
a: "linear-gradient(135deg, #cfcfca, #f4f4f2 55%, #e2e2dd)",
b: "radial-gradient(120% 90% at 70% 22%, #ffffff 0%, #e6e6e2 45%, #c9c9c4 100%)",
c: "linear-gradient(220deg, #d6d6d1, #f2f2ef 60%, #dcdcd7)",
};
return (
);
}
/* faux YouTube-channel screen inside a browser window */
function ChannelScreen() {
const { t } = useT();
const tabs = t("webinar.tabs");
const mini = t("webinar.mini");
return (
{/* browser chrome */}
youtube.com/@ALEKSEY_LOBOV_STUDIO
{/* channel banner */}
{t("brandUpper")}
{t("webinar.channelTagline")}
{/* channel header */}
{t("brand")}
@alekseylobov
{t("webinar.subscribers")}
{t("webinar.videosCount")}
{/* channel tabs */}
{tabs.map((tb, i) => {
const on = i === 0;
return (
{tb}
{on && }
);
})}
{/* featured webinar player */}
{t("webinar.featTag")}
1:32:40
{t("webinar.featTitle")}
{t("webinar.featMeta")}
);
}
function WebinarPage() {
const { t } = useT();
React.useEffect(() => { if (window.lucide) lucide.createIcons(); });
const wrap = { maxWidth: 1180, margin: "0 auto", padding: "0 28px" };
return (
{/* eyebrow + breadcrumb */}
{/* headline block */}
{t("webinar.title1")}
{t("webinar.title2")}
{t("webinar.sub")}
{/* the channel screen */}
{/* CTA band */}
{t("webinar.ctaTitle")}
window.open((window.CHANNELS && window.CHANNELS.youtube) || "#", "_blank", "noopener")}>{t("webinar.watchYoutube")}
{ window.location.href = "course.html#enroll"; }}>{t("common.enroll")}
);
}
Object.assign(window, { WebinarPage });