-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtemplate.html
387 lines (291 loc) · 6.83 KB
/
template.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
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
<!DOCTYPE html>
<html lang="en">
<head>
<meta name="viewport" content="width=device-width">
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.3/jquery.min.js"></script>
<link href='https://fonts.googleapis.com/css?family=Lato:400,900|Bitter' rel='stylesheet' type='text/css'>
<title>My Online Portfolio</title>
<style type="text/css">
/* Beginning of CSS */
* {
-moz-box-sizing: border-box;
-webkit-box-sizing: border-box;
box-sizing: border-box;
-webkit-font-smoothing: antialiased;
}
body {
font-family: 'Bitter', serif;
margin:0px auto;
}
.image {
background: #cecece;
display: inline-block;
width: auto;
height: auto;
width: 80%;
height: 250px;
margin: 20px auto;
opacity: .8;
cursor: pointer;
}
.image:hover {
opacity: 1
}
img {
width: 100%;
margin: auto;
display: block;
}
.header li, a, .button, h3, .image{
transition: all 0.10s ease-in-out;
-webkit-transition: all 0.10s ease-in-out;
-moz-transition: all 0.10s ease-in-out;
-o-transition: all 0.10s ease-in-out;
}
.header {
width: 100%;
top:0px;
background:#fff;
position: fixed;
height: 40px;
z-index: 9999;
text-align: center;
border-bottom: 1px solid #f5f1ef;
display: inline-block;
}
.header ul {
margin: auto;
display: inline-block;
padding: 0px;
}
.header li {
float: left;
padding: 10px 20px 10px 0px;
cursor: pointer;
list-style-type: none;
height:40px;
}
.header li h3 {
border-left: 1px solid #cecece;
padding-left: 20px;
}
.header li:first-child h3{
border-left:0px;
}
.header li.active a {
color: rgba(0,0,0,.8);
}
.header li a {
color:#B2AB9E;
}
a {
color:rgba(0,0,0,.8);
text-decoration: none;
}
a:hover {
color:rgba(0,0,0,.8);
}
#container {
color: #333;
width: 100%;
margin:0px;
font-weight: 200;
text-align: center;
}
#container .inner {
max-width: 960px;
width: 100%;
margin:10px auto;
padding:20px 0px;
display: inline-block;
}
#container .inner.double {
float: left;
width: 50%;
}
#container .inner.triple {
float: left;
width: 33%;
}
.inner.triple p {
max-width: 300px;
margin: auto;
width: 100%;
height:50px
}
h1 {
font-size: 80px;
color:#565656;
font-weight: 200;
margin: 50px 0px 20px
}
h2 {
font-size: 40px;
color:#565656;
margin:50px 0px 0px 0px;
font-weight: 200;
}
h3 {
font-family: "Lato", sans-serif;
text-transform: uppercase;
font-size: 12px;
letter-spacing: .1em;
font-weight: bold;
margin:0px;
}
p {
font-size: 15px;
color: rgba(0,0,0,.8);
font-family: "Lato", sans-serif;
letter-spacing: .02em;
font-weight: 300;
line-height: 1.5em
}
#container > div {
padding-top:10px;
display: inline-block;
width: 100%
}
.section {
border-bottom: 1px solid #cecece;
padding: 50px 0px;
display: inline-block;
width: 100%;
min-height: 400px
}
.footer .section{
margin: 0px;
border:0px;
}
.footer {
background: #222;
}
.footer p {
color: #fff
}
#contact .section{
min-height: 600px
}
/* End of regular CSS */
/* Beginning of CSS for mobile */
@media screen and (max-width: 480px){
p {
margin-bottom: 0px
}
h1 {
font-size: 50px;
}
h2 {
font-size: 30px
}
header li {
padding:10px 8px 10px 0px;
}
header li h3 {
padding-left:8px;
}
.image {
width: 100%;
max-width: 300px
}
#container .inner.double, #container .inner.triple {
max-width: 300px;
width: 100%;
float: none;
margin: 30px auto 0px;
}
#home p {
padding:0px 50px;
}
.inner.triple p {
height: auto
}
}
/* End of CSS for mobile*/
</style>
<body> <!-- start of body -->
<div class="header"> <!-- beginning of header -->
<ul>
<li class="home-nav active"><h3><a href="#home">My Name</a></h3></li>
<li class="work-nav"><h3><a href="#work">Work</a></h3></li>
<li class="contact-nav"><h3><a href="#contact">Contact</a></h3></li>
</ul>
</div> <!-- end of header -->
<div id="container"> <!-- beginning of container -->
<div id="home"> <!-- beginning of home -->
<div class="section"> <!-- beginning of section -->
<div class="inner">
<h1>My Online Portfolio</h1>
<p>I'm So and So. Here's my portfolio.</p>
<div class="image"><img src=""></div>
</div>
</div> <!-- end of section -->
</div> <!-- end of home -->
<div id="work"> <!-- beginning of work -->
<div class="section">
<h2>2 Column Section</h2>
<div class="inner double">
<p>Title</p>
<div class="image"><img src=""></div>
</div>
<div class="inner double">
<p>Title</p>
<div class="image"><img src=""></div>
</div>
</div> <!-- end of section -->
<div class="section">
<h2>3 Column Section</h2>
<div class="inner triple">
<p>Title</p>
<div class="image"><img src=""></div>
</div>
<div class="inner triple">
<p>Title</p>
<div class="image"><img src=""></div>
</div>
<div class="inner triple">
<p>Title</p>
<div class="image"><img src=""></div>
</div>
</div> <!-- end of section -->
</div> <!-- end of work -->
<div id="contact"> <!-- beginning of contact -->
<div class="section">
<h2>Contact Me!</h2>
<div class="inner"><p>Email me here.</p></div>
</div>
</div> <!-- end of contact -->
<div class="footer"> <!-- beginning of footer -->
<div class="section">
<p>Some final text</p>
</div>
</div> <!-- end of footer -->
</div> <!-- end of container -->
<script type="text/javascript">
$(document).ready(function() {
$('.header a').click(function(e) {
e.preventDefault();
var curInx = this.hash;
var target = $(curInx);
var targetOffset = target.offset().top;
$("body").animate({scrollTop:targetOffset}, 400, function() {
location.hash = curInx;
});
});
$(window).scroll(function() {
var sticky = function(index) {
$('li').removeClass('active'), $('.' + index + '-nav').addClass('active');
};
$('#container > div').each(function(){
var cur = $(this);
var curTop = cur.offset().top;
var curInx = cur.attr("id");
var sidebarTop = $('.'+curInx+'-nav').offset().top +60;
if (sidebarTop > curTop) {
sticky(curInx);
}
});
});
});
</script>
</body> <!-- end of body -->