-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path01-card-borde-gradiente.html
More file actions
54 lines (51 loc) · 1.01 KB
/
01-card-borde-gradiente.html
File metadata and controls
54 lines (51 loc) · 1.01 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Card border gradient</title>
<style>
:root {
--border-color: linear-gradient(
to right,
tomato 0%,
gold 100%
);
--card-color: #444
}
.card {
background: var(--border-color);
aspect-ratio: 10/16;
width: 200px;
padding: 5px;
border-radius: 16px;
position: relative;
}
.card-body {
background: var(--card-color);
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
width: 100%;
height: 100%;
border-radius: 12px;
}
#name {
color: white
}
img{
object-fit: cover; /* para que no se deforme */
border-radius: 50%;
}
</style>
</head>
<body>
<article class="card">
<div class="card-body">
<img src="/assets/logo.jpeg" alt="" width="40px">
<p id="name">@VlassDev</p>
</div>
</article>
</body>
</html>