-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathStyle.css
112 lines (102 loc) · 1.92 KB
/
Style.css
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
@import url('https://fonts.googleapis.com/css2?family=Libre+Baskerville&family=Montserrat:wght@300;400;500;600;800&family=Poppins:wght@300;400;600&display=swap');
*{
margin: 0;
padding: 0;
font-family:'Montserrat',sans-serif;
}
.border-radius{
border-radius: 25px;
}
.card-container{
height: 100vh;
display: flex;
align-items: center;
justify-content: center;
flex-direction: column;
}
.profile-card{
width: 18rem;
height: 28rem;
position: relative;
overflow: hidden;
box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.5);
display: flex;
justify-content: center;
transition: 0.5s;
/* transition: transform 0.5s ease-in-out; */
}
.front,.back{
width: 100%;
height: 100%;
position: absolute;
}
.front{
background: transparent;
/* transition: 0.5s; */
}
.back{
z-index: -1;
}
.blue-color-box{
background-color: #0d6efd;
height: 10rem;
}
.image-box{
display: flex;
justify-content: center;
height: 28rem;
transition: 0.5s;
aspect-ratio: 1/1;
width: 100%;
}
.card-img{
height: 100%;
width: 100%;
object-fit: cover;
}
.profile-card:hover .image-box{
height: 15rem;
width: 10rem;
margin-top: 2rem;
}
.about{
text-align: center;
position: absolute;
/* border: 2px solid red; */
width: 18rem;
display: flex;
flex-direction: column;
justify-content: center;
}
.center{
display: flex;
justify-content: center;
flex-direction: column;
}
h2{
font-weight: 500;
}
.contact{
list-style: none;
margin-top: 1rem;
gap: 1rem;
display: flex;
justify-content: center;
justify-self: self-end;
}
.center-box{
display: flex;
justify-content: center;
width: 18rem;
}
.name{
margin-top: 0.8rem;
color: #0d6efd;
}
.profession{
margin-top: 0.3rem;
}
.contact img:hover{
cursor: pointer;
filter: drop-shadow(0 2px 5px #0d6efd);
}