feat: Interface re-styling by @danielderbenev.

This commit is contained in:
Daniel Derbenev 2020-03-27 09:40:45 +00:00 committed by Quentin “Storm1er” Decaunes
parent f8134daae3
commit c54ed5aedf
5 changed files with 41 additions and 19 deletions

View File

@ -24,15 +24,5 @@
<body style="min-height:100vh;">
<noscript>You need to enable JavaScript to run this app.</noscript>
<div id="root"></div>
<!--
This HTML file is a template.
If you open it directly in the browser, you will see an empty page.
You can add webfonts, meta tags, or analytics to this file.
The build step will place the bundled scripts into the <body> tag.
To begin the development, run `npm start` or `yarn start`.
To create a production bundle, use `npm run build` or `yarn build`.
-->
</body>
</html>

Binary file not shown.

Before

Width:  |  Height:  |  Size: 14 KiB

After

Width:  |  Height:  |  Size: 27 KiB

View File

@ -34,7 +34,7 @@ function SysInfoCards() {
const gpu = sysInfoContext.graphics;
const bios = sysInfoContext.bios;
return (
<div className="uk-margin-small-right uk-margin-small-left uk-flex uk-flex-center uk-flex-around uk-flex-wrap">
<div className="uk-margin-small-right uk-margin-small-left uk-flex uk-flex-left uk-flex-wrap">
<Card title={basicInfoTitleText}>
{system === false || mem === false || bios === false ? (
<div uk-spinner=""></div>

View File

@ -13,8 +13,8 @@ function TopBar() {
<header>
<div
style={{
width: "128px",
height: "128px",
width: "96px",
height: "96px",
display: "inline-block",
}}
>
@ -36,27 +36,27 @@ function TopBar() {
className="uk-margin-left"
value={discordText}
onClick={openExternal("https://discord.gg/EahayUv")}
background="#7289da"
background="#888888"
/>
<LightModeContext.Consumer>
{mode => (
<Badge
className="uk-margin-left"
value={mode.mode === "dark" ? "☀️" : "🌙"}
value={mode.mode === "dark" ? "🌙 Dark" : "☀️ Light"}
onClick={mode.switch}
background={mode.mode === "dark" ? "#FFF" : "#000"}
background={mode.mode === "dark" ? "#888888" : "#888888"}
/>
)}
</LightModeContext.Consumer>
<Badge
className="uk-margin-left"
value="🌐"
value="🌐 Language"
onClick={() => {
require("uikit")
.modal(document.getElementById("locale-selector-modal"))
.show();
}}
background="rgba(0, 0, 0, 0)"
background="#888888"
/>
</header>
);

View File

@ -10,8 +10,40 @@ html {
cursor: pointer;
}
.uk-h1,
.uk-h2,
.uk-h3,
.uk-h4,
.uk-h5,
.uk-h6,
.uk-heading-2xlarge,
.uk-heading-large,
.uk-heading-medium,
.uk-heading-small,
.uk-heading-xlarge,
.uk-tab,
.uk-card-title,
.uk-badge,
.uk-button, h1, h2, h3, h4, h5, h6, html {
font-family: Arial, Helvetica, sans-serif;
}
.uk-h2 {
font-size: 23px;
line-height: 0.3;
}
.uk-card-title {
font-weight: 600;
}
.uk-badge {
height: 28px;
border-radius: 5px;
}
.uk-modal {
background-color: rgba(50, 50, 50, 0.6);
background-color: rgba(0, 0, 0, 0.75);
.uk-modal-dialog {
background-color: #1e87f0;