Created
April 26, 2020 18:20
-
-
Save matthieua/676bf9388cc9320794b983e6415de6c3 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: #d41a44; | |
} | |
h2 { | |
text-align: center; | |
color: #63c2c8; | |
border: 1px solid #63c2c8; | |
padding: 15px; | |
border-radius: 4px; | |
} | |
img { | |
display: block; | |
margin: 0 auto; | |
max-width: 100%; | |
border-radius: 4px; | |
} | |
p { | |
line-height: 1.5; | |
font-size: 13px; | |
} | |
button { | |
display: block; | |
background: black; | |
color: white; | |
margin: 20px auto; | |
font-size: 20px; | |
padding: 20px 30px; | |
border-radius: 4px; | |
box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.2); | |
transition: all 150ms ease-in-out; | |
} | |
button:hover { | |
cursor: pointer; | |
color: #e71c4a; | |
} | |
footer { | |
text-align: center; | |
font-size: 11px; | |
} | |
</style> | |
</head> | |
<body> | |
<h1> | |
TikTok | |
</h1> | |
<h2> | |
Social Network | |
</h2> | |
<img | |
src="https://ecoonline.s3.amazonaws.com/uploads/2019/10/tiktok.png" | |
alt="" | |
/> | |
<p> | |
TikTok is a Chinese video-sharing social networking service owned by | |
ByteDance, a Beijing-based company founded in 2012 by Zhang Yiming. It is | |
used to create short dance, lip-sync, comedy, and talent videos. ByteDance | |
first launched Douyin for the China market in September 2016. | |
</p> | |
<a href="https://en.wikipedia.org/wiki/TikTok"> | |
Learn more about TikTok on Wikipedia | |
</a> | |
<button> | |
Try TikTok | |
</button> | |
<footer> | |
Coded by 👩💻<a href="https://www.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 by email! 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