Skip to content

Commit 1ea47e4

Browse files
committed
refactor: centralize SEO image dimensions and iframe width in site config
1 parent a8a07b9 commit 1ea47e4

File tree

10 files changed

+19
-17
lines changed

10 files changed

+19
-17
lines changed

src/app/about-us/page.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ export const metadata: Metadata = {
1414
images: [
1515
{
1616
url: siteConfig.seoImage,
17-
width: 882,
18-
height: 802,
17+
width: siteConfig.seoImageWidth,
18+
height: siteConfig.seoImageHeight,
1919
alt: title,
2020
},
2121
],

src/app/blog/page.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ export const metadata: Metadata = {
1515
images: [
1616
{
1717
url: siteConfig.seoImage,
18-
width: 882,
19-
height: 802,
18+
width: siteConfig.seoImageWidth,
19+
height: siteConfig.seoImageHeight,
2020
alt: title,
2121
},
2222
],

src/app/join-us/page.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ export const metadata: Metadata = {
1414
images: [
1515
{
1616
url: siteConfig.seoImage,
17-
width: 882,
18-
height: 802,
17+
width: siteConfig.seoImageWidth,
18+
height: siteConfig.seoImageHeight,
1919
alt: title,
2020
},
2121
],

src/app/layout.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@ export const metadata: Metadata = {
3131
images: [
3232
{
3333
url: siteConfig.seoImage,
34-
width: 882,
35-
height: 802,
34+
width: siteConfig.seoImageWidth,
35+
height: siteConfig.seoImageHeight,
3636
alt: title,
3737
},
3838
],

src/app/our-work/page.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ export const metadata: Metadata = {
1515
images: [
1616
{
1717
url: siteConfig.seoImage,
18-
width: 882,
19-
height: 802,
18+
width: siteConfig.seoImageWidth,
19+
height: siteConfig.seoImageHeight,
2020
alt: title,
2121
},
2222
],

src/app/page.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ export const metadata: Metadata = {
1818
images: [
1919
{
2020
url: siteConfig.seoImage,
21-
width: 882,
22-
height: 802,
21+
width: siteConfig.seoImageWidth,
22+
height: siteConfig.seoImageHeight,
2323
alt: title,
2424
},
2525
],

src/app/resources/page.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ export const metadata: Metadata = {
1515
images: [
1616
{
1717
url: siteConfig.seoImage,
18-
width: 882,
19-
height: 802,
18+
width: siteConfig.seoImageWidth,
19+
height: siteConfig.seoImageHeight,
2020
alt: title,
2121
},
2222
],

src/app/upcoming-event/page.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ export const metadata: Metadata = {
1414
images: [
1515
{
1616
url: siteConfig.seoImage,
17-
width: 882,
18-
height: 802,
17+
width: siteConfig.seoImageWidth,
18+
height: siteConfig.seoImageHeight,
1919
alt: title,
2020
},
2121
],

src/components/sections/resource-iframe.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { Button } from "@/components/ui/button";
66
import { cn, noReturnDebounce } from "@/lib/utils";
77

88
const IFRAME_DEFAULTS = {
9-
WIDTH: 1338,
9+
WIDTH: 1440,
1010
HEIGHT: 600,
1111
} as const;
1212

src/lib/config.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ export const siteConfig = {
2626
donate: "mailto:alphahku1213@gmail.com?subject=Donation Inquiry",
2727
parentOrg: "https://alphaeducation.org",
2828
seoImage: "/ALPHA-HKU.png",
29+
seoImageWidth: 882,
30+
seoImageHeight: 802,
2931
mainNav,
3032
utilityNav,
3133
staticRoutes: [

0 commit comments

Comments
 (0)