-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathprofileCard.html
More file actions
130 lines (112 loc) · 2.99 KB
/
profileCard.html
File metadata and controls
130 lines (112 loc) · 2.99 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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Responsive Profile Card</title>
<style>
body {
background-color: black;
font-family: 'Courier New', Courier, monospace;
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
margin: 0;
}
.card {
background: whitesmoke;
border-radius: 16px;
box-shadow: 0 0 30px rgb(196, 194, 194);
display: flex;
align-items: center;
padding: 20px;
width: 500px;
transition: 0.3s;
}
.card img {
width: 130px;
height: 130px;
border-radius: 50%;
object-fit: cover;
margin-right: 20px;
}
.details {
flex: 1;
text-align: left;
}
.details h2 {
font-size: 1.5rem;
font-weight: bold;
margin: 0 0 10px;
color: #111;
}
.details p {
font-size: 1rem;
color: #555;
margin-bottom: 15px;
line-height: 1.5;
}
.button {
display: flex;
gap: 10px;
}
.button a {
text-decoration: none;
background-color: black;
color: white;
padding: 10px 20px;
border-radius: 8px;
transition: background 0.3s;
}
.button a:hover {
box-shadow: 0 0 10px #1d4fb8;
/* background-color: #1d4fb8; */
}
@media (max-width: 640px) {
body {
height: auto;
padding: 40px 0;
}
.card {
flex-direction: column;
width: 80vw;
text-align: center;
}
.card img {
margin: 0 0 15px 0;
width: 120px;
height: 120px;
}
.button {
flex-direction: column;
width: 100%;
}
.button a {
display: block;
width: 90%;
margin: 0 auto;
}
.details h2{
text-align: center;
}
.button a{
text-align: center;
}
}
</style>
</head>
<body>
<div class="card">
<img src="https://cdn.dribbble.com/userupload/16957239/file/original-c811aa1b57e5b6aa443f6c0ebc36f470.jpg?resize=400x0" alt="Profile Picture">
<div class="details">
<h2>Prince Kotadia</h2>
<p>On the Journey to Explore the Tech World</p>
<div class="button">
<a href="#">Contact</a>
<a href="#">Portfolio</a>
</div>
</div>
</div>
</body>
</html>