Fireship · @fireship

Build a Curvaceous Homepage // Wavy Background Tutorial with SVG & CSS

Uploaded August 19, 2021 · Length 11:43

Build a Curvaceous Homepage // Wavy Background Tutorial with SVG & CSS

Summary

Learn how to add curves to a website using CSS and SVG, creating a curvaceous homepage with a wavy background.

  • css curves
  • svg background
  • curvaceous homepage
  • web design tutorial
  • css tutorial

Transcript preview

The first 2 minutes of the transcript. Select a timestamp to watch that moment on YouTube.

  1. 0:00

    they say real developers like curves and

  2. 0:02

    personally I love myself a curvaceous

  3. 0:04

    website where each content section

  4. 0:06

    transitions elegantly with some waves

  5. 0:08

    blobs or ripples in today's beginner

  6. 0:10

    friendly tutorial you'll learn how to

  7. 0:12

    turn your flat boring design into a

  8. 0:14

    beautiful curvy one that will turn

  9. 0:15

    people's heads we'll start with a basic

  10. 0:17

    HTML homepage that has a hero at the top

  11. 0:20

    a few content sections and a footer at

  12. 0:22

    the bottom then you'll learn a variety

  13. 0:24

    of techniques to add curves to these

  14. 0:26

    elements like CSS border radius SVG

  15. 0:29

    backgrounds and will even make some

  16. 0:30

    animated morphing blobs with JavaScript

  17. 0:32

    that may seem complicated but it's

  18. 0:34

    actually much easier than it looks

  19. 0:36

    because there's some amazing tools out

  20. 0:37

    there that can make our lives much

  21. 0:38

    easier that you've probably never heard

  22. 0:40

    of and I'll show you a bunch of cool

  23. 0:41

    productivity and CSS tips along the way

  24. 0:44

    if you're new here like And subscribe

  25. 0:46

    and follow along with the full written

  26. 0:47

    tutorial on fireship iio to get started

  27. 0:49

    with this project all you need to do is

  28. 0:51

    open up an editor like vs code and

  29. 0:53

    create a plain HTML file inside that

  30. 0:56

    file type in exclamation point followed

  31. 0:58

    by tab to generate some initial HTML

  32. 1:00

    boiler plate that's called an EMT

  33. 1:02

    snippet and it's built into vs code and

  34. 1:04

    we can actually use it to generate a

  35. 1:05

    bunch of sections of content as well in

  36. 1:07

    this demo we have eight sections of

  37. 1:09

    content so we'll type section * 8 then a

  38. 1:12

    right angle bracket to add a child to

  39. 1:14

    that element which in this case will be

  40. 1:16

    an H1 with a text of nice curves notice

  41. 1:19

    how I have it wrapped in parentheses

  42. 1:20

    because after that I have a plus sign to

  43. 1:23

    add a child next to the H1 which itself

  44. 1:25

    will be a paragraph with some dummy text

  45. 1:27

    inside of it now go ahead and hit Tab

  46. 1:29

    and em it will automatically generate

  47. 1:31

    all of that HTML for you and now that we

  48. 1:33

    have a basic HTML page let's go ahead

  49. 1:35

    and serve it in the browser here's a

  50. 1:37

    little trick to gracefully serve your

  51. 1:39

    app locally open up the command line and

  52. 1:41

    if you have nodejs installed on your

  53. 1:42

    machine you can run npx serve that'll

  54. 1:45

    link you to Local Host 5000 where you

  55. 1:47

    should now be able to see the website

  56. 1:49

    and if you don't have no. JS installed

  57. 1:50

    you can just copy the path to the HTML

  58. 1:53

    file and paste it into your browser

  59. 1:54

    currently the website looks terrible so

  60. 1:56

    let's go to Google fonts to improve it

  61. 1:58

    with a custom font select any font you