Skip to content

Instantly share code, notes, and snippets.

@matthieua
Created June 23, 2020 18:25
Show Gist options
  • Save matthieua/562dbcb4a073dca35baf860fdcdccba6 to your computer and use it in GitHub Desktop.
Save matthieua/562dbcb4a073dca35baf860fdcdccba6 to your computer and use it in GitHub Desktop.
<html>
<head>
<style>
h1 {
text-align: center;
color: blueviolet;
}
h2 {
text-align: center;
border: 1px solid blueviolet;
padding: 15px;
border-radius: 10px;
}
img {
border-radius: 10px;
width: 100%;
}
p {
font-size: 14px;
line-height: 1.5;
}
button {
width: 100%;
background-color: blueviolet;
color: white;
border: none;
padding: 15px;
display: block;
border-radius: 30px;
box-shadow: 0 15px 20px rgba(0, 0, 0, 0.4);
font-size: 20px;
margin: 20px 0;
}
footer {
text-align: center;
font-size: 12px;
}
</style>
</head>
<body>
<h1>
πŸ’ƒ Salsa
</h1>
<h2>
Dance music genre
</h2>
<img src="https://fortsalsa.com/wp-content/uploads/2018/09/7.jpg" alt="" />
<p>
Salsa music is a popular dance music genre that initially arose in New
York City during the 1960s. Salsa is the product of various Cuban musical
genres.
<br />
<br />
<a href="https://en.wikipedia.org/wiki/Salsa_music">
Learn more on Wikipedia
</a>
</p>
<button>
Learn Salsa
</button>
<footer>
Coded by πŸ‘©β€πŸ’»
<a href="https://www.shecodes.io">
SheCodes
</a>
</footer>
<script>
function subscribe() {
let name = prompt("What is your name?");
prompt("What is your email address?");
alert(
`Thanks ${name}, we'll be in touch! Meanwhile, wash your keyboard πŸ’ƒ`
);
}
let button = document.querySelector("button");
button.addEventListener("click", subscribe);
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment