-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
128 lines (117 loc) · 2.65 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>HDSlider</title>
<style>
html {
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
}
*,
*:before,
*:after {
-webkit-box-sizing: inherit;
-moz-box-sizing: inherit;
box-sizing: inherit;
}
* {
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
html,
body {
margin: 0;
padding: 0;
height: 100%;
width: 100%;
font-size: 22px;
line-height: 1.6;
color: #4a4a4a;
font-family: sans-serif;
overflow-x: hidden;
background: #fefefe;
}
img {
max-width: 100%;
height: auto;
}
.slide {
display: grid;
text-align: center;
place-items: center;
}
.slide_content {
max-width: 800px;
color: #fff;
font-size: 2rem;
}
h3 {
font-size: 1.4rem;
color: aquamarine;
margin: 0;
}
p {
margin: 0;
}
.button {
text-decoration: none;
color: #fff;
border: 3px solid aquamarine;
padding: 0.4em 1em;
font-size: 1rem;
}
.overlay {
position: absolute;
z-index: -1;
top: 0;
left: 0;
width: 100%;
height: 100%;
opacity: 0.6;
background: linear-gradient(
90deg,
rgba(2, 0, 36, 1) 0%,
rgba(9, 9, 121, 1) 35%,
rgba(0, 212, 255, 1) 100%
);
}
</style>
<meta name="theme-color" content="#222" />
</head>
<body>
<div id="slider">
<div class="slide" style="background-image: url(https://source.unsplash.com/random/1)">
<div class="slide_content">
<h3>Slider title 1</h3>
<p>This is some paragraph stuff eh</p>
<a href="#" class="button">CLICK ME</a>
</div>
<div class="overlay"></div>
</div>
<div class="slide" style="background-image: url(https://source.unsplash.com/random/2)">
<div class="slide_content">
<h3>Slider title 2</h3>
<p>This is some paragraph stuff eh</p>
<a href="#" class="button">CLICK ME</a>
</div>
<div class="overlay"></div>
</div>
<div class="slide" style="background-image: url(https://source.unsplash.com/random/3)">
<div class="slide_content">
<h3>Slider title 3</h3>
<p>This is some paragraph stuff eh</p>
<a href="#" class="button">CLICK ME</a>
</div>
<div class="overlay"></div>
</div>
</div>
<link rel="stylesheet" type="text/css" href="style.css" media="all" />
<script type="text/javascript" src="script.js"></script>
<script>
HDS("#slider");
</script>
</body>
</html>