Skip to content

Instantly share code, notes, and snippets.

@matthieua
Created June 28, 2020 18:21
Show Gist options
  • Save matthieua/28dfe8a23adb51d7ff15142b260dfa28 to your computer and use it in GitHub Desktop.
Save matthieua/28dfe8a23adb51d7ff15142b260dfa28 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;
border-radius: 10px;
padding: 15px;
}
img {
border-radius: 10px;
width: 100%;
}
p {
font-size: 14px;
line-height: 20px;
}
button {
width: 100%;
background: blueviolet;
color: white;
border: none;
font-size: 20px;
padding: 20px;
box-shadow: 0 15px 20px rgba(0, 0, 0, 0.3);
margin: 20px 0;
border-radius: 30px;
}
footer {
text-align: center;
font-size: 12px;
}
</style>
</head>
<body>
<h1>
🐝 Bees
</h1>
<h2>
Insect
</h2>
<img
src="https://www.scitecheuropa.eu/wp-content/uploads/2019/09/Bee-hiding-1068x601.jpg"
/>
<p>
Bees are flying insects closely related to wasps and ants, known for their
role in pollination and, in the case of the best-known bee species, the
western honey bee, for producing honey. Bees are a monophyletic lineage
within the superfamily Apoidea. They are presently considered a clade,
called Anthophila.
<br />
<br />
<a href="https://en.wikipedia.org/wiki/Bee">
Learn more on Wikipedia
</a>
</p>
<button>
Subscribe to our newsletter
</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