Skip to content

Commit

Permalink
Fixed height of particle canvas on larger screens
Browse files Browse the repository at this point in the history
  • Loading branch information
Laurence Jones committed Jul 23, 2017
1 parent 835efdf commit 3d2cbf6
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](http://keepachangelog.com/)
and this project adheres to [Semantic Versioning](http://semver.org/).

## [1.1.1]
### Fixed
- Fixed height of particle canvas on larger screens to help prevent performance issues

## [1.1.0]
### Added
- Updated theming of site
Expand Down
2 changes: 2 additions & 0 deletions app/assets/scss/partials/_title.scss
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
background: linear-gradient(to top, $gradient);
position: relative;
min-height: 300px;
max-height: 800px;
overflow: hidden;

&__heading {
color: #fff;
Expand Down
2 changes: 1 addition & 1 deletion app/views/Title.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import ParticleCanvas from '../components/ParticleCanvas';

const Title = () => (
<div className='title'>
<ParticleCanvas height={window.innerWidth < 1200 ? '600px' : '100%'} />
<ParticleCanvas height={window.innerWidth < 1200 ? '600px' : '800px'} />
<div className='title__heading'>
<h1>Laurence Jones</h1>
<span>Software Engineer</span>
Expand Down

0 comments on commit 3d2cbf6

Please sign in to comment.