mirror of
https://github.com/prdlk/prdlk.git
synced 2026-11-03 13:37:42 +00:00
feat(components): add reusable Astro components and documentation
This commit is contained in:
1 parent
9cee393b06
commit
a0e21c1b78
25 files changed
+1059
No files matched your search
@@ -0,0 +1,19 @@
|
||||
---
|
||||
import "@/styles/blocks/search.css";
|
||||
---
|
||||
|
||||
<script>
|
||||
(() => {
|
||||
if (import.meta.env.DEV) return;
|
||||
const onIdle = window.requestIdleCallback || ((cb) => setTimeout(cb, 1));
|
||||
onIdle(async () => {
|
||||
await import("@pagefind/component-ui");
|
||||
});
|
||||
})();
|
||||
</script>
|
||||
|
||||
<pagefind-config
|
||||
baseUrl={`${import.meta.env.BASE_URL}`}
|
||||
bundle-path={`${import.meta.env.BASE_URL.replace(/\/$/, "")}/pagefind/`}></pagefind-config>
|
||||
<pagefind-modal-trigger id="search" class="ms-auto" hide-shortcut compact></pagefind-modal-trigger>
|
||||
<pagefind-modal></pagefind-modal>
|
||||
Reference in new issue
Block a user