-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5 from chimobi-justice/ft/create-forum
added create forum
- Loading branch information
Showing
9 changed files
with
1,833 additions
and
44 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,13 @@ | ||
* { | ||
box-sizing: border-box; | ||
} | ||
|
||
.active { | ||
color: #7253a4; | ||
} | ||
|
||
.editor-input { | ||
height: 90%; | ||
width: 100%; | ||
border: none; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
import { useState } from 'react' | ||
import { | ||
Box, | ||
FormControl, | ||
Input | ||
} from '@chakra-ui/react' | ||
import ReactQuill from 'react-quill' | ||
import 'react-quill/dist/quill.snow.css' | ||
|
||
import Button from '@components/Button' | ||
|
||
const CreateForum = () => { | ||
const [value, setValue] = useState(''); | ||
|
||
return ( | ||
<Box width={"50%"} m={"2rem auto"}> | ||
|
||
<form> | ||
<FormControl my={"2.5rem"}> | ||
<Input type='email' py={"60px"} size={"lg"} fontSize={"3rem"} variant='flushed' colorScheme="gray" placeholder="Title" /> | ||
</FormControl> | ||
|
||
<Box height={"400px"}> | ||
<ReactQuill | ||
theme="snow" | ||
value={value} | ||
onChange={setValue} | ||
className="editor-input" | ||
placeholder="write here to post threads" | ||
/> | ||
|
||
</Box> | ||
|
||
<Box textAlign={"right"} my={"25px"}> | ||
<Button | ||
variant="solid" | ||
size={{ base: "md", lg: "lg" }} | ||
width={{ base: "100%", lg: "auto" }} | ||
type="button" | ||
fontWeight={"semibold"} | ||
rounded="sm" | ||
> | ||
Save | ||
</Button> | ||
</Box> | ||
</form> | ||
|
||
</Box> | ||
) | ||
} | ||
|
||
export default CreateForum; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters