Skip to content

Commit

Permalink
React/componentize error page styles (#271)
Browse files Browse the repository at this point in the history
* componentize error page styles

* move error page styles into organism

* move narrow template styles into pages componentize with error page components

* center align site logo on error pages

* revert justify center site logo

* add changelog
  • Loading branch information
clairesunstudio authored and avrilpearl committed Sep 26, 2018
1 parent 172125e commit fdd7a56
Show file tree
Hide file tree
Showing 8 changed files with 12 additions and 2 deletions.
4 changes: 4 additions & 0 deletions changelogs/componentize-error-page-styles.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
___DESCRIPTION___
Added (see below)
Change_impact (see below)
- (React) Componentize scss into error page organism and pages #271
1 change: 1 addition & 0 deletions react/src/components/organisms/ErrorPage/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import React from 'react';
import PropTypes from 'prop-types';
import './styles.css';

const ErrorPage = (errorPage) => (
<section className="ma__error-page">
Expand Down
2 changes: 2 additions & 0 deletions react/src/components/organisms/ErrorPage/styles.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
@import 'global';
@import "03-organisms/error-page";
1 change: 1 addition & 0 deletions react/src/components/pages/Error403/index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import React from 'react';
import NarrowTemplate from '../../templates/NarrowTemplate';
import ErrorPage from '../../organisms/ErrorPage';
import '../styles.css';

const Error403 = () => (
<NarrowTemplate side="right" color="yellow">
Expand Down
1 change: 1 addition & 0 deletions react/src/components/pages/Error404/index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import React from 'react';
import NarrowTemplate from '../../templates/NarrowTemplate';
import ErrorPage from '../../organisms/ErrorPage';
import '../styles.css';

const Error404 = () => (
<NarrowTemplate side="right" color="yellow">
Expand Down
1 change: 1 addition & 0 deletions react/src/components/pages/Error500/index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import React from 'react';
import NarrowTemplate from '../../templates/NarrowTemplate';
import ErrorPage from '../../organisms/ErrorPage';
import '../styles.css';

const Error500 = () => (
<NarrowTemplate side="right" color="yellow">
Expand Down
2 changes: 2 additions & 0 deletions react/src/components/pages/styles.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
@import 'global';
@import "04-templates/narrow-template";
2 changes: 0 additions & 2 deletions react/src/index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,6 @@ $assets-path: './assets';
@import "03-organisms/content-eyebrow";
@import "03-organisms/curated-person";
@import "03-organisms/emergency-alerts";
@import "03-organisms/error-page";
@import "03-organisms/event-listing";
@import "03-organisms/event-listing-interactive";
@import "03-organisms/featured-item-mosaic";
Expand Down Expand Up @@ -210,7 +209,6 @@ $assets-path: './assets';
@import "04-templates/form-page";
@import "04-templates/general";
@import "04-templates/information-details";
@import "04-templates/narrow-template";
@import "04-templates/organization-details";
@import "04-templates/policy-advisory";
@import "04-templates/press";
Expand Down

0 comments on commit fdd7a56

Please sign in to comment.