Created
April 5, 2020 18:21
-
-
Save matthieua/45cc833dd8e67efef14f84ef2e950398 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: 20px; | |
border-radius: 10px; | |
} | |
img { | |
max-width: 100%; | |
display: block; | |
width: 300px; | |
border-radius: 10px; | |
margin: 0 auto; | |
} | |
p { | |
line-height: 1.5; | |
} | |
button { | |
border-radius: 4px; | |
box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.5); | |
background: blueviolet; | |
color: white; | |
border: none; | |
display: block; | |
font-size: 24px; | |
padding: 10px 20px; | |
margin: 20px auto; | |
transition: all 150ms ease-in-out; | |
} | |
button:hover { | |
opacity: 0.8; | |
cursor: pointer; | |
} | |
.container { | |
padding: 20px; | |
max-width: 600px; | |
margin: 0 auto; | |
} | |
</style> | |
</head> | |
<body> | |
<div class="container"> | |
<h1> | |
Tbilisi | |
</h1> | |
<h2> | |
Capital of Georgia | |
</h2> | |
<img | |
src="https://www.traveldailymedia.com/assets/2018/10/Tbilisi-Georgia.jpg" | |
alt="Picture of Tbilisi" | |
/> | |
<p> | |
Tbilisi is the capital of the country of Georgia. Its cobblestoned old | |
town reflects a long, complicated history, with periods under Persian | |
and Russian rule. Its diverse architecture encompasses Eastern Orthodox | |
churches, ornate art nouveau buildings and Soviet Modernist structures. | |
Looming over it all are Narikala, a reconstructed 4th-century fortress, | |
and Kartlis Deda, an iconic statue of the “Mother of Georgia.” | |
</p> | |
<a href="https://en.wikipedia.org/wiki/Tbilisi" target="_blank"> | |
Learn more on Wikipedia | |
</a> | |
<button> | |
Subscribe to our newsletter | |
</button> | |
</div> | |
<script> | |
function subscribe() { | |
let name = prompt("What is your name?"); | |
let email = prompt("What is your email?"); | |
alert( | |
`Thank you ${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