docs(design): remove SVG, use PNG logo only
SVG icon is no longer in use. public/logo.png (1024x1024 RGBA) is the single logo asset. DESIGN.md updated accordingly: SVG snippet removed, wordmark pattern and <head> references updated to PNG. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Sonnet 4.6
parent
d66ec03165
commit
46929e2ef5
+28
@@ -0,0 +1,28 @@
|
||||
"use strict"
|
||||
|
||||
const startsWithKeywordRegexp = /^(all|not|only|print|screen)/i
|
||||
|
||||
module.exports = function (parentMedia, childMedia) {
|
||||
if (!parentMedia.length && childMedia.length) return childMedia
|
||||
if (parentMedia.length && !childMedia.length) return parentMedia
|
||||
if (!parentMedia.length && !childMedia.length) return []
|
||||
|
||||
const media = []
|
||||
|
||||
parentMedia.forEach(parentItem => {
|
||||
const parentItemStartsWithKeyword = startsWithKeywordRegexp.test(parentItem)
|
||||
|
||||
childMedia.forEach(childItem => {
|
||||
const childItemStartsWithKeyword = startsWithKeywordRegexp.test(childItem)
|
||||
if (parentItem !== childItem) {
|
||||
if (childItemStartsWithKeyword && !parentItemStartsWithKeyword) {
|
||||
media.push(`${childItem} and ${parentItem}`)
|
||||
} else {
|
||||
media.push(`${parentItem} and ${childItem}`)
|
||||
}
|
||||
}
|
||||
})
|
||||
})
|
||||
|
||||
return media
|
||||
}
|
||||
Reference in New Issue
Block a user