forked from ticketsource/openapi-spec
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
77 lines (77 loc) · 2.54 KB
/
index.html
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link href="https://fonts.googleapis.com/css?family=Montserrat:300,400,700|Roboto:300,400,700" rel="stylesheet">
<link rel="shortcut icon" type="image/x-icon" href="favicon.ico">
<title>TicketSource API Specification</title>
<style>
body {
margin: 3rem 0 0;
padding: 0;
}
.z-10 { z-index: 10 }
.flex {
display: -webkit-box;
display: -ms-flexbox;
display: flex;
}
.flex-1 { flex: 1; }
.bg-black { background-color: #22292f; }
.fixed { position: fixed }
.pin-t { top: 0; }
.pin-x {
right: 0;
left: 0;
}
.px-6 {
padding-left: 1.5rem;
padding-right: 1.5rem;
}
.h-6 { height: 1.5rem; }
.h-12 { height: 3rem; }
.items-center {
-webkit-box-align: center;
-ms-flex-align: center;
align-items: center;
}
.text-right { text-align: right; }
.text-grey-light { color: #dae1e7; }
.hover\:text-white:hover { color: #fff; }
.text-xl { font-size: 1.25rem; }
</style>
</head>
<body>
<header>
<nav class="flex bg-black fixed pin-t pin-x h-12 items-center z-10">
<div class="px-6 flex-1">
<a href="#redoc">
<img class="h-6" src="https://cdn.ticketsource.co.uk/brochure/images/TicketSource_logo.svg" alt="TicketSource">
</a>
</div>
<div class="px-6 flex-1 text-right">
<a aria-label="Visit us on GitHub" class="text-grey-light hover:text-white" href="https://github.com/ticketsource">
<i aria-hidden="true" class="fab fa-github text-xl"></i>
</a>
</div>
</nav>
</header>
<div id="redoc"></div>
<script src="https://kit.fontawesome.com/15506db1cb.js" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/bundles/redoc.standalone.min.js"></script>
<script type="application/javascript">
Redoc.init('spec/openapi.yaml', {
requiredPropsFirst: true,
scrollYOffset: 'header nav',
theme: {
colors: {
primary: {
main: '#E97117',
}
}
}
}, document.getElementById('redoc'));
</script>
</body>
</html>