mirror of
https://gerrit.wikimedia.org/r/mediawiki/skins/Vector.git
synced 2024-12-18 02:40:34 +00:00
90b5ff5149
Change-Id: I80f0557a6355208d2694f3776cce2ee858573a9c
82 lines
1.4 KiB
JavaScript
82 lines
1.4 KiB
JavaScript
import logoTemplate from '!!raw-loader!../includes/templates/Logo.mustache';
|
|
import wordmarkSrc from '../.storybook/resolve-imports/assets/wordmark.svg';
|
|
import tagelineScr from '../.storybook/resolve-imports/assets/tagline.svg';
|
|
import iconSrc from '../.storybook/resolve-imports/assets/icon.png';
|
|
|
|
/**
|
|
* @type {LogoOptions}
|
|
*/
|
|
const wordmark = {
|
|
src: wordmarkSrc,
|
|
width: 116,
|
|
height: 18
|
|
};
|
|
|
|
/**
|
|
* @type {LogoOptions}
|
|
*/
|
|
const tagline = {
|
|
src: tagelineScr,
|
|
width: 117,
|
|
height: 13
|
|
};
|
|
|
|
/**
|
|
* @type {string}
|
|
*/
|
|
const icon = iconSrc;
|
|
|
|
/**
|
|
* @type {LogoTemplateData}
|
|
*/
|
|
const wordmarkTaglineIcon = {
|
|
'data-logos': {
|
|
wordmark, tagline, icon
|
|
},
|
|
'msg-sitetitle': 'Wikipedia',
|
|
'msg-sitesubtitle': 'the free encyclopedia'
|
|
};
|
|
|
|
/**
|
|
* @type {LogoTemplateData}
|
|
*/
|
|
const wordmarkIcon = {
|
|
'data-logos': {
|
|
wordmark, icon
|
|
},
|
|
'msg-sitetitle': 'Wikipedia',
|
|
'msg-sitesubtitle': 'the free encyclopedia'
|
|
};
|
|
|
|
/**
|
|
* @type {LogoTemplateData}
|
|
*/
|
|
const wordmarkOnly = {
|
|
'data-logos': {
|
|
wordmark
|
|
},
|
|
'msg-sitetitle': 'Wikipedia',
|
|
'msg-sitesubtitle': 'the free encyclopedia'
|
|
};
|
|
|
|
/**
|
|
* @type {LogoTemplateData}
|
|
*/
|
|
const noLogo = {
|
|
'data-logos': {},
|
|
'msg-sitetitle': 'Wikipedia',
|
|
'msg-sitesubtitle': 'the free encyclopedia'
|
|
};
|
|
|
|
/**
|
|
* @type {Object.<string, LogoTemplateData>}
|
|
*/
|
|
const LOGO_TEMPLATE_DATA = {
|
|
wordmarkTaglineIcon,
|
|
wordmarkIcon,
|
|
wordmarkOnly,
|
|
noLogo
|
|
};
|
|
|
|
export { LOGO_TEMPLATE_DATA, logoTemplate };
|