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
import React from "react" | |
import { StaticQuery, graphql, Link } from "gatsby" | |
import styled from "styled-components" | |
import { Flex } from "@rebass/grid" | |
const PrevNext = props => { | |
const { data, slug, category } = props | |
const getAllPages = data.allMarkdownRemark.edges | |
const pages = getAllPages | |
.filter(page => page.node.frontmatter.category === category) |
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
RewriteCond %{REQUEST_FILENAME}.html -f | |
RewriteRule ^(.+)/$ $1.html [L] | |
RewriteCond %{REQUEST_FILENAME} !-f | |
RewriteRule .*[^/]$ %{REQUEST_URI}/ [L,R=301] | |
<IfModule mod_deflate.c> | |
AddOutputFilterByType DEFLATE text/html text/plain text/css application/json | |
AddOutputFilterByType DEFLATE application/javascript | |
AddOutputFilterByType DEFLATE text/xml application/xml text/x-component | |
AddOutputFilterByType DEFLATE application/xhtml+xml application/rss+xml application/atom+xml |
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
<form id="myform"> | |
<h1>Please enter data</h1> | |
<input id="salary" type="number" placeholder="Salary" /> | |
<br /> | |
<input id="bills" type="number" placeholder="Bills" /> | |
<br /> | |
<input id="savings" type="number" placeholder="Savings" /> | |
<br /> | |
<input type="button" value="Save/Show" id="subButton"/> | |
<br /> |
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
// ---- | |
// libsass (v3.3.2) | |
// ---- | |
$grey: #C1CAD6; | |
$orange: #EF4640; | |
$blue: #4392F1; | |
$green: #00A676; | |
$purple: #67597A; | |
$white: #ffffff; |
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
<section class="cards"> | |
<div class="card"> | |
<p>Title</p> | |
<p>Description</p> | |
<a href="#">Link</a> | |
</div> | |
<div class="card"> | |
<p>Title</p> | |
<p>Description</p> | |
<a href="#">Link</a> |
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
<!doctype html> | |
<html class="no-js" lang=""> | |
<head> | |
<meta charset="utf-8"> | |
<meta http-equiv="x-ua-compatible" content="ie=edge"> | |
<title>Grid</title> | |
<meta name="description" content=""> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
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
// Define Max-Width & Margin | |
$max-width: 1200px; | |
$gutter: 50px; | |
$padding: 50px; | |
// Margin Percentage | |
$gutter-p: percentage($gutter / $max-width); | |
$padding-p: percentage($padding / $max-width); | |
$grid: ( |
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
// ---- | |
// libsass (v3.2.5) | |
// ---- | |
$max-width: 1100px; | |
$margin: 15px; | |
$margin-p: percentage(15px / 1100px); | |
$grid: ( | |
one-col: 1100px - $margin, |
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
{ | |
"01": { | |
"title": "Title", | |
"content" : [ | |
{ | |
"subTitle": "Super Category" | |
} | |
] | |
} |
NewerOlder