-
Notifications
You must be signed in to change notification settings - Fork 405
/
index.html
executable file
·225 lines (195 loc) · 5.77 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
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
<!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>HTML5-device-mockups</title>
<link href="https://fonts.googleapis.com/css?family=Nunito|Open+Sans" rel="stylesheet">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta.2/css/bootstrap.min.css" integrity="sha384-PsH8R72JQ3SOdhVi3uxftmaW6Vc51MKb0q5P2rRUpPvrszuE4W1povHYgTpBfshb"
crossorigin="anonymous">
<link rel="stylesheet" href="dist/device-mockups.min.css">
<style>
body {
font-family: 'Open Sans', sans-serif;
}
h1,
h2,
h3,
h4,
h5,
h6 {
font-family: 'Nunito', sans-serif;
}
h1 {
text-transform: uppercase;
font-weight: 600;
letter-spacing: 2px;
}
.navbar {
padding: 0;
}
.navbar-brand {
font-size: 30px;
font-weight: 700;
color: white !important;
}
.navbar-light .navbar-nav .nav-link {
color: white !important;
}
.device-wrapper.deviceRight .screen {
background-image: url(https://media.giphy.com/media/2eLAwdushm3cI/giphy.gif);
background-position: center;
}
.device-wrapper.deviceLeft .screen {
background-image: url(https://images.pexels.com/photos/265067/pexels-photo-265067.jpeg?dl&fit=crop&w=1280&h=853);
background-position: center;
}
header {
position: absolute;
top: 0;
left: 0;
width: 100%;
z-index: 100;
}
.intro {
height: 100vh;
background: url(https://static.pexels.com/photos/213803/pexels-photo-213803.jpeg);
background-size: cover;
display: flex;
align-items: center;
color: white;
margin-bottom: 64px;
}
.intro:before {
content: '';
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
background-image: linear-gradient(to bottom right, #000000, #000F00);
opacity: .3;
}
.intro .device-wrapper {
max-width: 55%;
float: left;
width: 100%;
}
.device-wrapper {
max-width: none;
}
.device {
z-index: 10;
}
.intro .device-wrapper.deviceRight {
margin-left: -10%;
}
.intro .title {
display: flex;
flex-direction: column;
justify-content: center;
align-items: baseline;
}
.btn {
margin-top: 4px;
line-height: 1.5;
text-transform: uppercase;
}
footer.container {
position: fixed;
bottom: 0;
left: 0;
right: 0;
text-align: center;
z-index: -1;
padding-top: 20px;
padding-bottom: 20px;
}
</style>
</head>
<body>
<header>
<div class="container">
<div class="row">
<div class="col">
<nav class="navbar navbar-toggleable-md navbar-light">
<a class="navbar-brand" href="#">Pixelsign <img src="img/pixelsign logo.png" alt="" class="logo" width="41"></a>
</nav>
</div>
</div>
</div>
</header>
<div class="intro">
<div class="container">
<div class="row">
<div class="col-md-8 title">
<h1>Create stunning showcases</h1>
<h2>Spice up your website with live HTML5 mockups of popular devices</h2>
<a class="btn btn-primary" href="https://github.com/pixelsign/html5-device-mockups" role="button">Grab it on Github</a>
</div>
<div class="col-md-4">
<div class="device-wrapper deviceLeft">
<div class="device" data-device="iPhoneSE" data-orientation="portrait" data-color="white">
<div class="screen">
<!-- PUT CONTENTS HERE -->
</div>
<div class="button" data-toggle="popover" data-placement="bottom" data-content="Device buttons are perfectly rendered and can be hooked to links or JavaScript events">
<!-- You can hook the "home button" to some JavaScript events or just remove it -->
</div>
</div>
</div>
<div class="device-wrapper deviceRight">
<div class="device" data-device="iPhoneSE" data-orientation="portrait" data-color="pink">
<div class="screen">
<!-- PUT CONTENTS HERE -->
</div>
<div class="button">
<!-- You can hook the "home button" to some JavaScript events or just remove it -->
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<footer class="container">
<div class="row">
<div class="col">
Made by <a href="http://innovaniac.com" target="_blank">Tomi Hiltunen</a>, <a href="http://dribbble.com/pixelsign" target="_blank">Angelos Arnis</a> and <a href="https://benjaminbortels.de" target="_blank">Benjamin Bortels</a>
</div>
</div>
</div>
<script src="https://code.jquery.com/jquery-3.2.1.slim.min.js" integrity="sha384-KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN"
crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.3/umd/popper.min.js" integrity="sha384-vFJXuSJphROIrBnz7yo7oB41mKfc8JzQZiCq4NCceLEaO4IHwicKwpJf9c9IpFgh"
crossorigin="anonymous"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta.2/js/bootstrap.min.js" integrity="sha384-alpBpkh1PFOepccYVYDB4do5UnbKysX5WZXm3XxPqe5iKTfUKjNkCk9SaVuEZflJ"
crossorigin="anonymous"></script>
<script>
(function (i, s, o, g, r, a, m) {
i['GoogleAnalyticsObject'] = r;
i[r] = i[r] || function () {
(i[r].q = i[r].q || []).push(arguments)
}, i[r].l = 1 * new Date();
a = s.createElement(o),
m = s.getElementsByTagName(o)[0];
a.async = 1;
a.src = g;
m.parentNode.insertBefore(a, m)
})(window, document, 'script', 'https://www.google-analytics.com/analytics.js', 'ga');
ga('create', 'UA-103554950-1', 'auto');
ga('send', 'pageview');
$(function () {
$('[data-toggle="popover"]').popover();
$('.col-md-4')
.on('mouseenter', function() {
$('[data-toggle="popover"]').popover('show');
})
.on('mouseleave', function() {
$('[data-toggle="popover"]').popover('hide');
});
});
</script>
</body>
</html>