diff --git a/branding/index.html b/branding/index.html index a86992d..b22b110 100644 --- a/branding/index.html +++ b/branding/index.html @@ -40,15 +40,15 @@ -
- bg-img +
+ bg-img
-
+

LBRY Branding Assets

Branding Assets IG

diff --git a/governance/index.html b/governance/index.html index 63ecc2c..e61e946 100644 --- a/governance/index.html +++ b/governance/index.html @@ -41,7 +41,7 @@
- bg-img + bg-img
diff --git a/index.html b/index.html index eab983e..0f000a1 100644 --- a/index.html +++ b/index.html @@ -52,15 +52,15 @@ -
- bg-img +
+ bg-img
-
+

Welcome to LBRY

LBRY LBRY LBRY LBRY LBRY LBRY LBRY LBRY LBRY LBRY LBRY LBRY

diff --git a/lib/css/article.css b/lib/css/article.css index ebeaf55..e69de29 100644 --- a/lib/css/article.css +++ b/lib/css/article.css @@ -1,132 +0,0 @@ -/* Fonts */ -@font-face { - font-family: 'Oxygen'; - src: url(../fonts/Oxygen/Oxygen-Regular.ttf); -} - -@font-face { - font-family: 'Oxygen, Bold'; - src: url(../fonts/Oxygen/Oxygen-Bold.ttf); -} -/* /Fonts */ - -body { - font-family: 'Oxygen'; -} - -html { - scroll-behavior: smooth; -} - - -/* Parallax */ -.parallax .parallax-img { - z-index: -1; - position: absolute; - width: 100%; - overflow: hidden; -} - -.parallax .parallax-content { - z-index: 100; - position: relative; - background-color: transparent !important; -} - -.parallax .parallax-bg { - z-index: -2; - position: absolute; - height: 100%; - width: 100%; - background-color: teal; - opacity: 0.3; -} - -.parallax .parallax-mask { - z-index: 1; - position: absolute; - width: 100%; - height: 100%; - overflow: hidden; -} - -.parallax .above-parallax { - box-shadow: rgba(0, 0, 0, 0.6) 0 0 1rem; - background: rgba(5, 20, 40, 0.93); - color: white; - padding: 2rem; - z-index: 100; -} - -.parallax { - overflow: hidden; -} -/* /Parallax */ - -/* Global Parallax */ -#global-parallax .parallax-img { - width: 100%; - margin: 0; - position: absolute; -} - -#global-parallax .parallax-mask { - position: fixed; - background-color: rgb(20, 120, 200); - opacity: 0.35; -} - -#global-parallax .parallax-bg { - position: fixed; - height: 100%; - background-color: black; - opacity: 1; -} - -#global-parallax { - margin: 0; -} -/* /Global Parallax */ - -/* Navbar */ -nav { - transition: all 0.4s; - box-shadow: rgba(0, 0, 0, 0.6) 0 0 1rem; -} - -.nav-transparent { - background-color: transparent !important; - box-shadow: none; -} - -.nav-item { - color: white !important; -} - -.nav-link.active { - background-color: rgb(11, 90, 121); - border-radius: 0.2rem; -} -/* /Navbar */ - -/* Special Branded Color Classes*/ -.lbry-teal { - background-color:rgb(3, 76, 105); -} - -.dropdown-item.active { - background-color:rgb(3, 76, 105); -} - -.dropdown-item:active { - background-color:rgb(3, 76, 105); -} - -.dropdown-menu { - background-color:rgb(3, 76, 105); -} - -.dropdown-item { - color: white; -} -/* /Special Branded Color Classes*/ \ No newline at end of file diff --git a/lib/css/index.css b/lib/css/index.css index ebeaf55..200776d 100644 --- a/lib/css/index.css +++ b/lib/css/index.css @@ -20,10 +20,8 @@ html { /* Parallax */ -.parallax .parallax-img { +.parallax .parallax-layer { z-index: -1; - position: absolute; - width: 100%; overflow: hidden; } @@ -43,7 +41,7 @@ html { } .parallax .parallax-mask { - z-index: 1; + z-index: 25; position: absolute; width: 100%; height: 100%; @@ -64,7 +62,7 @@ html { /* /Parallax */ /* Global Parallax */ -#global-parallax .parallax-img { +#global-parallax .main-parallax-img { width: 100%; margin: 0; position: absolute; diff --git a/lib/js/index.js b/lib/js/index.js index aceb551..95f8908 100644 --- a/lib/js/index.js +++ b/lib/js/index.js @@ -1,13 +1,15 @@ // Parallax -const depthFactor = 5; // Depth of the image wrt to the 0 z-index. 1 being at the same distance as the rest of the content and Infinity being as far away as possible. +const depthFactor = 5; // Depth of the image wrt to the 0 z-index. Infinity being at the same distance as the rest of the content and 1 being as far away as possible. $(window).on('scroll', () => { const movedBy = window.scrollY; - $('.parallax').each((i, elem) => { - const depth = $(elem).attr('data-depth-factor') || depthFactor; // dynamically get depthFactor + $('.parallax').each((i, parallax) => { + $(parallax).find('.parallax-layer').each((i, layer) => { + const depth = $(layer).attr('data-depth-factor') || depthFactor; // dynamically get depthFactor - $(elem).find('.parallax-img').css({ - transform: `translateY(${movedBy / depth}px)` // Move differently than the rest of the window + $(layer).css({ + transform: `translateY(+${movedBy / depth}px)` // Move differently than the rest of the window + }) }) }) }) diff --git a/swarm/index.html b/swarm/index.html index 451afcd..2580c8a 100644 --- a/swarm/index.html +++ b/swarm/index.html @@ -12,9 +12,8 @@ - + - @@ -41,7 +40,7 @@
- bg-img + bg-img
diff --git a/tavern/index.html b/tavern/index.html index 9c0d3e6..fdae27b 100644 --- a/tavern/index.html +++ b/tavern/index.html @@ -7,9 +7,9 @@ LBRY Foundation - + + - @@ -34,14 +34,14 @@ -
- bg-img +
+ bg-img
-
+

The Tavern

The LBRY Tavern. Cheers!