Skip to content

Commit eafd2d1

Browse files
committed
feat: replace paylaod icons with codezero icons
1 parent 5d604f2 commit eafd2d1

4 files changed

Lines changed: 35 additions & 0 deletions

File tree

src/app/(payload)/admin/importMap.js

Lines changed: 4 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/graphics/Icon.tsx

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
export function Icon() {
2+
return (
3+
<img
4+
alt=""
5+
aria-hidden="true"
6+
height={32}
7+
src="/favicons/android-chrome-512x512.png"
8+
style={{ display: "block", height: "32px", objectFit: "contain", objectPosition: "left center", width: "32px" }}
9+
width={32}
10+
/>
11+
)
12+
}

src/graphics/Logo.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
export function Logo() {
2+
return <img alt="CodeZero" height={45} src="/code0_text_logo_white.png" style={{ display: "block", height: "auto", maxWidth: "100%", width: "180px" }} width={180} />
3+
}

src/payload.config.ts

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,10 +45,26 @@ export default buildConfig({
4545
importMap: {
4646
baseDir: path.resolve(dirname),
4747
},
48+
components: {
49+
graphics: {
50+
Icon: "/graphics/Icon.tsx#Icon",
51+
Logo: "/graphics/Logo.tsx#Logo",
52+
},
53+
},
4854
livePreview: {
4955
url: "http://localhost:3000",
5056
collections: ["pages", "jobs", "actions", "team-members", "features", "blog"],
5157
},
58+
meta: {
59+
titleSuffix: "- CodeZero",
60+
icons: [
61+
{
62+
type: "image/ico",
63+
rel: "icon",
64+
url: "/favicons/favicon.ico",
65+
},
66+
],
67+
},
5268
},
5369
localization: {
5470
locales: ["en", "de"],

0 commit comments

Comments
 (0)