Open amelafili opened 6 years ago
Hi Amela, nice job with your valid HTML and the content of your imaginary company homepage! ✨
This makes me hungry. Those potatoes look really good. 🥔
Here are your things to improve! 💪
It looks like you're linking to the Bootstrap 4 alpha version, rather than Bootstrap 3:
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-alpha.6/css/bootstrap.min.css" integrity="sha384-rwoIResjU2yc3z8GV/NPeZWAv56rSmLldC3R/AZzGRnGxQQKnKkoFVhFQhNUwEyJ" crossorigin="anonymous">
You might need to tweak some of your classes once you switch to the Bootstrap 3 CSS. Read through the docs (make sure they're the 3 docs, not the 4 docs) and let me know if you have questions.
We didn't explicitly say not to use your own CSS, but I want you to style this only with Bootstrap so you get a feel for what it can do. Bootstrap is pretty powerful; I think it can do pretty much everything you're doing with inline styles! 👢 😄
While the validator didn't catch any invalid HTML, I'm seeing some inconsistent spacing, for example <img src ="http://goo.gl/0sX3jq" alt="Potato">
and <div class ="thumbnail">
. This can cause things to break. Comb through your code for typos/extra spaces before you resubmit! 🔍
One of the requirements is
Use the
container
class to center your page content
but I don't see the container
class in your project! There's also some weird formatting on the bottom part of the screen for me - some missing images, and inconsistent margins, and the page is wider than my viewport.
Using Bootstrap 3 and the container
class will help with some of the formatting. Once you've implemented that, go through the requirements again, carefully. I haven't checked the rest of the requirements yet, because your code will have to change anyway. Let me or Erik know if you have questions! 🚀
I've updated the bootstrap but my formatting is still off, but i've changed it to bootstrap 3 and fixed some errors.
Cool. 😎 I can't approve it until it's all working, but I'm happy to help you get there if you ask me specific questions!
I think I've corrected the container class issue!
Hi there! I can see that you're using Boostrap 3 now, and you've fixed some of the typos, but there are still problems with the way the site looks, especially the navbar:
Some other issues:
container
class being usedPlease slow down! 🐌 Before you submit any code review, I'd like you to:
master
and gh-pages
). These are some of the minimum expectations any employer or client will have for you when you are hired to create a website or application. We want you to get used to meeting them now, so you can do a great job in your career. 🚀
If you are confused about anything, I'm happy to help you if you ask me specific questions! That's literally my job. 😄
I think I've solved all the problems, what were the unused files you were referring to?
This is getting A LOT closer. ✨ Nice job!
The unused files are the bootstrap folder and skeleton.css
- you're linking to Bootstrap from their CDN (content delivery network - another website) and you're not using Skeleton on this project, so none of those files are necessary in your repo. 🙂
I'm still seeing some custom inline styles and inconsistent indentation, and the navbar doesn't look quite right. I'll come over and we can go through the file together. 😸
I've fixed the issues! Thank you for your help! I've updated the navigation bar, changed the background color (kept getting an error on the validator for that line of code but knew no other way to change background color without using css) and i've gotten rid of the custom inline styles and i hope my indentation is fine.
Wow, your navbar looks great now! 🎉
Everything from the beginning to line 23 is solid. 😁 💪 As you pointed out, setting a background image with the background
HTML property is no longer used, but if you've got your heart set on a grey background, I'll let it slide. 😉
After line 23, things get a little iffy still. You can also see on you hosted site that the layout seems off after the big image of mouthwatering roasted potatoes. 🥔 Let's take it a few lines at a time:
<div class="thumbnail">
<img src="http://del.h-cdn.co/assets/16/51/640x320/landscape-1482189029-delish-rosemary-roasted-potatoes-pin-2.jpg" alt="Potatoes" width="700" height="300"></div></div>
Thumbnail: The thumbnail
class on your div
is why the image is centered with the white border around it. It actually looks like the Jumbotron component in Bootstrap! If you want something to be large and centered like that in the future, I recommend using Jumbotron instead of thumbnail. If you like the way it looks now, you can keep the thumbnail
class how it is. 📷
Closing the container
class: See those two </div>
s after your image? The first one closes <div class="thumbnail">
, which is good. The second one closes <div class="container">
, which is why the content that follows is all crammed to the left side of the page.
</div>
(the one for .container
) to the end of your body
so all your body
content is inside the container.<div>
) is on its own line, the closing tag (<div>
) should also be on its own line. This makes it way easier to keep track of nested elements and catch problems like this! 👀 <h1>The Automatic Potato Peeler</h1>
<h2>How to Make Perfect Tater Tots</h2>
^These lines are fine, except for the indentation, which makes it look like they are nested inside <div class="thumbnail">
. Move them one level to the left; they are actually siblings of your thumbnail div
. ◀️
<div class="row">
<div class="col-sm-4"><p>Ever get tired of the work and time that goes into making your favorite potato meal? Well now for only $29.99, you and your family can make enjoying potatoes easier.</p></div>
<div class="col-sm-8">Go from<img src="potatoes.jpg" class="img-thumbnail" alt="Original Potato" width="200" height="300">to<img src="tatertot.jpg" class="img-thumbnail" alt="Tater Tots" width="200" height="300">
</div>
</div>
^This is another situation where cleaning up the indentation and line breaks will help a lot! I'm going to start it for you, so it's easier to see what's going on. ✨
<div class="row">
<div class="col-sm-4">
<p>Ever get tired of the work and time that goes into making your favorite potato meal? Well now for only $29.99, you and your family can make enjoying potatoes easier.</p>
</div>
<div class="col-sm-8">
Go from
<img src="potatoes.jpg" class="img-thumbnail" alt="Original Potato" width="200" height="300">
to
<img src="tatertot.jpg" class="img-thumbnail" alt="Tater Tots" width="200" height="300">
</div>
</div>
Once it's formatted properly, it's easier to see that it's valid HTML! Every <div>
has a corresponding </div>
and the code makes sense. Only two things to change:
col-sm-8
div in a p
. Don't forget to add one more </div>
to the end of the body
to close your <div class="container">
! 🐶
After you’ve made your changes and pushed them to GitHub and your hosted site, check carefully to make sure it looks right and passes the validator, then comment back here and I’ll take another look.
Thanks! :rocket:
I've attempted to correct the issues! Thank you!
Hi Amela,
I'm getting some errors in the validator and when I look at your hosted site, I can tell that the stuff under the photo isn't inside the container
class (because it's all squished on the left side). 🥔
Please fix that stuff, then resubmit and I'll look at the rest of your code. Be really thorough! I want to see you finish this project and move on, and I'm sure you do too. 😄
Thank you! It should be fixed
YOU DID IT! 🎉 🎉 🎉 🥔 😸
Great job sticking with this! :shipit:
Build a homepage for an imaginary company (you can make up the product/service they offer)
@KatieMFritz Can you take a look at this? It's hosted here and meets the following criteria:
container
class to center your page contentnavbar
class to display the name of your site and a list of at least 3 links (to past projects, or anything else) at the top of your pagelg
) and medium (md
) sized screens, but stack them on top of each other on small (sm
) and extra small (xs
) screensthumbnail
class on an at least one image in your page