1import{r as o,j as t,S as u,b as f,L as p}from"./index-Bdt8aMLp.js";import{s as g}from"./supabaseClient-Bf5OdVgD.js";const m="blog-images",s=[{id:"fallback-1",img:"/redesign/fig-blog-1.png",alt:"Date night at Silent H",title:"Date Night Restaurants in Toronto that Let You Worry About the Connection and Not the Experience",href:"/blogs"},{id:"fallback-2",img:"/redesign/fig-blog-2.png",alt:"Happy hour drinks and food",title:"Happy Hour in Downtown Toronto: Where to Go After Work",href:"/blogs"},{id:"fallback-3",img:"/redesign/fig-blog-3.png",alt:"Silent H restaurant interior",title:"Inside Silent H: Modern Mexican on King West",href:"/blogs"},{id:"fallback-4",img:"/redesign/fig-blog-4.png",alt:"Private dining room at Silent H",title:"Private Dining in Toronto: Where to Host Your Next Event",href:"/blogs"}];function x(e){return/^https?:\/\//i.test(e)}function b(e){return/^https?:\/\//i.test(e)}function w(e){if(!e)return"/placeholder.jpg";const i=String(e).trim();if(x(i)&&!i.includes("YOUR_PROJECT_ID"))return i;const n=i.replace(/^\/+/,"").replace(/^.*\/blog-images\//,""),{data:a}=g.storage.from(m).getPublicUrl(n);return a?.publicUrl||"/placeholder.jpg"}function y(e){return e.href?e.href:e.slug?`/blogs/${e.slug}`:"/blogs"}function j(e){return{id:e.id,img:w(e.image_url),alt:e.alt_text||e.title||"Silent H blog post",title:e.title||"Untitled story",href:y(e)}}function k({href:e,children:i}){return b(e)?t.jsx("a",{href:e,target:"_blank",rel:"noopener noreferrer",children:i}):t.jsx(p,{to:e,children:i})}function v({img:e,alt:i,title:n,href:a}){return t.jsx(k,{href:a,children:t.jsxs("div",{className:"flex flex-col gap-8 cursor-pointer group",children:[t.jsx("div",{className:"relative overflow-hidden rounded-[4px] aspect-square",children:t.jsx("img",{src:e,alt:i,loading:"lazy",width:"600",height:"600",className:"absolute inset-0 w-full h-full object-cover transition-transform duration-500 group-hover:scale-105"})}),t.jsx("h2",{className:"leading-[1.2] text-[#0b0b0b] text-[22px] tracking-[3.3px]",style:{fontFamily:"'Monoglyphic', sans-serif",fontStyle:"normal"},children:n})]})})}function S(e){const i=e.filter(n=>n.href&&n.href.startsWith("/blogs/"));return i.length===0?null:{"@context":"https://schema.org","@type":"Blog","@id":"https://www.silenth.ca/blogs",name:"Silent H Blog",url:"https://www.silenth.ca/blogs",description:"Guides to eating and drinking in Toronto from Silent H, a modern Mexican restaurant and tequila bar on King West.",publisher:{"@type":"Organization",name:"Silent H",url:"https://www.silenth.ca/"},blogPost:i.map(n=>({"@type":"BlogPosting",headline:n.title,url:"https://www.silenth.ca"+n.href,image:n.img}))}}function N(){const[e,i]=o.useState(s),[n,a]=o.useState(!0);return o.useEffect(()=>{let r=!1;async function d(){const{data:h,error:l}=await g.from("blog_posts").select("id,title,image_url,href,slug,published_at,created_at,sort_order,status").eq("status","published").order("sort_order",{ascending:!0}).order("published_at",{ascending:!1});if(r)return;if(l){console.error("[BlogsPage] Failed to load blog posts:",l),i(s),a(!1);return}const c=(h??[]).map(j);i(c.length?c:s),a(!1)}return d(),()=>{r=!0}},[]),t.jsxs(t.Fragment,{children:[t.jsx(u,{title:"Silent H Blog | Mexican Food & Cocktails in Toronto",description:"The Silent H blog: guides to Mexican food, tacos, tequila and mezcal, cocktails, happy hour and dining out on King West, Toronto.",url:"https://www.silenth.ca/blogs",jsonLd:[f("Blog","https://www.silenth.ca/blogs"),S(e)].filter(Boolean)}),t.jsxs("div",{className:"pt-20 bg-[#ece1d4] min-h-screen w-full",children:[t.jsxs("header",{className:"w-full flex flex-col items-center gap-8 pt-[100px] pb-16 px-6 text-center",children:[t.jsx("h1",{className:"text-[#0b0b0b] text-[clamp(28px,3.5vw,40px)] tracking-[4px] uppercase leading-none",style:{fontFamily:"'Monoglyphic', sans-serif",fontWeight:700},children:"Guides to Eating and Drinking in Toronto"}),t.jsxs("div",{className:"max-w-5xl w-full flex flex-col gap-4 text-left leading-[1.7] text-[#0b0b0b] text-[20px]",children:[t.jsx("p",{children:"Silent H is a modern Mexican restaurant and tequila bar at 461 King Street West, and this is where we write things down. Some of it is about Toronto: where to eat late, which bars are worth the walk, what is actually open when a show comes out. Some of it is about the food and drink we work with every day, from how al pastor is made to what separates tequila from mezcal."}),t.jsx("p",{children:"Broadly the writing falls into three groups. Neighbourhood and dining guides cover where to eat and drink across the city, from King West and the Theatre District to the late-night kitchens most lists get wrong. Cocktail and agave guides cover tequila, mezcal and the drinks built on them. Food guides cover Mexican cooking itself, from the taco fillings up."}),t.jsx("p",{children:"Every venue we name in a city guide was checked against a live source before publication, because Toronto loses restaurants faster than most guides get updated. Where hours or details could not be verified, we say so rather than guess."}),t.jsx("p",{children:"We write these because we get asked. Guests w
1ant to know what else is good on King West, which mezcal to try, where to go after dinner. Rather than answer once across a table, we answer properly here. Everything is written by the Silent H team, and where we mention our own room we say so plainly."})]}),t.jsx("p",{className:"text-[#0b0b0b] text-[clamp(16px,1.8vw,22px)] tracking-[2.2px] leading-[1.2] max-w-2xl",style:{fontFamily:"'NeueBit', sans-serif",fontWeight:400},children:"A closer look at the flavours, culture, and experiences behind Silent H."})]}),t.jsx("main",{className:"max-w-[1140px] mx-auto px-6 pb-24",children:t.jsx("div",{className:`grid grid-cols-1 sm:grid-cols-2 gap-x-8 gap-y-16 transition-opacity duration-300 ${n?"opacity-80":"opacity-100"}`,children:e.map(r=>t.jsx(v,{...r},r.id??r.title))})})]})]})}export{N 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.