Skip to content

Commit

Permalink
Cleaned up javascript and build OK
Browse files Browse the repository at this point in the history
  • Loading branch information
ltribolet committed May 1, 2016
1 parent 7694fdb commit ec76cd9
Show file tree
Hide file tree
Showing 8 changed files with 94 additions and 197 deletions.
Binary file added app/documents/luc_tribolet_resume_en.pdf
Binary file not shown.
Binary file added app/documents/luc_tribolet_resume_fr.pdf
Binary file not shown.
Binary file added app/images/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/images/hero.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
108 changes: 85 additions & 23 deletions app/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,11 @@
<div id="st-container" class="st-container">
<!-- Begin Hero -->
<div class="st-pusher">
<section class="st-content hero">
<section id="hero" class="st-content hero">
<div class="st-content-inner">
<div class="container">
<!-- Hero Content -->
<div class="row hero-content" data-0="opacity: 1; transform: translate3d(0px, 0px, 0px);" data-top-bottom="opacity: 0; transform: translate3d(0px, 300%, 0px);">
<div id="hero-content" class="row hero-content" data-0="opacity: 1; transform: translate3d(0px, 0px, 0px);" data-top-bottom="opacity: 0; transform: translate3d(0px, 300%, 0px);">
<!-- Intro -->
<div class="col-xs-9 col-sm-8 col-lg-7 col-sm-offset-1 col-lg-offset-1">
<h1>Hi ! I am <span class="highlight">Luc Tribolet</span>. Full Stack Developer. Based in Paris.</h1>
Expand All @@ -67,10 +67,10 @@ <h1>Hi ! I am <span class="highlight">Luc Tribolet</span>. Full Stack Developer.
<a href="documents/luc_tribolet_resume_web.html" title="Web Resume" target="_blank">
<i class="glyphicon glyphicon-file"></i>
</a>
<a href="documents/luc_tribolet_resume_en.doc" title="English Resume" target="_blank">
<a href="documents/luc_tribolet_resume_en.pdf" title="English Resume" target="_blank">
<span class="text-uppercase">en</span>
</a>
<a href="documents/luc_tribolet_resume_fr.doc" title="French Resume" target="_blank">
<a href="documents/luc_tribolet_resume_fr.pdf" title="French Resume" target="_blank">
<span class="text-uppercase text-">fr</span>
</a>

Expand All @@ -90,28 +90,90 @@ <h1>Hi ! I am <span class="highlight">Luc Tribolet</span>. Full Stack Developer.

<!-- build:js scripts/vendor.js -->
<!-- bower:js -->
<script src="/bower_components/jquery/dist/jquery.js"></script>
<script src="/bower_components/classie/classie.js"></script>
<!-- endbower -->
<!-- endbuild -->

<!-- build:js scripts/plugins.js -->
<script src="/bower_components/bootstrap/js/affix.js"></script>
<script src="/bower_components/bootstrap/js/alert.js"></script>
<script src="/bower_components/bootstrap/js/dropdown.js"></script>
<script src="/bower_components/bootstrap/js/tooltip.js"></script>
<script src="/bower_components/bootstrap/js/modal.js"></script>
<script src="/bower_components/bootstrap/js/transition.js"></script>
<script src="/bower_components/bootstrap/js/button.js"></script>
<script src="/bower_components/bootstrap/js/popover.js"></script>
<script src="/bower_components/bootstrap/js/carousel.js"></script>
<script src="/bower_components/bootstrap/js/scrollspy.js"></script>
<script src="/bower_components/bootstrap/js/collapse.js"></script>
<script src="/bower_components/bootstrap/js/tab.js"></script>
<!-- endbuild -->

