-
Notifications
You must be signed in to change notification settings - Fork 0
/
frontPage.ejs
338 lines (298 loc) · 8.5 KB
/
frontPage.ejs
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
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>CartoSVG</title>
<style>
/* latin */
@font-face {
font-family: 'Open Sans';
font-style: normal;
font-weight: 300;
font-stretch: 100%;
font-display: swap;
src: url(https://fonts.gstatic.com/s/opensans/v35/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTS-muw.woff2) format('woff2');
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
font-family: 'Open Sans';
font-style: normal;
font-weight: 600;
font-stretch: 100%;
font-display: swap;
src: url(https://fonts.gstatic.com/s/opensans/v35/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTS-muw.woff2) format('woff2');
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
body,
html {
height: 100%;
line-height: 2;
font-family: 'Open Sans', sans-serif;
padding: 0;
margin: 0;
}
#intro {
display: flex;
align-items: center;
position: relative;
max-width: 900px;
width: 100%;
height: 480px;
margin: 0 auto;
color: white;
}
.hero {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
position: absolute;
width: 100%;
min-height: 480px;
height: 45vh;
max-height: 560px;
box-sizing: border-box;
padding: 48px 48px 32px 48px;
overflow: hidden;
transform: skewY(-5deg);
transform-origin: 0;
}
#promo-0-title {
margin-top: 4rem;
}
.background {
background: linear-gradient(45deg, #163b85, #7e9cde);
color: #000000de;
}
section#intro .hero-headline {
font-size: 3rem;
line-height: 64px;
line-height: 4.2rem;
font-weight: 600;
margin: 32px 0;
color: inherit;
}
section#intro .homepage-container {
width: 50%;
max-width: 1040px;
margin: -7% auto 0;
padding-top: 0;
padding-bottom: 0;
}
section#intro .hero-logo {
display: flex;
min-width: 200px;
height: 275px;
margin-bottom: 8px;
margin-left: auto;
}
@media (max-width: 65rem) {
.hero {
max-height: fit-content !important;
}
section#intro {
flex-direction: column;
align-items: center;
justify-content: center;
height: auto !important;
}
.hero-logo {
margin: 0 auto 2rem auto !important;
}
}
.button.hero-cta {
padding: 0px 34px;
font-size: 1.5rem;
font-weight: 600;
border-radius: 48px;
white-space: nowrap;
box-shadow: 0 2px 5px #00000080;
box-sizing: border-box;
cursor: pointer;
background-color: white;
display: inline-block;
}
a.button {
color: #4360a8;
text-decoration: none;
text-transform: uppercase;
overflow: hidden;
border: none;
}
.home-row {
max-width: 920px;
margin: auto;
}
.text-block {
display: flex;
flex-direction: column;
align-items: center;
min-width: 10rem;
}
.text-container:not(:last-child) {
padding-right: 5%;
@media (max-width: 600px) {
padding-right: 0;
}
}
.text-headline {
font-weight: 600;
margin-top: 10px;
text-transform: uppercase;
color: #4360a8;
white-space: nowrap;
}
div[layout=row] {
display: flex;
justify-content: space-between;
align-items: baseline;
box-sizing: border-box;
@media (max-width: 600px) {
display: block;
}
}
.cta-link {
margin: auto;
}
p {
margin: 1em 0;
}
p,
ol,
ul,
li,
input,
a {
color: #444;
font-size: 1.4rem;
}
.home-row {
max-width: 920px;
margin: auto;
}
h1,
h2,
h3,
h4,
h5,
h6 {
margin-bottom: 0;
font-weight: 600;
font-size: 2rem;
}
h1 {
font-size: 3rem;
}
.example-map {
max-width: 700px;
margin: auto;
margin-bottom: 7rem;
}
.text-body {
margin-top: 2rem;
line-height: 2.6rem;
text-align: center;
}
footer {
background-color: #4360a8;
color: white;
padding: 0.5rem;
text-align: right;
}
article {
padding: 1rem;
}
</style>
</head>
<body>
<header>
<!-- BACKGROUND IMAGE -->
<div class="background hero"></div>
<!-- INTRO SECTION -->
<section id="intro">
<!-- LOGO -->
<div class="hero-logo">
<img src="<%=require('./src/assets/img/logo_transparent.webp')%>">
</div>
<!-- CONTAINER -->
<div class="homepage-container">
<h1 class="hero-headline no-title no-toc no-anchor" aria-label="Angular - Deliver web apps with confidence"
id="--------deliver-web-appswith-confidence------">
Elegant, simple interactive maps
</h1>
<div class="cta-button-container">
<p class="cta-link">
<a class="button hero-cta no-print" href="app.html">Launch the app</a>
</p>
</div>
</div>
</section>
</header>
<article>
<div class="home-row">
<section aria-labelledby="promo-0-title">
<h2 id="promo-0-title" class="no-anchor">Design gorgeous and lightweight SVG maps with ease </h2>
</section>
</div>
<div layout="row" class="home-row homepage-container">
<div class="text-container">
<section aria-labelledby="promo-1-title" class="text-block">
<h2 id="promo-1-title" class="text-headline no-anchor">Interactive</h2>
<p class="text-body">CartoSVG uses SVG elements, which are interactive by nature.
</p>
</section>
</div>
<div class="text-container">
<section aria-labelledby="promo-2-title" class="text-block promo-2-desc">
<h2 id="promo-2-title" class="text-headline no-anchor">Beautiful</h2>
<p class="text-body">The maps are given depth through filters and rich styling possibilities.
</p>
</section>
</div>
<div class="text-container">
<section aria-labelledby="promo-3-title" class="text-block l-pad-top-2">
<h2 id="promo-3-title" class="text-headline no-anchor">Simple</h2>
<p class="text-body">Just copy / paste the exported file into your HTML, and you're done!</p>
</section>
</div>
<div class="text-container">
<section aria-labelledby="promo-3-title" class="text-block l-pad-top-2">
<h2 id="promo-3-title" class="text-headline no-anchor">Small footprint</h2>
<p class="text-body">The final file size is made as small as possible using diverse optimization techniques, and compresses well.
</p>
</section>
</div>
</div>
<div class="home-row">
<h3> <b> Features: </b> </h3>
<ul>
<li> Multiple projections available, including "satellite" </li>
<li> Beautiful and performant SVG filters </li>
<li> Custom graticule density </li>
<li> Management of custom fonts and how to export them (can be converted to <path>) </li>
<li> Custom data binding for choropleth (numerical and categorical) and tooltip </li>
<li> Rich intuitive styling customization, including tooltip on hover </li>
<li> Drawing of <path> elements, alowing markers and image animations along it </li>
</ul>
</div>
<div class="home-row">
<section aria-labelledby="promo-0-title">
<h1 id="promo-0-title" class="no-anchor">Examples </h1>
<p> Here follows 4 examples built with CartoSVG. This entire page weights 470Ko, ~110 gzipped. </p>
<% htmlWebpackPlugin.options.svgs.forEach(function(svgDefinition){ %>
<h2 > <%= svgDefinition.title %> </h2>
<p> <%= svgDefinition.description %> </p>
<div class="example-map">
<%= svgDefinition.content %>
</div>
<% }); %>
</section>
</div>
</article>
<footer>
CartoSVG ©2023
</footer>
</body>
</html>