-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
79acb69
commit a05a862
Showing
7 changed files
with
417 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
The MIT License (MIT) | ||
|
||
Copyright (c) 2023 Alin (https://codepen.io/alin_trinca/pen/VwVyLvw) | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all | ||
copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
SOFTWARE. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# 019 User Profile | ||
|
||
A Pen created on CodePen.io. Original URL: [https://codepen.io/alin_trinca/pen/VwVyLvw](https://codepen.io/alin_trinca/pen/VwVyLvw). | ||
|
||
![User Profile Screenshot](user-profile.png) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
<!DOCTYPE html> | ||
<html lang="en" > | ||
<head> | ||
<meta charset="UTF-8"> | ||
<title>CodePen - 019 User Profile</title> | ||
<link rel="stylesheet" href="./style.css"> | ||
|
||
</head> | ||
<body> | ||
<!-- partial:index.partial.html --> | ||
<div class="profile"> | ||
<div class="profile__info"> | ||
<div class="profile__pic"> | ||
<div class="circle-1"></div> | ||
<div class="circle-2"></div> | ||
<img src="https://images.pexels.com/photos/2269872/pexels-photo-2269872.jpeg?auto=compress&cs=tinysrgb&w=1260&h=750&dpr=1" alt="MADAO pfp" width="100" height="100" style="border-radius: 50%;"> | ||
</div> | ||
|
||
<div class="profile__name">John</div> | ||
<div class="profile__job">Developer</div> | ||
|
||
<div class="profile__actions"> | ||
<div class="profile__btn">Follow</div> | ||
<div class="profile__btn">Message</div> | ||
</div> | ||
</div> | ||
|
||
<div class="profile__stats"> | ||
<div class="box"> | ||
<div class="value">523</div> | ||
<div class="parameter">Posts</div> | ||
</div> | ||
<div class="box"> | ||
<div class="value">1387</div> | ||
<div class="parameter">Likes</div> | ||
</div> | ||
<div class="box"> | ||
<div class="value">146</div> | ||
<div class="parameter">Followers</div> | ||
</div> | ||
</div> | ||
</div> | ||
<!-- partial --> | ||
|
||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,148 @@ | ||
@import url("https://fonts.googleapis.com/css2?family=Mulish:ital,wght@0,400;0,700;1,400&display=swap"); | ||
* { | ||
margin: 0; | ||
padding: 0; | ||
box-sizing: inherit; | ||
} | ||
|
||
html { | ||
font-size: 62.5%; | ||
box-sizing: border-box; | ||
} | ||
|
||
body { | ||
font-family: "Mulish", sans-serif; | ||
color: #fff; | ||
line-height: 1.5; | ||
min-height: 100vh; | ||
position: relative; | ||
display: flex; | ||
align-items: center; | ||
justify-content: center; | ||
flex-direction: column; | ||
background: #0f172a; | ||
} | ||
|
||
::selection { | ||
color: #131c31; | ||
background: #0ea5ea; | ||
} | ||
|
||
.profile { | ||
width: calc(100% - 30px); | ||
max-width: 640px; | ||
text-align: center; | ||
margin: 15px; | ||
display: flex; | ||
border: 1px solid #222f43; | ||
border-radius: 20px; | ||
overflow: hidden; | ||
background-color: #131c31; | ||
color: #b9e0f2; | ||
box-shadow: 0 10px 10px 0 rgba(0, 0, 0, 0.05); | ||
} | ||
.profile__info { | ||
display: flex; | ||
flex-direction: column; | ||
flex-basis: 340px; | ||
text-align: center; | ||
} | ||
.profile__pic { | ||
display: flex; | ||
flex-direction: row; | ||
position: relative; | ||
width: 100px; | ||
height: 100px; | ||
margin: 40px auto 0 auto; | ||
border-radius: 50%; | ||
justify-content: center; | ||
align-items: center; | ||
} | ||
.profile__pic .circle-1 { | ||
position: absolute; | ||
width: 108px; | ||
height: 108px; | ||
border-width: 1px; | ||
border-style: solid; | ||
border-color: #b9e0f2 #b9e0f2 #b9e0f2 transparent; | ||
border-radius: 50%; | ||
transform-origin: center; | ||
transition: all 1.5s ease-in-out; | ||
} | ||
.profile__pic .circle-2 { | ||
position: absolute; | ||
width: 114px; | ||
height: 114px; | ||
left: -8; | ||
top: -8; | ||
border-width: 1px; | ||
border-style: solid; | ||
border-color: #b9e0f2 transparent #b9e0f2 #b9e0f2; | ||
border-radius: 50%; | ||
transform-origin: center; | ||
transition: all 1.5s ease-in-out; | ||
} | ||
.profile__pic:hover .circle-1 { | ||
cursor: pointer; | ||
transform: rotate(360deg); | ||
} | ||
.profile__pic:hover .circle-2 { | ||
cursor: pointer; | ||
transform: rotate(-360deg); | ||
} | ||
.profile__name { | ||
font-size: 3rem; | ||
font-weight: 700; | ||
text-transform: uppercase; | ||
margin-top: 30px; | ||
} | ||
.profile__job { | ||
font-size: 1.4rem; | ||
} | ||
.profile__actions { | ||
margin: 30px 60px 0; | ||
display: flex; | ||
flex-direction: column; | ||
} | ||
.profile__btn { | ||
padding: 0.8rem 2.2rem; | ||
margin-bottom: 15px; | ||
background: transparent; | ||
border: 1px solid #0ea5ea; | ||
border-radius: 50px; | ||
font-size: 1.6rem; | ||
font-weight: 700; | ||
transition: all 0.3s ease-in-out; | ||
color: #fff; | ||
cursor: pointer; | ||
} | ||
.profile__btn:hover { | ||
background: linear-gradient(90deg, #0ea5ea, #0bd1d1 51%, #0ea5ea); | ||
transition: all 0.3s ease-in-out; | ||
} | ||
.profile__stats { | ||
display: flex; | ||
flex-direction: column; | ||
flex-basis: 300px; | ||
justify-content: space-between; | ||
} | ||
.profile__stats .box { | ||
display: flex; | ||
flex-direction: column; | ||
height: 33%; | ||
background-color: #233358; | ||
justify-content: center; | ||
align-items: center; | ||
transition: all 0.3s ease-in-out; | ||
} | ||
.profile__stats .box:hover { | ||
background-color: #1f2d4d; | ||
cursor: pointer; | ||
} | ||
.profile__stats .box .value { | ||
font-size: 2.5rem; | ||
font-weight: 700; | ||
} | ||
.profile__stats .box .parameter { | ||
font-size: 1.4rem; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
<div class="profile"> | ||
<div class="profile__info"> | ||
<div class="profile__pic"> | ||
<div class="circle-1"></div> | ||
<div class="circle-2"></div> | ||
<img src="https://images.pexels.com/photos/2269872/pexels-photo-2269872.jpeg?auto=compress&cs=tinysrgb&w=1260&h=750&dpr=1" alt="MADAO pfp" width="100" height="100" style="border-radius: 50%;"> | ||
</div> | ||
|
||
<div class="profile__name">John</div> | ||
<div class="profile__job">Developer</div> | ||
|
||
<div class="profile__actions"> | ||
<div class="profile__btn">Follow</div> | ||
<div class="profile__btn">Message</div> | ||
</div> | ||
</div> | ||
|
||
<div class="profile__stats"> | ||
<div class="box"> | ||
<div class="value">523</div> | ||
<div class="parameter">Posts</div> | ||
</div> | ||
<div class="box"> | ||
<div class="value">1387</div> | ||
<div class="parameter">Likes</div> | ||
</div> | ||
<div class="box"> | ||
<div class="value">146</div> | ||
<div class="parameter">Followers</div> | ||
</div> | ||
</div> | ||
</div> |
Oops, something went wrong.