A simple approach to layouts when going from design to code

Sdílet
Vložit
  • čas přidán 1. 06. 2024
  • When we have a static design file, whether that’s a Figma design or a .jpg file, often the hardest part is breaking down and figuring out how the layout is going to work. In this video, I take a look at how you can break down a layout into it’s pieces to help make the process a lot easier.
    🔗 Links
    ✅ The Frontend Mentor Project: www.frontendmentor.io/challen...
    ✅ Modern CSS by Stephanie Eckles: moderncss.dev/
    ✅ How to pick when to use Flexbox and Grid: • Flexbox or grid - How ...
    ⌚ Timestamps
    00:00 - Introduction
    01:05 - Draw boxes around EVERYTHING
    04:00 - Then see how those boxes are organized
    09:00 - Turning the layout into HTML
    13:10 - Doing the same thing for the smaller pieces
    16:30 - Why I look at the desktop design even if I code mobile-first
    17:45 - Using existing websites to practice breaking down layouts
    22:20 - Picking between flexbox and grid
    #css
    --
    Come hang out with other dev's in my Discord Community
    💬 / discord
    Keep up to date with everything I'm up to
    ✉ www.kevinpowell.co/newsletter
    Come hang out with me live every Monday on Twitch!
    📺 / kevinpowellcss
    ---
    Help support my channel
    👨‍🎓 Get a course: www.kevinpowell.co/courses
    👕 Buy a shirt: teespring.com/stores/making-t...
    💖 Support me on Patreon: / kevinpowell
    ---
    My editor: VS Code - code.visualstudio.com/
    ---
    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 CZcams channel, make sure to follow me on Instagram and Twitter.
    Twitter: / kevinjpowell
    Codepen: codepen.io/kevinpowell/
    Github: github.com/kevin-powell
    ---
    And whatever you do, don't forget to keep on making your corner of the internet just a little bit more awesome!

