<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.8.1/css/all.css" integrity="sha384-50oBUHEmvpQ+1lW4y57PTFmhCaXp0ML5d60M1M7uH2+nqUivzIebhndOJK28anvf" crossorigin="anonymous">
<div class="btn">
<a href="https://www.linkedin.com/in/florin-cornea-b5118057/" target="_blank">
<i class="fab fa-linkedin"></i>
</a>
</div>
<h1>Pizza Slice App</h1>
<div class="container">
<div class="card center">
<div class="percent-50 icon">
<i class="fas fa-pizza-slice"></i>
</div>
<div class="percent-50">
<label class="price">Price: $10</label>
<div class="inputs">
<span>Dimension:</span>
<select>
<option>7 cm</option>
<option>12 cm</option>
<select>
<span>Count</span>
<input id="number" type="number" value="1"/>
</div>
</div>
</div>
</div>
.container {
width: 100%;
height: 300px;
display: flex;
align-items: center;
justify-content: center;
}
div {
float: left;
font-family: "Helvetica", serif;
}
.percent-20 {
width: 20%;
}
.percent-50 {
width: 50%;
}
.card .percent-50 {
height: 100%;
padding: 5px;
}
.icon i {
font-size: 100px;
}
.icon {
display: flex;
align-items: center;
justify-content: center;
}
.card {
width: 350px;
height: 190px;
color: #fff;
background-image: linear-gradient(-60deg , #3f5efb, #fc466b);
border-radius: 10px;
box-shadow: 0px 5px 30px #181818;
padding: 30px;
display: -webkit-flex; /* Safari */
-webkit-align-items: center; /* Safari 7.0+ */
display: flex;
align-items: center;
}
.price {
font-size: 20px;
font-weight: 900;
}
.inputs {
margin-top: 20px;
}
.inputs span {
padding: 5px 0;
display: block
}
input, select {
border: none;
width: 100%;
padding: 10px 15px;
box-sizing : border-box;
}
input:focus,
select:focus {
outline: none;
}
select {
border-radius: 20px 20px 0 0;
}
input {
border-radius: 0 0 20px 20px;
}
body {
margin: 0;
background-image: linear-gradient(to right, #0f0c29 , #302b63, #24243e);
}
.btn i:before {
width: 14px;
height: 14px;
position: fixed;
color: #fff;
background: #0077B5;
padding: 10px;
border-radius: 50%;
top:5px;
right:5px;
}
h1 {
width: 100;
text-align: center;
color: #fff;
}
This Pen doesn't use any external CSS resources.
This Pen doesn't use any external JavaScript resources.