Skip to content

Instantly share code, notes, and snippets.

@ieshreya
Created June 2, 2021 10:31
Show Gist options
  • Save ieshreya/16a1a82b9b99fc38b8393b86739515ec to your computer and use it in GitHub Desktop.
Save ieshreya/16a1a82b9b99fc38b8393b86739515ec to your computer and use it in GitHub Desktop.
CSS Art - Phone with fav apps
<div class="phone">
<div class="screen">
<div class="greet">
<h2 style="color: #114e60">Hey, Shreya 👋</h2>
<p style="color: #9f9aff; font-weight: bold;">Good Afternoon.</p>
</div>
<div class="apps">
<div class="codepen"> <a target="_blank" href="https://codepen.io/eyeshreya">
<i class="fab fa-codepen"></i></a></div>
<div class="twitter">
<a target="_blank" href="https://twitter.com/eyeshreya"><i class="fab fa-twitter"></i></a>
</div>
<div class="github"><a target="_blank" href="https://github.com/ieshreya ">
<i class="fab fa-github"></i> </a>
</div>
<div class="stackoverflow"><a target="_blank" href="https://stackoverflow.com/ ">
<i class="fab fa-stack-overflow"></i>
</a></div>
<div class="chess">
<a target="_blank" href="https://lichess.org/@/ishry"> <i class="fas fa-chess"></i></a>
</div>
<div class="dev"><a target="_blank" href="https://dev.to/shreya ">
<i class="fab fa-dev"></i></a>
</div>
</div>
</div>
</div>
/* Google fonts */
@import url("https://fonts.googleapis.com/css2?family=Open+Sans&display=swap");
/* Font Awesome */
@import url("https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.3/css/all.min.css");
* {
box-sizing: border-box;
margin: 0;
padding: 0;
}
body {
background-image: linear-gradient(232deg, #c6b0fe 10%, #9f9aff 90%);
font-family: "Open Sans", sans-serif;
}
a {
color: inherit;
}
.phone {
display: flex;
justify-content: center;
align-content: center;
width: 15rem;
height: 26rem;
background: #fff;
margin: 20px;
position: relative;
top: 3rem;
left: 40rem;
border: none;
border-radius: 30px;
box-shadow: 0 6.3px 9.1px rgba(0, 0, 0, 0.02),
0 21px 30.6px rgba(0, 0, 0, 0.03), 0 94px 137px rgba(0, 0, 0, 0.05);
}
.screen {
position: absolute;
width: 14rem;
height: 25rem;
border-radius: 30px;
background: #f2ecff;
top: 7px;
}
.greet {
display: flex;
flex-direction: column;
margin: 13px;
padding: 10px;
cursor: normal;
}
.apps {
display: flex;
justify-content: center;
flex-direction: row;
top: 300px;
flex-wrap: wrap;
align-items: center;
text-align: center;
font-size: 30px;
}
.apps > div {
cursor: pointer;
margin: 10px;
padding-top: 20px;
border-radius: 16px;
}
.apps > div:hover {
transform: scale(1.1);
transition: 0.4s ease-in-out;
color: #000;
}
.codepen {
color: #73dfa0;
top: 40px;
background: #fff;
width: 70px;
height: 70px;
}
.twitter {
color: #3edbf0;
background: #fff;
width: 70px;
height: 70px;
}
.github {
color: #9f5f80;
background: #fff;
width: 70px;
height: 70px;
}
.stackoverflow {
color: #ff8474;
background: #fff;
width: 70px;
height: 70px;
}
.chess {
color: #687980;
background: #fff;
width: 70px;
height: 70px;
}
.dev {
color: #a799b7;
background: #fff;
width: 70px;
height: 70px;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment