In short, we will be building a dad joke generator. When you click the "Make me laugh" button, you'll be told a hilarious, eyeroll-worthy joke!
This has a CSS styling component and a JavaScript component.
Alright, before we jump into any JavaScript madness, let's take a look at the UI we'll be building.
This page will be pretty straightforward. All we need is a button to generate the joke and a way to view / cringe at it!
This will be accomplished with a split view, showing the site description and button on the left and our joke on the right. We'll also be including a tasteful gif of someone clapping at our HILARIOUS puns.
h1
tagbutton
tag with our call to action text (Make me laugh!). Don't worry, the button doesn't need to do anything yet.border-radius
, background-color
, font-family
, and other properties to get it looking snazzy