WeatherIcon. Small changes to theme state

This commit is contained in:
unknown
2021-05-14 18:51:56 +02:00
parent cb0b4b495f
commit e293325da7
16 changed files with 137 additions and 32 deletions

View File

@@ -2,7 +2,7 @@
color: var(--color-primary);
font-weight: 700;
font-size: 4em;
margin-bottom: 0.5em;
display: inline-block;
}
.Header p {
@@ -12,6 +12,36 @@
height: 30px;
}
.HeaderMain {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 2.5rem;
}
.WeatherWidget {
display: flex;
}
.WeatherDetails {
display: flex;
flex-direction: column;
justify-content: center;
font-size: 16px;
color: var(--color-primary);
margin-left: 10px;
font-weight: 500;
}
.WeatherDetails span:first-child {
border-bottom: 1px solid var(--color-primary);
padding-bottom: 5px;
}
.WeatherDetails span:last-child {
padding-top: 5px;
}
.SettingsButton {
width: 35px;
height: 35px;

View File

@@ -4,14 +4,12 @@ import { connect } from 'react-redux';
import { GlobalState } from '../../interfaces/GlobalState';
import { getApps } from '../../store/actions';
import Icon from '../UI/Icon/Icon';
import Modal from '../UI/Modal/Modal';
import Icon from '../UI/Icons/Icon/Icon';
import WeatherIcon from '../UI/Icons/WeatherIcon/WeatherIcon';
import classes from './Home.module.css';
import { Container } from '../UI/Layout/Layout';
import Headline from '../UI/Headlines/Headline/Headline';
import SectionHeadline from '../UI/Headlines/SectionHeadline/SectionHeadline';
import Apps from '../Apps/Apps';
import AppGrid from '../Apps/AppGrid/AppGrid';
import { App } from '../../interfaces';
import Spinner from '../UI/Spinner/Spinner';
@@ -63,7 +61,18 @@ const Home = (props: ComponentProps): JSX.Element => {
<Container>
<header className={classes.Header}>
<p>{dateAndTime()}</p>
<h1>{greeter()}</h1>
<span className={classes.HeaderMain}>
<h1>{greeter()}</h1>
<div className={classes.WeatherWidget}>
<div className={classes.WeatherIcon}>
<WeatherIcon icon='clear-day' />
</div>
<div className={classes.WeatherDetails}>
<span>30°C</span>
<span>15°C</span>
</div>
</div>
</span>
</header>
<SectionHeadline title='Apps' link='/apps' />