Day 193
Closing on the end of this course!
#CodingPhase #TheCodingWay #365CodingPhaseChallenge
**********
* {
box-sizing: border-box;
font-family: sans-serif;
}
html, body {
background: #eff2f9;
}
#home {
min-height: 100vh;
display: flex;
justify-content: center;
align-items: center;
}
.box {
background: white;
width: 100%;
max-width: 400px;
border-radius: 10px;
overflow: hidden;
box-shadow: 0 10px 41px -17px rgba(84, 88, 247, 1);
}
.box .background-image {
background: url('https://vacationrentalssmithmountainlake.com/wp-content/uploads/2018/01/mountain-lake-1.jpeg');
background-position: center bottom;
background-size: cover;
background-repeat: none;
height: 100px;
}
.box .content-area {
padding: 20px;
}
.box .content-area .user-image {
height: 40px;
position: relative;
display: flex;
justify-content: center;
align-items: center;
}
.box .content-area .user-image .circle {
background: url('https://i.pinimg.com/originals/6b/04/67/6b046799ae9bf594ce190c66ce376d51.jpg');
background-position: center center;
background-size: cover;
background-repeat: none;
height: 100px;
width: 100px;
border-radius: 50%;
position: absolute;
top: -75px;
box-shadow: 0 0 41px -17px rgba(84, 88.247, 1);
}
.box .content-area .info-section .name {
font-size: 2rem;
text-align: center;
}
.box .content-area .info-section .position {
font-size: 0.8rem;
font-family: sans-serif;
color: grey;
text-align: center;
margin-bottom: 20px;
}
.box .content-area .contact-section {
display: flex;
justify-content: center;
margin-bottom: 20px;
}
.box .content-area .contact-section #follow-button {
font-family: sans-serif;
font-size: 0.9rem;
background: #5458f7;
border: 1px solid #fff;
padding: 10px 40px;
color: white;
border-radius: 5px;
margin-right: 20px;
cursor: pointer;
}
.box .content-area .contact-section .email-button {
font-family: sans-serif;
font-size: 0.9rem;
background: white;
border: 1px solid #d0d0d0;
padding: 10px 20px;
color: #5458f7;
border-radius: 5px;
cursor: pointer;
text-decoration: none;
}
.box .content-area .contact-section .email-button .fa-paper-plane {
margin-right: 10px;
}
.box .content-area #social-media-section {
display: flex;
justify-content: center;
align-items: center;
height: 0;
overflow: hidden;
transition: all 0.4s ease-in;
}
.box .content-area #social-media-section.active {
height: 50px;
}
.box .content-area #social-media-section a {
display: flex;
justify-content: center;
align-items: center;
height: 50px;
width: 50px;
background: #eeeefe;
margin-right: 20px;
text-decoration: none;
border-radius: 5px;
color: 5458f7;
position: relative;
transition: all 0.4s ease-in;
transform: translate3d(0, -50px, 0);
}
.box .content-area #social-media-section a:hover {
background: #feeeee;
color: #f75454;
}
.box .content-area #social-media-section a:nth-child(4) {
margin-right: 0;
}
.box .content-area #social-media-section.active a:nth-child(1) {
transform: translate3d(0, 0, 0);
transition-delay: 0;
}
.box .content-area #social-media-section.active a:nth-child(2) {
transform: translate3d(0, 0, 0);
transition-delay: 0.2s;
}
.box .content-area #social-media-section.active a:nth-child(3) {
transform: translate3d(0, 0, 0);
transition-delay: 0.3s;
}
.box .content-area #social-media-section.active a:nth-child(4) {
transform: translate3d(0, 0, 0);
transition-delay: 0.4s;
}
@media only screen and (min-width: 0px) and (max-width: 600px) {
#home {
padding: 0 20px;
}
.box {
height: 95vh;
}
}
@media only screen and (min-width: 0px) and (max-width: 320px) {
.box .content-area .contact-section #follow-button {
font-size: 0.8rem;
}
.box .content-area .contact-section .email-button {
font-size: 0.8rem;
}
}
#CodingPhase #TheCodingWay #365CodingPhaseChallenge
**********
* {
box-sizing: border-box;
font-family: sans-serif;
}
html, body {
background: #eff2f9;
}
#home {
min-height: 100vh;
display: flex;
justify-content: center;
align-items: center;
}
.box {
background: white;
width: 100%;
max-width: 400px;
border-radius: 10px;
overflow: hidden;
box-shadow: 0 10px 41px -17px rgba(84, 88, 247, 1);
}
.box .background-image {
background: url('https://vacationrentalssmithmountainlake.com/wp-content/uploads/2018/01/mountain-lake-1.jpeg');
background-position: center bottom;
background-size: cover;
background-repeat: none;
height: 100px;
}
.box .content-area {
padding: 20px;
}
.box .content-area .user-image {
height: 40px;
position: relative;
display: flex;
justify-content: center;
align-items: center;
}
.box .content-area .user-image .circle {
background: url('https://i.pinimg.com/originals/6b/04/67/6b046799ae9bf594ce190c66ce376d51.jpg');
background-position: center center;
background-size: cover;
background-repeat: none;
height: 100px;
width: 100px;
border-radius: 50%;
position: absolute;
top: -75px;
box-shadow: 0 0 41px -17px rgba(84, 88.247, 1);
}
.box .content-area .info-section .name {
font-size: 2rem;
text-align: center;
}
.box .content-area .info-section .position {
font-size: 0.8rem;
font-family: sans-serif;
color: grey;
text-align: center;
margin-bottom: 20px;
}
.box .content-area .contact-section {
display: flex;
justify-content: center;
margin-bottom: 20px;
}
.box .content-area .contact-section #follow-button {
font-family: sans-serif;
font-size: 0.9rem;
background: #5458f7;
border: 1px solid #fff;
padding: 10px 40px;
color: white;
border-radius: 5px;
margin-right: 20px;
cursor: pointer;
}
.box .content-area .contact-section .email-button {
font-family: sans-serif;
font-size: 0.9rem;
background: white;
border: 1px solid #d0d0d0;
padding: 10px 20px;
color: #5458f7;
border-radius: 5px;
cursor: pointer;
text-decoration: none;
}
.box .content-area .contact-section .email-button .fa-paper-plane {
margin-right: 10px;
}
.box .content-area #social-media-section {
display: flex;
justify-content: center;
align-items: center;
height: 0;
overflow: hidden;
transition: all 0.4s ease-in;
}
.box .content-area #social-media-section.active {
height: 50px;
}
.box .content-area #social-media-section a {
display: flex;
justify-content: center;
align-items: center;
height: 50px;
width: 50px;
background: #eeeefe;
margin-right: 20px;
text-decoration: none;
border-radius: 5px;
color: 5458f7;
position: relative;
transition: all 0.4s ease-in;
transform: translate3d(0, -50px, 0);
}
.box .content-area #social-media-section a:hover {
background: #feeeee;
color: #f75454;
}
.box .content-area #social-media-section a:nth-child(4) {
margin-right: 0;
}
.box .content-area #social-media-section.active a:nth-child(1) {
transform: translate3d(0, 0, 0);
transition-delay: 0;
}
.box .content-area #social-media-section.active a:nth-child(2) {
transform: translate3d(0, 0, 0);
transition-delay: 0.2s;
}
.box .content-area #social-media-section.active a:nth-child(3) {
transform: translate3d(0, 0, 0);
transition-delay: 0.3s;
}
.box .content-area #social-media-section.active a:nth-child(4) {
transform: translate3d(0, 0, 0);
transition-delay: 0.4s;
}
@media only screen and (min-width: 0px) and (max-width: 600px) {
#home {
padding: 0 20px;
}
.box {
height: 95vh;
}
}
@media only screen and (min-width: 0px) and (max-width: 320px) {
.box .content-area .contact-section #follow-button {
font-size: 0.8rem;
}
.box .content-area .contact-section .email-button {
font-size: 0.8rem;
}
}
Comments
Post a Comment