UI Practice
by andyjh07
HTML
<div class="container">
<div class="grey-gradient"></div>
<!-- <img src="http://assets.gcstatic.com/u/apps/asset_manager/uploaded/2012/04/david-beckham-mens-health2-1327502911.jpg" alt=""> -->
<img src="https://i.gyazo.com/ac8d0ada56db9d8b5175a315c16eb39f.png" alt="">
<div class="dark-blue-gradient"></div>
<div class="light-blue-gradient"></div>
</div>
<!-- https://dribbble.com/shots/2631867-Starting-new-dating-app -->
<br>
<img src="https://d13yacurqjgara.cloudfront.net/users/1115667/screenshots/2631867/date2.jpg" alt="">
SCSS
$darkBlue = #0171bb;
$lightBlue = #4bddd5;
$red = red;
$orange = orange;
.container {
width: 320px;
height: 508px;
position: relative;
background: #eaeaea;
overflow: hidden;
img {
width: 100%;
height: auto;
}
.dark-blue-gradient {
bottom: -20px;
left: 0;
width: 100%;
height: 75%;
z-index: 1;
position: absolute;
background: linear-gradient(15deg, rgba($darkBlue, 0.8) 20%, rgba(255,255,255,0) 70%);
}
.light-blue-gradient {
bottom: 0;
right: -60px;
width: 150%;
height: 100%;
position: absolute;
background: linear-gradient(-15deg, rgba($lightBlue,0.9) 20%, rgba(255,255,255,0) 60%);
}
.grey-gradient {
top: -30px;
right: 0px;
width: 100%;
height: 100px;
position: absolute;
background: linear-gradient(-180deg, rgba(darken(#b5b5b5, 35),0.7) 0%, rgba(#fff,0) 100%);
}
}