Created
July 9, 2020 18:21
-
-
Save matthieua/5168d03d06b65053dbf52a96413df8e1 to your computer and use it in GitHub Desktop.
This file contains 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 { | |
border-radius: 10px; | |
width: 100%; | |
} | |
p { | |
font-size: 13px; | |
line-height: 1.5; | |
} | |
button { | |
width: 100%; | |
border: none; | |
background: blueviolet; | |
color: white; | |
font-size: 20px; | |
padding: 20px; | |
border-radius: 30px; | |
box-shadow: 0 15px 20px rgba(0, 0, 0, 20%); | |
margin: 20px 0; | |
} | |
footer { | |
text-align: center; | |
font-size: 12px; | |
} | |
</style> | |
</head> | |
<body> | |
<h1> | |
🇺🇸 Chicago | |
</h1> | |
<h2> | |
City in Illinois | |
</h2> | |
<img | |
src="https://www.visiteosusa.com.br/sites/default/files/styles/hero_l_x2/public/images/hero_media_image/2018-04/7d5ac2254f021e67620d0ed38f6a4e79.jpeg?itok=qr4saRZd" | |
alt="" | |
/> | |
<p> | |
Chicago, on Lake Michigan in Illinois, is among the largest cities in the | |
U.S. Famed for its bold architecture, it has a skyline punctuated by | |
skyscrapers such as the iconic John Hancock Center, 1,451-ft. Willis Tower | |
(formerly the Sears Tower) and the neo-Gothic Tribune Tower. The city is | |
also renowned for its museums, including the Art Institute of Chicago with | |
its noted Impressionist and Post-Impressionist works. | |
<br /> | |
<br /> | |
<a href="https://en.wikipedia.org/wiki/Chicago"> | |
Learn more on Wikipedia | |
</a> | |
</p> | |
<button> | |
Go to Chicago | |
</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