-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path06b-profile-card.html
More file actions
72 lines (62 loc) · 1.4 KB
/
06b-profile-card.html
File metadata and controls
72 lines (62 loc) · 1.4 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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
<!DOCTYPE html>
<html lang="en">
<head>
<title>Profile Card</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="stylesheet" href="css/base.css" />
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.1.1/css/all.min.css"
integrity="sha512-KfkfwYDsLkIlwQp6LFnl8zNdLGxu9YAA1QvwINks4PhcElQSvqcyVLLD9aMhXd13uQjoXtEKNosOWaZqXgel0g=="
crossorigin="anonymous" referrerpolicy="no-referrer" />
<style type="text/css">
.card {
width: 17rem;
height: 10rem;
background-color: #24243e;
border-radius: 0.5rem;
padding: 1.2rem;
margin: 12rem auto;
display: grid;
grid-template-columns: auto auto;
/* align-content: space-between;
justify-content: space-between; */
place-content: space-between;
}
h3 {
align-self: center;
}
img {
width: 2.6rem;
height: 2.6rem;
border-radius: 1.3rem;
justify-self: end;
}
a {
color: white;
text-decoration: none;
}
a>i {
font-size: 1.6rem;
padding-left: 0.3rem;
line-height: 1;
}
small {
align-self: end;
}
</style>
</head>
<body>
<div class="card">
<h3>John Doe</h3>
<img src="images/avatar.png" alt="Avatar" />
<small>+1 (234) 567-8900</small>
<div>
<a href="#">
<i class="fa-brands fa-twitter-square"></i>
</a>
<a href="#">
<i class="fa-brands fa-linkedin"></i>
</a>
</div>
</div>
</body>
</html>