-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathHomePageShell.astro
More file actions
119 lines (107 loc) · 2.3 KB
/
HomePageShell.astro
File metadata and controls
119 lines (107 loc) · 2.3 KB
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
---
import BaseLayout from "@/layouts/BaseLayout.astro";
import FixPage from "@/components/FixPage.astro";
import FixPageContainer from "@/components/FixPageContainer.astro";
import DragonParticles from "@/components/DragonParticles.astro";
---
<BaseLayout>
<FixPageContainer>
<FixPage>
<div class="home-container">
<div class="content-wrapper">
<div class="home-above-fold">
<div class="home-hero-stack">
<slot name="hero" />
</div>
<div class="home-stats-anchor">
<slot name="stats" />
</div>
</div>
<slot name="news" />
<slot name="cards" />
<div class="dragon-positioner">
<DragonParticles />
</div>
</div>
</div>
</FixPage>
<slot name="ol-lab" />
<slot name="ai-hub" />
</FixPageContainer>
</BaseLayout>
<style>
.home-container {
position: relative;
padding: 0 12px 12px;
display: flex;
flex-direction: column;
width: 100%;
left: 0;
right: 0;
min-width: 280px;
box-sizing: border-box;
z-index: 1;
gap: 60px;
overflow-x: clip;
}
.content-wrapper {
position: relative;
z-index: 2;
pointer-events: auto;
display: flex;
flex-direction: column;
gap: clamp(0.1vh, 50px, 5rem);
overflow-x: clip;
}
.home-above-fold {
display: flex;
flex-direction: column;
min-height: calc(100dvh - var(--navbar-height));
box-sizing: border-box;
}
.home-hero-stack {
flex-shrink: 0;
}
.home-stats-anchor {
flex: 1;
display: flex;
align-items: center;
justify-content: center;
width: 100%;
min-height: 0;
}
@media (max-width: 768px) {
.home-container {
width: 100%;
}
.content-wrapper {
gap: 5vh;
}
}
.dragon-positioner {
position: absolute;
top: 0;
right: -100px;
width: 600px;
height: 600px;
z-index: -1;
pointer-events: none;
}
@media (max-width: 768px) {
.dragon-positioner {
width: 100%;
height: 400px;
opacity: 1;
z-index: -1;
}
}
@media (max-width: 400px) {
.home-container {
min-width: 0;
padding: 0 8px 12px;
}
:global(.home-container .button-group) {
width: 100%;
}
}
</style>