How to code a brewery website - Finishing up the code [Design & Code] Code part 8

Kevin Powell · Beginner ·🛠️ AI Tools & Apps ·7y ago

Key Takeaways

This video demonstrates how to finish coding a brewery website using CSS, Grid layout, and Sass, covering various styling and layout techniques.

Full Transcript

hi and welcome back to this series where I'm finally going to finish coding up the brewery website so in this video I'm finally finishing off the rest of the brewery website so I'm gonna be doing the part with the keg in it there that I hadn't finished it and the footer and I'm also just cleaning things up and fixing up a few little loose ends that I had missed along the way so let's just jump right into it so let's might as well wrap this all up now let's go and tackle this one I'm gonna go back to my type auger fee for one section section one second because I realized I made a bit of a mistake along the way so a layout components abstract not abstract space typography put the margin to zero in all of these but then I never did my paragraph margin bottom I'll just do one in four now so that's going to be better and I need to bring my image into there whoops let's open up my index and I completely forgot when I was doing this to bring my image in so we can do that right now section brewery so title da da da da find it more I'm just gonna bring the image right here image images / keg I'm pretty sure some gigs there we go good now this section is getting a completely different look than the other ones right I'm pretty much going to give this one - and I need some space there just do I do three one two three one two I'm gonna do two and I'm just going to give this boy some padding so on my layouts and my layout I'll make a new file called brewery dot s CSS and you can see I never even made layouts for that all that fell into the general stuff I think general yeah so here on my brewery one let's go back to my main that's import brewery save that so what I want to do is say that my section brewery which I'm just going to double check that's what I called it it is did I spell it the same brewery okay so my section brewery what I want to do is grid is auto flow over repeat to 1fr I just want to columns for this one column for the picture one column for that which already it's making it much better the problem with images when you do something like this actually what I'm gonna do is come in here and just do div class section section very text box we're just gonna call it text box because it's a text box close and boom because now all of these don't fall on the grid anymore they just fall where they need to fall and super duper now there's a few things that do want to set up on this to make it work a little better but you can see it's sort of getting already the look that I want it to have so what I'm gonna do should I do okay it's great section burying a text box okay and the only reason I'm doing that is because I can just dot text box padding so my padding is gonna be like 3m [Music] on all sides and whoops this should be and double underscore there we go okay good hmm maybe this isn't gonna work the way I wanted it to here what if I get that to stop you know what I'm gonna get rid of this save I'm gonna keep my text box though um section for a text box this is going to get a class equals section Brewery whoops section brewery image and what we're gonna do in here because that other thing wasn't working the way ed originally wanted it to and what we're gonna do is my and image will have a grid column of 1 over 3 this padding and then my text box will have a grid column of 3 over 4 let's turn this off what's this giant space it's o1 over let's go see what's happening 1 2 3 and 3 to 4 yeah that's what I thought would happen oh right that makes sense maybe I do need to have a different grid on here they misspelled it in both places real that's hilarious what if I just redefine the columns a little bit and add a little gap okay we're gonna change it up actually I'm gonna do grid is autoflow when fr whoops over one fr how big - I'm with my text to be now min max 300 pixels 650 pixels when fr what if I did this one is too I'm gonna do a min max on this min max 300 pixels it's ufr we're also gonna put a gap on this one because it looks weird if not gap grid and gap 1m to a grid this would be a column just in case probably could just be grid gap but just to be safe that just gives us our space there this can still get bigger smaller and one thing I want to do is I want to make sure that my like right now it's not doing it but when this gets bigger when my image is bigger I want to keep this centered in that space so on my textbox I don't need my padding on there I knew NL loops align self-center I think there we go so I just stay centered in that space so that'll work for my image could I do I want to keep my image I've tried a few things here that I've deleted because it wasn't working I want to make sure my image always stays on this side and the only thing left that I can think of is if I do a margin left of auto oh there we go okay that worked and it pushes it that way super I'm something good good good good so I'm actually really happy with that the biggest issue now that we have is all this gigantic spacing this spacing is driving me absolutely bananas and part of the reason that is there is on my general you may remember I did padding 5 m0 I think we just need to do a zero on this too let's just go and check this out to see you why oh you see here it's because some of my text is long maybe no if something in this that's making it taller than it needs to be that's okay what I think I might do is just make it actually you know what that's a lot better yeah I'm pretty happy with that cool good good good so that's looking pretty nice ma'am all I have left to do is my footer and I realize it's not a hundred percent responsive and that's gonna have to stay that way if you want to be my guest I'd love it if you were to turn this into a fully responsive design and if you do make sure to let me know about it and let me see it but I think it's more interesting the parts that I'm doing now and if I have other sites that I've done that are fully responsive so you can go and check those out where we're using some media queries and stuff like that so for my footer let's just go and bring that into my main here footer and I can close my brewery now that one's done I can close my cards I can close my typography buttons for my footer so footer text-align:center I have the SVG here that we can't see which is my logo I'm gonna sort of cheat here with some sass and just do my logo I want to change the field the problem is if I just did logo and it fill on here of the Stewart red for now it doesn't actually fill anything because if we look at the logo let's just go look fast on my logo itself so the SVG there's no fill set on this the fill is on the things inside of there so you can see that this path has a fill on it and all the individual paths have fills on them so what I'm going to do is just logo star so everything inside my logo that's inside my footer it gets that on it and actually I don't need to know did I give that a separate class logo oh I called it logo light I could do this exact same thing on logo late then instead of having it you know this could just be logo light and then this could be brought out from here and put them here and then even that could be brought to my general except the color on it should be the color on it should be color brown light I believe did I leave this here save there we go perfect and even that might make it no I'm gonna leave it like that that's fine because here I need my color to be color color color brown light and my footer paragraphs which it's a little lazy doing this instead of giving in the class but they both need to be checked a font family font family title their line Heights can be one their margins can be zero they're kind of spaced out a little more oh there we go that's getting more where that was after let's just go and take a look at what I was after something like that what was my font size on that 20 well we'll stick with that I think I misspelled it there yeah I think we'll stick with that um that's probably coming just straight off my SVG so I'm not going to fiddle around too much now I've logo okay I'm gonna cheat a little here too then logo margin bottom 0.2 M need some space on that cool and my footer can have a margin or LG padding padding bottom of like 5 mm as well to give me that space so I can scroll all the way down mmm there we have it the site is done so I hope that you liked it I hope you learned something through watching this and if you did please let me know down in the comments below honestly if you've made it this far through this series thank you so much for watching all of these videos it's you guys watching these videos that helps support this channel and helps make this possible also a huge thank you to my patrons who helped support me financially if you'd like to know more about that go and check out my patreon page and as I've been seeing throughout the series if some of the sass stuff that I've been doing interests you there is a link down below that you can sign up to find out when I launched my sass course one last time thank you for watching and don't forget until next time to make your corner the Internet just a little bit more awesome [Music]

