34 lines
1.4 KiB
JavaScript
34 lines
1.4 KiB
JavaScript
import { j as ensure_array_like, k as attr, i as escape_html, m as stringify } from "../../chunks/index2.js";
|
|
import { B as Button } from "../../chunks/button.js";
|
|
import { s as siteSlugs, a as sites } from "../../chunks/sites.js";
|
|
function _page($$renderer, $$props) {
|
|
$$renderer.component(($$renderer2) => {
|
|
let { data } = $$props;
|
|
const visibleSlugs = data.user ? siteSlugs.filter((slug) => data.user && data.user[slug] === true) : [];
|
|
{
|
|
$$renderer2.push("<!--[!-->");
|
|
$$renderer2.push(`<main class="flex min-h-0 flex-1 flex-col items-center justify-center gap-4 p-4 sm:gap-6 sm:p-6"><h1 class="text-2xl font-semibold">Base</h1> <div class="flex w-full max-w-xs flex-col gap-3"><!--[-->`);
|
|
const each_array = ensure_array_like(visibleSlugs);
|
|
for (let $$index = 0, $$length = each_array.length; $$index < $$length; $$index++) {
|
|
let slug = each_array[$$index];
|
|
const site = sites[slug];
|
|
$$renderer2.push(`<a${attr("href", `/${stringify(slug)}`)} class="block">`);
|
|
Button($$renderer2, {
|
|
class: "h-16 w-full min-h-16",
|
|
variant: "outline",
|
|
children: ($$renderer3) => {
|
|
$$renderer3.push(`<!---->${escape_html(site.title)}`);
|
|
},
|
|
$$slots: { default: true }
|
|
});
|
|
$$renderer2.push(`<!----></a>`);
|
|
}
|
|
$$renderer2.push(`<!--]--></div></main>`);
|
|
}
|
|
$$renderer2.push(`<!--]-->`);
|
|
});
|
|
}
|
|
export {
|
|
_page as default
|
|
};
|