- new design

- with normalize.css and skeleton.css
This commit is contained in:
Arno Kaimbacher 2019-09-11 18:47:13 +02:00
parent 084a1a2b8c
commit 720aa57810
49 changed files with 2567 additions and 357 deletions

6
resources/assets/js/jquery-global.js vendored Normal file
View file

@ -0,0 +1,6 @@
//https://stackoverflow.com/questions/35358625/jquery-is-not-defined-when-use-es6-import
// jquery-global.js
import jquery from 'jquery';
window.jQuery = jquery;
window.$ = jquery;

View file

@ -0,0 +1,88 @@
import './jquery-global.js';
import 'single-page-nav/jquery.singlePageNav.js';
//bind plugin definition to jQuery
$(document).ready(function(){
// =Hero
// Alway make hero-container height equal to window height
var $heroContainer = $('.hero');
$heroContainer.height(window.innerHeight);
// When user resize browser window, hero container needs to have the same
// height as browser window height.
$(window).resize(function() {
$heroContainer.height(window.innerHeight);
});
// =Work
// Isotope filters
// var $workFilterLinks = $('.work-filters li');
// var $container = $('.work-items');
// $workFilterLinks.find('a').click(function(){
// $workFilterLinks.removeClass('active');
// $container.isotope({
// // options
// filter: $(this).attr('data-filter'),
// itemSelector: '.isotope-item',
// animationEngine : "best-available",
// masonry: {
// columnWidth: '.isotope-item'
// }
// });
// $(this).parent().addClass('active');
// return false;
// });
// Menu initialization
var $menuIcon = $('.menu-icon'),
$navigation = $('.navigation'),
$menu = $('.menu'),
$navigationLink = $('.menu a');
$(window).scroll(function() {
if(window.scrollY > window.outerHeight) {
$menuIcon.addClass('active');
} else {
$menuIcon.removeClass('active');
}
});
$menuIcon.click(function(e) {
e.preventDefault();
$navigation.toggleClass('active');
});
$menu.singlePageNav({
filter: ':not(.external)',
speed: 1000,
currentClass: 'current',
easing: 'swing',
updateHash: false,
beforeStart: function() {
},
onComplete: function() {
$navigation.removeClass('active');
}
});
// Scrollreveal initialize
// var config = {
// easing: 'hustle',
// reset: false,
// delay: 'onload',
// opacity: .2,
// vFactor: 0.2,
// mobile: false
// }
// window.sr = new scrollReveal( config );
});