Created
April 9, 2020 18:14
-
-
Save matthieua/aedef953b86a51f458d2fe87b65adb01 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: 5px; | |
} | |
img { | |
max-width: 100%; | |
border-radius: 10px; | |
} | |
p { | |
line-height: 1.5; | |
font-size: 12px; | |
} | |
button { | |
display: block; | |
margin: 40px auto; | |
background: blueviolet; | |
color: white; | |
font-size: 20px; | |
padding: 15px 30px; | |
border-radius: 5px; | |
border: none; | |
box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.3); | |
transition: all 150ms ease-in-out; | |
} | |
button:hover { | |
cursor: pointer; | |
opacity: 0.9; | |
} | |
footer { | |
text-align: center; | |
} | |
</style> | |
</head> | |
<body> | |
<h1> | |
New York | |
</h1> | |
<h2> | |
City in New York | |
</h2> | |
<img | |
src="https://images.unsplash.com/photo-1560719008-591d7581777b?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=2400&q=80" | |
alt="" | |
/> | |
<p> | |
New York City comprises 5 boroughs sitting where the Hudson River meets | |
the Atlantic Ocean. At its core is Manhattan, a densely populated borough | |
that’s among the world’s major commercial, financial and cultural centers. | |
Its iconic sites include skyscrapers such as the Empire State Building and | |
sprawling Central Park. Broadway theater is staged in neon-lit Times | |
Square. | |
<br /> | |
<br /> | |
<a href="https://en.wikipedia.org/wiki/New_York_City" target="_blank"> | |
Learn more on Wikipedia | |
</a> | |
</p> | |
<button> | |
Go to New York | |
</button> | |
<footer> | |
👩💻 built by | |
<a href="https://shecodes.io/"> | |
SheCodes | |
</a> | |
</footer> | |
<script> | |
function subscribe() { | |
let name = prompt("What is your name?"); | |
let email = prompt("What is your email?"); | |
alert(`Thanks ${name}! We'll be in touch! Meanwhile, wash your hands!`); | |
} | |
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