-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
552 lines (523 loc) · 28.4 KB
/
Copy pathindex.html
File metadata and controls
552 lines (523 loc) · 28.4 KB
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
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
<!DOCTYPE html>
<html lang="en-US">
<!--
Name : Portfolio Grunge
Coder : Efthyvoulos Tsouderos
Website : http://e01t.github.io/portfolio
-->
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="Freelance designer/developer expert in HTML5, CSS3, JavaScript including jQuery, React, Redux, nodeJS, php, sql, mongodb, Twitter Bootstrap to name a few. Website:http://e01t.github.io/portfolio"/>
<title>Personal portfolio of Efthyvoulos Tsouderos, freelance designer and developer</title>
<link rel='shortcut icon' href='http://res.cloudinary.com/dsh8uhpna/image/upload/v1458117619/portfolio/shpere.gif' type='image/x-icon'/ >
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css">
<link rel="stylesheet" type="text/css" href="css/styles.css"/>
</head>
<body>
<div id="wrapper" role="article">
<!-- Simple Modal Window -->
<div id="dumbBoxWrap" role="dialog">
<div id="dumbBoxOverlay"> </div>
<div id="vertical-offset">
<div id="dumbBox" tabindex="0">
<img id="project-image" src="" alt="">
<header id="modal-header">
<h2 id="project-name"></h2>
<nav id="modal-navigation">
<i id="left-arrow" class="fa fa-chevron-left fa-2x"></i>
<i id="right-arrow" class="fa fa-chevron-right fa-2x"></i>
<!-- <a id="close-modal">Close</a> -->
<i id="close-modal" class="fa fa-times fa-2x"></i>
</nav>
</header>
<p id="project-description"></p>
<a id="project-url" href="" target="_blank"></a>
</div>
</div>
</div>
<header id="header">
<!-- START Logo -->
<div id="logo">
<a href="#" tabindex="-1">
<img src="http://res.cloudinary.com/dsh8uhpna/image/upload/v1458117619/portfolio/shpere.gif" alt="logo"/>
</a>
<h1 id="title">
<a href="#"><span>web</span>Folio</a>
</h1>
</div>
<!-- END logo -->
<!-- START Social Media Buttons -->
<nav class="social-buttons">
<ul id="social-buttons">
<li id="facebook">
<a tabindex="-1" href="https://www.facebook.com/efthyvoulos.tsouderos" target="_blank">
<img tabindex="0" src="http://res.cloudinary.com/dsh8uhpna/image/upload/v1458117621/portfolio/facebook.png" title="facebook" alt="facebook icon" />
</a>
</li>
<li id="codepen">
<a tabindex="-1" href="http://codepen.io/E01T/" target="_blank">
<img tabindex="0" src="http://res.cloudinary.com/dsh8uhpna/image/upload/v1458117623/portfolio/codepen.png" title="codepen" alt="codepen icon" />
</a>
</li>
<li id="github">
<a tabindex="-1" href="https://github.com/e01t" target="_blank">
<img tabindex="0" src="http://res.cloudinary.com/dsh8uhpna/image/upload/v1458117624/portfolio/github.jpg" title="github" alt="github icon" />
</a>
</li>
<li id="freecodecamp">
<a tabindex="-1" href="https://www.freecodecamp.com/e01t" target="_blank">
<img tabindex="0" src="http://res.cloudinary.com/dsh8uhpna/image/upload/v1459011112/portfolio/free_code_camp.png" title="free code camp" alt="free code camp icon" />
</a>
</li>
</ul>
</nav>
<!-- END Social Media Buttons -->
</header>
<!-- END masthead -->
<div role="main" id="main">
<article id="content">
<!-- START Left Column -->
<section id="left-column">
<div role="columnheader" id="intro-text">
<h2>Welcome</h2>
<p>
<a class="first_word" href="#" target="_self">Efthyvoulos Tsouderos</a><br>
A freelance web developer expert in HTML5, CSS3 and JavaScript including Svelte, Sapper, React, Redux, jQuery, nodeJS. I specialize in front-end development but I have also create projects using php, sql, mongodb and firebase/firestore...</a>
</p>
</div>
<div id="skills" >
<h3>Skills</h3>
<ul>
<li>Photoshop</li>
<li>HTML5 & CSS3</li>
<li>Responsive Web Design</li>
<li>JavaScript, Svelte, Sapper, React, Redux, jQuery</li>
<li>NodeJS, ExpressJS, PHP, WordPress </li>
<li>Databases, both relational and non-relational (Sql, NoSQL)</li>
</ul>
</div>
</section>
<!-- END Left Column -->
<!-- START Right Column -->
<section id="right-column">
<div role="columnheader" id="slider" autofocus="on">
<img id="slider_img" src="http://res.cloudinary.com/dsh8uhpna/image/upload/v1458117623/portfolio/img.jpg" alt="slider" />
</div>
<div id="lower-columns">
<div id="project">
<h3>Projects</h3>
<ul id="project_box">
<li>
<a href="#" tabindex="-1">
<img id="0" tabindex="0" class="project-images" src="https://res.cloudinary.com/dsh8uhpna/image/upload/v1599818419/portfolio/hn-dirt.jpg" title="Hacker News" alt="Hacker News"/>
</a>
</li>
<li>
<a href="#" tabindex="-1">
<img id="1" tabindex="0" class="project-images" src="https://res.cloudinary.com/dsh8uhpna/image/upload/v1593447288/portfolio/svelte_slideshow.png" title="Responsive Slideshow" alt="Simple slideshow written in svelte"/>
</a>
</li>
<li>
<a href="#" tabindex="-1">
<img id="2" tabindex="0" class="project-images" src="https://res.cloudinary.com/dsh8uhpna/image/upload/v1593447618/portfolio/photo_gallery.png" title="Responsive Photo Gallery" alt="Responsive photo gallery written in svelte"/>
</a>
</li>
<li>
<a href="#" tabindex="-1">
<img id="3" tabindex="0" class="project-images" src="http://res.cloudinary.com/dsh8uhpna/image/upload/v1458117618/portfolio/local_weather_app.png" title="Show Local Weather" alt="Show the Local Weather application"/>
</a>
</li>
<li>
<a href="#" tabindex="-1">
<img id="4" tabindex="0" class="project-images" src="https://res.cloudinary.com/dsh8uhpna/image/upload/v1593446994/portfolio/markup_editor.png" title="Markup Editor" alt="Markup editor written in svelte"/>
</a>
</li>
<li>
<a href="#" tabindex="-1">
<img id="5" tabindex="0" class="project-images" src="https://res.cloudinary.com/dsh8uhpna/image/upload/v1630221224/portfolio/luxury-hotel.png" title="Luxury Hotel" alt="Luxury Hotel react application"/>
</a>
</li>
<li>
<a href="#" tabindex="-1">
<img id="6" tabindex="0" class="project-images" src="http://res.cloudinary.com/dsh8uhpna/image/upload/v1458117625/portfolio/calculator.png" title="JavaScript Calculator" alt="javascript calculator"/>
</a>
</li>
<li>
<a href="#" tabindex="-1">
<img id="7" tabindex="0" class="project-images" src="http://res.cloudinary.com/dsh8uhpna/image/upload/v1458117618/portfolio/pomodoro.png" title="Pomodoro Clock" alt="pomodoro clock application"/>
</a>
</li>
<li>
<a href="#" tabindex="-1">
<img id="8" tabindex="0" class="project-images" src="http://res.cloudinary.com/dsh8uhpna/image/upload/v1458117619/portfolio/tic_tac_toe.png" title="Tic Tac Toe Game" alt="Tic Tac Toe Game"/>
</a>
</li>
<li>
<a href="#" tabindex="-1">
<img id="9" tabindex="0" class="project-images" src="http://res.cloudinary.com/dsh8uhpna/image/upload/v1458117618/portfolio/simon_game.png" title="Simon Game" alt="simon game"/>
</a>
</li>
</ul>
</div>
<!-- START Contact Form A.K.A. get_in_touch -->
<div role="form" id="get_in_touch">
<form id="contact-form" action="https://formspree.io/etsouderos@gmail.com" method="post" autocomplete="off">
<fieldset>
<legend>Get in Touch</legend>
<ul id="contact_list">
<li>
<input type="text" placeholder="Enter your full name" name="_name" title="Enter your full name" required class="text_input" id="name"/>
</li>
<li>
<input type="email" name="_replyto" placeholder="Enter your email" title="Enter your email" required class="text_input" id="email"/>
<input type="text" name="_gotcha" style="display:none" />
<input type="hidden" name="_next" value="http://e01t.github.io" />
</li>
<li>
<textarea rows="5" cols="20" placeholder="Leave your message" title="Leave your message" name="message" required id="message"/></textarea>
</li>
</ul>
<input id="send" type="submit" value="Send"/>
</fieldset>
</form>
<div class="form-message"></div>
</div> <!-- END Contact Form A.K.A. get_in_touch -->
</div> <!-- END Lower Columns -->
</section> <!-- END Right Column -->
</article> <!-- END content -->
</div>
<!-- END main -->
<footer id="footer">
© 2016 Designed & Developed by <a href="#">Efthyvoulos Tsouderos</a>
</footer>
</div>
<!-- END wrapper -->
<script src="https://code.jquery.com/jquery-2.2.1.min.js" integrity="sha256-gvQgAFzTH6trSrAWoH1iPo9Xc96QxSZ3feW6kem+O00=" crossorigin="anonymous">
</script>
</script>
<script>
// http://stackoverflow.com/questions/32453806/uncaught-securityerror-failed-to-execute-replacestate-on-history-cannot-be
$(document).bind('mobileinit',function(){
$.mobile.changePage.defaults.changeHash = false;
$.mobile.hashListeningEnabled = false;
$.mobile.pushStateEnabled = false;
$.mobile.autoInitializePage = false;
// Prevent jQuery Mobile adding classes all over the place
// http://stackoverflow.com/questions/10226974/how-to-prevent-jquery-mobile-adding-its-classes-to-html-elements
// $.mobile.autoInitializePage = false;
});
</script>
<script type="text/javascript">
// works on most browsers works on IE10/11 and Surface
const supportsTouch = 'ontouchstart' in window || navigator.msMaxTouchPoints;
$(document).ready(function() {
let $images = $('.project-images');
let $close_modal = $('#close-modal');
let $dumbBoxWrap = $('#dumbBoxWrap');
let $dumbBox = $('#dumbBox');
let $dumbBoxLink= $("#dumbBox a");
let $project_image = $('#project-image'); // Modal Window
let $project_name = $('#project-name');
let $project_description = $('#project-description');
let $project_url = $('#project-url');
let image_open = false;
let index = 0;
let previouslyFocused = null;
let $name = $('#name');
let $email = $('#email');
let $message = $('#message');
let $contact_form = $('#contact-form');
let $form_message = $('div.form-message');
/**
* if touch event is supported, conditionally load jQuery mobile
* and attach swipe events to modal window content
* @param {[type]} boolean
* @return {[type]} void
*/
if(supportsTouch) {
const url = 'https://code.jquery.com/mobile/1.4.5/jquery.mobile-1.4.5.min.js';
$.getScript( url, function( data, textStatus, jqxhr ) {
// console.log( data ); // Data returned
// console.log( textStatus ); // Success
// console.log( jqxhr.status ); // 200
// console.log( "Load was performed." );
}).done(function() {
/**
* Swipe event
* @param {swipeleft swiperight} Go with jQuery mobile
* @param {[type]} event object passed by javascript
* @return {[type]} void
*/
$dumbBox.on('swipeleft swiperight', function(event) {
if(event.type == 'swipeleft') {
index = index - 1;
if (index == -1) {
index = 9;
}
setModalValues(index);
}
else if (event.type == 'swiperight') {
index = (index + 1) % 10;
setModalValues(index);
}
});
});
}
/**
* Reset form message
* Clear message after 5 seconds
*/
function resetFormMessage() {
setTimeout(function() {
$form_message.text('');
}, 5000);
}
/**
* Form submission send to email via http://formspree.io/
*/
$contact_form.on('submit', function(event) {
event.preventDefault();
$.ajax({
url: "https://formspree.io/etsouderos@gmail.com",
method: "POST",
data: $(this).serialize(),
dataType: "json",
beforeSend: function() {
$form_message.text('Sending message…');
},
success: function(data) {
$form_message.text('Message sent!');
// Empty contact form
$name.val('');
$email.val('');
$message.val('');
resetFormMessage();
},
error: function(err) {
$form_message.text('Ops, there was an error. Please try again.');
resetFormMessage();
}
});
});
/**
* A helper function to be used in subsequent functions
* in order to set/fill the appropriate modal window values.
* @param {[type]} integer: The array index of the project object
* @return {[type]} void
*/
function setModalValues(index) {
const project = projects[index];
$project_image.attr('src', project.img_url);
$project_name.text(project.name);
$project_description.text(project.description);
$project_url.attr('href', project.url);
$project_url.text(project.name.toLowerCase());
$project_image.attr('width', "384px");
$project_image.attr('height', "225px");
}
/**
* Listen for Enter keyboard presses to open focused project image
* @param {[type]} event object passed by javascript
* @return {[type]} void
*/
$(document).keydown(function(event) {
if (event.which == 13) { // Enter key
if ( $('.project-images').is(':focus') && image_open === false ) { // if the focus is on an image
previouslyFocused = document.activeElement;
image_open = true;
setModalValues(index);
$dumbBoxWrap.fadeIn(500);
$dumbBox.focus();
}
}
else
return;
});
/**
* Tab trap. Limit the tab functionality inside the modal window
* as long as modal is open.
*/
$dumbBox.keydown( e => {
const modalIsOpen = $dumbBoxWrap[0].style.display === "block";
if (modalIsOpen) {
// if is tab
const firstFocusableElement = $dumbBox;
const lastFocusableElement = $dumbBoxLink;
// tab key pressed
if (e.keyCode === 9) {
// shift is held down
if (e.shiftKey) {
// backwards
if (firstFocusableElement.is(':focus')) {
e.preventDefault();
lastFocusableElement.focus();
}
}
// shift is not held down
else {
// forwards
if (lastFocusableElement.is(':focus')) {
e.preventDefault();
firstFocusableElement.focus();
}
} // if escape key pressed
} else if (e.keyCode === 27) closeModal();
}
});
/**
* Use left/right keyboard arrows to navigate through various projects
* @param {[type]} event object passed by javascript
* @return {[type]} void
*/
$dumbBoxWrap.keydown(function(event) {
const modalIsOpen = $dumbBoxWrap[0].style.display === "block";
if (modalIsOpen) {
if(event.which == 37) { // left arrow
index = index - 1;
if (index == -1) {
index = 9;
}
setModalValues(index);
}
else if (event.which == 39) { // rigth arrow
index = (index + 1) % 10;
setModalValues(index);
}
}
else
return;
});
/**
* Click on left/right arrow icons to navigate through various projects
* @param {[type]} event object passed by javascript
* @return {[type]} void
*/
$('#left-arrow, #right-arrow').click(function(event) {
if (this.id == 'left-arrow') {
index = index - 1;
if (index == -1) {
index = 9;
}
setModalValues(index);
}
else if (this.id == 'right-arrow') {
index = (index + 1) % 10;
setModalValues(index);
}
});
/**
* Loop through each project image and attach a click event
* On click you fill the modal window with the relevant values
* @return {[type]} void
*/
$images.each( function() {
const $image = $( this );
$image.on( 'click' , function(event) {
image_open = true;
index = parseInt(event.target.id)
setModalValues(index);
$dumbBoxWrap.fadeIn(500);
$dumbBox.focus();
});
});
// When the page loads focus on the first project image
$('.project-images')[0].focus();
/**
* When you focus on a project image you set the tabindex variable
* to be used in case on an Enter press
* @param {[type]} event object passed by javascript
* @return {[type]} void
*/
$('.project-images').on( 'focus', function(event) {
index = document.activeElement.id;
});
/**
* Click on the X icon to close the modal window
* @param {[type]} event object passed by javascript
* @return {[type]} void
*/
$close_modal.on( 'click', function(event) {
closeModal();
});
function closeModal() {
image_open = false;
$dumbBoxWrap.fadeOut(500);
previouslyFocused.focus();
}
const projects = [
{
'id': 'hacker-news',
'img_url': 'https://res.cloudinary.com/dsh8uhpna/image/upload/v1599818419/portfolio/hn-dirt.jpg',
'name': 'Hacker News',
'description': "Hacker News Clone made using Ionic React, and firebase/firestore",
'url': 'https://hack-the-news-8c480.firebaseapp.com/news'
},
{
'id': 'svelte-slideshow',
'img_url': 'https://res.cloudinary.com/dsh8uhpna/image/upload/v1593447288/portfolio/svelte_slideshow.png',
'name': 'Slideshow',
'description': 'Simple responsive slideshow coded in svelte.',
'url': 'https://svelte-slide-show.netlify.app/'
},
{
'id': 'photo-gallery',
'img_url': 'https://res.cloudinary.com/dsh8uhpna/image/upload/v1593447618/portfolio/photo_gallery.png',
'name': 'Photo Gallery',
'description': 'Responsive photo gallery coded in svelte',
'url': 'https://svelte-gallery.netlify.app/'
},
{
'id': 'local-weather',
'img_url': 'http://res.cloudinary.com/dsh8uhpna/image/upload/v1458117618/portfolio/local_weather_app.png',
'name': 'Show Local Weather',
'description': "You can see the weather in my current location. You can see a different background image (e.g. snowy mountain, hot desert) depending on the weather. Additional features include humidity, and temperature in Fahrenheit and Celsius.",
'url': 'http://codepen.io/E01T/full/wMQRmm/'
},
{
'id': 'markup-editor',
'img_url': 'https://res.cloudinary.com/dsh8uhpna/image/upload/v1593446994/portfolio/markup_editor.png',
'name': 'Markup Editor',
'description': 'Simple markup editor coded in svelte',
'url': 'https://sveltejs-markdown-editor.netlify.app/'
},
{
'id': 'luxury-hotel',
'img_url': 'https://res.cloudinary.com/dsh8uhpna/image/upload/v1630221224/portfolio/luxury-hotel.png',
'name': 'Luxury Hotel',
'description': "Luxury hotel application made with ReactJS",
'url': 'https://hotel-luxury.netlify.app/'
},
{
'id': 'js-calc',
'img_url': 'http://res.cloudinary.com/dsh8uhpna/image/upload/v1458117625/portfolio/calculator.png',
'name': 'JavaScript Calculator',
'description': "You can add, subtract, multiply and divide two numbers. You can clear the input field with a clear button. You can keep chaining mathematical operations together until you hit the equal button, and the calculator will tell me the correct output.",
'url': 'http://codepen.io/E01T/full/rOYPpb/'
},
{
'id': 'pomodoro-clock',
'img_url': 'http://res.cloudinary.com/dsh8uhpna/image/upload/v1458117618/portfolio/pomodoro.png',
'name': 'Pomodoro Clock',
'description': "You can start a 25 minute pomodoro, and the timer will go off once 25 minutes has elapsed. You can reset the clock for my next pomodoro. You can customize the length of each pomodoro.",
'url': 'http://codepen.io/E01T/full/vNmEzp/'
},
{
'id': 'tic-tac-toe',
'img_url': 'http://res.cloudinary.com/dsh8uhpna/image/upload/v1458117619/portfolio/tic_tac_toe.png',
'name': 'Tic Tac Toe Game',
'description': "You can play a game of Tic Tac Toe with the computer. The game will reset as soon as it's over so I can play again. You can choose whether I want to play as X or O.",
'url': 'http://codepen.io/E01T/full/Qjxxwe/'
},
{
'id': 'simon-game',
'img_url': 'http://res.cloudinary.com/dsh8uhpna/image/upload/v1458117618/portfolio/simon_game.png',
'name': 'Simon Game',
'description': "You are presented with a random series of button presses. Each time you input a series of button presses correctly, you see the same series of button presses but with an additional step. You hear a sound that corresponds to each button both when the series of button presses plays, and when you personally press a button. If you press the wrong button, you are notified that you have done so, and that series of button presses starts again to remind you of the pattern so you can try again. You can see how many steps are in the current series of button presses. If you want to restart, you can hit a button to do so, and the game will return to a single step. You can play in strict mode where if you get a button press wrong, it notifies you that you have done so, and the game restarts at a new random series of button presses. You can win the game by getting a series of 20 steps correct. You get notified of your victory, then the game starts over.",
'url': 'http://codepen.io/E01T/full/oxWXXY/'
}
];
}); // END OF document ready
</script>
</body>
</html>