cleaning up tool tip card and instructions
This commit is contained in:
+13
-2
@@ -8,6 +8,8 @@ import TipCard from './TipCard';
|
|||||||
import MainCommand from './MainCommand';
|
import MainCommand from './MainCommand';
|
||||||
import AvailableCommandsIcons from './AvailableCommandsIcons';
|
import AvailableCommandsIcons from './AvailableCommandsIcons';
|
||||||
|
|
||||||
|
import { Typography, Card, CardContent } from '@material-ui/core';
|
||||||
|
|
||||||
function getRandomInt(max) {
|
function getRandomInt(max) {
|
||||||
return Math.floor(Math.random() * Math.floor(max));
|
return Math.floor(Math.random() * Math.floor(max));
|
||||||
}
|
}
|
||||||
@@ -23,12 +25,21 @@ const Root = props => {
|
|||||||
{/* Toast for notifications */}
|
{/* Toast for notifications */}
|
||||||
|
|
||||||
<div className={styles.mainCont}>
|
<div className={styles.mainCont}>
|
||||||
<TipCard />
|
|
||||||
|
|
||||||
<MainCommand />
|
<MainCommand />
|
||||||
|
|
||||||
<AvailableCommandsIcons />
|
<AvailableCommandsIcons />
|
||||||
|
|
||||||
|
<Card className={styles.directionsCard}>
|
||||||
|
<Typography
|
||||||
|
variant="overline"
|
||||||
|
align="left"
|
||||||
|
component="h1"
|
||||||
|
color="primary"
|
||||||
|
>
|
||||||
|
Hover on icons above for commands
|
||||||
|
</Typography>
|
||||||
|
</Card>
|
||||||
|
|
||||||
<img className={styles.backgroundImage} src={bgImg} />
|
<img className={styles.backgroundImage} src={bgImg} />
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
@@ -18,6 +18,8 @@
|
|||||||
|
|
||||||
.searchCont {
|
.searchCont {
|
||||||
display: flex;
|
display: flex;
|
||||||
|
flex: 1;
|
||||||
|
width: 100%;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
|
|
||||||
@@ -46,6 +48,8 @@
|
|||||||
flex: 1;
|
flex: 1;
|
||||||
border-radius: 0.4rem;
|
border-radius: 0.4rem;
|
||||||
margin: 0 10px;
|
margin: 0 10px;
|
||||||
|
|
||||||
|
max-width: 40px;
|
||||||
}
|
}
|
||||||
.searchBar {
|
.searchBar {
|
||||||
display: block;
|
display: block;
|
||||||
@@ -61,8 +65,11 @@
|
|||||||
border-radius: 0.4rem;
|
border-radius: 0.4rem;
|
||||||
transition: box-shadow var(--transitionDuration);
|
transition: box-shadow var(--transitionDuration);
|
||||||
box-shadow: 0 0 8px #666;
|
box-shadow: 0 0 8px #666;
|
||||||
width: 400px;
|
|
||||||
|
width: 100%;
|
||||||
height: 40px;
|
height: 40px;
|
||||||
|
max-width: 600px;
|
||||||
|
|
||||||
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen,
|
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen,
|
||||||
Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
|
Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
|
||||||
|
|
||||||
@@ -95,7 +102,8 @@
|
|||||||
|
|
||||||
.availableCommandsIconsCont {
|
.availableCommandsIconsCont {
|
||||||
display: flex;
|
display: flex;
|
||||||
|
flex-direction: row;
|
||||||
|
flex-wrap: wrap;
|
||||||
position: fixed;
|
position: fixed;
|
||||||
bottom: 3em;
|
bottom: 3em;
|
||||||
|
|
||||||
@@ -129,3 +137,8 @@
|
|||||||
.malTooltip {
|
.malTooltip {
|
||||||
font-size: 3em !important;
|
font-size: 3em !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.directionsCard {
|
||||||
|
padding: 5px 10px;
|
||||||
|
margin-bottom: 5px;
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user