mirror of
https://github.com/kremalicious/portfolio.git
synced 2024-12-22 17:23:22 +01:00
header tweaks
This commit is contained in:
parent
11e68fc662
commit
6dfe97ccf5
@ -1,8 +1,8 @@
|
|||||||
import React, { Fragment } from 'react'
|
import React, { Fragment } from 'react'
|
||||||
import FadeIn from './components/atoms/FadeIn'
|
|
||||||
import Routes from './Routes'
|
|
||||||
import Footer from './components/molecules/Footer'
|
|
||||||
import Helmet from 'react-helmet/es/Helmet'
|
import Helmet from 'react-helmet/es/Helmet'
|
||||||
|
import Routes from './Routes'
|
||||||
|
import FadeIn from './components/atoms/FadeIn'
|
||||||
|
import Footer from './components/molecules/Footer'
|
||||||
import meta from './data/meta.json'
|
import meta from './data/meta.json'
|
||||||
|
|
||||||
const Head = () => (
|
const Head = () => (
|
||||||
|
@ -1,11 +1,11 @@
|
|||||||
import React from 'react'
|
import React, { Component } from 'react'
|
||||||
import Link from 'react-router-dom/Link'
|
import Link from 'react-router-dom/Link'
|
||||||
import PropTypes from 'prop-types'
|
import PropTypes from 'prop-types'
|
||||||
import Social from './Social'
|
import Social from './Social'
|
||||||
import './Header.css'
|
import './Header.css'
|
||||||
import meta from '../../data/meta.json'
|
import meta from '../../data/meta.json'
|
||||||
|
|
||||||
class Header extends React.Component {
|
class Header extends Component {
|
||||||
render() {
|
render() {
|
||||||
const minimal = this.props.minimal
|
const minimal = this.props.minimal
|
||||||
const classes = (minimal ? 'header header--minimal' : 'header')
|
const classes = (minimal ? 'header header--minimal' : 'header')
|
||||||
|
@ -15,7 +15,6 @@
|
|||||||
font-size: 3rem;
|
font-size: 3rem;
|
||||||
color: $brand-grey-light;
|
color: $brand-grey-light;
|
||||||
margin-bottom: $spacer / 2;
|
margin-bottom: $spacer / 2;
|
||||||
transition: color .2s ease-out;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.header__title,
|
.header__title,
|
||||||
@ -48,7 +47,14 @@
|
|||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
|
|
||||||
@media (min-width: 30rem) {
|
@media (min-width: 30rem) {
|
||||||
margin-bottom: $spacer * 2;
|
margin-bottom: $spacer;
|
||||||
|
}
|
||||||
|
|
||||||
|
.header__title,
|
||||||
|
.header__description,
|
||||||
|
.header__logo {
|
||||||
|
color: $brand-grey-light;
|
||||||
|
transition: color .2s ease-out;
|
||||||
}
|
}
|
||||||
|
|
||||||
.header__title {
|
.header__title {
|
||||||
@ -76,6 +82,14 @@
|
|||||||
.header__logo {
|
.header__logo {
|
||||||
color: $brand-cyan;
|
color: $brand-cyan;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.header__title {
|
||||||
|
color: $brand-main;
|
||||||
|
}
|
||||||
|
|
||||||
|
.header__description {
|
||||||
|
color: $brand-grey;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -91,10 +105,20 @@
|
|||||||
padding: $spacer / 8;
|
padding: $spacer / 8;
|
||||||
margin-left: $spacer / 4;
|
margin-left: $spacer / 4;
|
||||||
margin-right: $spacer / 4;
|
margin-right: $spacer / 4;
|
||||||
|
background: transparent;
|
||||||
|
box-shadow: none;
|
||||||
|
transform: none;
|
||||||
|
|
||||||
.icon {
|
.icon {
|
||||||
width: .75rem;
|
fill: $brand-grey-light;
|
||||||
height: .75rem;
|
transition: .2s ease-out;
|
||||||
|
}
|
||||||
|
|
||||||
|
&:hover,
|
||||||
|
&:focus {
|
||||||
|
.icon {
|
||||||
|
fill: $brand-grey;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -10,7 +10,7 @@
|
|||||||
.social__link {
|
.social__link {
|
||||||
margin-left: $spacer / 2;
|
margin-left: $spacer / 2;
|
||||||
margin-right: $spacer / 2;
|
margin-right: $spacer / 2;
|
||||||
background: $brand-grey-dimmed;
|
background: $brand-light;
|
||||||
padding: $spacer / 4;
|
padding: $spacer / 4;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
display: flex;
|
display: flex;
|
||||||
@ -23,6 +23,7 @@
|
|||||||
|
|
||||||
&:hover,
|
&:hover,
|
||||||
&:focus {
|
&:focus {
|
||||||
|
background: $brand-grey-dimmed;
|
||||||
transform: translate3d(0, -.2rem, 0);
|
transform: translate3d(0, -.2rem, 0);
|
||||||
box-shadow: 0 6px 10px rgba($brand-main, .1), 0 10px 25px rgba($brand-main, .1);
|
box-shadow: 0 6px 10px rgba($brand-main, .1), 0 10px 25px rgba($brand-main, .1);
|
||||||
}
|
}
|
||||||
|
@ -4,7 +4,6 @@ import LazyLoad from 'react-lazyload'
|
|||||||
import FadeIn from '../atoms/FadeIn'
|
import FadeIn from '../atoms/FadeIn'
|
||||||
import projects from '../../data/projects.json'
|
import projects from '../../data/projects.json'
|
||||||
import images from '../../images'
|
import images from '../../images'
|
||||||
import '../atoms/FullWidth'
|
|
||||||
import './Projects.css'
|
import './Projects.css'
|
||||||
|
|
||||||
const Projects = () => (
|
const Projects = () => (
|
||||||
|
@ -1,7 +1,6 @@
|
|||||||
import React, { Component, Fragment } from 'react'
|
import React, { Component, Fragment } from 'react'
|
||||||
import Header from '../molecules/Header'
|
import Header from '../molecules/Header'
|
||||||
import Projects from '../organisms/Projects'
|
import Projects from '../organisms/Projects'
|
||||||
|
|
||||||
import './Home.css'
|
import './Home.css'
|
||||||
|
|
||||||
class Home extends Component {
|
class Home extends Component {
|
||||||
@ -9,7 +8,6 @@ class Home extends Component {
|
|||||||
return (
|
return (
|
||||||
<Fragment>
|
<Fragment>
|
||||||
<Header />
|
<Header />
|
||||||
|
|
||||||
<main className="screen screen--home">
|
<main className="screen screen--home">
|
||||||
<Projects />
|
<Projects />
|
||||||
</main>
|
</main>
|
||||||
|
@ -6,7 +6,7 @@ $brand-cyan: #43a699;
|
|||||||
$brand-light: #e7eef4;
|
$brand-light: #e7eef4;
|
||||||
|
|
||||||
$brand-grey: #6b7f88;
|
$brand-grey: #6b7f88;
|
||||||
$brand-grey-light: lighten($brand-grey, 10%);
|
$brand-grey-light: lighten($brand-grey, 15%);
|
||||||
$brand-grey-dimmed: lighten($brand-grey, 50%);
|
$brand-grey-dimmed: lighten($brand-grey, 50%);
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user