css cleanup

This commit is contained in:
madarsbiss 2021-09-23 14:13:30 +03:00
parent 1dced10ce7
commit d1574e0922
9 changed files with 18 additions and 40 deletions

View File

@ -1,5 +1,4 @@
.wrapper {
background-color: rgb(247, 247, 247);
padding: 30px;
text-align: right;
}

View File

@ -1,14 +1,11 @@
import { getWeekDay, getTime, getAMPM } from "../services/utils";
import styles from "./DateAndTime.module.css";
export const DateAndTime = ({ weatherData, systemUsed }) => {
return (
<h2 className={styles.title}>
{`${getWeekDay(weatherData)}, ${getTime(
systemUsed,
weatherData.dt,
weatherData.timezone
)} ${getAMPM(systemUsed, weatherData.dt, weatherData.timezone)}`}
</h2>
);
};
export const DateAndTime = ({ weatherData, systemUsed }) => (
<h2>
{`${getWeekDay(weatherData)}, ${getTime(
systemUsed,
weatherData.dt,
weatherData.timezone
)} ${getAMPM(systemUsed, weatherData.dt, weatherData.timezone)}`}
</h2>
);

View File

@ -1,3 +0,0 @@
.title {
text-align: left;
}

View File

@ -1,6 +1,4 @@
.wrapper {
display: grid;
place-items: center;
max-width: 260px;
text-align: center;
}

View File

@ -2,6 +2,7 @@
display: grid;
grid-template-columns: 2fr 1fr;
gap: 20px;
margin-bottom: 20px;
}
@media only screen and (max-width: 520px) {

View File

@ -1,9 +1 @@
import styles from "./LoadingScreen.module.css";
export const LoadingScreen = ({ loadingMessage }) => {
return (
<div className={styles.wrapper}>
<h1>{loadingMessage}</h1>
</div>
);
};
export const LoadingScreen = ({ loadingMessage }) => <h1>{loadingMessage}</h1>;

View File

@ -1,5 +0,0 @@
.wrapper {
display: grid;
place-items: center;
max-width: 260px;
}

View File

@ -1,6 +1,7 @@
.wrapper {
background: rgba(255, 255, 255, 0.95);
padding: 20px;
text-align: right;
border-radius: 20px;
}

View File

@ -1,14 +1,12 @@
.search {
height: 40px;
margin-bottom: 20px;
border: none;
padding: 0 10px;
color: #303030;
font-size: 20px;
text-align: right;
border-radius: 10px;
font-family: "Varela Round", sans-serif;
font-size: 18px;
font-family: "Varela Round", sans-serif;
color: #303030;
text-align: right;
padding: 0 10px;
border: none;
border-radius: 10px;
}
@media only screen and (max-width: 520px) {