-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
changed button-toggle to text box for version and date info #8
- Loading branch information
Showing
6 changed files
with
64 additions
and
68 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
14 changes: 0 additions & 14 deletions
14
frontend/src/components/devModeToggle/DevModeToggle.module.scss
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
24 changes: 24 additions & 0 deletions
24
frontend/src/components/versionInfo/VersionInfo.module.scss
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,24 @@ | ||
.versionInfoBox { | ||
position: absolute; | ||
bottom: 5px; | ||
right: 5px; | ||
color: #ffffff; | ||
padding: 10px; | ||
font-size: 14px; | ||
border-radius: 10px; | ||
max-width: 250px; | ||
background: rgba(0, 0, 0, 0.8); | ||
} | ||
|
||
.versionInfoItem { | ||
word-break: break-all; | ||
margin-top: 10px; | ||
|
||
&:first-child { | ||
margin-top: 0; | ||
} | ||
} | ||
|
||
.versionInfoName { | ||
padding-right: 5px; | ||
} |
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,23 @@ | ||
import styles from './VersionInfo.module.scss'; | ||
|
||
interface IVersionInfo { | ||
version: string; | ||
versionDate: string; | ||
} | ||
|
||
function VersionInfo(props: IVersionInfo) { | ||
return ( | ||
<div className={styles.versionInfoBox}> | ||
<p className={styles.versionInfoItem}> | ||
<span className={styles.versionInfoName}>Version: </span> | ||
{props.version} | ||
</p> | ||
<p className={styles.versionInfoItem}> | ||
<span className={styles.versionInfoName}>Date: </span> | ||
{props.versionDate} | ||
</p> | ||
</div> | ||
); | ||
} | ||
|
||
export default VersionInfo; |
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