From 2928911e4a5846b495cb28acacae565cd48f64a9 Mon Sep 17 00:00:00 2001 From: shiro Date: Wed, 3 Apr 2024 20:40:15 +0900 Subject: [PATCH] Article WIP --- src/Article.tsx | 3 +- src/Spoiler.tsx | 81 +++++++++ .../2024-03-25-starting-a-blog/article.mdx | 1 - .../article.mdx | 165 +++++++++++++++++- src/routes.tsx | 6 +- src/style/global.style.tsx | 15 +- 6 files changed, 263 insertions(+), 8 deletions(-) create mode 100644 src/Spoiler.tsx diff --git a/src/Article.tsx b/src/Article.tsx index 600f69c..36a382b 100644 --- a/src/Article.tsx +++ b/src/Article.tsx @@ -1,6 +1,7 @@ import { Tooltip } from "@kobalte/core"; import cn from "classnames"; import { Component, lazy } from "solid-js"; +import Spoiler from "~/Spoiler"; import Icon from "~/components/Icon"; import IconText from "~/components/IconText"; @@ -55,7 +56,7 @@ const Article: Component = (props) => {