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