diff --git a/README.md b/README.md index 7c8f16d..2d7d5bd 100644 --- a/README.md +++ b/README.md @@ -26,6 +26,7 @@ Logos, social templates and colour tokens for the Lean Mean Clean Apps .NET temp | Website favicons and manifest icons | `assets/logos//web/` | | Icons for MCP tools, prompts and resources | `assets/icons/mcp/png/-.png`, in movie, author, review and server | | Link preview for a website | [og-image.png](assets/social/png/og-image.png) | +| LinkedIn company page cover | [linkedin-cover-2x.png](assets/social/png/linkedin-cover-2x.png), or [linkedin-cover.png](assets/social/png/linkedin-cover.png) at LinkedIn's own 1128 x 191. The text sits right of where LinkedIn puts the page logo, so don't nudge it left. | ## The marks diff --git a/assets/social/png/linkedin-cover-2x.png b/assets/social/png/linkedin-cover-2x.png new file mode 100644 index 0000000..7f62a39 Binary files /dev/null and b/assets/social/png/linkedin-cover-2x.png differ diff --git a/assets/social/png/linkedin-cover.png b/assets/social/png/linkedin-cover.png new file mode 100644 index 0000000..950b50a Binary files /dev/null and b/assets/social/png/linkedin-cover.png differ diff --git a/assets/social/source/linkedin-cover.svg b/assets/social/source/linkedin-cover.svg new file mode 100644 index 0000000..8b7ef7e --- /dev/null +++ b/assets/social/source/linkedin-cover.svg @@ -0,0 +1 @@ +OPEN SOURCE TEMPLATES FOR .NETLean Mean Clean AppsClean Architecture templates for .NET, minus the ceremony. diff --git a/assets/social/svg/linkedin-cover.svg b/assets/social/svg/linkedin-cover.svg new file mode 100644 index 0000000..c278e1b --- /dev/null +++ b/assets/social/svg/linkedin-cover.svg @@ -0,0 +1 @@ + diff --git a/scripts/build.mjs b/scripts/build.mjs index 6f830db..5790fe0 100644 --- a/scripts/build.mjs +++ b/scripts/build.mjs @@ -7,6 +7,7 @@ import { neutrals, scales, org, templates } from './brand.mjs'; import { tonal, spectrum, mono, DARK_STEPS, LIGHT_STEPS, SLATE_DARK_STEPS, SLATE_LIGHT_STEPS } from './colours.mjs'; import { iconBody, iconNames, iconSvg } from './icons.mjs'; import { logoSvg, markBody } from './logo.mjs'; +import { linkedinCover, linkedinCoverSvg } from './linkedin.mjs'; import { socialSvg } from './social.mjs'; import { outline } from './text.mjs'; import { writeTokens } from './tokens.mjs'; @@ -176,6 +177,16 @@ for (const s of socials) { write(out('assets', 'social', 'png', `${s.file}.png`), png(svg, s.width)); } +// The LinkedIn company page cover, at LinkedIn's size and twice that for sharp screens. +{ + const spec = { kicker: 'Open source templates for .NET', title: org.name, tagline: org.tagline, logo: { fill: byKey['org-spectrum'].dark, core: neutrals.paper } }; + const svg = linkedinCoverSvg(spec); + write(out('assets', 'social', 'svg', 'linkedin-cover.svg'), svg); + write(out('assets', 'social', 'source', 'linkedin-cover.svg'), linkedinCoverSvg(spec, { editable: true })); + write(out('assets', 'social', 'png', 'linkedin-cover.png'), png(svg, linkedinCover.width)); + write(out('assets', 'social', 'png', 'linkedin-cover-2x.png'), png(svg, linkedinCover.width * 2)); +} + // ---------- README banners ---------- // A short strip for the top of each template's README and NuGet page. Dark, so it reads on light and dark pages alike. diff --git a/scripts/linkedin.mjs b/scripts/linkedin.mjs new file mode 100644 index 0000000..5a2c401 --- /dev/null +++ b/scripts/linkedin.mjs @@ -0,0 +1,29 @@ +// The LinkedIn company page cover. LinkedIn shows it at 1128 x 191 and puts the page logo over +// the bottom-left corner, so the text starts to the right of the logo and the mark stays clear +// of the edges the mobile app trims. +import { neutrals, scales, org } from './brand.mjs'; +import { markBody } from './logo.mjs'; +import { outline, live } from './text.mjs'; + +const W = 1128; +const H = 191; +const r = (v) => Number(v.toFixed(2)); +const layer = (label, inner) => `${inner}`; + +// spec: { kicker, title, tagline, logo: { fill, core } } +export function linkedinCoverSvg(spec, { editable = false } = {}) { + const text = editable ? live : outline; + const left = 300; // the page logo covers roughly x 34 to 262 from y 70 down + const D = 150; + const logo = `${markBody(spec.logo)}`; + const body = [ + layer('Background', ``), + layer('Logo', logo), + layer('Kicker', text({ text: spec.kicker.toUpperCase(), role: 'mono', weight: 600, size: 13, tracking: 0.14, x: left, y: 50, fill: scales.slate[300] })), + layer('Title', text({ text: spec.title, role: 'display', weight: 800, size: 46, tracking: -0.03, x: left - 2, y: 100, fill: neutrals.paper })), + layer('Tagline', text({ text: spec.tagline, role: 'body', weight: 400, size: 19, x: left, y: 134, fill: scales.slate[300] })), + ].join(''); + return `${body}\n`; +} + +export const linkedinCover = { width: W, height: H };