Skip to content

Commit 41a5076

Browse files
committed
update
1 parent a36d4f6 commit 41a5076

6 files changed

Lines changed: 237 additions & 90 deletions

File tree

src/App.css

Lines changed: 63 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');
2+
@import url('https://fonts.googleapis.com/css2?family=Doto:wght,ROND@900,100&display=swap');
3+
14
.main-shadow {
25
height: 55px;
36
--bg-size: 200%;
@@ -9,13 +12,13 @@
912
var(--color-two),
1013
var(--color-one),
1114
var(--color-two),
12-
var(--color-one),
13-
var(--color-two),
1415
var(--color-one)
1516
)
1617
0 0 / var(--bg-size) 100%;
1718
color: transparent;
1819
background-clip: text;
20+
font-family: 'Doto', sans-serif;
21+
letter-spacing: -1px;
1922
}
2023

2124
.main-shadow-before {
@@ -29,8 +32,6 @@
2932
var(--color-two),
3033
var(--color-one),
3134
var(--color-two),
32-
var(--color-one),
33-
var(--color-two),
3435
var(--color-one)
3536
)
3637
0 0 / var(--bg-size) 100%;
@@ -39,6 +40,8 @@
3940
margin-top: -55px;
4041
filter: blur(10px);
4142
user-select: none;
43+
font-family: 'Doto', sans-serif;
44+
letter-spacing: -1px;
4245
}
4346

4447
@media (prefers-reduced-motion: no-preference) {
@@ -66,6 +69,7 @@ html {
6669
background: url('assets/img/point_pat.svg') repeat;
6770
background-size: 30px;
6871
background-blend-mode: exclusion;
72+
font-family: "Roboto", sans-serif !important;
6973
}
7074

7175
.content-wrap {
@@ -77,4 +81,58 @@ footer {
7781
bottom: 0;
7882
width: 100%;
7983
height: 186px;
80-
}
84+
}
85+
86+
.flip-container {
87+
perspective: 1000px;
88+
display: inline-block;
89+
position: relative;
90+
width: 320px;
91+
height: 70px;
92+
}
93+
94+
.flip-front, .flip-back {
95+
position: absolute;
96+
width: 100%;
97+
height: 100%;
98+
backface-visibility: hidden;
99+
top: 0;
100+
left: 0;
101+
transition: transform 0.6s cubic-bezier(0.4, 0.2, 0.2, 1);
102+
display: flex;
103+
flex-direction: column;
104+
align-items: center;
105+
justify-content: center;
106+
}
107+
108+
.flip-front {
109+
z-index: 2;
110+
background: transparent;
111+
transform: rotateX(0deg) scale(1) rotateY(0deg) skewY(0deg);
112+
}
113+
114+
.flip-back {
115+
z-index: 1;
116+
background: transparent;
117+
transform: rotateX(180deg) scale(0.5) rotateY(50deg) skewY(-50deg);
118+
}
119+
120+
.flip-container.flipped .flip-front {
121+
transform: rotateX(180deg) scale(0.5) rotateY(50deg) skewY(-50deg);
122+
}
123+
124+
.flip-container.flipped .flip-back {
125+
transform: rotateX(0deg) scale(1) rotateY(0deg) skewY(0deg);
126+
}
127+
128+
.section {
129+
opacity: 0;
130+
scale: 0.85;
131+
transition: opacity 0.4s ease, scale 0.4s cubic-bezier(0.4,0.2,0.2,1);
132+
}
133+
134+
.section.visible {
135+
opacity: 1;
136+
scale: 1;
137+
}
138+

0 commit comments

Comments
 (0)