Remove cookie consent popup

This commit is contained in:
MoreminiMore
2026-04-22 09:02:55 +07:00
parent f3ef4ab858
commit a4e4a8f074
73 changed files with 15608 additions and 9273 deletions

70
dist/server/chunks/Layout_C5ObnTcG.mjs vendored Normal file
View File

@@ -0,0 +1,70 @@
import { c as createComponent } from './astro-component_BaTxfI_2.mjs';
import 'piccolore';
import { k as createRenderInstruction, m as maybeRenderHead, f as addAttribute, r as renderTemplate, l as renderHead, h as renderComponent, n as renderSlot } from './server_CWPsUuvN.mjs';
import 'clsx';
async function renderScript(result, id) {
const inlined = result.inlinedScripts.get(id);
let content = "";
if (inlined != null) {
if (inlined) {
content = `<script type="module">${inlined}</script>`;
}
} else {
const resolved = await result.resolve(id);
content = `<script type="module" src="${result.userAssetsBase ? (result.base === "/" ? "" : result.base) + result.userAssetsBase : ""}${resolved}"></script>`;
}
return createRenderInstruction({ type: "script", id, content });
}
const $$Header = createComponent(($$result, $$props, $$slots) => {
const Astro2 = $$result.createAstro($$props, $$slots);
Astro2.self = $$Header;
const navItems = [
{ label: "หน้าหลัก", href: "/" },
{ label: "เกี่ยวกับเรา", href: "/about-us" },
{ label: "บริการ", href: "/web-development" },
{ label: "ผลงาน", href: "/portfolio" },
{ label: "บล็อก", href: "/blog" },
{ label: "ติดต่อเรา", href: "/contact-us" }
];
const currentPath = Astro2.url.pathname;
return renderTemplate`${maybeRenderHead()}<header class="header" data-astro-cid-3ef6ksr2> <div class="container header-inner" data-astro-cid-3ef6ksr2> <a href="/" class="logo" data-astro-cid-3ef6ksr2> <img src="https://moreminimore.com/wp-content/uploads/2022/09/Moreminimore-logo-long-black.png" alt="MoreminiMore" data-astro-cid-3ef6ksr2> </a> <nav class="nav" data-astro-cid-3ef6ksr2> <ul class="nav-list" data-astro-cid-3ef6ksr2> ${navItems.map((item) => renderTemplate`<li data-astro-cid-3ef6ksr2> <a${addAttribute(item.href, "href")}${addAttribute(["nav-link", { active: currentPath === item.href }], "class:list")} data-astro-cid-3ef6ksr2> ${item.label} </a> </li>`)} </ul> </nav> <a href="/contact-us" class="btn-primary" data-astro-cid-3ef6ksr2>ปรึกษาฟรี</a> </div> </header>`;
}, "/Users/kunthawatgreethong/Gitea/moreminimore-new/src/components/Header.astro", void 0);
const $$Footer = createComponent(($$result, $$props, $$slots) => {
const services = [
{ label: "พัฒนาเว็บไซต์", href: "/web-development" },
{ label: "Marketing Automation", href: "/marketing-automation" },
{ label: "AI Automation", href: "/ai-automation" },
{ label: "ให้คำปรึกษา", href: "/tech-consult" }
];
const company = [
{ label: "เกี่ยวกับเรา", href: "/about-us" },
{ label: "ผลงาน", href: "/portfolio" },
{ label: "บล็อก", href: "/blog" },
{ label: "FAQ", href: "/faq" }
];
const legal = [
{ label: "นโยบายความเป็นส่วนตัว", href: "/privacy-policy" },
{ label: "ข้อกำหนดการใช้งาน", href: "/terms-and-conditions" }
];
return renderTemplate`${maybeRenderHead()}<footer class="footer" data-astro-cid-sz7xmlte> <div class="container footer-inner" data-astro-cid-sz7xmlte> <div class="footer-section" data-astro-cid-sz7xmlte> <a href="/" class="footer-logo" data-astro-cid-sz7xmlte> <img src="https://moreminimore.com/wp-content/uploads/2022/09/Moreminimore-logo-long-black.png" alt="MoreminiMore" data-astro-cid-sz7xmlte> </a> <p class="footer-desc" data-astro-cid-sz7xmlte>
บริษัท มอร์มินิมอร์ จำกัด<br data-astro-cid-sz7xmlte>
ผู้เชี่ยวชาญด้าน IT และ Digital Transformation<br data-astro-cid-sz7xmlte>
สำหรับธุรกิจ SMEs ไทย
</p> <div class="footer-contact" data-astro-cid-sz7xmlte> <p data-astro-cid-sz7xmlte>โทร: 080-995-5945</p> <p data-astro-cid-sz7xmlte>อีเมล: contact@moreminimore.com</p> <p data-astro-cid-sz7xmlte>ที่อยู่: 53 หมู่ 1 ต.บ้านแพ้ว อ.บ้านแพ้ว สมุทรสาคร 74120</p> </div> </div> <div class="footer-section" data-astro-cid-sz7xmlte> <h4 data-astro-cid-sz7xmlte>บริการ</h4> <ul data-astro-cid-sz7xmlte> ${services.map((item) => renderTemplate`<li data-astro-cid-sz7xmlte><a${addAttribute(item.href, "href")} data-astro-cid-sz7xmlte>${item.label}</a></li>`)} </ul> </div> <div class="footer-section" data-astro-cid-sz7xmlte> <h4 data-astro-cid-sz7xmlte>บริษัท</h4> <ul data-astro-cid-sz7xmlte> ${company.map((item) => renderTemplate`<li data-astro-cid-sz7xmlte><a${addAttribute(item.href, "href")} data-astro-cid-sz7xmlte>${item.label}</a></li>`)} </ul> </div> <div class="footer-section" data-astro-cid-sz7xmlte> <h4 data-astro-cid-sz7xmlte>ข้อมูลทางกฎหมาย</h4> <ul data-astro-cid-sz7xmlte> ${legal.map((item) => renderTemplate`<li data-astro-cid-sz7xmlte><a${addAttribute(item.href, "href")} data-astro-cid-sz7xmlte>${item.label}</a></li>`)} </ul> </div> </div> <div class="footer-bottom" data-astro-cid-sz7xmlte> <p data-astro-cid-sz7xmlte>&copy; ${(/* @__PURE__ */ new Date()).getFullYear()} บริษัท มอร์มินิมอร์ จำกัด. สงวนลิขสิทธิ์.</p> </div> </footer>`;
}, "/Users/kunthawatgreethong/Gitea/moreminimore-new/src/components/Footer.astro", void 0);
const $$CookieBanner = createComponent(($$result, $$props, $$slots) => {
return renderTemplate`${maybeRenderHead()}<div id="cookie-banner" class="cookie-banner" style="display: none;" data-astro-cid-lomijygd> <div class="cookie-content" data-astro-cid-lomijygd> <h3 data-astro-cid-lomijygd>🍪 การใช้คุกกี้</h3> <p data-astro-cid-lomijygd>เราใช้คุกกี้เพื่อปรับปรุงประสบการณ์การใช้งานเว็บไซต์ของคุณ คุณสามารถเลือกได้ว่าจะอนุญาตคุกกี้ประเภทใด</p> <div class="cookie-options" data-astro-cid-lomijygd> <label class="cookie-option" data-astro-cid-lomijygd> <input type="checkbox" id="cookie-necessary" checked disabled data-astro-cid-lomijygd> <span data-astro-cid-lomijygd>จำเป็น (necessary)</span> </label> <label class="cookie-option" data-astro-cid-lomijygd> <input type="checkbox" id="cookie-performance" data-astro-cid-lomijygd> <span data-astro-cid-lomijygd>ประสิทธิภาพ (performance)</span> </label> <label class="cookie-option" data-astro-cid-lomijygd> <input type="checkbox" id="cookie-marketing" data-astro-cid-lomijygd> <span data-astro-cid-lomijygd>การตลาด (marketing)</span> </label> </div> <div class="cookie-buttons" data-astro-cid-lomijygd> <button id="cookie-accept-all" class="btn-primary" data-astro-cid-lomijygd>ยอมรับทั้งหมด</button> <button id="cookie-reject-all" class="btn-secondary" data-astro-cid-lomijygd>ปฏิเสธทั้งหมด</button> <button id="cookie-save" class="btn-outline" data-astro-cid-lomijygd>บันทึกการตั้งค่า</button> </div> <a href="/privacy-policy" class="cookie-link" data-astro-cid-lomijygd>อ่านนโยบายความเป็นส่วนตัว</a> </div> </div> ${renderScript($$result, "/Users/kunthawatgreethong/Gitea/moreminimore-new/src/components/consent/CookieBanner.astro?astro&type=script&index=0&lang.ts")}`;
}, "/Users/kunthawatgreethong/Gitea/moreminimore-new/src/components/consent/CookieBanner.astro", void 0);
const $$Layout = createComponent(($$result, $$props, $$slots) => {
const Astro2 = $$result.createAstro($$props, $$slots);
Astro2.self = $$Layout;
const { title, description = "บริษัท มอร์มินิมอร์ จำกัด - ผู้เชี่ยวชาญด้าน IT และ Digital Transformation สำหรับธุรกิจ SMEs ไทย" } = Astro2.props;
return renderTemplate`<html lang="th"> <head><meta charset="UTF-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="description"${addAttribute(description, "content")}><link rel="icon" type="image/svg+xml" href="/favicon.svg"><title>${title} | MoreminiMore</title>${renderHead()}</head> <body> ${renderComponent($$result, "Header", $$Header, {})} <main> ${renderSlot($$result, $$slots["default"])} </main> ${renderComponent($$result, "Footer", $$Footer, {})} ${renderComponent($$result, "CookieBanner", $$CookieBanner, {})} </body></html>`;
}, "/Users/kunthawatgreethong/Gitea/moreminimore-new/src/layouts/Layout.astro", void 0);
export { $$Layout as $, renderScript as r };