Class Project 3 - COMPLETE
All right. Remember this is what it's gonna look like when we're finished, there's a logo on the left. The knob on the right is not really doing much navy stuff, but you get what I mean? Just placeholder text for the moment. Yeah. Alright, let's get started. Alright, let's see how this goes. It would be interesting to see if you did do the homework and you were comparing yours with mine and yeah, let's just see how yours deferred. If you got to the same in the right place and it looks like we described it, it doesn't matter. There's no right or wrong. It's broken. That's wrong. But if it looks fine, it's fine. So first of all, inside of the header, we're gonna put in two dives now, the first one, there's no predefined logo. Okay, so we're going to actually create one called logo. Okay. And we'll put our image in there and we'll create another one called Nav. But there is a novel if you went and called it Div class equals Nav. That's fine too. Don't worry about it. Okay, so inside the l...
ogo here I am going to put in my image. Okay, I need to copy and paste it over. Okay. Because it's in my exercise files project too. And it is called logo. We're using the PNG. Don't worry if you use the SVG, but we'll look at Suggs later on in the course for the moment. I'm gonna copy it and my desktop, find my local folder. Okay. And go to project to my images. I'm going to paste it in here already done it replace. Next thing I want to do is add it in so images slash and there's the logo there, make sure you add your old text. Okay, so this is the logo for bike repair shop, raw bikes. Alright, let's check it in the browser. Awesome. Hello goes in next let's add the nav. Now I just said add the text. This might have been a little confusing like I'm just gonna copy it out of the project file. Okay, I'm going to place it in and I'm gonna get rid of that. Save it. Let's have a little look. So I've got some text now I need it to be over here on the right. How did you do it? Okay. There's a couple of ways. And the way I'm gonna do is I'm going to say the parent which is the header. Okay. I'm going to say I would like you to display and I'd like you to display flex please and there you go there, side by side. Next thing I wanna do is I want to get it to push over to the right and get it in the center. Let's do the going over right. Be interested to know if you've got it going differently to me. So envious code here. I'm going to say hey and I want you to divide them up for me. So I wanted to go to header, I don't want to say justify and I want to justify the content and I want to say um was start around space around Okay. So I want the space between okay separates them out. That might be the one if you're like, I don't even think of that. Mm hmm. Kind of sees space them out. Okay. And put space in between them nice and evenly and no gaps on the side. You could have done it a different way. Trying to think of another way you might have right aligned the nav write in the comments if you did come up with another way. Oh, I know the other way you might have done it. You might have done flex, flex one and then flex to it might have got it across and then right align the text in it with a compound selector. I'm interested now let me know what you did. The next thing I want to do is get it in the middle here. So we're going to use something similar. We're going to go, we did it before. Align items and we're gonna go center. Let's give a look. There it is. There you do get confused sometimes. Can you see there's an online content and items and self basically items are single line contents is groups of lines. Um, it's probably easier to show you in the here it is here. Let's zoom out a little bit. I'll zoom out so that the editor can zoom in. So align content to the center. Can you see there's more than one row of content is like groups of stuff in there and it's still align center in the div Whereas if I scroll up things a bit jumpy there, is there a line items to the center? Can you see It is just one row they're all squeezed into one line items. Individual content groups of stuff. Don't worry I forget. You'll forget. Try both and we will update later. Thank you. Microsoft. What else did I say to do? I said let's get rid of the minimum height and add some padding top and bottom. How much padding? Can't remember. I'm just gonna add. What did you do? I did padding padding top, petting Come on Dan padding top and we'll say 20 pixels. We might change this top and same for that bottom. The height could probably stay there. But I want to kind of yeah, we don't need the height so why have it there? So I got a bit of padding either side. Did I say anything else? I said colors? So I set a background color. Okay now how did you do your background color? Okay, hopefully we did this. Okay. To the body because that's everything on the page we went background color. Background color. There we go. We're going to put in that. Here we go. You know, there's a couple of extra spaces in there. It doesn't matter. Um There you go. Let's get rid of the header color. Goodbye, Tidying it up. All right. And that is it. We've got everything we need to have a little look cool. That was our task. I wonder how you got there if it's slightly different. Leave me a message, Send me a comment. Send me a screenshot and yeah, that's it. I'll see you in the next video.