user card update

This commit is contained in:
wt
2024-10-03 16:47:52 +07:00
parent 5945740402
commit d5967d47c2
4 changed files with 115 additions and 62 deletions
+103
View File
@@ -0,0 +1,103 @@
.cardicon {
position: absolute;
top: 0px;
right: 0px;
width: 60px;
height: 60px;
overflow: hidden;
transition: ease-in-out 0.3s;
border-radius: 10px;
}
.cardicon:hover {
box-shadow: white 0 0 30px;
transform: translateY(-2px);
}
.cardicon>img {
width: 100%;
height: 100%;
}
.card {
position: absolute;
top: 10px;
right:10px;
padding: 10px;
border-radius: 10px;
overflow: hidden;
width: 60px;
height: 60px;
transition: 0.3s;
background: linear-gradient(rgb(109, 107, 107), rgb(177, 175, 175));
}
.card:hover {
width: 300px;
height: 300px;
}
.card:hover>.cardicon {
top: 30px;
right: 30px;
width: 150px;
height: 150px;
}
.card>.text>.mail {
position: relative;
font-size: 17px;
line-height: 20px;
font-weight: 400;
color: inherit;
text-decoration: none;
}
.card>.text>.username {
position: relative;
margin: 0;
font-size: 32px;
line-height: 36px;
}
.card>.text>.mail::after {
content: "";
position: absolute;
bottom: 0;
left: 0;
width: 0;
height: 2px;
background-color: gray;
transition: 0.3s;
}
.card>.text>h2::after {
content: "";
position: absolute;
bottom: 0;
left: 0;
width: 0;
height: 2px;
background-color: gray;
transition: 0.3s;
}
.card>.text>.username:hover::after {
width: 50%;
}
.card>.text>.mail:hover::after {
width: 100%;
}
.card>.text {
opacity: 0;
position: absolute;
bottom: 30px;
left: 30px;
transition: 0.3s;
}
.card:hover>.text {
opacity: 1;
}
+1 -1
View File
@@ -3,7 +3,7 @@
display: flex;
align-items: center;
justify-content: space-between;
padding: 10px;
padding: 10px 70px 10px 10px;
}
.header-text {
-48
View File
@@ -1,48 +0,0 @@
.usercard {
width: 300px;
height: 300px;
background: linear-gradient(rgb(109, 107, 107), rgb(177, 175, 175));
border-radius: 16px;
padding: 0 30px 30px;
transition: 0.3s;
display: grid;
text-align: start;
align-items: center;
}
.usercard:hover {
transform: scale(1.03);
}
.usercard>h2 {
transition: 0.3s;
}
.usercard>h2:hover {
text-decoration: underline;
}
.usercard>.avatar {
block-size: 185px;
display: grid;
align-items: center;
}
.usercard>.avatar>.usericon {
width: 100px;
height: 100px;
}
.usercard>.username {
margin: 0;
font-size: 32px;
line-height: 36px;
}
.usercard>.mail {
font-size: 17px;
line-height: 20px;
font-weight: 400;
color: inherit;
}
+11 -13
View File
@@ -7,7 +7,7 @@
<link rel="stylesheet" href="css/icons.css">
<link rel="stylesheet" href="css/header.css">
<link rel="stylesheet" href="css/search.css">
<link rel="stylesheet" href="css/user.css">
<link rel="stylesheet" href="css/card.css">
<title>Dashboard</title>
</head>
<body>
@@ -16,8 +16,15 @@
<h1 class="time"></h1>
<div class="user">
<h2 class="username">Tola</h2>
<div class="usericon">
<img src="img/user.jpeg" alt="usericon">
<div class="card" tabindex="0">
<span class="cardicon">
<img src="img/user.jpeg" alt="">
</span>
<div class="text">
<h2 class="username">Tola</h2>
<a href="mailto: tolamironcenko@icloud.com" class="mail">tolamironcenko@icloud.com</a>
<a href="mailto: tolamironcenko@gmail.com" class="mail">tolamironcenko@gmail.com</a>
</div>
</div>
</div>
</div>
@@ -56,16 +63,7 @@
</a>
</div>
</div>
<div class="usercard">
<div class="avatar">
<div class="usericon">
<img src="img/user.jpeg" alt="usericon">
</div>
</div>
<h2 class="username">Tola</h2>
<h2 class="mail">tolamironcenko@icloud.com</h2>
<h2 class="mail">tolamironcenko@gmail.com</h2>
</div>
<script src="js/time.js"></script>
<script src="js/search.js"></script>
</body>