v1.2.0-beta/website brands

This commit is contained in:
2020-05-22 15:58:24 -04:00
parent c373b6e365
commit 32fb08d61e
11 changed files with 261 additions and 36 deletions
+34 -3
View File
@@ -19,12 +19,43 @@
<meta name="msapplication-TileImage" content="./icons/ms-icon-144x144.png" /> <meta name="msapplication-TileImage" content="./icons/ms-icon-144x144.png" />
<link rel="stylesheet" type="text/css" href="./font.css" /> <link rel="stylesheet" type="text/css" href="./font.css" />
<link rel="stylesheet" type="text/css" href="./styles/index.css" /> <link rel="stylesheet" type="text/css" href="./styles/index.css" />
<link rel="import" type="text/html" href="./components/landing.html" />
<script src="./scripts/Stickied.js"></script> <script src="./scripts/Stickied.js"></script>
<title>Watch Party</title> <title>Watch Party</title>
</head> </head>
<body> <body>
<section class="landing"></section> <header data-header-visible="false">
<a data-font="sans">TEST</a> <brand data-font="serif">WATCH PARTY</brand>
<spacer></spacer>
<a href="http://get.chromewatchparty.com" data-font="sans">GET CHROME EXTENSION</a>
<a href="https://www.paypal.me/Ayushya" data-font="sans">SUPPORT WATCH PARTY</a>
</header>
<section class="landing">
<a href="http://get.chromewatchparty.com" class="get" data-font="sans"
>GET CHROME EXTENSION</a
>
<a href="#" class="brand" data-font="serif">
<span>
WATCH PARTY
</span>
</a>
</section>
<section class="intro">
<div class="inner">
<img src="./media/intro.gif" />
<div class="supports" data-font="sans">Watch Party Works With</div>
<div class="supported" data-font="sans">
<div class="netflix"></div>
<div class="hulu"></div>
<div class="disney"></div>
<div class="prime"></div>
<div class="youtube"></div>
</div>
</div>
</section>
<section>
<div class="inner">
234
</div>
</section>
</body> </body>
</html> </html>
Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.3 KiB

