Skip to content
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

Open
wants to merge 16 commits into
base: master
Choose a base branch
from
Open

Conversation

engineblog
Copy link
Contributor

No description provided.

@predeyo
Copy link
Contributor

predeyo commented May 3, 2020

Check the card for Nepal the description is being cut off.

Copy link
Contributor

@predeyo predeyo left a 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.

Comment on lines 10 to 12
img {
width: 100%;
}
Copy link
Contributor

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{ ...}
}

Comment on lines 19 to 32
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;
}
Copy link
Contributor

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
Comment on lines 57 to 68
{/* {countries.map(country => (
<Country
theme={theme}
flag={country.flag}
name={country.name}
population={country.population}
region={country.region}
capital={country.capital}
/>
))} */}
{/* </Grid> */}
{/* </ul> */}
Copy link
Contributor

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?

Comment on lines 10 to 13
{/* <Flag
flag={props.flag}
name={props.name}
/> */}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Delete

Comment on lines 3 to 32
// .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;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Needs cleanup

Comment on lines 3 to 15
.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;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Needs cleanup

@@ -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 {
Copy link
Contributor

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

Comment on lines 47 to 48
margin: 20px;
width: 100%;
Copy link
Contributor

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?

Comment on lines 51 to 53
display: flex;
justify-content: center;
align-items: center;
Copy link
Contributor

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);
Copy link
Contributor

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

@NiallJoeMaher
Copy link
Contributor

Still a few comments are we ready to merge?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants