-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathIntroductionPage.astro
More file actions
56 lines (47 loc) · 941 Bytes
/
IntroductionPage.astro
File metadata and controls
56 lines (47 loc) · 941 Bytes
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
---
import FixPage from "./FixPage.astro";
interface Props {
title: string;
}
const { title } = Astro.props;
---
<FixPage>
<div class="container">
<div class="title">{title}</div>
<slot />
</div>
</FixPage>
<style>
@keyframes fade-slide-in {
0% {
opacity: 0;
transform: translateX(-30px);
}
100% {
opacity: 1;
transform: translateX(0);
filter: blur(0);
}
}
.container {
padding: 10px;
display: flex;
flex-direction: column;
gap: 1rem;
view-timeline-name: --subjectReveal;
view-timeline-axis: block;
animation: fade-slide-in both;
animation-timeline: --subjectReveal;
animation-range: entry 40% cover 60%;
}
.title {
font-weight: bold;
font-size: clamp(40px, 4rem, 8vw);
font-family: "Satoshi-Bold", "Harmony-OS-Sans-SC-Bold";
}
@media (max-width: 768px) {
.container {
padding: 0;
}
}
</style>