File tree Expand file tree Collapse file tree 2 files changed +82
-0
lines changed Expand file tree Collapse file tree 2 files changed +82
-0
lines changed Original file line number Diff line number Diff line change
1
+ <!DOCTYPE html>
2
+ < html lang ="en ">
3
+ < head >
4
+ < meta charset ="UTF-8 ">
5
+ < meta name ="viewport " content ="width=device-width, initial-scale=1.0 ">
6
+ < title > Profile Card</ title >
7
+ < link rel ="stylesheet " href ="style.css ">
8
+ </ head >
9
+ < body >
10
+ < div class ="card ">
11
+ < img src ="https://via.placeholder.com/150 " alt ="Profile Picture ">
12
+ < h2 > Zyrile Kenny</ h2 >
13
+ < p > Front-End Developer | Web Enthusiast</ p >
14
+ < button > Follow</ button >
15
+ </ div >
16
+ </ body >
17
+ </ html >
Original file line number Diff line number Diff line change
1
+ * {
2
+ margin : 0 ;
3
+ padding : 0 ;
4
+ box-sizing : border-box;
5
+ font-family : Arial, sans-serif;
6
+ }
7
+
8
+ body {
9
+ display : flex;
10
+ justify-content : center;
11
+ align-items : center;
12
+ height : 100vh ;
13
+ background-color : # f4f4f4 ;
14
+ }
15
+
16
+ .card {
17
+ background : white;
18
+ padding : 20px ;
19
+ border-radius : 10px ;
20
+ text-align : center;
21
+ box-shadow : 0px 4px 8px rgba (0 , 0 , 0 , 0.1 );
22
+ transition : 0.3s ;
23
+ }
24
+
25
+ .card img {
26
+ width : 100px ;
27
+ height : 100px ;
28
+ border-radius : 50% ;
29
+ margin-bottom : 10px ;
30
+ }
31
+
32
+ .card h2 {
33
+ font-size : 22px ;
34
+ margin-bottom : 5px ;
35
+ }
36
+
37
+ .card p {
38
+ color : # 555 ;
39
+ font-size : 14px ;
40
+ margin-bottom : 15px ;
41
+ }
42
+
43
+ .card button {
44
+ background : # 007bff ;
45
+ color : white;
46
+ border : none;
47
+ padding : 8px 15px ;
48
+ border-radius : 5px ;
49
+ cursor : pointer;
50
+ transition : 0.3s ;
51
+ }
52
+
53
+ .card button : hover {
54
+ background : # 0056b3 ;
55
+ }
56
+
57
+ .card : hover {
58
+ background : # 007bff ;
59
+ color : white;
60
+ transform : scale (1.05 );
61
+ }
62
+
63
+ .card : hover p {
64
+ color : white;
65
+ }
You can’t perform that action at this time.
0 commit comments