<!-- build:js scripts/main.js -->
<script src="scripts/main.js"></script>
<!-- endbuild -->
<script type="application/javascript">
(function () {
function hasParentClass(e, classname) {
if (e === document) {
return false;
}
if (classie.has(e, classname)) {
return true;
}
return e.parentNode && hasParentClass(e.parentNode, classname);
}

// http://coveroverflow.com/a/11381730/989439
function mobilecheck() {
var check = false;
(function (a) {
if (/(android|ipad|playbook|silk|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i.test(a) || /1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(a.substr(0, 4))) {
check = true;
}
})(navigator.userAgent || navigator.vendor || window.opera);
return check;
}

function init() {

var container = document.getElementById('st-container'),
reset = document.getElementById('closeMenu'),
buttons = Array.prototype.slice.call(document.querySelectorAll('.scroll-to')),
// event type (if mobile use touch events)
eventtype = mobilecheck() ? 'touchstart' : 'click',
resetMenu = function () {
classie.remove(container, 'st-menu-open');
},
bodyClickFn = function (evt) {
if (!hasParentClass(evt.target, 'st-menu')) {
resetMenu();
document.removeEventListener(eventtype, bodyClickFn);
}
},
resetClickFn = function (evt) {
if (evt.target === reset) {
resetMenu();
document.removeEventListener(eventtype, bodyClickFn);
}
};

buttons.forEach(function (el) {
var effect = el.getAttribute('data-effect');

el.addEventListener(eventtype, function (ev) {
ev.stopPropagation();
ev.preventDefault();
container.className = 'st-container'; // clear
classie.add(container, effect);
setTimeout(function () {
classie.add(container, 'st-menu-open');
}, 25);
document.addEventListener(eventtype, bodyClickFn);
document.addEventListener(eventtype, resetClickFn);
});
});

}

init();

function centerInit() {
var hero = document.getElementById('hero'),
heroContent = document.getElementById('hero-content'),
windowHeight = window.innerHeight,
contentMargin = (windowHeight - heroContent.offsetHeight) / 2;

hero.setAttribute('style', 'height:' + windowHeight + 'px');
heroContent.setAttribute('style', 'margin-top:' + contentMargin + 'px');
}

centerInit();
window.onresize = centerInit;

})();
</script>
</body>
</html>
81 changes: 0 additions & 81 deletions app/scripts/main.js

This file was deleted.

94 changes: 2 additions & 92 deletions app/styles/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -23,19 +23,6 @@ section {
color: #272727;
}

.padded {
padding-top: 60px;
padding-bottom: 60px;
}

.padded-top {
padding-top: 60px;
}

.padded-bottom {
padding-bottom: 60px;
}

/* Medium Devices, Desktops */
@media only screen and (min-width: 992px) {
.padded {
Expand Down Expand Up @@ -64,25 +51,7 @@ h1 {
}

.hero h1 {
padding-bottom: 0px;
}

h2 {
font-family: 'Lekton', sans-serif;
font-size: 12px;
line-height: 12px;
color: #777777;
letter-spacing: 0.20em;
padding-bottom: 20px;
-webkit-font-variant-ligatures: no-common-ligatures;
}

h6 {
font-weight: 400;
font-size: 7px;
margin-top: 10px;
text-transform: uppercase;
letter-spacing: 0.3em;
padding-bottom: 0;
}

p {
Expand Down Expand Up @@ -110,11 +79,6 @@ a:hover {
line-height: 62px;
padding-bottom: 40px;
}

h2 {
padding-bottom: 40px;
}

}

/* Medium Devices, Desktops */
Expand All @@ -123,7 +87,6 @@ a:hover {
font-size: 55px;
line-height: 70px;
}

}

/* Large Devices, Wide Screens */
Expand All @@ -134,10 +97,6 @@ a:hover {
padding-bottom: 50px;
}

h2 {
padding-bottom: 40px;
}

p {
font-size: 16px;
line-height: 36px;
Expand Down Expand Up @@ -197,11 +156,6 @@ a:hover {
margin-bottom: 10px;
}

.hero h2 {
padding: 0;
margin-bottom: 10px;
}

.hero h1 {
margin: 0;
padding: 0;
Expand All @@ -218,11 +172,6 @@ a:hover {
display: block;
}

.hero h2 {
padding-bottom: 20px;
margin-bottom: 10px;
}

.hero h1 {
margin: 0;
padding: 0;
Expand Down Expand Up @@ -265,7 +214,7 @@ footer {
position: relative;
}

.social-list a:hover {
.social-list a:hover, .social-list a:focus {
opacity: 1;
text-decoration: none;
}
Expand All @@ -275,34 +224,17 @@ footer {
font-style: normal;
font-weight: normal;
speak: none;

display: inline-block;
text-decoration: inherit;
width: 1em;
margin-right: .2em;
text-align: center;
/* opacity: .8; */

/* For safety - reset parent styles, that can break glyph codes*/
font-variant: normal;
text-transform: none;

/* fix buttons height, for twitter bootstrap */
line-height: 1em;

/* Animation center compensation - margins should be symmetric */
/* remove if not needed */
margin-left: .2em;

/* you can be more comfortable with increased icons size */
/* font-size: 120%; */

/* Font smoothing. That was taken from TWBS */
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;

/* Uncomment for 3D effect */
/* text-shadow: 1px 1px 1px rgba(127, 127, 127, 0.3); */
}

.social-list .legend {
Expand Down Expand Up @@ -350,28 +282,6 @@ footer {
}
}

/* =Responsive Styles
-------------------------------------------------------------- */
/* Landscape Phones */
@media only screen and (min-width: 480px) {

}

/* Small Devices, Tablets */
@media only screen and (min-width: 768px) {

}

/* Medium Devices, Desktops */
@media only screen and (min-width: 992px) {

}

/* Large Devices, Wide Screens */
@media only screen and (min-width: 1200px) {

}

.highlight {
color: #ed3200;
}
Expand Down
Loading

0 comments on commit ec76cd9

Please sign in to comment.