Started work on navigation

This commit is contained in:
ポール ウェッブ 2019-02-07 17:55:31 -06:00
parent 084117eaf0
commit 9e7ec00654
5 changed files with 284 additions and 4 deletions

2
dist/index.css vendored

File diff suppressed because one or more lines are too long

2
dist/index.css.map vendored

File diff suppressed because one or more lines are too long

196
dist/index.html vendored
View file

@ -13,7 +13,7 @@
display: flex;
flex-direction: column;
font-family: var(--font-sans);
padding: var(--spacing-l);
padding-top: var(--spacing-l);
}
header {
@ -21,9 +21,21 @@
margin-bottom: var(--spacing-l);
}
drawer-navigation,
drawer-wrap {
padding-right: var(--spacing-l);
padding-left: var(--spacing-l);
}
drawer-navigation {
font-size: 1.25rem;
}
main {
flex: 1;
min-height: 100vh;
padding-right: var(--spacing-l);
padding-left: var(--spacing-l);
}
section {
@ -34,10 +46,14 @@
h1 {
font-size: 3rem;
font-weight: bolder;
padding-right: var(--spacing-l);
padding-left: var(--spacing-l);
}
h2 {
font-size: 2rem;
padding-right: var(--spacing-l);
padding-left: var(--spacing-l);
padding-bottom: var(--spacing-s);
}
@ -64,7 +80,7 @@
footer {
border-top: 1px solid var(--lbry-gray-1);
color: var(--lbry-gray-5);
padding-top: var(--spacing-l);
padding: var(--spacing-l);
}
</style>
</head>
@ -73,6 +89,182 @@
<header>
<h1>@lbry/components</h1>
<h2>Styling for shared components across LBRY properties</h2>
<drawer-navigation>
<drawer-section>
<drawer-title>Link I</drawer-title>
<drawer-wrap>
<drawer-children>
<drawer-child>
<a href="">
<strong>Use LBRY</strong>
<span>Get the most out of LBRY</span>
</a>
</drawer-child>
<drawer-child>
<a href="">
<strong>FAQ</strong>
<span>Got questions? We might have answers!</span>
</a>
</drawer-child>
<drawer-child>
<a href="">
<strong>Blockchain Explorer</strong>
<span>The history of LBRYs blockchain</span>
</a>
</drawer-child>
<drawer-child>
<div>
<strong>Social</strong>
<span>Connect with the LBRY team on your favorite platform</span>
<a href="">Facebook</a>
<a href="">Twitter</a>
</div>
</drawer-child>
<drawer-child>
<a href="">
<strong>Tour</strong>
<span>Do you want to learn how to publish content to the LBRY network?</span>
</a>
</drawer-child>
<drawer-child>
<a href="">
<strong>News</strong>
<span>The latest happenings with the LBRY team and community</span>
</a>
</drawer-child>
<drawer-child>
<a href="">
<strong>Chat</strong>
<span>Chat with other LBRY users and LBRY team members</span>
</a>
</drawer-child>
</drawer-children>
</drawer-wrap>
</drawer-section>
<drawer-section class="header__navigation-parent">
<drawer-title>Link II</drawer-title>
<drawer-wrap class="header__navigation-children-wrap">
<drawer-children class="header__navigation-children inner-wrap">
<drawer-child class="flex-half">
<a href="/youtube">
<strong>YouTube Partner Program</strong>
<span>Bring all your content to LBRY with just a few clicks</span>
</a>
</drawer-child>
<drawer-child class="flex-half">
<a href="">
<strong>Creator FAQ</strong>
<span>Like the FAQ, but for Creators</span>
</a>
</drawer-child>
<drawer-child class="flex-half">
<a href="https://lbry.fund">
<strong>Fund a Project</strong>
<span>How to to get some LBC for your latest idea or project</span>
</a>
</drawer-child>
<drawer-child class="flex-half">
<a href="">
<strong>Creator Tour</strong>
<span>XYZXYZXYZ</span>
</a>
</drawer-child>
<drawer-child class="flex-half">
<a href="">
<strong>Makers</strong>
<span>Would you like to share and sell 3D printable files?</span>
</a>
</drawer-child>
</drawer-children>
</drawer-wrap>
</drawer-section>
<drawer-section class="header__navigation-parent">
<drawer-title>Link III</drawer-title>
<drawer-wrap class="header__navigation-children-wrap">
<drawer-children class="header__navigation-children inner-wrap">
<drawer-child class="flex-half">
<a href="/team">
<strong>Team / About</strong>
<span>Meet the people building LBRY and find out why theyre doing it</span>
</a>
</drawer-child>
<drawer-child class="flex-half">
<a href="/join-us">
<strong>Join Us</strong>
<span>Work with the LBRY team</span>
</a>
</drawer-child>
<drawer-child class="flex-half">
<a href="">
<strong>Contact</strong>
<span>Have a question or want to connect with the LBRY, Inc. team?</span>
</a>
</drawer-child>
<drawer-child class="flex-half">
<a href="/credit-reports">
<strong>Credit Reports</strong>
<span>Four times a year we share the current state of LBRY, Inc.'s balance sheet</span>
</a>
</drawer-child>
</drawer-children>
</drawer-wrap>
</drawer-section>
<drawer-section class="header__navigation-parent">
<drawer-title>Link IV</drawer-title>
<drawer-wrap class="header__navigation-children-wrap">
<drawer-children class="header__navigation-children inner-wrap">
<drawer-child class="flex-half">
<a href="https://lbry.tech">
<strong>LBRY.tech</strong>
<span>Find out how the heck all of this works</span>
</a>
</drawer-child>
<drawer-child class="flex-half">
<a href="https://github.com/lbryio/lbry.io">
<strong>GitHub</strong>
<span>The LBRY code is open source, check out the repos</span>
</a>
</drawer-child>
<drawer-child class="flex-half">
<a href="https://lbry.tech/contribute">
<strong>Contributor's Guide</strong>
<span>Tips and guidelines for being a contributor to the LBRY projects</span>
</a>
</drawer-child>
<drawer-child class="flex-half">
<a href="https://forum.lbry.tech">
<strong>Forum</strong>
<span>If you have a question for the LBRY, Inc. development team, post it here</span>
</a>
</drawer-child>
</drawer-children>
</drawer-wrap>
</drawer-section>
</drawer-navigation>
</header>
<main>

View file

@ -9,4 +9,5 @@
@import "button";
@import "form";
@import "media";
@import "navigation";
@import "table";

View file

@ -0,0 +1,87 @@
drawer-navigation {
width: 100%; height: 5rem;
display: inline-flex;
flex: 1;
position: relative;
z-index: 1;
}
drawer-section {
&:not(:last-of-type) {
padding-right: 1rem;
}
&:not(:hover) {
drawer-title::after {
background-color: transparent;
}
drawer-wrap {
display: none;
}
}
&:hover {
drawer-title::after {
background-color: $lbry-teal-3;
}
}
}
drawer-title {
height: 100%;
align-items: center;
cursor: default;
display: flex;
line-height: 3;
position: relative;
&::after {
width: 100%; height: 1px;
bottom: -1px; left: 0;
content: "";
position: absolute;
z-index: 1;
}
}
drawer-wrap {
width: 100%;
top: 5rem; left: 0;
background-color: $lbry-white;
border-top: 1px solid $lbry-gray-1;
padding-top: 2rem;
padding-bottom: 2rem;
position: absolute;
&::after {
width: 100vw; height: calc(100vh - 5rem);
top: 5rem; left: 0;
background-color: $lbry-black;
content: "";
opacity: 0.3;
pointer-events: none;
position: absolute;
z-index: -1;
}
}
drawer-children {
display: flex;
flex-wrap: wrap;
position: relative;
}
drawer-child {
&:not(:last-of-type) {
margin-bottom: 1rem;
}
span {
display: block;
}
}