Created
June 28, 2020 18:21
-
-
Save matthieua/28dfe8a23adb51d7ff15142b260dfa28 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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