-
Notifications
You must be signed in to change notification settings - Fork 45
Expand file tree
/
Copy pathgn-search-input-and-results-multilingual.sample.html
More file actions
65 lines (65 loc) · 1.99 KB
/
gn-search-input-and-results-multilingual.sample.html
File metadata and controls
65 lines (65 loc) · 1.99 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
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>Search input and results list</title>
<base href="./" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link
href="https://fonts.googleapis.com/css2?family=DM+Serif+Display&family=Inter:wght@200;300;400;500;600;700&display=swap"
rel="stylesheet"
type="text/css"
/>
<style>
body {
margin: 0;
overflow-y: scroll;
font-family: var(--font-family-main);
}
header {
height: 200px;
background-color: var(--color-secondary);
}
.container {
max-width: 750px;
margin-left: auto;
margin-right: auto;
padding-top: 3rem;
padding-bottom: 3rem;
}
</style>
</head>
<body>
<header>
<div class="container">
<script src="gn-wc.js"></script>
<gn-search-input
api-url="https://www.geocat.ch/geonetwork/srv/api"
metadata-language="current"
text-language="de"
open-on-search="https://www.geocat.ch/geonetwork/srv/ger/catalog.search#/search?any=${search}"
open-on-select="https://www.geocat.ch/geonetwork/srv/ger/catalog.search#/metadata/${uuid}"
></gn-search-input>
</div>
</header>
<main class="container">
<gn-results-list
size="10"
api-url="https://www.geocat.ch/geonetwork/srv/api"
catalog-url="https://www.geocat.ch/datahub/dataset/{uuid}"
metadata-language="current"
text-language="de"
layout="ROW"
primary-color="#251"
secondary-color="#c40"
main-color="#555"
background-color="#fdfbff"
main-font="'Inter', sans-serif"
title-font="'DM Serif Display', serif"
show-more="auto"
></gn-results-list>
</main>
</body>
</html>