rename classes

This commit is contained in:
madarsbiss 2021-09-22 17:57:58 +03:00
parent 3a927148c5
commit c61be4e1c5
8 changed files with 15 additions and 15 deletions

View File

@ -1,7 +1,7 @@
import styles from "./ContentBox.module.css"; import styles from "./ContentBox.module.css";
const ContentBox = ({ children }) => { const ContentBox = ({ children }) => {
return <div className={styles.statsWrapper}>{children}</div>; return <div className={styles.wrapper}>{children}</div>;
}; };
export default ContentBox; export default ContentBox;

View File

@ -1,4 +1,4 @@
.statsWrapper { .wrapper {
background-color: rgb(247, 247, 247); background-color: rgb(247, 247, 247);
padding: 30px; padding: 30px;
text-align: right; text-align: right;
@ -6,7 +6,7 @@
} }
@media only screen and (max-width: 950px) { @media only screen and (max-width: 950px) {
.statsWrapper { .wrapper {
border-radius: 0; border-radius: 0;
} }
} }

View File

@ -1,7 +1,7 @@
import styles from "./Header.module.css"; import styles from "./Header.module.css";
const Header = ({ children }) => { const Header = ({ children }) => {
return <div className={styles.titleAndSearch}>{children}</div>; return <div className={styles.wrapper}>{children}</div>;
}; };
export default Header; export default Header;

View File

@ -1,11 +1,11 @@
.titleAndSearch { .wrapper {
display: grid; display: grid;
grid-template-columns: 2fr 1fr; grid-template-columns: 2fr 1fr;
gap: 20px; gap: 20px;
} }
@media only screen and (max-width: 520px) { @media only screen and (max-width: 520px) {
.titleAndSearch { .wrapper {
grid-template-columns: 1fr; grid-template-columns: 1fr;
place-items: center; place-items: center;
} }

View File

@ -13,12 +13,12 @@ const MainCard = ({
weatherData, weatherData,
}) => { }) => {
return ( return (
<div className={styles.weatherWrapper}> <div className={styles.wrapper}>
<h1 className={styles.locationTitle}> <h1 className={styles.location}>
{city}, {country} {city}, {country}
</h1> </h1>
<p className={styles.weatherDescription}>{description}</p> <p className={styles.description}>{description}</p>
<Image <Image
alt="weatherIcon" alt="weatherIcon"

View File

@ -1,13 +1,13 @@
.weatherWrapper { .wrapper {
padding: 30px; padding: 30px;
} }
.locationTitle { .location {
font-size: 38px; font-size: 38px;
margin-bottom: 10px; margin-bottom: 10px;
} }
.weatherDescription { .description {
font-size: 24px; font-size: 24px;
margin-bottom: 20px; margin-bottom: 20px;
} }

View File

@ -3,7 +3,7 @@ import styles from "./Search.module.css";
const Search = ({ placeHolder, value, onFocus, onChange, onKeyDown }) => { const Search = ({ placeHolder, value, onFocus, onChange, onKeyDown }) => {
return ( return (
<input <input
className={styles.searchInput} className={styles.input}
type="text" type="text"
placeholder={placeHolder} placeholder={placeHolder}
value={value} value={value}

View File

@ -1,4 +1,4 @@
.searchInput { .input {
margin-bottom: 20px; margin-bottom: 20px;
height: 40px; height: 40px;
border: none; border: none;
@ -12,7 +12,7 @@
} }
@media only screen and (max-width: 520px) { @media only screen and (max-width: 520px) {
.searchInput { .input {
width: 100%; width: 100%;
} }
} }