css cleanup
This commit is contained in:
parent
1dced10ce7
commit
d1574e0922
@ -1,5 +1,4 @@
|
|||||||
.wrapper {
|
.wrapper {
|
||||||
background-color: rgb(247, 247, 247);
|
background-color: rgb(247, 247, 247);
|
||||||
padding: 30px;
|
padding: 30px;
|
||||||
text-align: right;
|
|
||||||
}
|
}
|
||||||
|
@ -1,14 +1,11 @@
|
|||||||
import { getWeekDay, getTime, getAMPM } from "../services/utils";
|
import { getWeekDay, getTime, getAMPM } from "../services/utils";
|
||||||
import styles from "./DateAndTime.module.css";
|
|
||||||
|
|
||||||
export const DateAndTime = ({ weatherData, systemUsed }) => {
|
export const DateAndTime = ({ weatherData, systemUsed }) => (
|
||||||
return (
|
<h2>
|
||||||
<h2 className={styles.title}>
|
|
||||||
{`${getWeekDay(weatherData)}, ${getTime(
|
{`${getWeekDay(weatherData)}, ${getTime(
|
||||||
systemUsed,
|
systemUsed,
|
||||||
weatherData.dt,
|
weatherData.dt,
|
||||||
weatherData.timezone
|
weatherData.timezone
|
||||||
)} ${getAMPM(systemUsed, weatherData.dt, weatherData.timezone)}`}
|
)} ${getAMPM(systemUsed, weatherData.dt, weatherData.timezone)}`}
|
||||||
</h2>
|
</h2>
|
||||||
);
|
);
|
||||||
};
|
|
||||||
|
@ -1,3 +0,0 @@
|
|||||||
.title {
|
|
||||||
text-align: left;
|
|
||||||
}
|
|
@ -1,6 +1,4 @@
|
|||||||
.wrapper {
|
.wrapper {
|
||||||
display: grid;
|
|
||||||
place-items: center;
|
|
||||||
max-width: 260px;
|
max-width: 260px;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
}
|
}
|
||||||
|
@ -2,6 +2,7 @@
|
|||||||
display: grid;
|
display: grid;
|
||||||
grid-template-columns: 2fr 1fr;
|
grid-template-columns: 2fr 1fr;
|
||||||
gap: 20px;
|
gap: 20px;
|
||||||
|
margin-bottom: 20px;
|
||||||
}
|
}
|
||||||
|
|
||||||
@media only screen and (max-width: 520px) {
|
@media only screen and (max-width: 520px) {
|
||||||
|
@ -1,9 +1 @@
|
|||||||
import styles from "./LoadingScreen.module.css";
|
export const LoadingScreen = ({ loadingMessage }) => <h1>{loadingMessage}</h1>;
|
||||||
|
|
||||||
export const LoadingScreen = ({ loadingMessage }) => {
|
|
||||||
return (
|
|
||||||
<div className={styles.wrapper}>
|
|
||||||
<h1>{loadingMessage}</h1>
|
|
||||||
</div>
|
|
||||||
);
|
|
||||||
};
|
|
||||||
|
@ -1,5 +0,0 @@
|
|||||||
.wrapper {
|
|
||||||
display: grid;
|
|
||||||
place-items: center;
|
|
||||||
max-width: 260px;
|
|
||||||
}
|
|
@ -1,6 +1,7 @@
|
|||||||
.wrapper {
|
.wrapper {
|
||||||
background: rgba(255, 255, 255, 0.95);
|
background: rgba(255, 255, 255, 0.95);
|
||||||
padding: 20px;
|
padding: 20px;
|
||||||
|
text-align: right;
|
||||||
border-radius: 20px;
|
border-radius: 20px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1,14 +1,12 @@
|
|||||||
.search {
|
.search {
|
||||||
height: 40px;
|
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-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) {
|
@media only screen and (max-width: 520px) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user