-
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
0 parents
commit 735d72c
Showing
47 changed files
with
4,483 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
import Home from "./src/home"; | ||
import Layout from "./src/layout"; | ||
// import NotFound from "./src/notfound"; | ||
// // import Search from "./containers/Search"; | ||
import Page from "./src/page"; | ||
import Post from "./src/post"; | ||
import Posts from "./src/posts"; | ||
import React from "react"; | ||
|
||
// import Posts from "./src/posts"; | ||
|
||
export default { | ||
Page, | ||
Home, | ||
Layout, | ||
Posts, | ||
NotFound: () => <div>hello world - NotFound</div>, | ||
Post, | ||
Search: () => <div>hello world - Search</div>, //Search, | ||
}; |
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,6 @@ | ||
{ | ||
"name": "Casper", | ||
"description": "Official theme of Letterpad. Seo optimised, spa, disqus integrtion, light/dark mode, blazzing fast.", | ||
"author": "Abhishek Saha", | ||
"thumbnail": "/images/thumbnail.png" | ||
} |
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,7 @@ | ||
{ | ||
"name": "casper", | ||
"version": "1.0.0", | ||
"description": "Casper Theme for Letterpad", | ||
"author": "Abhishek Saha", | ||
"main": "dist/index.js" | ||
} |
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,192 @@ | ||
import { createGlobalStyle } from "styled-components"; | ||
|
||
export const NormalizeCss = createGlobalStyle` | ||
/*! normalize.css v7.0.0 | MIT License | github.com/necolas/normalize.css */ | ||
html { | ||
line-height: 1.15; | ||
-ms-text-size-adjust: 100%; | ||
-webkit-text-size-adjust: 100%; | ||
} | ||
body { | ||
margin: 0; | ||
} | ||
article, | ||
aside, | ||
footer, | ||
header, | ||
nav, | ||
section { | ||
display: block; | ||
} | ||
h1 { | ||
font-size: 2em; | ||
margin: 0.67em 0; | ||
} | ||
h1, h2, h3, h4, h5, h6 { | ||
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "WenQuanYi Micro Hei", "Helvetica Neue", sans-serif; | ||
} | ||
figcaption, | ||
figure, | ||
main { | ||
display: block; | ||
} | ||
figure { | ||
margin: 1em 40px; | ||
} | ||
hr { | ||
box-sizing: content-box; | ||
height: 0; | ||
overflow: visible; | ||
} | ||
pre { | ||
font-family: monospace; | ||
font-size: 1em; | ||
} | ||
a { | ||
background-color: transparent; | ||
-webkit-text-decoration-skip: objects; | ||
} | ||
abbr[title] { | ||
border-bottom: none; | ||
text-decoration: underline; | ||
text-decoration: underline dotted; | ||
} | ||
b, | ||
strong { | ||
font-weight: inherit; | ||
} | ||
b, | ||
strong { | ||
font-weight: bolder; | ||
} | ||
dfn { | ||
font-style: italic; | ||
} | ||
mark { | ||
background-color: #ff0; | ||
color: #000; | ||
} | ||
small { | ||
font-size: 80%; | ||
} | ||
sub, | ||
sup { | ||
font-size: 75%; | ||
line-height: 0; | ||
position: relative; | ||
vertical-align: baseline; | ||
} | ||
sub { | ||
bottom: -0.25em; | ||
} | ||
sup { | ||
top: -0.5em; | ||
} | ||
audio, | ||
video { | ||
display: inline-block; | ||
} | ||
audio:not([controls]) { | ||
display: none; | ||
height: 0; | ||
} | ||
img { | ||
border-style: none; | ||
} | ||
svg:not(:root) { | ||
overflow: hidden; | ||
} | ||
button, | ||
input, | ||
optgroup, | ||
select, | ||
textarea { | ||
font-family: sans-serif; | ||
font-size: 100%; | ||
line-height: 1.15; | ||
margin: 0; | ||
} | ||
button, | ||
input { | ||
overflow: visible; | ||
} | ||
button, | ||
select { | ||
text-transform: none; | ||
} | ||
button, | ||
html [type="button"], | ||
[type="reset"], | ||
[type="submit"] { | ||
-webkit-appearance: button; | ||
} | ||
button::-moz-focus-inner, | ||
[type="button"]::-moz-focus-inner, | ||
[type="reset"]::-moz-focus-inner, | ||
[type="submit"]::-moz-focus-inner { | ||
border-style: none; | ||
padding: 0; | ||
} | ||
button:-moz-focusring, | ||
[type="button"]:-moz-focusring, | ||
[type="reset"]:-moz-focusring, | ||
[type="submit"]:-moz-focusring { | ||
outline: 1px dotted ButtonText; | ||
} | ||
fieldset { | ||
padding: 0.35em 0.75em 0.625em; | ||
} | ||
legend { | ||
box-sizing: border-box; | ||
color: inherit; | ||
display: table; | ||
max-width: 100%; | ||
padding: 0; | ||
white-space: normal; | ||
} | ||
progress { | ||
display: inline-block; | ||
vertical-align: baseline; | ||
} | ||
textarea { | ||
overflow: auto; | ||
} | ||
[type="checkbox"], | ||
[type="radio"] { | ||
box-sizing: border-box; | ||
padding: 0; | ||
} | ||
[type="number"]::-webkit-inner-spin-button, | ||
[type="number"]::-webkit-outer-spin-button { | ||
height: auto; | ||
} | ||
[type="search"] { | ||
-webkit-appearance: textfield; | ||
outline-offset: -2px; | ||
} | ||
[type="search"]::-webkit-search-cancel-button, | ||
[type="search"]::-webkit-search-decoration { | ||
-webkit-appearance: none; | ||
} | ||
::-webkit-file-upload-button { | ||
-webkit-appearance: button; | ||
font: inherit; | ||
} | ||
details, | ||
menu { | ||
display: block; | ||
} | ||
summary { | ||
display: list-item; | ||
} | ||
canvas { | ||
display: inline-block; | ||
} | ||
template { | ||
display: none; | ||
} | ||
[hidden] { | ||
display: none; | ||
} | ||
`; |
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,127 @@ | ||
import { createGlobalStyle } from "styled-components"; | ||
export const PrismCss = createGlobalStyle` | ||
.prism-dark { | ||
/* background: rgb(46, 51, 68); | ||
color: #fff; */ | ||
font-family: "Operator Mono", "Fira Code", Consolas, Monaco, "Andale Mono", | ||
monospace; | ||
} | ||
code[class*="language-"], | ||
pre[class*="language-"] { | ||
color: #f8f8f2; | ||
background: none; | ||
text-shadow: 0 1px rgba(0, 0, 0, 0.3); | ||
font-family: Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace; | ||
text-align: left; | ||
white-space: pre; | ||
word-spacing: normal; | ||
word-break: normal; | ||
word-wrap: normal; | ||
line-height: 1.5; | ||
-moz-tab-size: 4; | ||
-o-tab-size: 4; | ||
tab-size: 4; | ||
-webkit-hyphens: none; | ||
-moz-hyphens: none; | ||
-ms-hyphens: none; | ||
hyphens: none; | ||
} | ||
/* Code blocks */ | ||
pre[class*="language-"] { | ||
padding: 1em; | ||
margin: .5em 0; | ||
overflow: auto; | ||
border-radius: 0.3em; | ||
} | ||
:not(pre) > code[class*="language-"], | ||
pre[class*="language-"] { | ||
background: #282a36; | ||
} | ||
/* Inline code */ | ||
:not(pre) > code[class*="language-"] { | ||
padding: .1em; | ||
border-radius: .3em; | ||
white-space: normal; | ||
} | ||
.token.comment, | ||
.token.prolog, | ||
.token.doctype, | ||
.token.cdata { | ||
color: #6272a4; | ||
} | ||
.token.punctuation { | ||
color: #f8f8f2; | ||
} | ||
.namespace { | ||
opacity: .7; | ||
} | ||
.token.property, | ||
.token.tag, | ||
.token.constant, | ||
.token.symbol, | ||
.token.deleted { | ||
color: #ff79c6; | ||
} | ||
.token.boolean, | ||
.token.number { | ||
color: #bd93f9; | ||
} | ||
.token.selector, | ||
.token.attr-name, | ||
.token.string, | ||
.token.char, | ||
.token.builtin, | ||
.token.inserted { | ||
color: #50fa7b; | ||
} | ||
.token.operator, | ||
.token.entity, | ||
.token.url, | ||
.language-css .token.string, | ||
.style .token.string, | ||
.token.variable { | ||
color: #f8f8f2; | ||
} | ||
.token.atrule, | ||
.token.attr-value, | ||
.token.function, | ||
.token.class-name { | ||
color: #f1fa8c; | ||
} | ||
.token.keyword { | ||
color: #8be9fd; | ||
} | ||
.token.regex, | ||
.token.important { | ||
color: #ffb86c; | ||
} | ||
.token.important, | ||
.token.bold { | ||
font-weight: bold; | ||
} | ||
.token.italic { | ||
font-style: italic; | ||
} | ||
.token.entity { | ||
cursor: help; | ||
} | ||
`; |
Oops, something went wrong.