Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .netlify/state.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"siteId": "cd85a3ac-8bcd-4309-86cd-699127122d3d"
"siteId": "3d80cd69-6f30-4efd-85ea-fd1c6b980107"
}
3 changes: 2 additions & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -140,10 +140,11 @@ DEPENDENCIES
contentful_middleman!
fastimage
middleman (>= 4.2.0)
middleman-cli (>= 4.2.1)
middleman-livereload
redcarpet
tzinfo-data
wdm (~> 0.1.0)

BUNDLED WITH
1.14.6
1.16.6
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
# graz.io
Sebastian Graz's personal portfolio

`rvm use 2.3.3`
`n node/8.11.2`

Commands:

Get started
Expand Down
17 changes: 15 additions & 2 deletions assets/javascript/all.js
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,19 @@ function tileHover() {
});
};

function hideNavOnScroll() {
var prevScrollpos = window.pageYOffset;
window.onscroll = function() {
var currentScrollPos = window.pageYOffset;
if (prevScrollpos > currentScrollPos) {
document.querySelector(".navigation").classList.remove('hidden-nav');
} else {
document.querySelector(".navigation").classList.add('hidden-nav');
}
prevScrollpos = currentScrollPos;
}
}

var BarbaWidget = {
init: function() {

Expand Down Expand Up @@ -138,7 +151,7 @@ var BarbaWidget = {
scrollReveal();
tileHover();
fixTouchLinks();

hideNavOnScroll();
// The Transition has just finished.
},
onLeave: function() {
Expand All @@ -157,7 +170,7 @@ var BarbaWidget = {


$doc.ready(function() {

hideNavOnScroll();
detectMobile();
videoInView();
BarbaWidget.init();
Expand Down
5 changes: 5 additions & 0 deletions assets/stylesheets/_layout/_elements.scss
Original file line number Diff line number Diff line change
Expand Up @@ -55,3 +55,8 @@ kbd {
blockquote {
margin: 12%;
}
footer {
.spacer {
display: none;
}
}
1 change: 0 additions & 1 deletion assets/stylesheets/_layout/_typography.scss
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ body {
// font-variant-numeric: oldstyle-nums;
}


h1,
h2,
h3,
Expand Down
8 changes: 6 additions & 2 deletions assets/stylesheets/_module/_nav.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ nav {
stroke: $text-color;
}
.navigation {
pointer-events: none;
width: 100%;
pointer-events: none;
margin: 0 auto;
top:1rem;
transition: .4s $bezier top;
transition: .4s $bezier top, .9s $bezier opacity, .7s $bezier transform;
position: fixed;
z-index: 3;
@include mq(sm) {
Expand All @@ -27,6 +27,10 @@ nav {
}
}
}
.navigation.hidden-nav {
opacity: 0.3;
pointer-events: none;
}
ul {
display: flex;
align-items: center;
Expand Down
18 changes: 15 additions & 3 deletions assets/stylesheets/_module/_tiles.scss
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@
left: 0;
width: 100%;
transform: scale(0);
will-change: transform;
height: 100%;
position : absolute;
}
Expand Down Expand Up @@ -80,8 +79,11 @@
}

.tile-link {
position: static;
display:block;
width: 100%;
height: 100%;
}

.tile-video {
transition: .4s $bezier all;
width: 50%;
Expand All @@ -90,7 +92,7 @@
opacity: 1;
right: 0;
z-index: 3;

overflow: hidden;
@include mq(md) {
opacity: 0;
width: 70%;
Expand All @@ -99,6 +101,15 @@
display: none;
}
}
.tile-video.full-width-video {
width: 100%;
height: 100%;
video {
width: 100%;
height: 100%;
object-fit: cover;
}
}
.tile-image {
transition: .4s $bezier all;
width: 50%;
Expand All @@ -122,6 +133,7 @@
}

.tile-title {
letter-spacing: -0.01em;
font-size: 1.25rem;
margin: 0;
visibility: hidden;
Expand Down
6 changes: 4 additions & 2 deletions assets/stylesheets/main.scss
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
@charset "utf-8";

$text-color : #362f3e;
$text-color : #000; //362f3e
$max-width : 960px;
$link-color : rgba($text-color, 0.6);
$bezier: cubic-bezier(.03, .82, .34, .99);
Expand Down Expand Up @@ -88,10 +88,12 @@ $mq-sm : 30;
margin-left: auto;
}
.case-char-padding {
padding: .1em .2em;
padding: 0 .15em;
}
.case-char {
letter-spacing: -0.04em;
display: flex;
font-weight: 100;
margin-right: 1px;
margin-bottom: 1px;
&.reveal {
Expand Down
Loading