-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhero.html
269 lines (256 loc) · 12.3 KB
/
hero.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
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<link rel="shortcut icon" href="img/favicon.png" type="image/x-icon">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Tuxedo CSS - Hero</title>
<link rel="stylesheet" href="css/styles.css">
<script src="https://code.jquery.com/jquery-3.1.1.min.js" integrity="sha256-hVVnYaiADRTO2PzUGmuLJr8BLUSjGIZsDYGmIJLv2b8=" crossorigin="anonymous"></script>
<script src="js/tuxedo.js" charset="utf-8"></script>
</head>
<body>
<nav class="nav-dark fixed tablet-flex">
<header>
<a href="index.html"><img src="img/logo-thick-light.svg" alt="Tuxedo Logo"></a>
</header>
<ul class="mobile-nav flex-center">
<div class="hamburger"></div>
</ul>
<div class="flyout">
<div class="bar">
<header class="f-col-4">
<a href="index.html"><img src="img/logo-thick-light.svg" alt="Tuxedo Logo">
</a>
</header>
<div class="close f-col-1"></div>
</div>
<ul class="flyout-menu">
<li><a href="start.html">Getting Started</a></li>
<li class="fly-dropdown">Docs +
<ul class="dropdown-menu">
<li><a href="animations.html">Animations</a></li>
<li><a href="buttons.html">Buttons</a></li>
<li><a href="colors.html">Colors</a></li>
<li><a href="fonts.html">Fonts</a></li>
<li><a href="footers.html">Footers</a></li>
<li><a href="forms.html">Forms</a></li>
<li><a href="grid.html">Grid</a></li>
<li><a href="helpers.html">Helpers</a></li>
<li><a href="hero.html">Hero</a></li>
<li><a href="nav.html">Nav</a></li>
<li><a href="sidebar.html">Sidebar</a></li>
<li><a href="threejs.html">Three.js</a></li>
</ul>
</li>
<li><a href="about.html">About</a></li>
</ul>
</div>
</nav>
<div class="side-bar bg-dark">
<head>
<a href="index.html"><img src="img/thin-logo-large.svg" alt="tuxedo logo"></a>
</head>
<ul class="underline-light">
<li><a href="start.html">Getting Started</a></li>
<li><a href="animations.html">Animations</a></li>
<li><a href="buttons.html">Buttons</a></li>
<li><a href="colors.html">Colors</a></li>
<li><a href="fonts.html">Fonts</a></li>
<li><a href="footers.html">Footers</a></li>
<li><a href="forms.html">Forms</a></li>
<li><a href="grid.html">Grid</a></li>
<li><a href="helpers.html">Helpers</a></li>
<li class="active"><a href="hero.html">Hero</a></li>
<li><a href="nav.html">Nav</a></li>
<li><a href="sidebar.html">Sidebar</a></li>
<li><a href="threejs.html">Three.js</a></li>
</ul>
<ul>
<li><a href="about.html">About</a></li>
</ul>
</div>
<div class="side-bar-content">
<h1 class="text-dark underline-dark">Hero</h1>
<p>
Hero sections have become very popular within webdesign today. Tuxedo has made it simple for you to integrate your own hero complete with background images and call to action buttons.
</p>
<p>
There is also a <strong><a href="#slideshow">hero slideshow</a></strong> option for slideshows that are sure to capture the attention of your audience.
</p>
<h3 class="text-dark">Hero Section: Example 1</h3>
<div class="code-example">
<div class="hero example">
<img class="hero-image" src="img/palms-dark.png" alt="Image of palm leaves">
<div class="hero-content">
<header>
<h1 class="text-light">Welcome to</h1>
</header>
<header>
<img src="img/thin-logo-large.svg" alt="">
</header>
<div class="hero-body">
<p class="text-light text-center">a different kind of css framework</p>
<br>
<div class="f-row">
<form>
<button class="btn-pop" type="button">Get Started</button>
</form>
</div>
</div>
</div>
</div>
</div>
<div class="code">
<xmp>
<div class="hero">
<img class="hero-image" src="img/palms-dark.png" alt="Image of palm leaves">
<div class="hero-content">
<header>
<h1 class="text-light">Welcome to</h1>
</header>
<header>
<img src="img/thin-logo-large.svg" alt="">
</header>
<div class="hero-body">
<p class="text-light text-center">a different kind of css framework</p>
<br>
<div class="f-row">
<form>
<button class="btn-pop" type="button">Get Started</button>
</form>
</div>
</div>
</div>
</div>
</xmp>
</div>
<h3 class="text-dark">Hero Section: Example 2</h3>
<div class="code-example">
<div class="hero example">
<img class="hero-image" src="img/palms-dark.png" alt="Image of palm leaves">
<div class="hero-content">
<div class="hero-body">
<form class="bg-t-dark">
<header>
<h1 class="text-light">Login</h1>
</header>
<label class="text-light">Email</label>
<input type="email" class="input-light" placeholder="Email Address">
<label class="text-light">Password</label>
<input type="password" class="input-light" placeholder="Password">
<div class="form-divide-light"></div>
<div class="f-row">
<button class="btn-light f-col-1 flex-center" name="button">Sign Up</button>
<button class="btn-pop f-col-1 flex-center" name="button">Login</button>
</div>
</form>
</div>
</div>
</div>
</div>
<div class="code">
<xmp>
<div class="hero">
<img class="hero-image" src="img/palms-dark.png" alt="Image of palm leaves">
<div class="hero-content">
<div class="hero-body">
<form class="bg-t-dark">
<header>
<h1 class="text-light">Login</h1>
</header>
<label class="text-light">Email</label>
<input type="email" class="input-light" placeholder="Email Address">
<label class="text-light">Password</label>
<input type="password" class="input-light" placeholder="Password">
<div class="form-divide-light"></div>
<div class="f-row">
<button class="btn-light f-col-1 flex-center" name="button">Sign Up</button>
<button class="btn-pop f-col-1 flex-center" name="button">Login</button>
</div>
</form>
</div>
</div>
</div>
</xmp>
</div>
<h3 id="slideshow" class="text-dark">Hero Slideshow</h3>
<p>
This is a great way to display a series of high quality images. The images we used for this example are 1400px by 930px with a resolution of 72ppi. You will also have to initiate some JavaScript to get this one running.<br> <small>Images from unsplashed.com</small>
</p>
<div class="code-example">
<div class="hero-slideshow example">
<div class="images">
<img class="1 active" src="img/forest.jpg" alt="Forest">
<img class="2" src="img/girl.jpg" alt="Girl">
<img class="3" src="img/palms-dark.png" alt="darkened palms">
<img class="4" src="img/hills.jpg" alt="Hills">
</div>
<div class="right-arrow"></div>
<div class="left-arrow"></div>
<div class="hero-text text-center">
<h2 class="text-light">Slideshow Text</h2>
<h6 class="text-light">This is more text lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.</h6>
<div class="circles">
<div class="circle 1 active"></div>
<div class="circle 2"></div>
<div class="circle 3"></div>
<div class="circle 4"></div>
</div>
</div>
</div>
</div>
<div class="code">
<xmp>
<div class="hero-slideshow">
<div class="images">
<img class="1 active" src="img/forest.jpg" alt="Forest">
<img class="2" src="img/girl.jpg" alt="Girl">
<img class="3" src="img/palms-dark.png" alt="darkened palms">
<img class="4" src="img/hills.jpg" alt="Hills">
<img class="5" src="img/girl-2.jpg" alt="Girl and landscape">
</div>
<div class="right-arrow"></div>
<div class="left-arrow"></div>
<div class="hero-text text-center">
<h2 class="text-light">Slideshow Text</h2>
<h6 class="text-light">This is more text lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.</h6>
<div class="circles">
<div class="circle 1 active"></div>
<div class="circle 2"></div>
<div class="circle 3"></div>
<div class="circle 4"></div>
<div class="circle 5"></div>
</div>
</div>
</div>
</xmp>
</div>
<div class="code">
<label>js/tuxedo.js</label>
<xmp>
(...)
////////// Add Functions to Call HERE//////////
heroSlideshow();
</xmp>
</div>
<h3>Circles</h3>
<p>The circles div provides a visual respresentation of the number of images in the slideshow and which image is currently being viewed. Clicking on any of the circles will show the corresponding image. Slideshows do not need these circles to function properly so simply remove the entire circles div if you do not want them in your project. You can change the style of the circles by appending a new svg path to the background url of the <code>circle</code> class which can be found in the <code>_hero.scss</code> file.</p>
<h3>Arrows</h3>
<p>The right and left arrow divs allow the user to navigate to the next or previous image in your slideshow. You can change the style of the arrows by appending a new svg path to the background url of the <code>right-arrow</code> and <code>left-arrow</code> classes which can be found in the <code>_hero.scss</code> file.</p>
<h3>Adding or removing images</h3>
<p>Customizing your slideshow requires several simple steps and <strong>no</strong> JavaScript or CSS manipulation. Each image of the slideshow is given a unique class number that is sequential. These class numbers correspond to the circle classes below and <strong>both of these sequences must match</strong> for your slideshow to function properly.</p>
<p>To add another image simply duplicate one of the other images, change its class to the next number in the sequence, and change the src to the image of your choice. For example, if you are adding in a 6th slide it would be given <code>class="6"</code>.</p>
<p>Next, find the div with the class of circles below and add a new div with the <code>class="circle 6"</code>. You can continue this process for as many images as you would like to add.</p>
<p>Be sure that when rearranging images the class number sequence is in numerical order for both the images and cirlces. The first image and circle in the sequence should both be given the class <code>active</code>. If you remove the active class the slideshow will no longer function properly.</p>
<p>To remove an image simply delete the image and the circle with the corresponding number from both the images and circles divs respectively. Then adjust any class numbers so the numerical sequence is still in order.</p>
<h3>Changing time between slides</h3>
<p>The slideshow is set on a default timer of 5 seconds per slide. To change this interval navigate to the <code>tuxedo.js</code> file. Open the finder (<code>CMD + F</code> on Mac) and search <code>change slideshow time interval</code>. 5000(ms) is the default and is equivalent to 5 seconds.
</div>
<footer class="f-row responsive">
<small class="f-col-1 flex-center">2017 Erica Nafziger, All rights reserved.
</small>
<small class="f-col-1 flex-center">MIT License
</small>
</footer>
</body>
</html>