Class Project 02 - COMPLETE
Welcome back. How did the homework go? You're either sitting there smug thinking yep I did it, I'm a web designer. I smashed out that footer and it looks great or you're sitting there going you're not as good teacher as you think you are dan. It went badly and the site doesn't work in. My computer caught fire which either way I'm really happy with. Okay because it's the beginning your your new, okay if you skipped it this is where I'm cutting, I'm shaking my finger, you can't see it but I'm cutting shaking my finger. You should have done your homework but if you haven't that's alright, we're all here now let's go through how I would do it. There's a couple of ways of doing this. Let's do the way I did it. If you got to a good solution that's perfect. But let's just see let's head over to V. S. Code and where do we start to wonder where you started? I'm going to start with. I feel like I want to color the background first for some reason. Okay so let's go to the footer. It's an easy one...
. Get rid of this and we could just type in black but we could actually just hover above this and drag it down to this bottom corner. Okay I'm just dragging it past where it needs to go letting go and then coming back and just dragging it down. I kind of said about 80% but mm hmm How about that and save it preview in browser, it's kind of see through maybe how dark it doesn't really matter. But we got the idea right there is some um buck and it's transparent. Let's add the Texan outside of here. Okay, so let's find the footer. Let's add our Pete egg. Let's go and find the text there it is there and paste it awesome. Save it, see what it looks like. That's where we're at. Cool. Let's do a couple of things. Let's maybe make it smaller and center it horizontally because that's the easy one to do. So this is where I wanted. You could actually just style the footer. You could say I wanted to be a font size here Like say 10 pixels. What have you picked and it would work. The, the reason I kind of suggested doing a compound selector. Okay, so something like footer with that has a pit tag in. It is so that if you've got like an image inside of there as well or say some links or lots of different things, you can be really specific about it. You can say I want the paragraph text that inside the footer. It doesn't really matter how you did it as long as it worked. Okay, we'll do font size. I did 10 pixels. Let's give that a test every single time. Just make sure it's working, let's do text align center, are you going so far if you like is there like ah moments or is it like yep, I did that nailed it look, it looks perfect. I made mine slightly darker. Okay, it wasn't white. You didn't know that color. I'm just doing this because I wanted to be a slightly different color. Like he's changing the rules. I wanted to be a slightly muted kind of gray because it's too bright down there. Alright, next thing I want to do is get the spacing right, okay and how did you do it? Did you leave the bottom play with the heights? Play with the margins? That's how I'm gonna do it. I'm going to get rid of the height off the foot. Remember they remember at the beginning we added loads of heights and we're slowly removing it all because they were just useful at the beginning to you know, so that while we're learning we can see things but now it's fine to leave it like that because I know later on while I'm building it, I can say I do I do it for the P or to the footer. I think you can do it either and I wonder what you did leave in the comments, what you did if you're like, hey I did this other thing but and it still worked and do that because then other people might say yeah me too, I did this other way. There's a better way dan's writing it badly, I'm happy for that. So for the moment I'm going to do some padding off the top 50 pixels and same for the bottom bottom 50 pixels. Let's check it. That's kind of where I wanted to get to that. I fulfill all my brief ignore the map did spacing above and below. Perfect footer the p tag, background color. We did it All right. If yours didn't work, I'm going to save this file now and put it into the completed files just to recap the completed files because they're super handy under your exercise files. There'll be a folder in here called completed files. I'm giving them separate while I'm working in this course, but I'll dump this whole folder in there when I'm finished. Okay? And you'll find this one and you can see these are all the different videos that we've made open them up and you should see the code that I've got here and you can compare. Alright. That was our photo project over. Well done you, let's get on to some new fancy stuff