Created
June 14, 2020 18:21
-
-
Save matthieua/d728e4c197def56ed66ec8af095a4b8a 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; | |
padding: 15px; | |
border-radius: 10px; | |
} | |
img { | |
width: 100%; | |
border-radius: 10px; | |
} | |
p { | |
font-size: 14px; | |
line-height: 1.5; | |
} | |
button { | |
width: 100%; | |
background: blueviolet; | |
color: white; | |
font-size: 20px; | |
padding: 15px; | |
border: none; | |
margin: 20px 0; | |
border-radius: 30px; | |
box-shadow: 0 15px 20px rgba(0, 0, 0, 0.4); | |
} | |
footer { | |
text-align: center; | |
font-size: 12px; | |
} | |
</style> | |
</head> | |
<body> | |
<h1> | |
🐧 Swallow | |
</h1> | |
<h2> | |
Birds | |
</h2> | |
<img | |
src="https://www.allaboutbirds.org/guide/assets/photo/68123101-720px.jpg" | |
alt="" | |
/> | |
<p> | |
The swallows, martins, and saw-wings, or Hirundinidae, are a family of | |
passerine birds found around the world on all continents, including | |
occasionally in Antarctica. Highly adapted to aerial feeding, they have a | |
distinctive appearance. | |
<br /> | |
<br /> | |
<a href="https://en.wikipedia.org/wiki/Swallow"> | |
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