Creating the User Interface

June 26th, 2020 By Alex Hu

main

Semantic UI React

The Menu component is used for the navigation bar. There are many variations and I decided on the one that underline the active item.

<Menu pointing secondary>

Semantic UI's Card

The Posts section used the Card component in a 2 columns group with a Add button to create new post.

Markdown

Individual Post has Edit and Delete buttons for the corresponding actions. The content are entered as Markdown using react-markdown as the UI component.

import ReactMarkdown from 'react-markdown'
//...
<ReactMarkdown source={article.content} />