-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1280 from massgov/core/logo-updates
Core/logo updates
- Loading branch information
Showing
12 changed files
with
169 additions
and
96 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
STORYBOOK_CDN=https://unpkg.com/ | ||
STORYBOOK_PKG=@massds/mayflower-assets@10.2.0 | ||
STORYBOOK_PKG=@massds/mayflower-assets@10.3.0 | ||
STORYBOOK_CDN_PATH=$STORYBOOK_CDN$STORYBOOK_PKG |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
import React from 'react'; | ||
import Image from '@massds/mayflower-react/dist/Image'; | ||
import logoSVG from '@massds/mayflower-assets/static/images/logo/stateseal.svg'; | ||
import logoColorSVG from '@massds/mayflower-assets/static/images/logo/stateseal-color.svg'; | ||
import logo from '@massds/mayflower-assets/static/images/logo/stateseal.png'; | ||
import logoColor from '@massds/mayflower-assets/static/images/logo/stateseal-color.png'; | ||
import logoBlack from '@massds/mayflower-assets/static/images/logo/stateseal-black.png'; | ||
import logoWhite from '@massds/mayflower-assets/static/images/logo/stateseal-white.png'; | ||
import generateTitle from '../../util/generateTitle'; | ||
|
||
const { STORYBOOK_CDN_PATH } = process.env; | ||
|
||
const stateSeal = ({ src, dimension, background }) => ( | ||
<div style={{ background: background || 'none', padding: '5px', lineHeight: 0 }}> | ||
<Image | ||
alt="the Massachusetts state seal" | ||
src={src} | ||
width={dimension} | ||
height={dimension} | ||
/> | ||
</div> | ||
) | ||
|
||
const bgLight = { background: '#F2F2F2' }; | ||
const bgLight1 = { background: '#E7EEF4' }; | ||
const bgDark = { background: '#000' }; | ||
const bgDark1 = { background: '#14558F' }; | ||
|
||
|
||
// exported story names must be unique | ||
export const sealExample = () => stateSeal({ src: logoSVG, dimension: '150px' }); | ||
export const sealColorExample = () => stateSeal({ src: logoColorSVG, dimension: '150px' }); | ||
|
||
export const seal = () => stateSeal({ src: logo, dimension: '100px' }); | ||
export const sealBGLight = () => stateSeal({ src: logo, dimension: '100px', ...bgLight }); | ||
export const sealBGLight1 = () => stateSeal({ src: logo, dimension: '100px', ...bgLight1 }); | ||
|
||
export const sealColor = () => stateSeal({ src: logoColor, dimension: '100px' }); | ||
export const sealColorBGLight = () => stateSeal({ src: logoColor, dimension: '100px', ...bgLight1 }); | ||
export const sealColorBGDark = () => stateSeal({ src: logoColor, dimension: '100px', ...bgDark1 }); | ||
|
||
export const sealBlack = () => stateSeal({ src: logoBlack, dimension: '100px' }); | ||
export const sealBlackBGLight = () => stateSeal({ src: logoBlack, dimension: '100px', ...bgLight }); | ||
export const sealBlackBGLight1 = () => stateSeal({ src: logoBlack, dimension: '100px', ...bgLight1 }); | ||
|
||
export const sealWhiteBGDark = () => stateSeal({ src: logoWhite, dimension: '100px', ...bgDark }); | ||
export const sealWhiteBGDark1 = () => stateSeal({ src: logoWhite, dimension: '100px', ...bgDark1 }); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters