PageSourceSearch

https://demotelemed.lovable.app/assets/BlogPost-BwNGa9R3.js

js demotelemed.lovable.app collected 2026-10-03 03:25:30 UTC 5,540 bytes, 6 lines download raw bytes

1import{c as p,s as g,j as e,L as r}from"./index-42OYDF60.js";import{L as h}from"./Layout-CvY-dOeA.js";import{S as u}from"./Seo-BfVVQ8bP.js";import{B as o}from"./button-EfpS49lo.js";import{u as f,b as n}from"./useBlogData-D02xMxDM.js";import{A as j}from"./arrow-left-CkhdDJ-x.js";import{S as y}from"./sparkles-CVmnDczg.js";import{C as N}from"./calendar-D6MUKLwk.js";import{C as w}from"./clock-DQFeazs3.js";import"./phone-CUz94ybs.js";import"./menu-CkpBHtij.js";import"./mail-T8cR2-w0.js";import"./dialog-BPqr1XfL.js";import"./trash-2-B3_ksNI2.js";import"./minus-LiessKcH.js";import"./plus-UlO-Lz9K.js";import"./usePageSeo-BJOptz5i.js";/**
2 * @license lucide-react v0.462.0 - ISC
3 *
4 * This source code is licensed under the ISC license.
5 * See the LICENSE file in the root directory of this source tree.
6 */const b=p("Share2",[["circle",{cx:"18",cy:"5",r:"3",key:"gq8acd"}],["circle",{cx:"6",cy:"12",r:"3",key:"w7nqdw"}],["circle",{cx:"18",cy:"19",r:"3",key:"1xt0gg"}],["line",{x1:"8.59",x2:"15.42",y1:"13.51",y2:"17.49",key:"47mynk"}],["line",{x1:"15.41",x2:"8.59",y1:"6.51",y2:"10.49",key:"1n3mei"}]]),F=()=>{const{slug:c}=g(),{data:l=n}=f(),s=l.find(t=>t.slug===c)??l[0]??n[0],i=l.filter(t=>t.slug!==s.slug).slice(0,3),d=()=>{var t;navigator.share?navigator.share({title:s.title,url:window.location.href}).catch(()=>{}):(t=navigator.clipboard)==null||t.writeText(window.location.href)};return e.jsxs(h,{children:[e.jsx(u,{title:`${s.title} — Dr. Sohag Blog`,description:s.excerpt||s.title,path:`/blog/${s.slug}`,image:s.image,type:"article",jsonLd:{"@context":"https://schema.org","@type":"Article",headline:s.title,image:[s.image],datePublished:s.date,author:{"@type":"Person",name:"Dr. Sohag"},publisher:{"@type":"Organization",name:"Telemedicine by Dr. Sohag",logo:{"@type":"ImageObject",url:"https://demotelemed.lovable.app/favicon.png"}},mainEntityOfPage:`https://demotelemed.lovable.app/blog/${s.slug}`}}),e.jsxs("article",{className:"container max-w-3xl mx-auto px-4 py-10",children:[e.jsxs(r,{to:"/blog",className:"inline-flex items-center gap-2 text-sm text-muted-foreground hover:text-primary-glow transition-fast mb-6",children:[e.jsx(j,{className:"h-4 w-4"})," Back to Blog"]}),e.jsxs("header",{className:"space-y-4 animate-fade-in-up",children:[e.jsxs("div",{className:"inline-flex items-center gap-2 rounded-full glass px-3 py-1 text-[11px] font-bold text-accent-glow uppercase tracking-wider",children:[e.jsx(y,{className:"h-3 w-3"})," ",s.category]}),e.jsx("h1",{className:"text-3xl md:text-5xl font-extrabold tracking-tight leading-tight text-balance",children:e.jsx("span",{className:"gradient-hero-text",children:s.title})}),e.jsxs("div",{className:"flex flex-wrap items-center gap-4 text-sm text-muted-foreground",children:[e.jsxs("span",{className:"inline-flex items-center gap-1.5",children:[e.jsx(N,{className:"h-3.5 w-3.5"})," ",s.date]}),e.jsxs("span",{className:"inline-flex items-center gap-1.5",children:[e.jsx(w,{className:"h-3.5 w-3.5"})," ",s.read," read"]})]})]}),e.jsx("div",{className:"mt-8 rounded-3xl overflow-hidden aspect-[16/9] glass-card bg-secondary",children:e.jsx("img",{src:s.image,alt:s.title,className:"h-full w-full object-cover"})}),e.jsx("div",{className:"mt-10 space-y-6 text-base md:text-lg leading-relaxed text-foreground/90",children:s.body.map((t,a)=>t.type==="h"?e.jsx("h2",{className:"text-2xl md:text-3xl font-extrabold pt-4 text-balance",children:e.jsx("span",{className:"gradient-hero-text",children:t.text})},a):t.type==="p"?e.jsx("p",{className:"text-balance",children:t.text},a):t.type==="img"?e.jsx("div",{className:"rounded-2xl overflow-hidden glass-card my-6",children:e.jsx("img",{src:t.src,alt:t.alt??"",loading:"lazy",className:"w-full h-auto"})},a):t.type==="quote"?e.jsxs("blockquote",{className:"border-l-4 border-primary-glow/60 pl-5 py-2 italic font-serif text-xl md:text-2xl text-foreground/95",children:[e.jsx("p",{children:t.text}),t.cite&&e.jsxs("cite",{className:"block mt-2 text-sm not-italic font-sans text-accent-glow",children:["— ",t.cite]})]},a):t.type==="list"?e.jsx("ul",{className:"space-y-2.5 pl-1",children:t.items.map((m,x)=>e.jsx("li",{className:"glass rounded-xl px-4 py-3 text-base leading-snug",children:m},x))},a):null)}),e.jsxs("div",{className:"mt-12 flex flex-wrap items-center justify-between gap-4 border-t border-border/40 pt-6",children:[e.jsx(o,{asChild:!0,className:"gradient-primary rounded-xl font-bold",children:e.jsx(r,{to:"/appointment",children:"Appointment নিন"})}),e.jsxs(o,{variant:"outline",className:"rounded-xl glass",onClick:d,children:[e.jsx(b,{className:"h-4 w-4"})," Share"]})]}),i.length>0&&e.jsxs("section",{className:"mt-16",children:[e.jsx("h3",{className:"text-2xl font-extrabold mb-6",children:e.jsx("span",{className:"gradient-hero-text",children:"Related Posts"})}),e.jsx("div",{className:"grid gap-5 sm:grid-cols-3",children:i.map(t=>e.jsxs(r,{to:`/blog/${t.slug}`,className:"group glass-card rounded-2xl overflow-hidden transition-smooth hover:-translate-y-1 hover:shadow-glow",children:[e.jsx("div",{className:"aspect-[16/10] overflow-hidden bg-secondary",children:e.jsx("img",{src:t.image,alt:t.title,loading:"lazy",className:"h-full w-full object-cover group-hover:scale-110 transition-smooth"})}),e.jsxs("div",{className:"p-4",children:[e.jsx("h4",{className:"text-sm font-bold leading-snug line-clamp-2 group-hover:text-primary-glow transition-fast",children:t.title}),e.jsx("p",{className:"text-xs text-muted-foreground mt-1",children:t.date})]})]},t.slug))})]})]})]})};export{F 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.