diff --git a/QandA/frontend/src/AskPage.tsx b/QandA/frontend/src/AskPage.tsx index 6b6e88c..5e954e3 100644 --- a/QandA/frontend/src/AskPage.tsx +++ b/QandA/frontend/src/AskPage.tsx @@ -1,6 +1,52 @@ import React from 'react'; -import { Page } from './Page'; +import { useForm } from 'react-hook-form'; -export const AskPage = () => {null}; +import { Page } from './Page'; +import { + FieldInput, + FieldLabel, + Fieldset, + FieldContainer, + FieldTextArea, + FormButtonContainer, + PrimaryButton, +} from './Styles'; + +type FormData = { + title: string; + content: string; +}; + +export const AskPage = () => { + const { register } = useForm(); + return ( + +
+
+ + Title + + + + Content + + + + Submit Your Question + +
+
+
+ ); +}; export default AskPage;