diff --git a/src/components/App.js b/src/components/App.js index 94ab983..740230e 100644 --- a/src/components/App.js +++ b/src/components/App.js @@ -1,14 +1,13 @@ import React from 'react'; import { Route, Switch } from 'react-router-dom'; import { Home, NotFoundPage } from '.'; -import { BlogContainer, PostContainer } from '../containers'; +import { MainContainer, PostContainer } from '../containers'; export const App = () => (
- - - + +
diff --git a/src/components/Home.js b/src/components/Home.js index ed3b28e..ea24f9b 100644 --- a/src/components/Home.js +++ b/src/components/Home.js @@ -29,7 +29,7 @@ export default class Home extends Component { ); return ( -
+

{ config.name }

diff --git a/src/components/Home.scss b/src/components/Home.scss index c39375e..83e99f3 100644 --- a/src/components/Home.scss +++ b/src/components/Home.scss @@ -9,38 +9,16 @@ flex-direction: column; justify-content: center; text-align: center; - position: fixed; - top: 0; - left: 0; color: $white; - transition-property: width; - transition-duration: 0.75s; - -webkit-transition-property: width; - -webkit-transition-duration: 0.75s; + background-position: center; + background-repeat: no-repeat; } #coverPage.coverPageFull{ - position: absolute; - top: 0; - left: 0; - height: 100%; + height: 100vh; width: 100%; } -#coverPage.coverPageCollapsed { - float: left; - width: 320px; - height: 100%; - @media screen and (max-width: $break-medium) { - width: 100%; - float: none; - } - @media screen and (min-width: $break-large) { - width: 500px; - float: none; - } -} - #coverPageName { font-size: 5em; } diff --git a/src/containers/BlogContainer.js b/src/containers/MainContainer.js similarity index 92% rename from src/containers/BlogContainer.js rename to src/containers/MainContainer.js index 88275eb..42f1dc7 100644 --- a/src/containers/BlogContainer.js +++ b/src/containers/MainContainer.js @@ -1,6 +1,6 @@ import React, {Component} from 'react'; import axios from 'axios'; -import {About, Blog} from '../components'; +import {About, Blog, Home} from '../components'; export default class BlogContainer extends Component { @@ -32,6 +32,7 @@ export default class BlogContainer extends Component { render() { return (
+ + Matúš Námešný