-
Notifications
You must be signed in to change notification settings - Fork 19
Expand file tree
/
Copy pathintro.mjs
More file actions
147 lines (126 loc) · 3.58 KB
/
Copy pathintro.mjs
File metadata and controls
147 lines (126 loc) · 3.58 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
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
export default function LandingIntro ({ html }) {
return html`
<style>
.intro {
background: linear-gradient(to bottom, #c9ecff, #fff0fe);
color: var(--mid-purple);
padding-top: var(--space-xl);
}
landing-enhance-type-animated {
padding-top: var(--space-l);
width: 87.5vw;
}
.top-cloud {
aspect-ratio: 427 / 240;
top: 50%;
width: 20vw;
}
.top-cloud:nth-of-type(1) {
left: 0;
transform: translate(-50%, -50%);
}
.top-cloud:nth-of-type(2) {
right: 0;
transform: translate(50%, -50%);
}
.middle-clouds {
aspect-ratio: 375 / 128;
}
.middle-cloud-medium {
width: 25vw;
top: 50%;
left: 40%;
transform: translateX(-100%) translateY(-50%);
}
.middle-cloud-wide {
width: 50vw;
top: 15%;
right: 0;
transform: translateX(40%);
}
.flare-blue {
width: 30vw;
aspect-ratio: 2 / 1;
right: 0;
translate: 25% 66%;
background: radial-gradient(
closest-side,
hsla(186deg 100% 82% / 66%),
transparent
);
}
.bottom-clouds {
aspect-ratio: 1412 / 837;
background-image: url('/_public/img/landing/cloud-purple-section-top.svg');
background-repeat: no-repeat;
background-size: 100vw auto;
/* Tuck bottom clouds slightly under middle clouds */
margin-top: -18.75%;
}
.bottom-clouds p {
font-size: clamp(1rem, 1rem + 3.75vw, 5.5vw);
/* Offset to ensure text doesn't hit top of clouds */
transform: translateY(-33%);
z-index: 2;
}
landing-marquee {
background-color: var(--mid-purple);
/* Prevent surrounding SVG subpixel gaps at certain viewport sizes :) */
margin-block: -1px;
}
landing-marquee [slot='text'] {
font-weight: 200;
color: white;
font-size: 15vw;
}
landing-marquee [slot='image'] {
height: 6vw;
}
</style>
<div class="intro">
<div class="relative">
<img
src="/_public/img/landing/cloud-purple-chunky.svg"
alt=""
class="absolute top-cloud" />
<img
src="/_public/img/landing/cloud-purple-chunky.svg"
alt=""
class="absolute top-cloud" />
<landing-axol-introducing class="flex justify-content-center pi5">
</landing-axol-introducing>
</div>
<h1>
<landing-enhance-type-animated
class="mi-auto"></landing-enhance-type-animated>
<span class="clip">Enhance</span>
</h1>
<figure class="middle-clouds relative z1">
<img
src="/_public/img/landing/cloud-purple-medium.svg"
alt=""
class="middle-cloud-medium absolute" />
<img
src="/_public/img/landing/cloud-purple-wide.svg"
alt=""
class="middle-cloud-wide absolute" />
<div class="flare-blue absolute z-1" />
</figure>
<figure
class="bottom-clouds flex align-items-center justify-content-center">
<p class="font-medium uppercase text-center relative">
The HTML-First<br />
Full-Stack <br />
Web Framework<br />
</p>
</figure>
</div>
<landing-marquee class="pt0 pb0">
<span slot="text">HTML First</span>
<img
slot="image"
src="/_public/img/landing/star-white-outline.svg"
alt="" />
</landing-marquee>
`
}