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

Hand in Project 2 My Childhood Pets #29

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

Conversation

Aencu90
Copy link

@Aencu90 Aencu90 commented Oct 23, 2022

No description provided.

Copy link

@HIPPIEKICK HIPPIEKICK left a comment

Choose a reason for hiding this comment

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

Nice work with the flexbox! I really enjoy the background gradient and that you used flex-wrap: wrap. A little tip for images:

  • When you have set width and height on images they can get distorted. You can add object-fit: cover; to the images to prevent that.

Keep up the good work :)

@@ -0,0 +1,25 @@
<!DOCTYPE html>

Choose a reason for hiding this comment

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

You have duplicate files 🤔

Comment on lines +11 to +17
<section class="pets">
<div class="flex-child jason">Jason <img class="pet-image" src="https://images.pexels.com/photos/544269/pexels-photo-544269.jpeg?auto=compress&cs=tinysrgb&w=1260&h=750&dpr=1" alt="Jason" /></div>
<div class="flex-child paco">Paco <img src="https://images.pexels.com/photos/162149/dog-black-labrador-black-dog-162149.jpeg?auto=compress&cs=tinysrgb&w=1260&h=750&dpr=1" alt ="Paco" /></div>
<div class="flex-child garfield">Garfield <img src="https://images.pexels.com/photos/6982643/pexels-photo-6982643.jpeg?auto=compress&cs=tinysrgb&w=1260&h=750&dpr=1" alt="Garfield" /></div>
<div class="flex-child tiger">Tiger <img src="https://images.pexels.com/photos/617278/pexels-photo-617278.jpeg?auto=compress&cs=tinysrgb&w=1260&h=750&dpr=1" alt="Tiger" /></div>
<div class="flex-child max">Max <img src="https://images.pexels.com/photos/104373/pexels-photo-104373.jpeg?cs=srgb&dl=pexels-mike-b-104373.jpg&fm=jpg&_gl=1*g3sdv7*_ga*NjE4MzQxMDQ4LjE2NjY0MjMyNDY.*_ga_8JE65Q40S6*MTY2NjQyMzI0Ni4xLjEuMTY2NjQyNDczOC4wLjAuMA.." alt="Max" /> </div>
<div class="flex-child moritz">Moritz <img src="https://images.pexels.com/photos/372166/pexels-photo-372166.jpeg?cs=srgb&dl=pexels-pixabay-372166.jpg&fm=jpg&_gl=1*14yy15f*_ga*NjE4MzQxMDQ4LjE2NjY0MjMyNDY.*_ga_8JE65Q40S6*MTY2NjQyMzI0Ni4xLjEuMTY2NjQyMzMxOS4wLjAuMA.." alt="Moritz" /> </div></section>

Choose a reason for hiding this comment

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

This looks a bit messy. Remember to always use correct indentation so that the opening tag and the closing tags end up at the same indentation level. Also - always indent children. Compare this snippet with indentation, it gets much easier to read and nice to look at, right? 😇

<section class="pets">
  <div class="flex-child jason">
    <p>Jason</p> <!--I added a paragraph tag here-->
    <img
      class="pet-image"
      src="https://images.pexels.com/photos/544269/pexels-photo-544269.jpeg?auto=compress&cs=tinysrgb&w=1260&h=750&dpr=1"
      alt="Jason" />
  </div>
  <div class="flex-child paco">
    Paco
    <img
      src="https://images.pexels.com/photos/162149/dog-black-labrador-black-dog-162149.jpeg?auto=compress&cs=tinysrgb&w=1260&h=750&dpr=1"
      alt ="Paco" />
  </div>
   <div class="flex-child garfield">
     Garfield
     <img
       src="https://images.pexels.com/photos/6982643/pexels-photo-6982643.jpeg?auto=compress&cs=tinysrgb&w=1260&h=750&dpr=1"
       alt="Garfield" />
   </div>
</section>


Comment on lines +18 to +22
<div class="hamburger">
<div></div>
<div></div>
<div></div>
</div>

Choose a reason for hiding this comment

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

Is this in progress?

<div></div>
<div></div>
</div>
</header>

Choose a reason for hiding this comment

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

If this is the closing tag, where is the opening tag? 🤔

Comment on lines +1 to +11
body {
background: radial-gradient(
circle at 7.5% 24%,
rgb(237, 161, 193) 0%,
rgb(250, 178, 172) 25.5%,
rgb(190, 228, 210) 62.3%,
rgb(215, 248, 247) 93.8%
);
font-family: "Gill Sans", "Gill Sans MT", Calibri, "Trebuchet MS", sans-serif;
font-size: 20px;
}

Choose a reason for hiding this comment

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

Looking good! If you add min-height: 100vh; you will get rid of the line

Comment on lines +18 to +25
.pets {
display: flex;
align-items: center;
justify-content: center;
flex-direction: row;
flex-wrap: wrap;

}

Choose a reason for hiding this comment

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

Nice flexboxing ⭐

Comment on lines +26 to +49
.flex-child {
margin: 5px;
width: 200px;
border: solid black;
gap: 5px;
}
.jason {
background-color: burlywood;
}
.paco {
background-color: aquamarine;
}
.garfield {
background-color: blueviolet;
}
.tiger {
background-color: blue;
}
.max {
background-color: darkorange;
}
.moritz {
background-color: palevioletred;
}

Choose a reason for hiding this comment

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

Really great way of keeping it DRY! 👍

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.

2 participants