import { c as createComponent, d as renderComponent, r as renderTemplate, b as createAstro, m as maybeRenderHead } from '../chunks/astro/server_DrnzQWw3.mjs';
import 'kleur/colors';
import { $ as $$BaseLayout } from '../chunks/BaseLayout_Bc2tHXHa.mjs';
import { g as getStaticPageBySlug } from '../chunks/cms_CRTVymfB.mjs';
export { renderers } from '../renderers.mjs';

const $$Astro = createAstro();
const $$page = createComponent(($$result, $$props, $$slots) => {
  const Astro2 = $$result.createAstro($$Astro, $$props, $$slots);
  Astro2.self = $$page;
  const page = getStaticPageBySlug(Astro2.params.page ?? "");
  if (!page) {
    return Astro2.redirect("/");
  }
  return renderTemplate`${renderComponent($$result, "BaseLayout", $$BaseLayout, { "title": `${page.title} | \u0631\u0648\u0633 \u0627\u0645\u0631\u0648\u0632`, "description": page.description }, { "default": ($$result2) => renderTemplate` ${maybeRenderHead()}<main class="max-w-4xl mx-auto px-4 lg:px-8 py-8"> <article class="bg-white rounded-2xl shadow-sm p-5 sm:p-8"> <span class="text-brand text-sm font-bold">روس امروز</span> <h1 class="text-2xl sm:text-4xl font-black leading-snug mt-2">${page.title}</h1> <p class="text-gray-500 leading-relaxed mt-4">${page.description}</p> <div class="space-y-5 text-gray-700 leading-8 text-base border-t border-gray-100 mt-6 pt-6"> ${page.body.map((paragraph) => renderTemplate`<p>${paragraph}</p>`)} </div> </article> </main> ` })}`;
}, "/Users/drfelfel/ruseemrooz/src/pages/[page].astro", void 0);

const $$file = "/Users/drfelfel/ruseemrooz/src/pages/[page].astro";
const $$url = "/[page]";

const _page = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
  __proto__: null,
  default: $$page,
  file: $$file,
  url: $$url
}, Symbol.toStringTag, { value: 'Module' }));

const page = () => _page;

export { page };
