Created
October 4, 2016 12:44
-
-
Save nicohvi/7b815a7245eeef02ae50aff76781c556 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> | |
<title>Halla Martin</title> | |
<meta charset="utf-8"/> | |
<link rel="stylesheet" href="style.css" /> | |
</head> | |
<body> | |
<section class="box"> | |
<h1>Sorry!</h1> | |
<p> | |
Du må være over 18 år for å delta | |
i konkurransen. | |
</p> | |
<section class="btn-container"> | |
<a class="btn" href="#">OK</a> | |
</section> | |
</section> | |
</body> | |
</html> |
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
* { | |
box-sizing: border-box; | |
} | |
body, html, section, h1, p, a { | |
padding: 0; | |
margin: 0; | |
} | |
body { | |
background: #b2dad7; | |
color: #333; | |
display: flex; | |
flex-direction: column; | |
justify-content: center; | |
align-items: center; | |
} | |
a { | |
text-decoration: none; | |
} | |
.box { | |
background: #f2f2f2; | |
width: 50%; | |
padding: 40px 60px; | |
border-radius: 10px; | |
position: relative; | |
} | |
h1 { | |
font-size: 70px; | |
text-align: center; | |
text-transform: uppercase; | |
margin-bottom: 20px; | |
} | |
p { | |
text-align: center; | |
width: 50%; | |
margin: 0 auto; | |
} | |
.btn-container { | |
display: flex; | |
justify-content: center; | |
margin-top: 30px; | |
} | |
.btn { | |
background: #f7eab2; | |
padding: 15px 30px; | |
color: #333; | |
border-radius: 10px; | |
} | |
.box:after, .box:before { | |
position: absolute; | |
bottom: -49px; | |
content: " "; | |
width: 50%; | |
height: 50px; | |
} | |
.box:before { | |
left: 0; | |
border-radius: 10px 0 0 0; | |
background: linear-gradient(to right top, transparent 50%, #f2f2f2 50%); | |
} | |
.box:after { | |
right: 0; | |
border-radius: 0 10px 0 0; | |
background: linear-gradient(to left top, transparent 50%, #f2f2f2 50%); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment