Start creating blog posts

This commit is contained in:
Bad Manners 2024-09-13 22:36:39 -03:00
parent 9ff1986adc
commit 4a3ee88f77
No known key found for this signature in database
GPG key ID: 8C88292CCB075609
35 changed files with 1015 additions and 157 deletions

View file

@ -41,7 +41,7 @@ const isCurrentRoute = (path: string) =>
class="flex flex-col bg-stone-200 text-stone-800 md:flex-row dark:bg-stone-800 dark:text-stone-200 print:bg-none"
>
<nav
class="h-card mb-4 flex shrink-0 flex-col items-center border-b-4 border-bm-400 bg-bm-300 pb-10 pt-10 text-center text-stone-900 shadow-xl md:left-0 md:mb-0 md:min-h-screen md:w-72 md:justify-self-stretch md:border-b-0 md:border-r-4 md:pt-20 dark:border-green-950 dark:bg-green-900 dark:text-stone-100 print:bg-none print:shadow-none"
class="h-card mb-4 flex shrink-0 flex-col items-center border-b-4 border-bm-400 bg-gradient-to-b from-bm-300 from-95% to-bm-400 pb-10 pr-3 pt-10 text-center text-stone-900 shadow-lg md:left-0 md:mb-0 md:min-h-screen md:w-72 md:justify-self-stretch md:border-b-0 md:border-r-4 md:bg-gradient-to-r md:pt-20 dark:border-green-950 dark:from-green-900 dark:to-green-950 dark:text-stone-100 print:bg-none print:shadow-none"
>
<img
loading="eager"
@ -166,12 +166,11 @@ const isCurrentRoute = (path: string) =>
import tippy from "tippy.js";
import "tippy.js/dist/tippy.css";
const clipboardItems = document.querySelectorAll<HTMLElement>("[data-clipboard]");
tippy(clipboardItems, {
content: (el) => (el as HTMLElement).dataset.clipboard!,
const tooltipItems = document.querySelectorAll<HTMLElement>("[title][data-tooltip]");
tooltipItems.forEach((el) => el.setAttribute("data-tooltip", el.title));
tippy(tooltipItems, {
content: (el) => (el as HTMLElement).dataset.tooltip!,
theme: "bm",
});
clipboardItems.forEach((el) => el.removeAttribute("title"));
tooltipItems.forEach((el) => el.removeAttribute("title"));
</script>