initial commit
This commit is contained in:
commit
3c2fb32b3e
73 changed files with 22349 additions and 0 deletions
30
src/components/MD_Title.tsx
Normal file
30
src/components/MD_Title.tsx
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
import {
|
||||
type ParentComponent,
|
||||
onMount,
|
||||
createSignal,
|
||||
onCleanup,
|
||||
} from "solid-js";
|
||||
import { Hashtag } from "@icons";
|
||||
|
||||
const MD_Title: ParentComponent<{ titleVar: number }> = props => {
|
||||
const [_, setMounted] = createSignal<boolean>(false);
|
||||
|
||||
onMount(() => {
|
||||
setMounted(true);
|
||||
onCleanup(() => {
|
||||
setMounted(false);
|
||||
});
|
||||
});
|
||||
|
||||
return (
|
||||
<div class={`heading heading-${props.titleVar}`}>
|
||||
<span class="heading-hashtag">
|
||||
<Hashtag />
|
||||
</span>
|
||||
{props.children}
|
||||
<hr />
|
||||
</div>
|
||||
);
|
||||
};
|
||||
|
||||
export default MD_Title;
|
||||
Loading…
Add table
Add a link
Reference in a new issue