Skip to content

Commit

Permalink
Hovedprofil logo update (#207)
Browse files Browse the repository at this point in the history
* chore: use editorconfig to avoid newlines in svg files

* feat: Add files for logo-updates to preview

* feat: use currentColor on all monochrome logos

* fix: Remove unused defs, empty groups and clip-paths

* docs: Cover previews in docs

* docs: Fix duplication of ids in asset showcase controls

* docs: Add usage info for preview assets
  • Loading branch information
skjalgepalg authored May 16, 2023
1 parent 55afa8d commit 5d30d6b
Show file tree
Hide file tree
Showing 165 changed files with 668 additions and 23 deletions.
3 changes: 3 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,6 @@ insert_final_newline = true

[*.md]
trim_trailing_whitespace = false

[*.svg]
insert_final_newline = false
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ lib/core-icons*.js
/jsx/**/core-icons*
/logo/**/core-icons*
/expressive/**/core-icons*
/preview/**/core-icons*
*.rss
*.pdf
*.zip
Expand Down
9 changes: 7 additions & 2 deletions bin/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,11 @@ function buildIcons (groupName) {
// Make pdfs
const svgFiles = fse.readdirSync(staticDest)
for (const file of svgFiles) {
svgtopdf(path.join(staticDest, file))
try {
svgtopdf(path.join(staticDest, file))
} catch (error) {
console.error(`Something went wrong while parsing file ${file} through svgomg resulting in error: ${error}`)
}
}

// Generate zip archives for svg
Expand Down Expand Up @@ -208,10 +212,11 @@ function svgtopdf (el, options, pdf) {
}

function build () {
clean(['icon', 'expressive', 'logo'])
clean(['icon', 'expressive', 'logo', 'preview'])
buildIcons('icon')
buildIcons('expressive')
buildIcons('logo')
buildIcons('preview')
buildMasterIife(['icon', 'expressive'], 'core-icons-iife.js', true)
// Generate iife file containing logos for legacy support in cdn
buildMasterIife(['icon', 'expressive', 'logo'], 'core-icons.min.js')
Expand Down
1 change: 1 addition & 0 deletions lib/preview/nrk-logo-preview-nrk-1--colorblack.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions lib/preview/nrk-logo-preview-nrk-1--colorgrey.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions lib/preview/nrk-logo-preview-nrk-1--colorwhite.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions lib/preview/nrk-logo-preview-nrk-1.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions lib/preview/nrk-logo-preview-nrk-2--colorblack.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions lib/preview/nrk-logo-preview-nrk-2--colorgrey.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions lib/preview/nrk-logo-preview-nrk-2--colorwhite.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions lib/preview/nrk-logo-preview-nrk-2.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions lib/preview/nrk-logo-preview-nrk-3--colorblack.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions lib/preview/nrk-logo-preview-nrk-3--colorgrey.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions lib/preview/nrk-logo-preview-nrk-3--colorwhite.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions lib/preview/nrk-logo-preview-nrk-3.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions lib/preview/nrk-logo-preview-nrk-folkemusikk-on-dark.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 5d30d6b

Please sign in to comment.