Skip to content

Commit f15499e

Browse files
author
Brijesh Bittu
committed
Bump next.js version and fix logo loading
1 parent 680d6e6 commit f15499e

File tree

5 files changed

+160
-13
lines changed

5 files changed

+160
-13
lines changed

docs/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
"estree-util-value-to-estree": "^3.3.2",
2121
"hast-util-to-string": "^3.0.1",
2222
"lucide-react": "^0.479.0",
23-
"next": "15.2.1",
23+
"next": "15.2.3",
2424
"react": "^19.0.0",
2525
"react-dom": "^19.0.0",
2626
"rehype-autolink-headings": "^7.1.0",
@@ -42,7 +42,7 @@
4242
"@types/react": "^19.0.8",
4343
"@types/react-dom": "^19.0.3",
4444
"eslint": "^9",
45-
"eslint-config-next": "15.1.6",
45+
"eslint-config-next": "15.2.3",
4646
"typescript": "^5"
4747
},
4848
"nx": {

docs/src/app/(public)/page.pigment.tsx

+5-2
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,8 @@ export const linkStyle = css(
4646
);
4747

4848
const logoStyle = css(({ theme }) => ({
49+
width: 17,
50+
height: 28,
4951
marginBottom: spacing(theme, 8),
5052
marginLeft: 1,
5153
}));
@@ -59,9 +61,10 @@ export default function HomePage() {
5961
<Image
6062
className={`${logoStyle}`}
6163
src="/static/logo.svg"
62-
width={18}
63-
height={30}
64+
width={17}
65+
height={28}
6466
alt={`${process.env.APP_NAME} logo`}
67+
loading="eager"
6568
/>
6669
<Heading>{process.env.APP_NAME}</Heading>
6770
<Caption>{description}</Caption>

docs/src/components/Header.pigment.ts

+5
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,11 @@ export const logoLink = css(
5656
`,
5757
);
5858

59+
export const logoStyle = css`
60+
width: 17px;
61+
height: 28px;
62+
`;
63+
5964
export const headerLink = css`
6065
display: flex;
6166
align-items: center;

docs/src/components/Header.tsx

+9-1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ import {
1212
HeaderLinkContainer,
1313
Inner,
1414
logoLink,
15+
logoStyle,
1516
MobileNavContainer,
1617
NavIcon,
1718
NpmPackage,
@@ -28,7 +29,14 @@ export function Header() {
2829
<Root>
2930
<Inner>
3031
<NextLink href="/" className={`${logoLink}`}>
31-
<Image alt={process.env.APP_NAME} src="/static/logo.svg" width={17} height={28} />
32+
<Image
33+
className={`${logoStyle}`}
34+
alt={process.env.APP_NAME}
35+
src="/static/logo.svg"
36+
width={17}
37+
height={28}
38+
loading="eager"
39+
/>
3240
</NextLink>
3341

3442
<HeaderLinkContainer>

pnpm-lock.yaml

+139-8
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)