Fireship · @fireship
Build a Curvaceous Homepage // Wavy Background Tutorial with SVG & CSS
Uploaded August 19, 2021 · Length 11:43
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.
- 0:00
they say real developers like curves and
- 0:02
personally I love myself a curvaceous
- 0:04
website where each content section
- 0:06
transitions elegantly with some waves
- 0:08
blobs or ripples in today's beginner
- 0:10
friendly tutorial you'll learn how to
- 0:12
turn your flat boring design into a
- 0:14
beautiful curvy one that will turn
- 0:15
people's heads we'll start with a basic
- 0:17
HTML homepage that has a hero at the top
- 0:20
a few content sections and a footer at
- 0:22
the bottom then you'll learn a variety
- 0:24
of techniques to add curves to these
- 0:26
elements like CSS border radius SVG
- 0:29
backgrounds and will even make some
- 0:30
animated morphing blobs with JavaScript
- 0:32
that may seem complicated but it's
- 0:34
actually much easier than it looks
- 0:36
because there's some amazing tools out
- 0:37
there that can make our lives much
- 0:38
easier that you've probably never heard
- 0:40
of and I'll show you a bunch of cool
- 0:41
productivity and CSS tips along the way
- 0:44
if you're new here like And subscribe
- 0:46
and follow along with the full written
- 0:47
tutorial on fireship iio to get started
- 0:49
with this project all you need to do is
- 0:51
open up an editor like vs code and
- 0:53
create a plain HTML file inside that
- 0:56
file type in exclamation point followed
- 0:58
by tab to generate some initial HTML
- 1:00
boiler plate that's called an EMT
- 1:02
snippet and it's built into vs code and
- 1:04
we can actually use it to generate a
- 1:05
bunch of sections of content as well in
- 1:07
this demo we have eight sections of
- 1:09
content so we'll type section * 8 then a
- 1:12
right angle bracket to add a child to
- 1:14
that element which in this case will be
- 1:16
an H1 with a text of nice curves notice
- 1:19
how I have it wrapped in parentheses
- 1:20
because after that I have a plus sign to
- 1:23
add a child next to the H1 which itself
- 1:25
will be a paragraph with some dummy text
- 1:27
inside of it now go ahead and hit Tab
- 1:29
and em it will automatically generate
- 1:31
all of that HTML for you and now that we
- 1:33
have a basic HTML page let's go ahead
- 1:35
and serve it in the browser here's a
- 1:37
little trick to gracefully serve your
- 1:39
app locally open up the command line and
- 1:41
if you have nodejs installed on your
- 1:42
machine you can run npx serve that'll
- 1:45
link you to Local Host 5000 where you
- 1:47
should now be able to see the website
- 1:49
and if you don't have no. JS installed
- 1:50
you can just copy the path to the HTML
- 1:53
file and paste it into your browser
- 1:54
currently the website looks terrible so
- 1:56
let's go to Google fonts to improve it
- 1:58
with a custom font select any font you