Komentáře • 105

  • @user-wy6iy7ij1z
    @user-wy6iy7ij1z Před 7 měsíci +83

    We need more figma to code. Or at least frontend mentor,. please do more video about these

    • @VelvetSage
      @VelvetSage Před 7 měsíci +2

      Bro, seriously?

    • @user-wy6iy7ij1z
      @user-wy6iy7ij1z Před 7 měsíci +1

      @@VelvetSage seriously, his videos about these help me so much

    • @fokspoks
      @fokspoks Před 7 měsíci +1

      I need more videos like this one too, as a front dev who want to start combining code with designs

    • @user-wy6iy7ij1z
      @user-wy6iy7ij1z Před 7 měsíci +1

      @@fokspoks yeah, they are super good. The last one that i watched helped me so much, it explain everything, how to structure the HTML, how to choose the variables, responsiveness etc.

    • @user-gu5ts5nx8r
      @user-gu5ts5nx8r Před 7 měsíci

      Very true

  • @fullstackprojects5615
    @fullstackprojects5615 Před 3 měsíci +2

    only a highly experience and seasoned professional knows the stuff which Kevin is talking about. His hair hasn't gotten gray with age, it's his endless dedication and countless hours that he has given to his most loved skill CSS that has made him the way he is. Feels so inspired!

  • @JohnMontet
    @JohnMontet Před 7 měsíci +14

    I've been developing for 25 years, and I still found this hugely helpful. Thank you, Kevin!

  • @hamiltonjunior8399
    @hamiltonjunior8399 Před 7 měsíci +1

    I have to say: Maybe this is your best video ever, and I didn't even finish yet!

  • @RikyEze
    @RikyEze Před 7 měsíci +36

    Each video is a banger and always tackling important issues. Thanks Kevin, you made me love CSS 😊

  • @MrBrady95
    @MrBrady95 Před 9 dny

    Nice one! I like watching the overview process. Once again, "KePow right in the CSSr"

  • @andershofsten1209
    @andershofsten1209 Před 7 měsíci +1

    I'm so glad I found your channel. You content is amazing, and very well explained and easy to follow.

  • @drkrueger
    @drkrueger Před 7 měsíci

    As I plow through Django, this video is just what I needed to help visualize how I'm going to layout the website. Grrrrreat!

  • @julianalonso9579
    @julianalonso9579 Před 7 měsíci +1

    Thank you Kevin! I really enjoy are you explain things and you are always so polite and friendly it is even more enjoyable! keep up the good work!

  • @anonymouspanda7821
    @anonymouspanda7821 Před 7 měsíci +7

    Another amazingly helpful video. When i started programming (not just html/css/js but python too) i always wanted to jump right into projects and found myself struggling through. Its very important to make a plan and outline your steps so that you go into your code with organization.
    I also find it helpful to pull up any relevant documentation and familiarize myself with any new information i may need to use during my project. This has allowed me to become more efficient during my projects!

  • @andidaffaliefalza
    @andidaffaliefalza Před 7 měsíci +1

    Thank you kev, this kind of video on structuring layout with html css is so important. Not many of em tutorials build like this, this is super-super important especially for beginners. Also thank you for your conquering layout course because i felt that it was a game changer for me on how to structure a layout like this.
    Besides structuring like this, there's a couple of concepts that beginners should know for example like the box model which basically all of the html elements is like a box and by default they had their own display such as block or inline elements. Again, super content.

  • @magoxxii
    @magoxxii Před 7 měsíci

    I'm doing your Conquering Responsive layouts course and this is excellent plus for it! Thanks Kevin for all the knowledge you are sharing with us!! 'Gracias por tanto, perdon por tan poco'

  • @JuanCastro-C
    @JuanCastro-C Před 7 měsíci

    Hi Kevin, I love these kind of videos, please keep making more like that, analyzing different types of layouts and finding the best approach, It is awesome and we learn a lot. Sharing is caring, thanks for sharing

  • @paulcharman8113
    @paulcharman8113 Před 7 měsíci +3

    Excellent video Kevin and really helpful for someone who gets a tad frustrated by the huge amount of options within CSS but also is guilty at times of jumping right in at the deep without the appropriate planning the video shows. I know you've said it in other videos but simplicity is often the key

  • @TomasHradckyComposer
    @TomasHradckyComposer Před 7 měsíci

    Great staring point. Makes good sense. Thanks.

  • @jamesablanco
    @jamesablanco Před 7 měsíci

    I am still trying to practice my CSS, and breaking it out this way makes me understand how to better visualize and tackle my HTML. Thank you again for your videos and content. Kevin you make the videos informative and fun and engaging yet interesting. Thank you again

  • @Woeden
    @Woeden Před 7 měsíci

    Very valuable tips, many thanks.

  • @ChrisClines
    @ChrisClines Před 7 měsíci +1

    Can we take a moment to appreciate the fact you managed to write legible text with a mouse! Haha

  • @ken_sparks
    @ken_sparks Před 7 měsíci

    This is very helpful. Thanks for posting!

  • @whitehoof
    @whitehoof Před 7 měsíci

    Dear Kevin, this video is pure gold! 👍👍👍 These days, even my cats know when to use flex or grid (i don't), but seeing the bigger picture at the beginning of the job is the king of skills! Well, at least, one of the kings, i'm sure. Thank you so much for all the insights! 🎉 The boxes-drawing technique rulez, my html/css mentor uses the boxes to explain the layout all the time 🤘

  • @UDOFAA
    @UDOFAA Před 6 měsíci

    Thanks for breaking it down into pieces... Watching from NG ❤

  • @Hamstimusprime
    @Hamstimusprime Před 7 měsíci

    Just finished a course on html css and Js, and This is EXACTLY what i was looking for!

  • @ebichu-dechu
    @ebichu-dechu Před 7 měsíci

    This is exactly the tutorial I have been waiting for so long! Design -> code

  • @petarkolev6928
    @petarkolev6928 Před 6 měsíci

    Holy cow :O This video is insanely valuable!!!!

  • @Loug522
    @Loug522 Před 7 měsíci

    Sometimes I struggle a lot making things work(and often they don't work at all) because of the feeling that I'm using too many divs, then I watch your videos just to find out that the problem is me and not the amount of divs.

  • @tyro7428
    @tyro7428 Před 7 měsíci

    Great video! Easily applicable and demands usage

  • @drucifer6
    @drucifer6 Před 7 měsíci

    Great content as usual! Love how you're not using buzzwords like "atomic" design to break things out into pieces. Also, I never bought into the whole mobile first trend. If you're building a phone app sure, but for web, desktop is always more complex.

  • @jamesgulland
    @jamesgulland Před 7 měsíci

    Im just about to start my first ever f/e gig on Monday, so this is a very timely video, thanks!

  • @huylearning2543
    @huylearning2543 Před 7 měsíci

    thanks you, this is very helpful

  • @daveturnbull7221
    @daveturnbull7221 Před 7 měsíci +5

    I love poking about inside the bones of websites but my guesses as to how they did stuff is always wildly off - doesn't stop me from checking though. I often go through the actual stylesheets to see how they organised things in them, nose about in the various sections of the devtools seeing what errors are happening or css declarations being dropped. I find that not only does it boost my confidence a bit when I see the pro's get errors as well but by looking at what is going less than perfectlyfor them I can sometimes get a bit better understanding of things.

  • @maxtsh
    @maxtsh Před 7 měsíci

    Awesome, very good.

  • @Tiger1AuasfE
    @Tiger1AuasfE Před 7 měsíci

    Very nice video, very helpful.

  • @davidduru2789
    @davidduru2789 Před 7 měsíci

    I really love your videos

  • @elenamikhaylova5086
    @elenamikhaylova5086 Před měsícem

    great video!

  • @wherethereswilltheresaway3297
    @wherethereswilltheresaway3297 Před 7 měsíci +1

    Awesome, extremely helpful. It would be cool to see some videos using dev mode in Figma, too. Thank you for putting so much good content out there and keeping us updated on current trends. Much appreciated 🤙🏽

    • @KevinPowell
      @KevinPowell  Před 7 měsíci +1

      I probably won't do a ton with dev mode, just because it's only free for 2 more months before it hits a paywall and most people won't have it 😅

    • @wherethereswilltheresaway3297
      @wherethereswilltheresaway3297 Před 7 měsíci +1

      @@KevinPowell That makes sense, and is good to know haha. I won't waste too much time on it at this point then, Thank you. Hope you have an awesome day

  • @simonswiss
    @simonswiss Před 7 měsíci

    Not sure how long it has been since you changed mic from your Blue Yeti, but the audio is *so much better* with this new mic! Sounds great!

  • @reznov00
    @reznov00 Před 7 měsíci

    Amazed by his drawing skills with a mouse. Those lines are looking straighter than me!

  • @BoobCheese
    @BoobCheese Před 7 měsíci

    loving the tuesday beginner video 👍

  • @jhonnatanr
    @jhonnatanr Před 7 měsíci

    I am absolutely loving this series of more beginner friendly videos as many others are. Thanks Kevin!!

  • @kuthathwe
    @kuthathwe Před 7 měsíci

    Amazing video, Explained well

  • @Wynorrific1
    @Wynorrific1 Před 7 měsíci

    Thank you sooooo much for your time and videos god bless you 🙏

  • @chrisintocode
    @chrisintocode Před 7 měsíci

    Great video! I really love hearing about you're thought process I feel like it's similar to mine just with better techincal skills lol.

  • @Shulkerkiste
    @Shulkerkiste Před 7 měsíci +1

    Super useful video, thank you!
    It would be awesome, if you could make videos like this one where you use this process and actual code the layout for Mobile and Desktop.
    The example websites/layouts can be simple. You could use some common layouts like in the video (equal columns or flex/grid layouts like 21:06, ...).
    I guess, it will be really helpful for everyone to learn how to implement such layouts based on a mockup. The website's content isn't that important as you mentioned.
    I know you already have videos about recreating a design, but I love the simplicity of this video. So maybe you could also implement the layout shown in this video, it's pretty nice.
    I'm looking forward to such kind of videos :)

  • @nephiw
    @nephiw Před 7 měsíci

    Great video Respected Sir!/Madam!

  • @Iam_inevitabIe
    @Iam_inevitabIe Před 7 měsíci

    This tuto came in at the right time, I'm actually in the middle of designing my final year project for my team and we are gonna need this approach thank u bro, let me know if I can send u the link to our figma project so u can have a look at it and give us feedback on it thanks.

  • @welling1
    @welling1 Před 7 měsíci

    More tutorials like this please.

  • @mamomi1hd993
    @mamomi1hd993 Před 7 měsíci

    I have been doing the same but just backwards, hahaha. It really is a game changer!

  • @zool.artisan
    @zool.artisan Před 7 měsíci

    thank you

  • @adamos.webdev
    @adamos.webdev Před 7 měsíci

    Extremlu helpful

  • @laurentiubica5739
    @laurentiubica5739 Před 4 měsíci

    Very useful and valuable video! I would like also to use your Paint tool. What paint tool are you using there? Thank you, Kevin!

  • @sitedel
    @sitedel Před 7 měsíci

    To inspect existing websites, I like to use the 3D view to better see nested elements. This very handy tool is called 3D view in Edge and Layers in Firefox and Safari.

  • @stevenelson43
    @stevenelson43 Před 7 měsíci

    Nice one! Unless this example is a 1-page site, internal pages will have a different layout than the homepage, except for the header. Probably multiple different layouts. What’s your recommendation for organizing CSS styles for different sections of a website?

  • @ronaldpaek
    @ronaldpaek Před 7 měsíci

    Thank you for this Kevin, if you could make a course where u just break down layouts thought process from Figma files, would be so nice, I’d love a course like that

  • @deatho0ne587
    @deatho0ne587 Před 7 měsíci

    Good video as always.
    16:55 Yes normally mobile is just make everything top to bottom, but sometimes it goes all "What the heck is this". To be fair then you use grid-template something and/or go to the UI/UX team & have them explain why to you in detail.

  • @chestervirgil7968
    @chestervirgil7968 Před 7 měsíci

    Hey Kevin, what theme extension do you use? I need to know! 😅

  • @BrinleyBlogette
    @BrinleyBlogette Před 7 měsíci

    This is a greeeeeatttttt video 👏 ❤

  • @franktielemans6624
    @franktielemans6624 Před 7 měsíci

    Thats what always do. I do this in Illustator and I allready give the elements classnames.
    When grid is needed I draw the grid lines with gridnumbers and I write all CCS code.
    It's amazing when you write CSS and never test while writing it.

  • @tonimaunde
    @tonimaunde Před 7 měsíci

    Premium content. Thank you, Kevin.

  • @INAVACL
    @INAVACL Před 7 měsíci

    Wireframing can be key as well if youre building something yourself / for team!

  • @andreasmoor4969
    @andreasmoor4969 Před 7 měsíci

    Danke!

  • @Warface
    @Warface Před 7 měsíci

    Do you think using Bootstrap is still relevant or custom grid or flex layout is better?

  • @Username-em1oe
    @Username-em1oe Před 7 měsíci

    More figma to code please!

  • @koenv85
    @koenv85 Před 7 měsíci

    Any reason why you used divs for the larger parts of the main instead of sections?

  • @outpost31737
    @outpost31737 Před 7 měsíci +1

    Thanks Kevin, very helpful! Makes sense to draw boxes around the content since web design is based on the box model 😉

  • @lukedorny
    @lukedorny Před 7 měsíci

    Awesome. I say push back and request the wireframes! If they don’t have those then double your rate. 😂

  • @ayushdedhia25
    @ayushdedhia25 Před 7 měsíci +3

    Only you can make a design to code look easy ❤

  • @pinnaclewd
    @pinnaclewd Před 7 měsíci

    Great to get the thoughts going but I would use grid template areas for the whole shabang.... no?
    grid-template-columns: 1fr 1fr 1fr
    grid-template-rows: auto;
    gap: 1rem;
    grid-template-areas:
    "logo nav nav"
    "img img right"
    "left middle right"
    "new1 new2 new3"
    ;

  • @Gojiyaravi
    @Gojiyaravi Před 7 měsíci

    Thanks Kevin for this amazing tutorial. Can you please share this figma file or template with me? I want to design this website as a practice.

  • @AntowaKartowa
    @AntowaKartowa Před 7 měsíci

    Probably this video is for beginners - I didn't found something new and useful for me.
    From my perspective first question that shoul arise is how this layout should behave with real data. How it should cope with heights inconsistencies, when title is longer and takes 4+ lines, or descriptions in sidebar longer and makes sidebar taller than the hero block.
    Should we truncate sidebar descriptions, should CTA button sticks to description on some margin or it should sticks to the bottom of column?

  • @rumorscameras
    @rumorscameras Před 7 měsíci

    is that an audio technica at4050 series>

  • @juancarlostremolss3158
    @juancarlostremolss3158 Před 7 měsíci

    So essentially what we have to do when we first see a design is to ask for the wireframes, and if there are no wireframes for us developers, we create our own (make sure to do it inside a copy of the design, you don't want to make changes as a developer to a design handed to you)

  • @Adityacode
    @Adityacode Před 7 měsíci

    Just Kevin reading my mind, like 100th time.
    I just had to convert a figma to react like 2 days ago for a internship.

  • @ultratacoRX7
    @ultratacoRX7 Před 6 měsíci

    I'd like to see a video kind of like this but targeted for designers to help them better understand how to make designs that are better/easier for dev. I'm an experienced dev and understand these concepts of boxes and responsiveness, but our designer does not really so I've had to become very good at building weird and difficult layouts. It's made me a better dev over time but dang it can be annoying.

  • @SRG-Learn-Code
    @SRG-Learn-Code Před 7 měsíci

    I would love to watch you do something with stylus.

    • @KevinPowell
      @KevinPowell  Před 7 měsíci

      I'm a Sass guy myself :D

    • @SRG-Learn-Code
      @SRG-Learn-Code Před 7 měsíci

      ​@@KevinPowell I mean adding custom styles to favourite websites with a extension.

  • @_y7ya
    @_y7ya Před 7 měsíci

    But when you've done enough front-end you can immediately know the html and css structure at a glance of a design. I think this is good for teaching someone the thinking process of layouts but drawing squares on a figma board should not be a standard part of a developer's workflow.

  • @__manojts__
    @__manojts__ Před 7 měsíci

    second 😂

  • @mohammedmhilal4129
    @mohammedmhilal4129 Před 7 měsíci

    first

  • @Aleks-fp1kq
    @Aleks-fp1kq Před 7 měsíci +1

    Looks like wireframing to me.

  • @isodoubIet
    @isodoubIet Před 7 měsíci

    Figma balls hahhahahahhahah

  • @user-lm2cq6yh1v
    @user-lm2cq6yh1v Před 7 měsíci +1

    Pray for Gaza

  • @uniquebrands6056
    @uniquebrands6056 Před 7 měsíci

    Am sorry I lost my coding passion please who's gonna help me regain my passion ?

    • @aqib1259
      @aqib1259 Před 7 měsíci

      Sure

    • @KevinPowell
      @KevinPowell  Před 7 měsíci +5

      I find if I fall into a rut, that sometimes you just need to find something that looks like fun to make. It can be *super* easy to do, but that let's you mindlessly build it without running into too many stumbling blocks. It can be pretty refreshing. Also, no harm at all in taking breaks, sometimes that's the best thing to do when everything is becoming a grind.

    • @uniquebrands6056
      @uniquebrands6056 Před 7 měsíci

      @@KevinPowell I just started relearning html and css from free codecamp since yesterday I hope I don't give up this time again. Am just really good at css just that I do face some challenges when using flexboxes and positioning properties and also responsiveness.

  • @stonking8939
    @stonking8939 Před 7 měsíci

    Nothing new, this one... It's old.

  • @houriayaseen5487
    @houriayaseen5487 Před 7 měsíci

    I can't imagine how the world so afraid of telling the truth.. how thousands of people dying every day since 7 October, and the whole world just watching 💔.. an entire hospital just bumped and over nine hundred people were killed! why would anyone on earth bump a hospital?!
    #Gazagenocide
    #FreePalestine

    • @gintoki_sakata__
      @gintoki_sakata__ Před 7 měsíci

      Shit like that happens all the time in many places. You just don't hear about it. And your comment isn't gonna help Palestine. Get over yourself