Move configurables to config folder
This commit is contained in:
parent
6aabe1d753
commit
ebd4fcf2ce
|
@ -4,5 +4,5 @@ $white: #fdfdfd;
|
||||||
$black: #2f2f2f;
|
$black: #2f2f2f;
|
||||||
$blue: #144A98;
|
$blue: #144A98;
|
||||||
$grey: #A9A9A9;
|
$grey: #A9A9A9;
|
||||||
$topbar: #1B4367;
|
$navbar: #1B4367;
|
||||||
$break-large: 992px;
|
$break-large: 992px;
|
|
@ -1,8 +1,8 @@
|
||||||
import PropTypes from 'prop-types'
|
import PropTypes from 'prop-types'
|
||||||
import React, { Component } from 'react'
|
import React, { Component } from 'react'
|
||||||
import { Spinner, Header } from '.'
|
import { Spinner, Header } from '.'
|
||||||
import '../static/stylesheets/globals.scss'
|
import '../stylesheets/globals.scss'
|
||||||
import contentStyle from '../static/stylesheets/content.scss'
|
import contentStyle from '../stylesheets/content.scss'
|
||||||
import style from './About.scss'
|
import style from './About.scss'
|
||||||
import MarkdownIt from 'markdown-it'
|
import MarkdownIt from 'markdown-it'
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
@import "../static/stylesheets/variables.scss";
|
@import "../../config/variables.scss";
|
||||||
|
|
||||||
.about {
|
.about {
|
||||||
flex: 30%;
|
flex: 30%;
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
import PropTypes from 'prop-types'
|
import PropTypes from 'prop-types'
|
||||||
import React, { Component } from 'react'
|
import React, { Component } from 'react'
|
||||||
import { Spinner, Header } from '.'
|
import { Spinner, Header } from '.'
|
||||||
import '../static/stylesheets/globals.scss'
|
import '../stylesheets/globals.scss'
|
||||||
import styles from './Blog.scss'
|
import styles from './Blog.scss'
|
||||||
import contentStyle from '../static/stylesheets/content.scss'
|
import contentStyle from '../stylesheets/content.scss'
|
||||||
|
|
||||||
export default class Blog extends Component {
|
export default class Blog extends Component {
|
||||||
static propTypes = {
|
static propTypes = {
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
@import "../static/stylesheets/variables.scss";
|
@import "../../config/variables.scss";
|
||||||
|
|
||||||
.postDate {
|
.postDate {
|
||||||
margin-right: 50px;
|
margin-right: 50px;
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
import React, {Component} from 'react';
|
import React, {Component} from 'react';
|
||||||
import '../static/stylesheets/globals.scss';
|
import '../stylesheets/globals.scss';
|
||||||
import styles from './Header.scss';
|
import styles from './Header.scss';
|
||||||
|
|
||||||
export default class Header extends Component {
|
export default class Header extends Component {
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
@import "../static/stylesheets/variables.scss";
|
@import "../../config/variables.scss";
|
||||||
|
|
||||||
.mainHeader {
|
.mainHeader {
|
||||||
border-left: 5px solid $blue;
|
border-left: 5px solid $blue;
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
import React, { Component } from 'react'
|
import React, { Component } from 'react'
|
||||||
import { Link } from 'react-router-dom'
|
import { Link } from 'react-router-dom'
|
||||||
import config from '../../config.json'
|
import config from '../../config/config.json'
|
||||||
import '../static/stylesheets/globals.scss'
|
import '../stylesheets/globals.scss'
|
||||||
import styles from './Home.scss'
|
import styles from './Home.scss'
|
||||||
|
|
||||||
export default class Home extends Component {
|
export default class Home extends Component {
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
@import "../static/stylesheets/variables.scss";
|
@import "../../config/variables.scss";
|
||||||
|
|
||||||
#coverPage {
|
#coverPage {
|
||||||
background: url(../static/images/benjamin-child-6msS8vT5pzw-unsplash.jpg) no-repeat center center fixed;
|
background: url(../static/images/benjamin-child-6msS8vT5pzw-unsplash.jpg) no-repeat center center fixed;
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
import React, { Component } from 'react'
|
import React, { Component } from 'react'
|
||||||
import config from '../../config.json'
|
import config from '../../config/config.json'
|
||||||
import '../static/stylesheets/globals.scss'
|
import '../stylesheets/globals.scss'
|
||||||
import styles from './Navbar.scss'
|
import styles from './Navbar.scss'
|
||||||
|
|
||||||
export default class Navbar extends Component {
|
export default class Navbar extends Component {
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
@import "../static/stylesheets/variables.scss";
|
@import "../../config/variables.scss";
|
||||||
|
|
||||||
.navbar {
|
.navbar {
|
||||||
background-color: #1B4367;
|
background-color: $navbar;
|
||||||
color: $white;
|
color: $white;
|
||||||
background-position: center;
|
background-position: center;
|
||||||
background-repeat: no-repeat;
|
background-repeat: no-repeat;
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
import React from 'react'
|
import React from 'react'
|
||||||
import { Navbar, Header } from '.'
|
import { Navbar, Header } from '.'
|
||||||
import '../static/stylesheets/globals.scss'
|
import '../stylesheets/globals.scss'
|
||||||
import contentStyle from '../static/stylesheets/content.scss'
|
import contentStyle from '../stylesheets/content.scss'
|
||||||
|
|
||||||
export const NotFoundPage = (props) => {
|
export const NotFoundPage = (props) => {
|
||||||
return (
|
return (
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
import React, { Component } from 'react'
|
import React, { Component } from 'react'
|
||||||
import { Wrapper, NotFoundPage } from '.'
|
import { Wrapper, NotFoundPage } from '.'
|
||||||
import '../static/stylesheets/globals.scss'
|
import '../stylesheets/globals.scss'
|
||||||
|
|
||||||
export default class NotFoundWrapper extends Component {
|
export default class NotFoundWrapper extends Component {
|
||||||
render () {
|
render () {
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
import React, { Component } from 'react'
|
import React, { Component } from 'react'
|
||||||
import PropTypes from 'prop-types'
|
import PropTypes from 'prop-types'
|
||||||
import { Spinner, Header, Navbar } from '.'
|
import { Spinner, Header, Navbar } from '.'
|
||||||
import '../static/stylesheets/globals.scss'
|
import '../stylesheets/globals.scss'
|
||||||
import contentStyle from '../static/stylesheets/content.scss'
|
import contentStyle from '../stylesheets/content.scss'
|
||||||
import styles from './Post.scss'
|
import styles from './Post.scss'
|
||||||
import MarkdownIt from 'markdown-it'
|
import MarkdownIt from 'markdown-it'
|
||||||
import fm from 'front-matter'
|
import fm from 'front-matter'
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
@import "../static/stylesheets/variables.scss";
|
@import "../../config/variables.scss";
|
||||||
|
|
||||||
.postContent {
|
.postContent {
|
||||||
clear: both;
|
clear: both;
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
import React, { Component } from 'react'
|
import React, { Component } from 'react'
|
||||||
import '../static/stylesheets/globals.scss'
|
import '../stylesheets/globals.scss'
|
||||||
import styles from './Spinner.scss'
|
import styles from './Spinner.scss'
|
||||||
|
|
||||||
export default class Spinner extends Component {
|
export default class Spinner extends Component {
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
/*
|
/*
|
||||||
from https://loading.io/css/
|
from https://loading.io/css/
|
||||||
*/
|
*/
|
||||||
@import "../static/stylesheets/variables.scss";
|
@import "../../config/variables.scss";
|
||||||
|
|
||||||
.spinnerWrapper {
|
.spinnerWrapper {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
import PropTypes from 'prop-types'
|
import PropTypes from 'prop-types'
|
||||||
import React, { Component } from 'react'
|
import React, { Component } from 'react'
|
||||||
import '../static/stylesheets/globals.scss'
|
import '../stylesheets/globals.scss'
|
||||||
import styles from './Wrapper.scss'
|
import styles from './Wrapper.scss'
|
||||||
|
|
||||||
export default class Wrapper extends Component {
|
export default class Wrapper extends Component {
|
||||||
|
|
|
@ -1,11 +1,11 @@
|
||||||
@import "../static/stylesheets/variables.scss";
|
@import "../../config/variables.scss";
|
||||||
|
|
||||||
.centerContent {
|
.centerContent {
|
||||||
text-align: center;
|
text-align: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
.flexWrap {
|
.flexWrap {
|
||||||
@media only screen and (min-width: 1024px) {
|
@media only screen and (min-width: $break-large) {
|
||||||
display: flex;
|
display: flex;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
@import "./variables.scss";
|
@import "../../config/variables.scss";
|
||||||
|
|
||||||
.contentWrapper {
|
.contentWrapper {
|
||||||
display: inline-block;
|
display: inline-block;
|
|
@ -1,4 +1,4 @@
|
||||||
@import "./variables.scss";
|
@import "../../config/variables.scss";
|
||||||
|
|
||||||
:global(body, html) {
|
:global(body, html) {
|
||||||
height: 100%;
|
height: 100%;
|
|
@ -1,7 +1,7 @@
|
||||||
import fs from 'fs'
|
import fs from 'fs'
|
||||||
import jsonfile from 'jsonfile'
|
import jsonfile from 'jsonfile'
|
||||||
import path from 'path'
|
import path from 'path'
|
||||||
import config from '../../config.json'
|
import config from '../../config/config.json'
|
||||||
|
|
||||||
export function getData (reqPath = '') {
|
export function getData (reqPath = '') {
|
||||||
if (reqPath === '') {
|
if (reqPath === '') {
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
import fs from 'fs'
|
import fs from 'fs'
|
||||||
import path from 'path'
|
import path from 'path'
|
||||||
import config from '../../config.json'
|
import config from '../../config/config.json'
|
||||||
import fm from 'front-matter'
|
import fm from 'front-matter'
|
||||||
import moment from 'moment'
|
import moment from 'moment'
|
||||||
import jsonfile from 'jsonfile'
|
import jsonfile from 'jsonfile'
|
||||||
|
|
Loading…
Reference in New Issue