JSFiddle - React, Tailwind, and code Playground
by yura747
HTML
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Yurii Nibit Test</title>
<link rel="icon" type="image/png" href="img/favicon.png" />
<link rel="stylesheet" href="css/style.css">
</head>
<body>
<div class="content">
<div class="video-conteiner">
<video poster="img/test.jpeg" autoplay loop>
<source src="video/test.mp4" type='video/mp4; codecs="avc1.42E01E, mp4a.40.2"'>
</video>
<div class="overlay">
<h1>Lorem ipsum dolor.</h1>
</div>
</div>
<div class="lorem">
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit.
Vestibulum ut ex sapien. Fusce tempor leo leo, a dictum
sem tincidunt vitae. Integer id lorem sit amet sapien
dignissim ultrices. Nam porttitor posuere lorem, feugiat
cursus diam finibus hendrerit.
</p>
</div>
<div class="form">
<input type="text" placeholder="Name">
<input type="text" placeholder="E-mail">
<input type="text" placeholder="Phone">
<a href="#" class="button">Send</a>
</div>
<div class="footer">
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit.</p>
</div>
</div>
</body>
</html>
CSS
.input {
height: 50px;
width: 60%;
margin-top: 60px;
margin-left: 20%;
margin-right: 20%;
text-align: center;
border-radius: 10px;
border: none;
font-size: 30px;
}
html,
body {
margin: 0;
padding: 0;
font-family: "Tahoma";
}
h1,
h2,
h3,
h4,
h5,
h6,
ul,
li,
p,
a,
div {
margin: 0;
padding: 0;
list-style: none;
text-decoration: none;
color: #000;
font-family: "Tahoma";
font-size: 14px;
font-weight: normal;
}
.content .video-conteiner {
width: 100%;
height: 50%;
position: relative;
overflow: hidden;
}
.content .video-conteiner video {
display: block;
z-index: 0;
width: 100%;
height: 100%;
}
.content .video-conteiner video[poster] {
height: 100%;
width: 100%;
}
.content .video-conteiner .overlay {
position: absolute;
width: 100%;
top: 0;
left: 0;
z-index: 1;
text-align: center;
}
.content .video-conteiner .overlay > h1 {
color: #fff;
font-size: 60px;
}
.content .lorem {
float: left;
height: 500px;
width: 50%;
background-color: #ecf0f1;
overflow: hidden;
}
.content .lorem > p {
padding: 15% 10% 0;
font-size: 30px;
}
.content .lorem > p::first-letter {
padding-left: 50px;
font-size: 40px;
color: red;
}
.content .form {
float: left;
height: 500px;
width: 50%;
background-color: #95a5a6;
}
.content .form input {
height: 50px;
width: 60%;
margin-top: 60px;
margin-left: 20%;
margin-right: 20%;
text-align: center;
border-radius: 10px;
border: none;
font-size: 30px;
}
.content .form .button {
display: block;
background-color: #fff;
color: #757575;
padding-top: 7px;
height: 50px;
width: 60%;
margin-top: 60px;
margin-left: 20%;
margin-right: 20%;
text-align: center;
border-radius: 10px;
border: none;
font-size: 30px;
}
.content .footer {
display: inline-block;
height: 100px;
width: 100%;
background-color: #2c3e50;
text-align: center;
}
.content .footer > p {
color: #fff;
font-size: 30px;
font-style: italic;
...