Skip to content

Instantly share code, notes, and snippets.

import React from 'react';
import Helmet from 'react-helmet';
import { StaticQuery, graphql } from 'gatsby';
// Layout
import AppLayout, { Content } from 'components/app-layout';
import Header from 'components/header';
import HeaderNavigation from 'components/header-navigation';
import AnnouncementBanner from 'components/announcement-banner';
import Footer from 'components/footer';
import React, { Component } from 'react';
import { StaticQuery, graphql } from 'gatsby';
import PropTypes from 'prop-types';
import c from 'classnames';
import LatestGrid from 'components/latest-grid';
import * as s from './LatestArticles.module.scss';
export default class LatestArticles extends Component {
static propTypes = {
count: PropTypes.number,
import React, { Component } from 'react';
import { StaticQuery, graphql } from 'gatsby';
import PropTypes from 'prop-types';
import c from 'classnames';
import LatestGrid from 'components/latest-grid-nav';
import * as s from './LatestArticles.module.scss';
export default class LatestArticles extends Component {
static propTypes = {
count: PropTypes.number,
$(function () {
//setup these vars only once since they are static
var $myIFRAME = $("#criteo-iframe"),//unless this collection of elements changes over time, you only need to select them once
ogWidth = 700,
ogHeight = 600,
ogRatio = ogWidth / ogHeight,
windowWidth = 0,//store windowWidth here, this is just a different way to store this data
resizeTimer = null;
$(function () {
myPage.init();
});
var myPage = (function() {
var that = {};
that.init = function () {
@grahamd711
grahamd711 / style_091201.css
Created October 13, 2016 20:28
Criteo iFrame CSS
body, div, p, span, a {
margin: 0;
padding: 0;
}
body {
background: #F5F5F5 url(//static.criteo.net/images/landing/091201/bg.png) repeat-x 0 0;
font-family: Helvetica, Arial, sans-serif;
font-size: 12px;
}
[debug] ----------------------------------------------------------------------
[debug] Command: /usr/local/bin/node /usr/local/bin/firebase deploy
[debug] CLI Version: 3.0.7
[debug] Platform: darwin
[debug] Node Version: v4.2.1
[debug] Time: Thu Sep 08 2016 12:54:44 GMT-0400 (EDT)
[debug] ----------------------------------------------------------------------
[debug]
[debug] > command requires scopes: ["email","openid","https://www.googleapis.com/auth/cloudplatformprojects.readonly","https://www.googleapis.com/auth/firebase"]
[debug] > refreshing access token with scopes: ["email","https://www.googleapis.com/auth/cloudplatformprojects.readonly","https://www.googleapis.com/auth/firebase","openid"]
<style>
.panel-cf-head-3col-split-lower .center-wrapper+.center-wrapper .inner { background-image: none; }
/**** Override site default styles ****/
.clearfix:after {
visibility: hidden;
display: block;
@grahamd711
grahamd711 / 70-bday.css
Created June 29, 2016 21:56
Custom CSS file for 70th birthday landing page
<style>
.panel-cf-head-3col-split-lower .center-wrapper+.center-wrapper .inner { background-image: none; }
/**** Override site default styles ****/
.clearfix:after {
visibility: hidden;
display: block;