-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
18 changed files
with
427 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,32 @@ | ||
<header class="header"> | ||
<a href="#"> | ||
{% set icon = { | ||
symbol: 'ncp-logo', | ||
size: 'lg' | ||
} %} | ||
{% include 'elements/icon.njk' %} | ||
</a> | ||
</header> | ||
<div class="container header__inner"> | ||
|
||
|
||
{# <div class="grid md:grid-cols-12 gap-6 md:gap-0"> | ||
<div class="md:col-span-6 text-white"> #} | ||
|
||
|
||
<div class="grid grid-cols-4 sm:grid-cols-12 header__grid"> | ||
<div class="col-span-3 sm:col-span-4"> | ||
<h1 class="h3"> | ||
<a href="/" class="header__logo">JayPack</a> | ||
</h1> | ||
</div> | ||
<div class="col-span-1 sm:col-span-8"> | ||
<nav class="menu hidden sm:block"> | ||
<ul class="menu__list"> | ||
<li class="menu__item"> | ||
<a class="menu__link is-active" href="#">Menu</a> | ||
</li> | ||
<li class="menu__item"> | ||
<a class="menu__link" href="#">Menu</a> | ||
</li> | ||
<li class="menu__item"> | ||
<a class="menu__link" href="#">Menu</a> | ||
</li> | ||
</ul> | ||
</nav> | ||
</div> | ||
</div> | ||
</div> | ||
</header> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
{% import '_macros/macros.njk' as macro %} | ||
|
||
{# Content #} | ||
{% set title = title|default("Read more") %} | ||
{% set action = action|default(null) %} | ||
|
||
{# Options #} | ||
{% set type = type|default('link') %} | ||
{% set target = target|default(false) %} | ||
{% set full = full|default(false) %} | ||
{% set classes = classes|default('bg-orange-500 hover:bg-orange-600 text-white') %} | ||
|
||
{% if type == 'link' or type == 'download' %} | ||
{% set download = true %} | ||
{% set type = 'link' %} | ||
{% endif %} | ||
|
||
{% switch type %} | ||
{% case 'button' %} | ||
<button {{ action }} class="btn {{ classes }}{% if full %} btn--full{% endif %}">{{ title }}</button> | ||
{% case 'link' %} | ||
<a href="{{ action }}" {{ macro.external(target) }} class="btn {{ classes }}{% if full %} btn--full{% endif %}" {% if download %}download{% endif %}>{{ title }}</a> | ||
{% endswitch %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,18 @@ | ||
{% extends "_layout/_base.njk" %} | ||
|
||
{% block content %} | ||
<section class="row row--primary"> | ||
<h1>{{ siteDetails.title }}</h1> | ||
<section class="row row--gray"> | ||
<div class="container"> | ||
<div class="w-content"> | ||
<h1>Welcome to {{ siteDetails.title }}</h1> | ||
<p>A front end scaffolding framework for static projects using Nunjucks or for CraftCMS sites with JayCraft.</p> | ||
</div> | ||
<div class="mt-6"> | ||
{% set button = { | ||
action: 'https://google.com' | ||
} %} | ||
{% include 'elements/button.njk' %} | ||
</div> | ||
</div> | ||
</section> | ||
{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,24 @@ | ||
{% import '_macros/macros.njk' as macro %} | ||
|
||
{# Content #} | ||
{% set title = title|default("Read more") %} | ||
{% set action = action|default(null) %} | ||
{% set label = button.label|default("Read more") %} | ||
{% set action = button.action|default(null) %} | ||
|
||
{# Options #} | ||
{% set type = type|default('link') %} | ||
{% set target = target|default(false) %} | ||
{% set full = full|default(false) %} | ||
{% set classes = classes|default('bg-orange-500 hover:bg-orange-600 text-white') %} | ||
{% set type = button.type|default('link') %} | ||
{% set target = button.target|default(false) %} | ||
{% set full = button.full|default(false) %} | ||
{% set classes = button.classes|default('bg-orange-500 hover:bg-orange-600 text-white') %} | ||
{% set download = false %} | ||
|
||
{% if type == 'link' or type == 'download' %} | ||
{% if type == 'download' %} | ||
{% set download = true %} | ||
{% set type = 'link' %} | ||
{% endif %} | ||
|
||
{% switch type %} | ||
{% case 'button' %} | ||
<button {{ action }} class="btn {{ classes }}{% if full %} btn--full{% endif %}">{{ title }}</button> | ||
<button {{ action }} class="btn {{ classes }}{% if full %} btn--full{% endif %}">{{ label }}</button> | ||
{% case 'link' %} | ||
<a href="{{ action }}" {{ macro.external(target) }} class="btn {{ classes }}{% if full %} btn--full{% endif %}" {% if download %}download{% endif %}>{{ title }}</a> | ||
<a href="{{ action }}" {{ macro.external(target) }} class="btn {{ classes }}{% if full %} btn--full{% endif %}" {% if download %}download{% endif %}>{{ label }}</a> | ||
{% endswitch %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
{% extends "_layout/_base.njk" %} | ||
|
||
{% block content %} | ||
<section class="row row--gray"> | ||
<div class="container"> | ||
<div class="w-content"> | ||
<h1>Another page to show Barba.js is working!</h1> | ||
<p>A front end scaffolding framework for static projects using Nunjucks or for CraftCMS sites with JayCraft.</p> | ||
</div> | ||
<div class="mt-6"> | ||
{% set button = { | ||
action: '/', | ||
label: 'Go back home' | ||
} %} | ||
{% include 'elements/button.njk' %} | ||
</div> | ||
</div> | ||
</section> | ||
{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,9 @@ | ||
import player from './player' | ||
import slider from './slider' | ||
import pageTransitions from './pageTransitions' | ||
|
||
export default function modulesJS() { | ||
// player() | ||
// slider() | ||
pageTransitions() | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import barba from '@barba/core'; | ||
|
||
export default function pageTransitions() { | ||
console.log('BARBA') | ||
|
||
barba.init({ | ||
|
||
}) | ||
|
||
// Trigger page analytics | ||
barba.hooks.after(() => { | ||
ga('set', 'page', window.location.pathname) | ||
ga('send', 'pageview') | ||
}) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.