+9 -18
View File
@@ -1,20 +1,11 @@
function handleSticky() {
if (window.scrollY >= window.innerHeight * 0.65) {
document.querySelector('header').setAttribute('data-header-visible', true);
} else {
document.querySelector('header').setAttribute('data-header-visible', false);
}
}
window.onload = function () { window.onload = function () {
let originalTitlePosition = null; this.handleSticky();
window.addEventListener('scroll', function (ev) { window.addEventListener('scroll', this.handleSticky);
const title = document.getElementsByClassName('title')[0];
const support = document.getElementsByClassName('support')[0];
const request = document.getElementsByClassName('request')[0];
if (originalTitlePosition === null) originalTitlePosition = title.offsetTop;
if (window.scrollY > originalTitlePosition) {
support.classList.add('stickied');
title.classList.add('stickied');
request.classList.add('stickied');
request.style.right = support.clientWidth + 64 + 'px';
} else {
support.classList.remove('stickied');
title.classList.remove('stickied');
request.classList.remove('stickied');
}
});
}; };
+147 -3
View File
@@ -1,6 +1,150 @@
body { body {
background-color: var(--primary); background-color: rgb(var(--primary));
background: url('../media/static.gif');
margin: 0;
max-width: 100vw;
height: 100vh;
} }
* { a {
color: var(--secondary); text-decoration: none;
}
header {
opacity: 0;
z-index: -1;
transition: all ease-in-out 0.3s;
position: fixed;
top: 0;
left: 0;
width: calc(100% - 20px);
height: fit-content;
display: flex;
flex-direction: row;
align-items: center;
padding: 5px 10px;
}
header brand {
font-size: 1rem;
padding: 5px 15px;
text-align: center;
background-color: rgb(var(--secondary));
color: rgb(var(--primary));
border-radius: 13px;
}
header a {
display: none;
}
spacer {
flex: 1;
}
header[data-header-visible='true'] {
opacity: 1;
z-index: 9999;
}
section {
max-width: 100%;
height: 100%;
margin: 0;
background-color: rgba(var(--primary), 1);
}
section:nth-of-type(1) {
width: 100%;
height: 100%;
background: linear-gradient(
180deg,
rgba(var(--primary), 0) 0%,
rgba(var(--primary), 0.3) 25%,
rgba(var(--primary), 0.7) 100%
);
}
section:nth-of-type(2) {
background: linear-gradient(
180deg,
rgba(var(--primary), 0.7) 0%,
rgba(var(--primary), 0.85) 50%,
rgba(var(--primary), 1) 100%
);
}
section.landing {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
}
section.landing .brand {
font-size: 1.75rem;
border-radius: 1.75rem;
border: 2px solid rgb(var(--primary));
padding: 10px 26px;
color: rgb(var(--secondary));
transition: all ease-in-out 0.3s;
}
section.landing .brand:hover {
background-color: rgb(var(--primary));
}
section.landing .brand span {
filter: drop-shadow(-5px 5px 0px rgb(var(--primary)));
text-align: center;
display: flex;
}
section.landing .get {
font-weight: 700;
background-color: rgb(var(--primary));
letter-spacing: 1.5px;
color: rgb(var(--secondary));
margin-bottom: 5px;
font-size: 0.75rem;
padding: 5px 13px;
border-radius: 13px;
}
section.intro {
display: flex;
justify-content: center;
align-items: center;
}
section.intro .inner {
max-width: 75%;
}
section.intro .inner img {
max-width: 100%;
height: auto;
border-radius: 26px;
transition: all ease-in-out 0.3s;
border: 2px solid transparent;
}
section.intro .inner img:hover {
border: 2px solid rgb(var(--secondary));
filter: drop-shadow(0 0 40px rgba(var(--tertiary), 0.5));
}
section.intro .inner .supported {
display: flex;
}
section.intro .inner .supports {
color: rgb(var(--secondary));
text-align: center;
margin-top: 5px;
font-variant: all-small-caps;
letter-spacing: 1.5px;
font-weight: 400;
}
section.intro .inner .supported div {
flex: 1;
height: 50px;
background-size: 75%;
background-position: center;
background-repeat: no-repeat;
}
section.intro .inner .supported div.netflix {
background-image: url('../media/Netflix.png');
}
section.intro .inner .supported div.hulu {
background-image: url('../media/Hulu.png');
}
section.intro .inner .supported div.disney {
background-image: url('../media/Disney.webp');
}
section.intro .inner .supported div.prime {
background-image: url('../media/Prime.png');
}
section.intro .inner .supported div.youtube {
background-image: url('../media/Youtube.png');
} }
+59
View File
@@ -0,0 +1,59 @@
header a {
color: rgb(var(--secondary));
display: block;
text-decoration: none;
font-size: 0.75rem;
background-color: rgb(var(--primary));
padding: 5px 10px;
font-weight: 700;
letter-spacing: 1.5px;
margin-left: 5px;
padding: 5px 13px;
border-radius: 13px;
}
section.landing .brand {
font-size: 3.25rem;
border-radius: 3.25rem;
padding: 5px 45px;
}
section.landing .get {
font-size: 1rem;
}
section.intro {
display: flex;
justify-content: center;
align-items: center;
}
section.intro .inner {
max-width: 50%;
}
section.intro .inner img {
max-width: 100%;
height: auto;
border-radius: 26px;
transition: all ease-in-out 0.3s;
border: 2px solid transparent;
}
section.intro .inner img:hover {
border: 2px solid rgb(var(--secondary));
filter: drop-shadow(0 0 40px rgba(var(--tertiary), 0.5));
}
section.intro .inner .supported {
display: flex;
}
section.intro .inner .supports {
color: rgb(var(--secondary));
text-align: center;
margin-top: 5px;
font-variant: all-small-caps;
letter-spacing: 1.5px;
font-weight: 400;
}
section.intro .inner .supported div {
flex: 1;
height: 100px;
background-size: 75%;
background-position: center;
background-repeat: no-repeat;
}
+6 -6
View File
@@ -1,8 +1,8 @@
:root { :root {
--primary: #353e4a; --primary: 0, 0, 0;
--primary-complement: #fbf8ef; --primary-complement: 251, 248, 239;
--secondary: #9acb34; --secondary: 192, 243, 0;
--secondary-complement: #7da329; --secondary-complement: 125, 163, 41;
--tertiary: #04ddd9; --tertiary: 4, 221, 217;
--tertiary-complement: #02a19f; --tertiary-complement: 2, 161, 159;
} }
+6 -6
View File
@@ -1,8 +1,8 @@
:root { :root {
--primary: #fbf8ef; --primary: 251, 248, 239;
--primary-complement: #353e4a; --primary-complement: 0, 0, 0;
--secondary: #7da329; --secondary: 125, 163, 41;
--secondary-complement: #9acb34; --secondary-complement: 154, 203, 52;
--tertiary: #02a19f; --tertiary: 2, 161, 159;
--tertiary-complement: #04ddd9; --tertiary-complement: 4, 221, 217;
} }