Adding Skeleventy-based site sources.

This commit is contained in:
Benjamin A. Shelton 2022-11-04 23:25:35 -06:00
commit 28a89401ff
Signed by: zancarius
GPG key ID: 8BD42DBD6C337E01
79 changed files with 2183 additions and 0 deletions

View file

@ -0,0 +1,7 @@
//========== Footer ==========//
.footer-inner {
align-items: center;
justify-content: space-between;
}

View file

@ -0,0 +1,31 @@
//========== Header ==========//
// logo
.logo {
--logo-size: #{get-size('500')};
font-size: v(logo-size);
margin: 0 auto;
&:hover {
@include apply-utility('color', 'secondary');
}
}
@include media-query('mobileXL') {
.logo {
--logo-size: #{get-size('600')};
margin: 0 auto 0 0;
}
}
@include media-query('mobileXL') {
.header-inner {
align-items: center;
justify-content: space-between;
}
}

View file

@ -0,0 +1,2 @@
//========== Hero ==========//

View file

@ -0,0 +1,8 @@
@import 'site';
@import 'header';
@import 'nav';
@import 'mobile-nav';
@import 'hero';
@import 'main';
@import 'footer';

View file

@ -0,0 +1,25 @@
//========== Main ==========//
.main {
flex-direction: column;
flex: 1;
&:focus {
outline: 0;
}
}
// page header
.page-header {
--gap: #{get-size('800')};
margin-bottom: v(gap);
}
@include media-query('tablet') {
.page-header {
--gap: #{get-size('900')};
}
}

View file

@ -0,0 +1,78 @@
//========== Mobile Nav ==========//
.mobile-nav {
--transition-duration: .3s;
position: fixed;
top: 0;
left: 0;
overflow-y: auto;
transform: translate3d(-100%, 0, 0);
transition: transform v(transition-duration) cubic-bezier(.77, 0, .175, 1);
transition-delay: .1s;
will-change: transform;
// when menu is visible
&.menu-visible {
transform: translate3d(0, 0, 0);
}
.link {
--gap: .25rem;
padding: v(gap) 0;
&.active,
&:hover {
color: get-color('secondary');
}
}
}
// Mobile menu
.mobile-nav-toggle {
position: fixed;
bottom: 0;
height: get-size('900');
align-items: center;
justify-content: center;
border: 0;
outline: none;
.mobile-nav-icon {
flex-direction: column;
}
.icon-line {
--transition-duration: .2s;
--transition-timing: cubic-bezier(0, 0, .2, 1);
height: 2px;
width: get-size('500');
transform-origin: 7px 1px;
transition: transform v(transition-duration) v(transition-timing),
opacity v(transition-duration) v(transition-timing);
&:not(:last-child) {
margin-bottom: .25rem;
}
}
// when menu toggle is clicked
&.expanded {
.icon-line {
margin: 0;
&:first-child {
transform: rotate(45deg);
}
&:nth-child(2) {
opacity: 0;
}
&:last-child {
transform: rotate(-45deg);
}
}
}
}

View file

@ -0,0 +1,25 @@
//========== Nav ==========//
.nav {
.link {
height: get-size('900');
line-height: get-size('900');
&.active,
&:hover {
@include apply-utility('color', 'secondary');
}
&-get-started {
border-radius: v(border-radius);
transition: background-color v(transition-duration) v(transition-timing);
&:hover {
@include apply-utility('bg', 'white');
@include apply-utility('color', 'primary');
}
}
}
}

View file

@ -0,0 +1,16 @@
//========== Site ==========//
// wrapper
.wrapper {
min-height: 100vh;
flex-direction: column;
}
@include media-query('mobileXL') {
.wrapper {
padding-bottom: 0;
}
}