JSFiddle - React, Tailwind, and code Playground
by DiceMasters
HTML
<div>
<form action="">
<label>Телефон:</label>
<input type="text">
<button type="submit"></button>
</form>
</div>
CSS
div {
width: 100%;
height: 300px;
display: flex;
justify-content: center;
align-items: center;
background-image: url('https://natureconservancy-h.assetsadobe.com/is/image/content/dam/tnc/nature/en/photos/tnc_48980557.jpg');
}
form {
background-color: rgba(255, 255, 255, 0.5);
padding: 15px;
}
label {
font-family: Arial, Helvetica, sans-serif;
font-size: 18px;
font-weight: 500;
padding-right: 10px;
}
input[type="text"] {
background-color: transparent;
border: none;
border-bottom: 1px solid rgba(0,0,0,0.8);
}
button[type="submit"] {
width: 25px;
height: 25px;
background-color: transparent;
border: 1px solid red;
border-radius: 50%;
position: relative;
}
button[type="submit"]:after {
content: '>';
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
}