JSFiddle - React, Tailwind, and code Playground
by ily4famer
HTML
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="css/style.css">
<title>Document</title>
<link rel="stylesheet" href="css/normalize.css">
<link rel="stylesheet" href="css/style.css">
<link href="https://fonts.googleapis.com/css2?family=Lato:wght@300;400;700&display=swap" rel="stylesheet">
<script src="https://kit.fontawesome.com/6208c7e816.js" crossorigin="anonymous"></script>
</head>
<body>
<header class="header">
<div class="container">
<div class="header-block">
<div class="header-logo">
<div class="header__img">
<img src="img/logo.png" alt="BAK-ONE">
</div>
<div class="header__text">
<!-- /.header__logo -->
<div class="header__title">BAK-ONE</div>
<!-- /.header__title -->
<div class="header__subtitle">One Page Flat Template</div>
<!-- /.header__subtitle -->
</div>
<!-- /.header-text -->
</div>
<!-- /.header-img -->
<nav class="nav">
<a class="nav__link" href="#">HOME</a>
<!-- /.nav__link -->
<a class="nav__link" href="#">PORTFOLIO</a>
<!-- /.nav__link -->
<a class="nav__link" href="#">ABOUT</a>
<!-- /.nav__link -->
<a class="nav__link" href="#">CONTACT</a>
<!-- /.nav__link -->
</nav>
<!-- /.nav -->
</div>
<!-- /.header-block -->
</div>
<!-- /.contaner -->
</header>
<!-- /.header -->
<main>
<div class="intro">
<div...
CSS
* {
-webkit-box-sizing: border-box;
box-sizing: border-box;
}
body {
font-family: 'Lato', sans-serif;
font-weight: 400;
margin: 0;
}
.container {
max-width: 1020px;
margin: 0 auto;
}
@media (max-width: 950px) {
.container {
width: 100%;
margin: 0;
}
}
h1, h2, h3, p {
margin: 0;
}
.nav__link:hover {
background-color: #1bbc9b;
color: #ffffff;
}
.section {
padding: 55px 0;
}
.section-block {
margin: 0 auto;
width: 100%;
display: -webkit-box;
display: -ms-flexbox;
display: flex;
-webkit-box-align: center;
-ms-flex-align: center;
align-items: center;
text-align: center;
-webkit-box-orient: vertical;
-webkit-box-direction: normal;
-ms-flex-direction: column;
flex-direction: column;
color: #444444;
}
.section__title {
font-size: 28px;
margin-bottom: 17px;
}
.section__subtitle {
font-size: 14px;
margin-bottom: 36px;
}
.input {
width: 220px;
height: 47px;
background-color: #ffffff;
border: 2.0px solid #bec3c7;
}
.textarea {
width: 460px;
height: 153px;
background-color: #ffffff;
border: 2.0px solid #bec3c7;
}
.btn {
padding: 14px;
background-color: #1bbc9b;
color: #ffffff;
font-size: 13px;
line-height: 1.2;
letter-spacing: 0.1em;
border: none;
font-family: 'Lato', sans-serif;
font-weight: 700;
text-align: center;
text-decoration: none;
-webkit-transition: 0.2s;
transition: 0.2s;
}
.btn:hover {
background-color: #16a086;
cursor: pointer;
}
.hover:hover .link, .hover:hover .link-progect {
opacity: 0.8;
cursor: pointer;
}
.link {
position: absolute;
top: 90px;
right: 20px;
width: 180px;
height: 48px;
opacity: 0.8;
background-color: #16a086;
display: -webkit-box;
display: -ms-flexbox;
display: flex;
-webkit-box-pack: space-evenly;
-ms-flex-pack: space-evenly;
justify-content: space-evenly;
-webkit-box-align: center;
-ms-flex-align: center;
align-items:...