This file contains hidden or 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
const API_URL = process.env.WORDPRESS_API_URL | |
/** | |
* Fetches the API to get the JWT refresh token | |
* @returns {Promise<string>} The JWT refresh token | |
*/ | |
export async function fetchToken() { | |
const query = ` | |
mutation LoginUser($input: LoginInput!) { | |
login(input: $input) { |
This file contains hidden or 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
// Material Design Box Shadows | |
// 'Silky Smooth' performant box shadow animation technique from: http://tobiasahlin.com/blog/how-to-animate-box-shadow/ | |
@mixin material-box-shadow($level, $hover) { | |
$shadow-initial: 0; | |
$shadow-hover: 0; | |
@if $level == 1 { | |
$shadow-initial: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24); |
This file contains hidden or 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
/* | |
* Responsive Heading Generation with Sass | |
* Type scale borrowed from: http://typecast.com/blog/a-more-modern-scale-for-web-typography | |
*/ | |
// Config Map of font-size and line-height values for each Heading level at each page breakpoint | |
$headers-responsive : ( | |
1: ( | |
xs: ( font-size: 2rem, line-height: 1.25 ), | |
md: ( font-size: 2.5rem, line-height: 1.125 ), |
This file contains hidden or 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
// For Testing | |
// Vertical rhythm grid | |
// Based on the Bourbon/Neat Column Grid Mixin | |
$vertical-grid: no !global; | |
$vertical-grid-color: #444444 !global; | |
$vertical-grid-index: front !global; | |
$vertical-grid-height: (1em * 1.5); | |
$vertical-grid-opacity: 0.3 !global; |
This file contains hidden or 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
// CALL TO ACTION BUTTON - INSPIRED BY CODROPS, 5th button, top section @ http://tympanus.net/Development/CreativeButtons/ | |
// Fancy hover effect happens on desktop, but does not occur on mobile in order work with iOS hover behavior | |
$bg-color: #0e83cd; | |
$color: #fff; | |
@mixin call-to-action() { | |
position: relative; | |
z-index: 1; | |
This file contains hidden or 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
$font-family-sans-serif : 'Ubuntu', Arial, sans-serif; | |
$font-family-numbers : 'Ubuntu Mono', Arial, sans-serif; | |
/* COLORS */ | |
$white : #FFFFFF; | |
$ghost : #FAFAFA; | |
$jet : #222222; | |
$black : #000000; |
This file contains hidden or 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
//parses raw JSON and makes workable array | |
function prepData(jsonData) { | |
var dataArr = []; | |
var staffArr = []; | |
var bugsArr = []; | |
$.each($.parseJSON(jsonData), function(key,value){ | |
if (key == 'staff_tickets') { | |
var result = $.parseJSON(value); | |
$.each(result, function(obj,vals) { | |
var tempArr = []; |