aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/App.css4
-rw-r--r--src/App.js50
2 files changed, 31 insertions, 23 deletions
diff --git a/src/App.css b/src/App.css
index cd12c8b..ab194ce 100644
--- a/src/App.css
+++ b/src/App.css
@@ -1,3 +1,7 @@
+.main.container {
+ margin-top: 4em;
+}
+
.postMessage {
word-break: break-word;
overflow-wrap: anywhere;
diff --git a/src/App.js b/src/App.js
index 0579156..551fed9 100644
--- a/src/App.js
+++ b/src/App.js
@@ -45,30 +45,34 @@ class App extends Component {
const { boardList } = this.state;
//const pathList = boardList.map(board => "/" + board.dir)
return (
- <Container>
- <Menu inverted>
- <Menu.Item header>B.a.I</Menu.Item>
- <Menu.Item as={Link} to="/"><Icon name='home' /> Home</Menu.Item>
- <Dropdown text='BBS' className='link item'>
- <Dropdown.Menu>
- {boardList.map(board => board.board_type === 1 ? <Dropdown.Item key={board.dir} as={Link} to={`/board/${board.dir}`}>/{board.dir}/ - {board.name}</Dropdown.Item> : null)}
- </Dropdown.Menu>
- </Dropdown>
- <Dropdown text='Imageboard' className='link item'>
- <Dropdown.Menu>
- {boardList.map(board => board.board_type === 0 ? <Dropdown.Item key={board.dir} as={Link} to={`/board/${board.dir}`}>/{board.dir}/ - {board.name}</Dropdown.Item> : null)}
- </Dropdown.Menu>
- </Dropdown>
+ <React.Fragment>
+ <Menu inverted fixed="top">
+ <Container>
+ <Menu.Item header>B.a.I</Menu.Item>
+ <Menu.Item as={Link} to="/"><Icon name='home' /> Home</Menu.Item>
+ <Dropdown text='BBS' className='link item'>
+ <Dropdown.Menu>
+ {boardList.map(board => board.board_type === 1 ? <Dropdown.Item key={board.dir} as={Link} to={`/board/${board.dir}`}>/{board.dir}/ - {board.name}</Dropdown.Item> : null)}
+ </Dropdown.Menu>
+ </Dropdown>
+ <Dropdown text='Imageboard' className='link item'>
+ <Dropdown.Menu>
+ {boardList.map(board => board.board_type === 0 ? <Dropdown.Item key={board.dir} as={Link} to={`/board/${board.dir}`}>/{board.dir}/ - {board.name}</Dropdown.Item> : null)}
+ </Dropdown.Menu>
+ </Dropdown>
+ </Container>
</Menu>
- <Router>
- <Home boardList={this.state.boardList} path="/" />
- <BBSThread path="/:dir/read/:id">
- <BBSThread path=":active" />
- </BBSThread>
- <Board path="/board/:dir" />
- <NotFound default />
- </Router>
- </Container >
+ <Container className="main">
+ <Router>
+ <Home boardList={this.state.boardList} path="/" />
+ <BBSThread path="/:dir/read/:id">
+ <BBSThread path=":active" />
+ </BBSThread>
+ <Board path="/board/:dir" />
+ <NotFound default />
+ </Router>
+ </Container >
+ </React.Fragment>
);
}
}