Skip to content
This repository has been archived by the owner on Aug 13, 2023. It is now read-only.

BBC Scotland SVG #2192

Merged
merged 6 commits into from
Sep 20, 2019
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions packages/utilities/psammead-assets/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
<!-- prettier-ignore -->
| Version | Description |
|---------|-------------|
| 2.4.0 | [PR#x](https://github.com/bbc/psammead/pull/x) Add SVG for BBC Scotland |
| 2.3.0 | [PR#2115](https://github.com/bbc/psammead/pull/2115) Added media icons SVGs |
| 2.2.4 | [PR#1942](https://github.com/bbc/psammead/pull/1942) Talos - Bump React to 16.9.0 |
| 2.2.3 | [PR#1847](https://github.com/bbc/psammead/pull/1847) Fixed Telugu typos |
Expand Down
4 changes: 2 additions & 2 deletions packages/utilities/psammead-assets/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ npm install @bbc/psammead-assets --save
## Usage

```jsx
import { BBC_BLOCKS, news} from '@bbc/psammead-assets/svgs';
import { BBC_BLOCKS, news } from '@bbc/psammead-assets/svgs';

import { AMP_SCRIPT } from '@bbc/psammead-assets/amp-boilerplate';
```
Expand All @@ -24,7 +24,7 @@ import { AMP_SCRIPT } from '@bbc/psammead-assets/amp-boilerplate';

Service brand SVGs, like `news`, are objects that contains an svg group, viewbox, ratio and height;

This package currently has brand SVGs for the BBC services `igbo`, `news`, `persian`, `pidgin`, `thai` and `yoruba`.
This package currently has brand SVGs for the BBC News World Services as well as for BBC News, BBS Scotland.

<!-- prettier-ignore -->
| Property | Type | Required | Default | Example |
Expand Down
1 change: 1 addition & 0 deletions packages/utilities/psammead-assets/index.test.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ const svgsExpectedExports = {
portuguese: 'object',
punjabi: 'object',
russian: 'object',
scotland: 'object',
serbian: 'object',
sinhala: 'object',
somali: 'object',
Expand Down
2 changes: 1 addition & 1 deletion packages/utilities/psammead-assets/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/utilities/psammead-assets/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@bbc/psammead-assets",
"version": "2.3.0",
"version": "2.4.0",
"sideEffects": false,
"description": "A collection of common assets that are likely to be required by many Psammead components or users, such as SVGs or small scripts.",
"repository": {
Expand Down
1 change: 1 addition & 0 deletions packages/utilities/psammead-assets/src/svgs.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ export pidgin from './svgs/pidgin';
export portuguese from './svgs/portuguese';
export punjabi from './svgs/punjabi';
export russian from './svgs/russian';
export scotland from './svgs/scotland';
export serbian from './svgs/serbian';
export sinhala from './svgs/sinhala';
export somali from './svgs/somali';
Expand Down
23 changes: 23 additions & 0 deletions packages/utilities/psammead-assets/src/svgs/scotland.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
import React from 'react';

const scotland = {
group: (
<g
fillRule="evenodd"
stroke="#000"
strokeWidth=".335"
style={{ stroke: '#fff' }}
>
<path d="M48.82 15.91v.01-.01zM58.76 0v24h25.5V0zm20.42 19.3l-.15.07a14 14 0 01-6.56 1.5A10 10 0 0165 17.93a8.45 8.45 0 01-2.37-5.68 8.68 8.68 0 012.84-6.54 10.56 10.56 0 017.19-2.57 16.52 16.52 0 016.2 1.4l.17.06v3.22l-.4-.22a12 12 0 00-6-1.71c-4 0-6.84 2.53-6.83 6.14s2.74 6.1 6.94 6.1a11.9 11.9 0 006.08-1.85l.41-.25zM29.38 24h25.5V0h-25.5zm6.69-20.65h5.45a6.3 6.3 0 014.36 1.42 4.2 4.2 0 011.39 3.15 3.75 3.75 0 01-.71 2.34 4.26 4.26 0 01-1.49 1.2 4.62 4.62 0 013.77 4.46 4.26 4.26 0 01-1.47 3.2 7.19 7.19 0 01-4.9 1.53h-6.4z" />
<path d="M45 17.16a2 2 0 00.69-1.59 1.93 1.93 0 00-.85-1.65 4.89 4.89 0 00-2.84-.69h-2.84v4.71h2.94a4.2 4.2 0 002.9-.78zm.65-1.6v.01-.01zm-2.4-5.62a2 2 0 00.81-1.76 1.82 1.82 0 00-.58-1.44 3.32 3.32 0 00-2.26-.63h-2.1v4.47h1.43a4.62 4.62 0 002.7-.64zM0 24h25.5V0H0zM6.7 3.35h5.44a6.3 6.3 0 014.36 1.42 4.2 4.2 0 011.39 3.15 3.75 3.75 0 01-.71 2.34 4.2 4.2 0 01-1.49 1.2 4.62 4.62 0 013.77 4.47A4.26 4.26 0 0118 19.11a7.18 7.18 0 01-4.9 1.53H6.7z" />
<path d="M13.87 9.94a2 2 0 00.82-1.76 1.82 1.82 0 00-.58-1.44 3.33 3.33 0 00-2.26-.63H9.77v4.47h1.43a4.62 4.62 0 002.67-.64zm1.71 7.22a2.1 2.1 0 00.69-1.6 1.93 1.93 0 00-.85-1.66 4.89 4.89 0 00-2.82-.68H9.79v4.71h2.94a4.2 4.2 0 002.85-.77zm81.61-3.76l-1.93-1.13a8.55 8.55 0 01-2.53-2.1A4 4 0 0192 7.76a4.26 4.26 0 011.4-3.33 5.3 5.3 0 013.69-1.28 7 7 0 014 1.22v2.81a5.74 5.74 0 00-4-1.8 3.34 3.34 0 00-2 .57 1.71 1.71 0 00-.78 1.44 2.21 2.21 0 00.58 1.46 7.26 7.26 0 001.89 1.42l1.9 1.12q3.15 1.89 3.15 4.82a4.42 4.42 0 01-1.4 3.39 5.1 5.1 0 01-3.63 1.3 7.62 7.62 0 01-4.65-1.58v-3.17a5.83 5.83 0 004.64 2.5 2.92 2.92 0 001.9-.65 2 2 0 00.78-1.63q-.02-1.53-2.28-2.97zm15.58 4.6v2.24a9.44 9.44 0 01-3.33.63 5.78 5.78 0 01-4.27-1.58 5.74 5.74 0 01-1.6-4.25 6.08 6.08 0 011.55-4.33 5.34 5.34 0 014.08-1.65 6.82 6.82 0 011.58.17 10.2 10.2 0 011.73.63v2.4a6 6 0 00-3.15-1 3.24 3.24 0 00-2.51 1 3.9 3.9 0 00-1 2.74 3.69 3.69 0 001 2.78 3.92 3.92 0 002.85 1 7.44 7.44 0 003.07-.78zm7.84-8.8a6 6 0 014.32 1.68 5.66 5.66 0 011.72 4.2 5.36 5.36 0 01-1.75 4.1 6.2 6.2 0 01-4.41 1.63 6 6 0 01-4.25-1.6 5.5 5.5 0 01-1.72-4.13 5.54 5.54 0 011.74-4.2 6.07 6.07 0 014.35-1.68zm-.17 2.1a3.57 3.57 0 00-2.67 1 3.73 3.73 0 00-1 2.72 3.56 3.56 0 001 2.68 3.77 3.77 0 002.74 1 3.7 3.7 0 002.72-1 3.61 3.61 0 001-2.69 3.58 3.58 0 00-1-2.71 3.83 3.83 0 00-2.79-1zm6.98-.23l4.2-4.2v2.36h3.61v2.07h-3.56v5.58q0 2 1.63 2a5 5 0 002.57-.81v2.1a5.7 5.7 0 01-2.84.73 3.77 3.77 0 01-2.58-.9 2.56 2.56 0 01-.54-.61 3.26 3.26 0 01-.36-.89 10 10 0 01-.15-2.1v-5.1h-2zm10.86-7.72h2.26v17.32h-2.26zM151 13.82v4.83q0 .59.4.58a2.73 2.73 0 001.28-.61V20a7.4 7.4 0 01-1.24.67 2.68 2.68 0 01-1 .18q-1.45 0-1.71-1.14a4.91 4.91 0 01-3.06 1.11 2.71 2.71 0 01-2-.79 2.68 2.68 0 01-.8-2 2.78 2.78 0 01.78-1.93 5.25 5.25 0 012.2-1.34l2.89-1v-.61a1.82 1.82 0 00-2.1-2.1 5 5 0 00-3.6 1.91v-2.37A4.68 4.68 0 01146.85 9a4.37 4.37 0 013 1 3 3 0 01.67.83 3 3 0 01.38 1 15.3 15.3 0 01.1 1.99zm-2.22 4.6V15l-1.51.59a5.11 5.11 0 00-1.64.93 1.67 1.67 0 000 2.31 1.6 1.6 0 001.18.45 2.83 2.83 0 001.96-.86zm8.08-9.15v1.45A4.53 4.53 0 01160.29 9a3.79 3.79 0 012 .56 3.6 3.6 0 011.4 1.51 7.24 7.24 0 01.48 3v6.53h-2.26v-6.5a4.44 4.44 0 00-.54-2.5 2 2 0 00-1.78-.75 3.25 3.25 0 00-2.72 1.6v8.14h-2.31V9.27zm17.03-5.92h2.27v17.32h-4.83a5.25 5.25 0 01-4-1.6 6 6 0 01-1.51-4.29 5.69 5.69 0 011.58-4.15 5.38 5.38 0 014-1.63 7.35 7.35 0 012.48.48zm0 15.38v-7.22a4.68 4.68 0 00-2.1-.54 3.44 3.44 0 00-2.69 1.1 4.27 4.27 0 00-1 3 3.9 3.9 0 00.87 2.72 2.69 2.69 0 001.1.77 7.46 7.46 0 002.1.2z" />
</g>
),
ratio: 7.3396,
viewbox: {
height: 24,
width: 176.15,
},
};

export default scotland;