PageSourceSearch

https://hyrstudio.com/assets/platform-hub-DY-Ygkxe.js

js hyrstudio.com collected 2026-10-04 07:23:39 UTC 4,957 bytes, 1 lines download raw bytes

1import{u as t}from"./vendor-preact-DyVyoCsY.js";import{u as f}from"./app-router-3fgp5Yug.js";import{u as y}from"./vendor-query-CPpW4mRp.js";import{m as l}from"./light-motion-BsxQ29Qa.js";import{B as m}from"./button-K-_7cH59.js";import{D as s}from"./dark-layout-yBUqxlay.js";import{B as x}from"./breadcrumbs-mSvEKoWS.js";import{g}from"./platform-links-CyaIIU21.js";import{m as b,A as c,L as N}from"./vendor-lucide-1RNSv2nF.js";import"./index-j7-7WZEx.js";import"./vendor-radix-ChNkV0Ow.js";import"./utils-CBfrqCZ4.js";import"./dark-footer-CA0xZBhI.js";import"./bootstrap-BvTIGXY8.js";function w(o){return o.charAt(0).toUpperCase()+o.slice(1)}function d(o){return o.split("-").map(w).join(" ")}function D(){const[,o]=f("/platforms/:platformId"),a=o?.platformId,{data:i=[],isLoading:n,error:p}=y({queryKey:["/api/platforms/by-platform-id",a],queryFn:async()=>{const e=await fetch(`/api/platforms/by-platform-id/${a}`);if(!e.ok)throw new Error("Failed to fetch platforms");return e.json()},enabled:!!a}),r=i[0]?.platformId?d(i[0].platformId):a?d(a):"",h={"@context":"https://schema.org","@type":"CollectionPage",name:`${r} Content Tools | HYR Studio`,description:`Browse all ${r} content types you can create with HYR Studio's AI-powered marketing automation.`,url:`https://hyrstudio.com/platforms/${a}`,breadcrumb:{"@type":"BreadcrumbList",itemListElement:[{"@type":"ListItem",position:1,name:"Home",item:"https://hyrstudio.com"},{"@type":"ListItem",position:2,name:"Create",item:"https://hyrstudio.com"},{"@type":"ListItem",position:3,name:`${r} Content`,item:`https://hyrstudio.com/platforms/${a}`}]}};return n?t(s,{children:t("div",{className:"container mx-auto px-4 py-24",children:t("div",{className:"max-w-4xl mx-auto animate-pulse",children:[t("div",{className:"h-8 bg-gray-200 rounded w-1/3 mb-4"}),t("div",{className:"h-12 bg-gray-200 rounded w-2/3 mb-6"}),t("div",{className:"grid md:grid-cols-2 lg:grid-cols-3 gap-4 mt-10",children:[...Array(6)].map((e,u)=>t("div",{className:"h-24 bg-gray-200 rounded-xl"},u))})]})})}):p||!n&&i.length===0?t(s,{children:t("div",{className:"container mx-auto px-4 py-24 text-center",children:[t("h1",{className:"text-3xl font-bold text-gray-900 mb-4",children:"Platform Not Found"}),t("p",{className:"text-gray-600 mb-8",children:"No content pages found for this platform."}),t("a",{href:"/",children:t(m,{children:[t(b,{className:"mr-2 h-4 w-4"})," Back to Home"]})})]})}):t(s,{children:[t("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify(h)}}),t("div",{className:"pt-20 pb-16",children:t("div",{className:"container mx-auto px-4",children:[t(x,{items:[{label:"Home",href:"/"},{label:"Create",href:"/"},{label:`${r} Content`,href:`/platforms/${a}`}]}),t(l.section,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.5},className:"max-w-4xl mx-auto text-center mb-16",children:[t("span",{className:"inline-block px-4 py-1.5 bg-primary/10 text-primary rounded-full text-sm font-medium mb-6",children:[r," Content Hub"]}),t("h1",{className:"text-4xl md:text-5xl font-bold text-gray-900 mb-6","data-testid":"text-platform-hub-title",children:["All ",r," Content Types"]}),t("p",{className:"text-xl text-gray-600 mb-8 max-w-2xl mx-auto","data-testid":"text-platform-hub-description",children:["Browse every ",r," content type HYR Studio can generate for you — from carousels and infographics to quote cards and short-form posts, all in your brand style."]}),t("div",{className:"flex flex-col sm:flex-row gap-4 justify-center",children:t("a",{href:"https://app.hyrstudio.com",target:"_blank",rel:"noopener noreferrer",children:t(m,{size:"lg",className:"gap-2","data-testid":"button-hub-cta",children:["Start Creating ",t(c,{className:"h-4 w-4"})]})})})]}),t(l.section,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.5,delay:.2},className:"max-w-5xl mx-auto",children:[t("div",{className:"flex items-center gap-2 mb-6",children:[t(N,{className:"h-5 w-5 text-primary"}),t("h2",{className:"text-xl font-semibold text-gray-900",children:[i.length," ",r," Content Type",i.length!==1?"s":""]})]}),t("div",{className:"grid md:grid-cols-2 lg:grid-cols-3 gap-4",children:i.map(e=>t("a",{href:g(e.slug),className:"bg-white border border-gray-200 rounded-xl p-5 hover:shadow-lg hover:border-primary/30 transition-all group","data-testid":`card-platform-${e.slug}`,children:[t("div",{className:"flex items-start justify-between gap-2",children:[t("div",{children:[t("h3",{className:"font-semibold text-gray-900 group-hover:text-primary transition-colors mb-1",children:e.name}),e.tagline&&t("p",{className:"text-sm text-gray-500 line-clamp-2",children:e.tagline})]}),t(c,{className:"h-4 w-4 text-gray-400 group-hover:text-primary transition-colors shrink-0 mt-1"})]}),e.contentType&&t("span",{className:"inline-block mt-3 text-xs px-2 py-0.5 bg-primary/10 text-primary rounded-full",children:e.contentType})]},e.id))})]})]})})]})}export{D as default};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.