diff --git a/web/src/components/note/contentblock/headerblock.css b/web/src/components/note/contentblock/headerblock.css new file mode 100644 index 0000000..9c213a0 --- /dev/null +++ b/web/src/components/note/contentblock/headerblock.css @@ -0,0 +1,15 @@ +.headerblock-header { + font-size: 2em; + border: none; + font-weight: bold; + width: 100%; + + padding-bottom: 4px; + border-bottom: 2px solid #888888; +} + +.headerblock-header::placeholder { + font-weight: 400; + font-style: italic; + color: #888888; +} \ No newline at end of file diff --git a/web/src/components/note/contentblock/headerblock.tsx b/web/src/components/note/contentblock/headerblock.tsx index e1a7f31..b608a56 100644 --- a/web/src/components/note/contentblock/headerblock.tsx +++ b/web/src/components/note/contentblock/headerblock.tsx @@ -1,13 +1,17 @@ +import { useState } from "react"; import "./contentblock.css" +import "./headerblock.css" interface HeaderProps { text: string; } export default function HeaderBlock(props: HeaderProps) { + let [ headerText, setHeaderText ] = useState(props.text); + return (
-

{props.text}

+ setHeaderText(e.target.value) }/>
) } \ No newline at end of file