-
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 #45 from chiachun2491/feature/enhancement
feat(frontend): enhancement
- Loading branch information
Showing
39 changed files
with
861 additions
and
923 deletions.
There are no files selected for viewing
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
File renamed without changes.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
import { Spinner } from 'react-bootstrap'; | ||
|
||
const Loading = () => ( | ||
<div className='d-flex align-items-center justify-content-center'> | ||
<Spinner animation='border' variant='brown' size={'sm'} className={'mr-2'} /> 載入中... | ||
</div> | ||
); | ||
|
||
export { Loading }; |
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,4 +1,4 @@ | ||
import axiosInstance from '../Api'; | ||
import axiosInstance from '../api/Api'; | ||
|
||
function handleLogout() { | ||
try { | ||
|
This file was deleted.
Oops, something went wrong.
File renamed without changes.
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,28 @@ | ||
import React from 'react'; | ||
import { Row, Col, Button } from 'react-bootstrap'; | ||
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'; | ||
import { faDoorOpen, faUsersSlash } from '@fortawesome/free-solid-svg-icons'; | ||
import { Helmet } from 'react-helmet'; | ||
|
||
const GameRoomError = () => ( | ||
<> | ||
<Helmet> | ||
<title>{'500:房間壞掉了!'}</title> | ||
</Helmet> | ||
<Row className={'d-flex align-items-center'}> | ||
<Col xs={'12'} md={'6'} className={'p-5 d-flex justify-content-center'}> | ||
<FontAwesomeIcon icon={faUsersSlash} className={'icon-fluid tool'} /> | ||
</Col> | ||
<Col xs={'12'} md={'6'} className={'p-5'}> | ||
<h1>500</h1> | ||
<h3>房間壞掉了!</h3> | ||
<p>你現在進入的房間發生了問題,試著重新整理或是按下方按鈕可以導引你回到遊戲大廳開始新遊戲。</p> | ||
<Button variant={'brown'} href={'/games/'}> | ||
<FontAwesomeIcon icon={faDoorOpen} /> 回到大廳 | ||
</Button> | ||
</Col> | ||
</Row> | ||
</> | ||
); | ||
|
||
export default GameRoomError; |
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,28 @@ | ||
import React from 'react'; | ||
import { Row, Col, Button } from 'react-bootstrap'; | ||
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'; | ||
import { faDoorOpen, faUsersSlash } from '@fortawesome/free-solid-svg-icons'; | ||
import { Helmet } from 'react-helmet'; | ||
|
||
const GameRoomNotFound = () => ( | ||
<> | ||
<Helmet> | ||
<title>{'404:你走錯房間囉!'}</title> | ||
</Helmet> | ||
<Row className={'d-flex align-items-center'}> | ||
<Col xs={'12'} md={'6'} className={'p-5 d-flex justify-content-center'}> | ||
<FontAwesomeIcon icon={faUsersSlash} className={'icon-fluid tool'} /> | ||
</Col> | ||
<Col xs={'12'} md={'6'} className={'p-5'}> | ||
<h1>404</h1> | ||
<h3>你走錯房間囉!</h3> | ||
<p>你現在進入的房間並不存在,按下方按鈕可以導引你回到遊戲大廳。</p> | ||
<Button variant={'brown'} href={'/games/'}> | ||
<FontAwesomeIcon icon={faDoorOpen} /> 回到大廳 | ||
</Button> | ||
</Col> | ||
</Row> | ||
</> | ||
); | ||
|
||
export default GameRoomNotFound; |
Oops, something went wrong.