Move configurables to config folder

This commit is contained in:
LordMathis 2019-10-09 19:41:54 +02:00
parent 6aabe1d753
commit ebd4fcf2ce
No known key found for this signature in database
GPG Key ID: 575849FD91CE470C
24 changed files with 31 additions and 31 deletions

View File

@ -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;

View File

@ -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'

View File

@ -1,4 +1,4 @@
@import "../static/stylesheets/variables.scss"; @import "../../config/variables.scss";
.about { .about {
flex: 30%; flex: 30%;

View File

@ -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 = {

View File

@ -1,4 +1,4 @@
@import "../static/stylesheets/variables.scss"; @import "../../config/variables.scss";
.postDate { .postDate {
margin-right: 50px; margin-right: 50px;

View File

@ -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 {

View File

@ -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;

View File

@ -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 {

View File

@ -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;

View File

@ -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 {

View File

@ -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;

View File

@ -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 (

View File

@ -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 () {

View File

@ -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'

View File

@ -1,4 +1,4 @@
@import "../static/stylesheets/variables.scss"; @import "../../config/variables.scss";
.postContent { .postContent {
clear: both; clear: both;

View File

@ -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 {

View File

@ -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%;

View File

@ -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 {

View File

@ -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;
} }
} }

View File

@ -1,4 +1,4 @@
@import "./variables.scss"; @import "../../config/variables.scss";
.contentWrapper { .contentWrapper {
display: inline-block; display: inline-block;

View File

@ -1,4 +1,4 @@
@import "./variables.scss"; @import "../../config/variables.scss";
:global(body, html) { :global(body, html) {
height: 100%; height: 100%;

View File

@ -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 === '') {

View File

@ -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'