forked from strawdynamics/luminous
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
165 lines (150 loc) · 3.99 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
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<meta name="designer" content="imgix" />
<meta name="developer" content="imgix" />
<meta
name="viewport"
content="width=device-width,initial-scale=1,maximum-scale=1"
/>
<title>Luminous Playground</title>
<link
rel="stylesheet"
media="screen, projection"
href="./dist/luminous-basic.css"
/>
<style type="text/css">
body {
text-align: center;
font-family: Helvetica Neue, Arial, sans;
margin-top: 2em;
background: #fafafa;
}
section {
max-width: 32em;
margin: 0 auto;
}
h1 {
text-align: center;
color: #013c4a;
margin-top: 3em;
margin-bottom: 1em;
}
p {
max-width: 32em;
margin-bottom: 1em;
text-align: left;
color: #23637f;
line-height: 1.6em;
}
p:last-of-type {
margin-bottom: 2em;
}
a {
color: #00c0fa;
}
.zoom-in {
cursor: zoom-in;
}
a img {
max-width: 100%;
}
.gallery-demo-wrapper {
list-style: none;
text-align: center;
padding-left: 0;
margin-bottom: 36px;
}
.gallery-demo-wrapper li {
display: inline-block;
padding: 0 6px;
}
</style>
</head>
<body>
<a
class="simple-demo zoom-in"
href="https://assets.imgix.net/unsplash/pretty2.jpg?w=1600"
>
<img
src="https://assets.imgix.net/unsplash/pretty2.jpg?w=400"
alt="Mountainous landscape"
/>
</a>
<section>
<h1>Luminous Demo</h1>
<p>
This is a demo of Luminous, a simple, lightweight, no-dependencies
JavaScript image lightbox from <a href="https://imgix.com">imgix</a>.
This demo uses the simple included theme, but it's very easy to extend
and customize to fit your needs. You can
<a href="https://github.com/imgix/luminous"
>learn more and download it here</a
>.
</p>
</section>
<ul class="gallery-demo-wrapper">
<li>
<a
class="gallery-demo"
href="https://assets.imgix.net/unsplash/coyote.jpg?w=1600"
>
<img
src="https://assets.imgix.net/unsplash/coyote.jpg?w=100"
alt="Coyote"
/>
</a>
</li>
<li>
<a
class="gallery-demo"
href="https://assets.imgix.net/unsplash/motorbike.jpg?w=1600"
>
<img
src="https://assets.imgix.net/unsplash/motorbike.jpg?w=100"
alt="Motorbike"
/>
</a>
</li>
<li>
<a
class="gallery-demo"
href="https://assets.imgix.net/unsplash/hotairballoon.jpg?w=1600"
>
<img
src="https://assets.imgix.net/unsplash/hotairballoon.jpg?w=100"
alt="Hot air balloon"
/>
</a>
</li>
</ul>
<a href="https://imgix.com">
<img
src="https://assets.imgix.net/presskit/imgix-presskit.pdf?page=3&fm=png&w=120"
srcset="
https://assets.imgix.net/presskit/imgix-presskit.pdf?page=3&fm=png&w=120 1x,
https://assets.imgix.net/presskit/imgix-presskit.pdf?page=3&fm=png&w=120&dpr=2 2x,
https://assets.imgix.net/presskit/imgix-presskit.pdf?page=3&fm=png&w=120&dpr=3 3x
"
alt="imgix"
/>
</a>
<script src="./dist/Luminous.js"></script>
<script>
new Luminous(document.querySelector(".simple-demo"));
new LuminousGallery(
document.querySelectorAll(".gallery-demo"),
{
arrowNavigation: true
},
{
caption: function(trigger) {
return trigger.querySelector("img").getAttribute("alt");
}
}
);
</script>
</body>
</html>