-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
125 lines (109 loc) · 2.56 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
113
114
115
116
117
118
119
120
121
122
123
124
125
/* @layer base {
html {
font-family: 'Ubuntu', sans-serif;
}
} */
.sub-heading {
display: flex;
width: 100%;
justify-content: center;
align-items: center;
text-align: center;
text-transform: uppercase;
}
.sub-heading:before,
.sub-heading:after {
content: '';
border-top: 2px solid #d761ff;
margin: 0 20px 0 0;
flex: 1 0 20px;
}
.sub-heading:after {
margin: 0 0 0 20px;
}
img {
max-width: 100%;
display: block;
}
.person {
--transform-speed: 250ms;
position: relative;
max-width: 10rem;
margin-inline: auto; /*center image */
display: none;
}
.person-container {
/* background-color: pink; */
aspect-ratio: 1 /1.35; /* Height of containter */
display: flex;
align-items: flex-end;
justify-content: flex-end;
border-radius: 0 0 100vw 100vw; /* rounds the bottom of container */
filter: drop-shadow(5px 5px 0px #0a192f);
overflow: hidden;
transition: transform var(--transform-speed) ease;
transition: all ease 0.5s;
-webkit-transform: translate3d(0, 0, 0); /* Removes Image flicker in Safari */
}
.person-container:hover {
transform: scale(1.1);
filter: drop-shadow(1px 1px 0px #0a192f);
-webkit-backface-visibility: hidden;
}
.person-circle {
position: absolute;
inset: auto 0 0;
aspect-ratio: 1 / 1;
width: 100%;
border-radius: 50%;
margin-inline: auto;
object-fit: cover;
-webkit-backface-visibility: hidden;
}
.person-img {
z-index: 99;
transform: scale(1.2);
transition: transform calc(var(--transform-speed) * 1.2) ease;
-webkit-transform-style: preserve-3d;
-webkit-backface-visibility: hidden;
}
.person-container:hover .person-img {
transform: scale(1.3) translateY(-1.1rem);
-webkit-transform: scale(1.3) translateY(-1.1rem);
-webkit-backface-visibility: hidden;
}
.cybr-btn {
background: linear-gradient(45deg, transparent 5%, #6977ff 5%, #d761ff);
border: 0;
/* letter-spacing: 3px;
line-height: 88px; */
box-shadow: 3px 0px 0px #64ffda;
outline: transparent;
position: relative;
transition: all 0.5s;
}
.cybr-span {
cursor: pointer;
display: inline-block;
position: relative;
transition: 0.5s;
}
.cybr-btn .cybr-span:after {
content: '\00bb';
position: absolute;
opacity: 0;
top: 0;
right: -20px;
transition: 0.5s;
}
.cybr-btn:hover span {
padding-right: 25px;
letter-spacing: 5px;
}
.cybr-btn:hover .cybr-span:after {
opacity: 1;
right: 0;
}
@tailwind base;
@tailwind components;
@tailwind utilities;