<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.6.3/css/all.css">
<div class="container">
<div class="profile-card middle">
<div class="top-section">
<div class="profile-photo">
<a href="">
<img src="https://img.freepik.com/free-vector/hacker-operating-laptop-cartoon-icon-illustration-technology-icon-concept-isolated-flat-cartoon-style_138676-2387.jpg?w=1060&t=st=1685766150~exp=1685766750~hmac=6653f457d59c6934b9876b8169c076586f9d1000954f38ace9e1a9e84aaeb43f" alt="JRG">
<a href="">
</div> <!-- End profile photo -->
<div class="profile-name">
<span>JRG</span>
</div> <!-- End name -->
</div> <!-- End top section -->
<div class="info-section">
<h2>About
<div class="border"></div>
</h2>
<p class="hyphenate">Interested in UI/UX designs and software development.</p>
<a href="" class="follow-link"><button class="btn">Follow</button></a>
<h2>Contact
<div class="border"></div>
</h2>
<p></p>
<div class="social">
<a href="" class="fab fa-facebook-f"></a>
<a href="" class="fab fa-twitter"></a>
<a href="" class="fab fa-instagram"></a>
<a href="" class="fab fa-whatsapp"></a>
<a href="" class="fab fa-youtube"></a>
</div>
</div> <!-- End info section -->
</div> <!-- End card -->
</div> <!-- End container -->
/* Created by JRG */
@import url("https://fonts.googleapis.com/css?family=Montserrat|Roboto&display=swap");
:root {
--black: #ddd;
--mediumblue: rgba(9, 132, 227, 0.9);
--blue: rgba(9, 132, 227, 1);
}
*,
*::before,
*::after {
margin: 0;
padding: 0;
box-sizing: border-box;
user-select: none;
}
body {
background-color: var(--black);
font-family: "Montserrat", sans-serif;
height: 100vh;
}
a {
color: inherit;
text-decoration: none;
display: block;
}
.profile-card {
width: 80%;
max-width: 560px;
background-color: #f1f1f1;
overflow: hidden;
box-shadow: 0 0 20px rgba(0, 0, 0, 0.7);
}
.middle {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
}
.top-section {
position: relative;
align-items: center;
display: flex;
justify-content: center;
background-color: var(--mediumblue);
}
.profile-photo {
width: 8rem;
height: 8rem;
border-radius: 50%;
border: 4px solid var(--blue);
overflow: hidden;
margin: 1em;
}
.profile-photo img {
width: 100%;
}
.profile-name {
position: absolute;
bottom: 1.25rem;
left: 1.25rem;
font-size: 1.1em;
font-family: "Roboto", sans-serif;
font-weight: 900;
opacity: 0.3;
text-transform: uppercase;
}
.info-section {
display: flex;
flex-direction: column;
color: #333;
padding: 1.8em;
padding-top: 0;
}
h2 {
position: relative;
font-size: 1em;
margin-top: 1em;
}
.border {
position: absolute;
left: 0;
bottom: -0.375rem;
width: 1.875rem;
height: 0.1875rem;
background-color: var(--blue);
}
p {
text-align: left;
font-size: 0.875em;
margin-top: 0.8em;
}
.hyphenate {
overflow-wrap: break-word;
word-wrap: break-word;
-webkit-hyphens: auto;
-ms-hyphens: auto;
-moz-hyphens: auto;
hyphens: auto;
}
.social {
display: flex;
justify-content: space-around;
margin-top: 0.2em;
}
.social a {
color: var(--blue);
text-decoration: none;
font-size: 1.25em;
}
.follow-link {
align-self: center;
order: 1;
}
.btn {
position: relative;
outline: 0;
margin-top: 0.7em;
padding: 0.8em 4em;
text-transform: uppercase;
font-weight: 700;
color: var(--blue);
border: 4px solid var(--blue);
background: transparent;
cursor: pointer;
}
.btn::before,
.btn::after {
position: absolute;
content: "";
width: 0.875em;
height: 4px;
background-color: #f1f1f1;
transform: skewX(50%);
transition: 0.4s linear;
}
.btn::before {
top: -4px;
left: 10%;
animation: animate-left 5s infinite linear;
}
.btn::after {
bottom: -4px;
right: 10%;
animation: animate-right 5s infinite linear;
}
.btn:hover::before {
left: 80%;
}
.btn:hover::after {
right: 80%;
}
@keyframes animate-left {
0% {
left: 10%;
}
50% {
left: 80%;
}
100% {
left: 10%;
}
}
@keyframes animate-right {
0% {
right: 10%;
}
50% {
right: 80%;
}
100% {
right: 10%;
}
}
@media screen and (min-width: 700px) {
.profile-card {
display: flex;
}
.profile-name {
left: 50%;
transform: translateX(-50%);
}
.follow-link {
margin-top: 1.5em;
}
}
// Created by Janak Raj Gaha
This Pen doesn't use any external CSS resources.
This Pen doesn't use any external JavaScript resources.