-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Countries list complete #8
base: master
Are you sure you want to change the base?
Conversation
…rrectly. committing to have a point to roll back to
…he image based on the aspect ratio
…images, but now the cards are not the same size
Check the card for Nepal the description is being cut off. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Few things needs fixing.
img { | ||
width: 100%; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Put this under country or it will bleed into all the other components, like:
.Country {
img{ ...}
}
h1 { | ||
margin-left: 20px; | ||
font-size: 1.1rem; | ||
} | ||
ul { | ||
list-style-type: none; | ||
margin-top: 0.5rem; | ||
} | ||
li { | ||
font-size: 0.9rem; | ||
display: flex; | ||
margin-left: 20px; | ||
} | ||
strong { | ||
font-weight: $medium; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nest it under .Country
src/App.js
Outdated
{/* {countries.map(country => ( | ||
<Country | ||
theme={theme} | ||
flag={country.flag} | ||
name={country.name} | ||
population={country.population} | ||
region={country.region} | ||
capital={country.capital} | ||
/> | ||
))} */} | ||
{/* </Grid> */} | ||
{/* </ul> */} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If it is commented out, why to keep it?
src/components/Country/Country.js
Outdated
{/* <Flag | ||
flag={props.flag} | ||
name={props.name} | ||
/> */} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Delete
src/components/Flag/Flag.module.scss
Outdated
// .Flag { | ||
// // float: left; | ||
// background-size: cover; | ||
// // width: 350px; | ||
// // width: 100%; | ||
// // width: auto; | ||
// height: 150px; | ||
// width: 350px; | ||
// // height: auto; | ||
// } | ||
|
||
.standard { | ||
// background-size: cover; | ||
width: 100%; | ||
height: 100%; | ||
// display: block; | ||
// object-fit: cover; | ||
|
||
// width: auto; | ||
// justify-self: stretch; | ||
// background-size: auto; | ||
} | ||
|
||
.resize { | ||
// width: 120%; | ||
// height: 90%; | ||
object-fit: cover; | ||
// width: 100%; | ||
// height: 100%; | ||
// background-color: red; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Needs cleanup
src/components/Grid/Grid.module.scss
Outdated
.Grid { | ||
display: grid; | ||
// grid: repeat(100px, 4) / auto-flow 120px; | ||
// grid-template-columns: 300px 300px 300px 300px; | ||
grid-gap: 3em; | ||
grid-template-columns: repeat(4, 300px); | ||
grid-auto-rows: 400px; | ||
// grid-template-rows: initial; | ||
// grid-template-rows: auto auto auto auto; | ||
// height: calc(100vh - 10px); | ||
// height: 100%; | ||
// place-items: start stretch; | ||
// align-content: end; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Needs cleanup
src/global.styles.scss
Outdated
@@ -41,3 +41,14 @@ $bold: 800; // Bold | |||
$border-radius: 0.3rem; | |||
$element-box-shadow-light: 0 5px 10px -5px #ccc, 0 -1px 10px -5px #eee; | |||
$element-box-shadow-dark: 0 5px 10px -5px #222, 0 -1px 10px -5px #222; | |||
|
|||
body { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
body styles in index.css
src/global.styles.scss
Outdated
margin: 20px; | ||
width: 100%; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Putting margin on the body element lowers the header as well and on the sided it is not needed and on the bottom it should be styled on the element that is last in the page - margin not needed here.
why did you set width 100% here?
src/global.styles.scss
Outdated
display: flex; | ||
justify-content: center; | ||
align-items: center; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not by design - header should stretch 100% width.
It also is introducing bugs, like you now cannot do: repeat(auto-fill, 300px) on the grid as it will shrink as the flex child is not 100% which would make this page responsive.
We have lot of cards and lot of screen space, is there a reason why not to use it?
// grid: repeat(100px, 4) / auto-flow 120px; | ||
// grid-template-columns: 300px 300px 300px 300px; | ||
grid-gap: 3em; | ||
grid-template-columns: repeat(4, 300px); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should be responsive, please check comments on global.styles.scss
Still a few comments are we ready to merge? |
No description provided.