Original Description

Finishing up the rest of the site! Github starting point: https://github.com/kevin-powell/brewery-start Github for this project: https://github.com/kevin-powell/brewery_website #DesignAndCode --- I have a newsletter! https://www.kevinpowell.co/newsletter New to Sass, or want to step up your game with it? I've got a course just for you: https://www.kevinpowell.co/learn-sass --- My Code Editor: VS Code - https://code.visualstudio.com/ How my browser refreshes when I save: https://youtu.be/h24noHYsuGc --- Support me on Patreon: https://www.patreon.com/kevinpowell I'm on some other places on the internet too! If you'd like a behind the scenes and previews of what's coming up on my YouTube channel, make sure to follow me on Instagram and Twitter. Instagram: https://www.instagram.com/kevinpowell.co/ Twitter: https://twitter.com/KevinJPowell Codepen: https://codepen.io/kevinpowell/ Github: https://github.com/kevin-powell
Watch on YouTube ↗ (saves to browser)
Sign in to unlock AI tutor explanation · ⚡30

Playlist

Uploads from Kevin Powell · Kevin Powell · 0 of 60

← Previous Next →
1 How to create an awesome navigation bar with HTML & CSS
How to create an awesome navigation bar with HTML & CSS
Kevin Powell
2 Improve your CSS by Keepin' it DRY
Improve your CSS by Keepin' it DRY
Kevin Powell
3 HTML & CSS for Beginners Part 6: Images
HTML & CSS for Beginners Part 6: Images
Kevin Powell
4 HTML & CSS for Beginners Part 7: File Structure
HTML & CSS for Beginners Part 7: File Structure
Kevin Powell
5 HTML & CSS for Beginners Part 4: Bold and Italic text and HTML comments
HTML & CSS for Beginners Part 4: Bold and Italic text and HTML comments
Kevin Powell
6 HTML & CSS for Beginners Part 5: Links
HTML & CSS for Beginners Part 5: Links
Kevin Powell
7 HTML & CSS for Beginners Part 3: Paragraphs and Headings
HTML & CSS for Beginners Part 3: Paragraphs and Headings
Kevin Powell
8 HTML and CSS for Beginners Part 1: Introduction to HTML
HTML and CSS for Beginners Part 1: Introduction to HTML
Kevin Powell
9 HTML and CSS for Beginners Part 2: Building your first web page!
HTML and CSS for Beginners Part 2: Building your first web page!
Kevin Powell
10 HTML & CSS for Beginner Part 8: Introduction to CSS
HTML & CSS for Beginner Part 8: Introduction to CSS
Kevin Powell
11 HTML & CSS for Beginners Part 9: External CSS
HTML & CSS for Beginners Part 9: External CSS
Kevin Powell
12 HTML & CSS for Beginners Part 10: Divs & Spans
HTML & CSS for Beginners Part 10: Divs & Spans
Kevin Powell
13 HTML & CSS for Beginners Part 11: Classes & IDs
HTML & CSS for Beginners Part 11: Classes & IDs
Kevin Powell
14 HTML & CSS for Beginners Part 12: The CSS Box Model - Margin, Borders & Padding explained
HTML & CSS for Beginners Part 12: The CSS Box Model - Margin, Borders & Padding explained
Kevin Powell
15 HTML & CSS for Beginners Part 13: Background Images
HTML & CSS for Beginners Part 13: Background Images
Kevin Powell
16 HTML & CSS for Beginners Part 14: Style Text with CSS
HTML & CSS for Beginners Part 14: Style Text with CSS
Kevin Powell
17 HTML & CSS for Beginners Part 15: How to style links
HTML & CSS for Beginners Part 15: How to style links
Kevin Powell
18 HTML & CSS for Beginners Part 16: CSS selectors and Specificity
HTML & CSS for Beginners Part 16: CSS selectors and Specificity
Kevin Powell
19 HTML & CSS for Beginners Part 17: How to Create and Style HTML Lists
HTML & CSS for Beginners Part 17: How to Create and Style HTML Lists
Kevin Powell
20 HTML & CSS for Beginners Part 18: How Floats and Clears work
HTML & CSS for Beginners Part 18: How Floats and Clears work
Kevin Powell
21 HTML & CSS for Beginners Part 19: Colors with CSS - hex, rgba, and hsla
HTML & CSS for Beginners Part 19: Colors with CSS - hex, rgba, and hsla
Kevin Powell
22 HTML & CSS for Beginners Part 20: How to center a div
HTML & CSS for Beginners Part 20: How to center a div
Kevin Powell
23 HTML & CSS for Beginners Part 21: How to create a basic website layout - the HTML
HTML & CSS for Beginners Part 21: How to create a basic website layout - the HTML
Kevin Powell
24 HTML & CSS for Beginners Part 22: How to create a basic layout - the CSS
HTML & CSS for Beginners Part 22: How to create a basic layout - the CSS
Kevin Powell
25 How to Create a Responsive Website from Scratch - Part 1: The HTML #Responsive #HTML5
How to Create a Responsive Website from Scratch - Part 1: The HTML #Responsive #HTML5
Kevin Powell
26 How to Create a Responsive Website from Scratch - Part 2: The Header and Hero area #Responsive #CSS3
How to Create a Responsive Website from Scratch - Part 2: The Header and Hero area #Responsive #CSS3
Kevin Powell
27 How to Create a Responsive Website from Scratch - Part 3: The About Section #Responsive #CSS
How to Create a Responsive Website from Scratch - Part 3: The About Section #Responsive #CSS
Kevin Powell
28 How to Create a Responsive Website from Scratch - Part 4: Building a Responsive Portfolio Section
How to Create a Responsive Website from Scratch - Part 4: Building a Responsive Portfolio Section
Kevin Powell
29 How to Create a Responsive Website from Scratch - Part 5: Call To Action and Footer #CSS #Responsive
How to Create a Responsive Website from Scratch - Part 5: Call To Action and Footer #CSS #Responsive
Kevin Powell
30 Tutorial: Learn how to use CSS Media Queries in less than 5 minutes
Tutorial: Learn how to use CSS Media Queries in less than 5 minutes
Kevin Powell
31 End of the year upate and what's coming to my channel to start the new year
End of the year upate and what's coming to my channel to start the new year
Kevin Powell
32 Create a CSS only Mega Dropdown Menu
Create a CSS only Mega Dropdown Menu
Kevin Powell
33 CSS Tutorial: Outline and Outline Offset
CSS Tutorial: Outline and Outline Offset
Kevin Powell
34 CSS Blending Modes
CSS Blending Modes
Kevin Powell
35 Parallax effect | 2 different ways to add it with jQuery
Parallax effect | 2 different ways to add it with jQuery
Kevin Powell
36 CSS Units: vh, vw, vmin, vmax #css #responsive #design
CSS Units: vh, vw, vmin, vmax #css #responsive #design
Kevin Powell
37 How to Create a Website - Complete workflow | Part 01: Intro + Setting things up
How to Create a Website - Complete workflow | Part 01: Intro + Setting things up
Kevin Powell
38 100 Subscribers speed coding bonus video
100 Subscribers speed coding bonus video
Kevin Powell
39 How to Create a Website - Complete workflow | Part 02: The Markup #HTML
How to Create a Website - Complete workflow | Part 02: The Markup #HTML
Kevin Powell
40 How to Create a Website - Complete workflow | Part 03: Sass Variables and a Mixin #Sass
How to Create a Website - Complete workflow | Part 03: Sass Variables and a Mixin #Sass
Kevin Powell
41 How to Create a Website - Complete workflow | Part 04: Setting up the hero and header
How to Create a Website - Complete workflow | Part 04: Setting up the hero and header
Kevin Powell
42 How to Create a Website - Complete workflow | Part 05: Typography & Buttons
How to Create a Website - Complete workflow | Part 05: Typography & Buttons
Kevin Powell
43 How to Create a Website - Complete workflow | Part 06.1: Building the navigation with Flexbox
How to Create a Website - Complete workflow | Part 06.1: Building the navigation with Flexbox
Kevin Powell
44 How to Create a Website - Complete workflow | Part 06.2: Making the nav work with jQuery
How to Create a Website - Complete workflow | Part 06.2: Making the nav work with jQuery
Kevin Powell
45 Redesigning & Coding My Website #CreateICG
Redesigning & Coding My Website #CreateICG
Kevin Powell
46 How to Create a Website - Complete workflow | Part 07: Starting the flexbox grid
How to Create a Website - Complete workflow | Part 07: Starting the flexbox grid
Kevin Powell
47 How to Create a Website - Complete workflow | Part 08: Promo & Problem shooting!
How to Create a Website - Complete workflow | Part 08: Promo & Problem shooting!
Kevin Powell
48 How to Create a Website - Complete workflow | Part 09: The CTA and Footer
How to Create a Website - Complete workflow | Part 09: The CTA and Footer
Kevin Powell
49 How to Create a Website - Complete workflow | Part 10: Making it responsive
How to Create a Website - Complete workflow | Part 10: Making it responsive
Kevin Powell
50 How to Create a Website - Complete workflow | Part 11: Making it responsive con't
How to Create a Website - Complete workflow | Part 11: Making it responsive con't
Kevin Powell
51 How to Create a Website - Complete workflow | Part 12: Putting the site online
How to Create a Website - Complete workflow | Part 12: Putting the site online
Kevin Powell
52 Create a Custom Grid System with CSS Calc() and Sass
Create a Custom Grid System with CSS Calc() and Sass
Kevin Powell
53 CSS em and rem explained #CSS #responsive
CSS em and rem explained #CSS #responsive
Kevin Powell
54 Should you use Bootstrap?
Should you use Bootstrap?
Kevin Powell
55 How to add Smooth Scrolling to your one page website with jQuery
How to add Smooth Scrolling to your one page website with jQuery
Kevin Powell
56 Let's learn Bootstrap 4
Let's learn Bootstrap 4
Kevin Powell
57 How I approach designing a website - my thought process
How I approach designing a website - my thought process
Kevin Powell
58 Build a website with Bootstrap 4 - Part 1: The setup
Build a website with Bootstrap 4 - Part 1: The setup
Kevin Powell
59 Build a website with Bootstrap 4 - Introduction
Build a website with Bootstrap 4 - Introduction
Kevin Powell
60 Build a website with Bootstrap 4 - Part 2:  Customizing Variables
Build a website with Bootstrap 4 - Part 2: Customizing Variables
Kevin Powell

This video teaches how to finish coding a brewery website, covering CSS styling, Grid layout, and Sass. It provides hands-on experience with styling and layout techniques, and is suitable for beginners.

Key Takeaways
  1. Create a new CSS file for the brewery section
  2. Define grid columns and rows
  3. Add padding and margin to elements
  4. Use grid layout to position elements
  5. Redefine the columns and add a gap to the grid
  6. Change the fr value to create more space between columns
  7. Use align-self: center to keep the image centered
  8. Apply a margin-left of auto to push the image to the left side
  9. Remove padding from the textbox
  10. Set the fill color of the logo using the logo class and fill property
💡 Using Grid layout and Sass can simplify the process of styling and positioning elements on a website, making it easier to create a responsive and visually appealing design.

Related Reads

Up next
Make Stunning Tree Diagrams with ChatGPT In Seconds!
Educraft
Watch →