Skip to content

Commit

Permalink
Move fonts to public
Browse files Browse the repository at this point in the history
  • Loading branch information
joao-vasconcelos committed Apr 3, 2024
1 parent e296985 commit 7d32c63
Show file tree
Hide file tree
Showing 19 changed files with 30 additions and 30 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ export default async function Image({ params }) {
// A. Setup fonts

const customFonts = [
{ name: 'Inter', style: 'normal', weight: 500, data: fs.readFileSync(`${process.cwd()}/assets/fonts/Inter-Medium.ttf`).buffer },
{ name: 'Inter', style: 'normal', weight: 600, data: fs.readFileSync(`${process.cwd()}/assets/fonts/Inter-SemiBold.ttf`).buffer },
{ name: 'Inter', style: 'normal', weight: 700, data: fs.readFileSync(`${process.cwd()}/assets/fonts/Inter-Bold.ttf`).buffer },
{ name: 'Inter', style: 'normal', weight: 500, data: fs.readFileSync(`${process.cwd()}/public/fonts/Inter-Medium.ttf`).buffer },
{ name: 'Inter', style: 'normal', weight: 600, data: fs.readFileSync(`${process.cwd()}/public/fonts/Inter-SemiBold.ttf`).buffer },
{ name: 'Inter', style: 'normal', weight: 700, data: fs.readFileSync(`${process.cwd()}/public/fonts/Inter-Bold.ttf`).buffer },
];

//
Expand Down
6 changes: 3 additions & 3 deletions nextjs/app/[locale]/(frontend)/encm/opengraph-image.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ export default async function Image({ params }) {
// A. Setup fonts

const customFonts = [
{ name: 'Inter', style: 'normal', weight: 500, data: fs.readFileSync(`${process.cwd()}/assets/fonts/Inter-Medium.ttf`).buffer },
{ name: 'Inter', style: 'normal', weight: 600, data: fs.readFileSync(`${process.cwd()}/assets/fonts/Inter-SemiBold.ttf`).buffer },
{ name: 'Inter', style: 'normal', weight: 700, data: fs.readFileSync(`${process.cwd()}/assets/fonts/Inter-Bold.ttf`).buffer },
{ name: 'Inter', style: 'normal', weight: 500, data: fs.readFileSync(`${process.cwd()}/public/fonts/Inter-Medium.ttf`).buffer },
{ name: 'Inter', style: 'normal', weight: 600, data: fs.readFileSync(`${process.cwd()}/public/fonts/Inter-SemiBold.ttf`).buffer },
{ name: 'Inter', style: 'normal', weight: 700, data: fs.readFileSync(`${process.cwd()}/public/fonts/Inter-Bold.ttf`).buffer },
];

//
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ export default async function Image({ params }) {
// A. Setup fonts

const customFonts = [
{ name: 'Inter', style: 'normal', weight: 500, data: fs.readFileSync(`${process.cwd()}/assets/fonts/Inter-Medium.ttf`).buffer },
{ name: 'Inter', style: 'normal', weight: 600, data: fs.readFileSync(`${process.cwd()}/assets/fonts/Inter-SemiBold.ttf`).buffer },
{ name: 'Inter', style: 'normal', weight: 700, data: fs.readFileSync(`${process.cwd()}/assets/fonts/Inter-Bold.ttf`).buffer },
{ name: 'Inter', style: 'normal', weight: 500, data: fs.readFileSync(`${process.cwd()}/public/fonts/Inter-Medium.ttf`).buffer },
{ name: 'Inter', style: 'normal', weight: 600, data: fs.readFileSync(`${process.cwd()}/public/fonts/Inter-SemiBold.ttf`).buffer },
{ name: 'Inter', style: 'normal', weight: 700, data: fs.readFileSync(`${process.cwd()}/public/fonts/Inter-Bold.ttf`).buffer },
];

//
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ export default async function Image({ params }) {
// A. Setup fonts

const customFonts = [
{ name: 'Inter', style: 'normal', weight: 500, data: fs.readFileSync(`${process.cwd()}/assets/fonts/Inter-Medium.ttf`).buffer },
{ name: 'Inter', style: 'normal', weight: 600, data: fs.readFileSync(`${process.cwd()}/assets/fonts/Inter-SemiBold.ttf`).buffer },
{ name: 'Inter', style: 'normal', weight: 700, data: fs.readFileSync(`${process.cwd()}/assets/fonts/Inter-Bold.ttf`).buffer },
{ name: 'Inter', style: 'normal', weight: 500, data: fs.readFileSync(`${process.cwd()}/public/fonts/Inter-Medium.ttf`).buffer },
{ name: 'Inter', style: 'normal', weight: 600, data: fs.readFileSync(`${process.cwd()}/public/fonts/Inter-SemiBold.ttf`).buffer },
{ name: 'Inter', style: 'normal', weight: 700, data: fs.readFileSync(`${process.cwd()}/public/fonts/Inter-Bold.ttf`).buffer },
];

//
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ export default async function Image() {
// A. Setup fonts

const customFonts = [
{ name: 'Inter', style: 'normal', weight: 500, data: fs.readFileSync(`${process.cwd()}/assets/fonts/Inter-Medium.ttf`).buffer },
{ name: 'Inter', style: 'normal', weight: 600, data: fs.readFileSync(`${process.cwd()}/assets/fonts/Inter-SemiBold.ttf`).buffer },
{ name: 'Inter', style: 'normal', weight: 700, data: fs.readFileSync(`${process.cwd()}/assets/fonts/Inter-Bold.ttf`).buffer },
{ name: 'Inter', style: 'normal', weight: 500, data: fs.readFileSync(`${process.cwd()}/public/fonts/Inter-Medium.ttf`).buffer },
{ name: 'Inter', style: 'normal', weight: 600, data: fs.readFileSync(`${process.cwd()}/public/fonts/Inter-SemiBold.ttf`).buffer },
{ name: 'Inter', style: 'normal', weight: 700, data: fs.readFileSync(`${process.cwd()}/public/fonts/Inter-Bold.ttf`).buffer },
];

//
Expand Down
6 changes: 3 additions & 3 deletions nextjs/app/[locale]/(frontend)/planner/opengraph-image.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ export default async function Image({ params }) {
// A. Setup fonts

const customFonts = [
{ name: 'Inter', style: 'normal', weight: 500, data: fs.readFileSync(`${process.cwd()}/assets/fonts/Inter-Medium.ttf`).buffer },
{ name: 'Inter', style: 'normal', weight: 600, data: fs.readFileSync(`${process.cwd()}/assets/fonts/Inter-SemiBold.ttf`).buffer },
{ name: 'Inter', style: 'normal', weight: 700, data: fs.readFileSync(`${process.cwd()}/assets/fonts/Inter-Bold.ttf`).buffer },
{ name: 'Inter', style: 'normal', weight: 500, data: fs.readFileSync(`${process.cwd()}/public/fonts/Inter-Medium.ttf`).buffer },
{ name: 'Inter', style: 'normal', weight: 600, data: fs.readFileSync(`${process.cwd()}/public/fonts/Inter-SemiBold.ttf`).buffer },
{ name: 'Inter', style: 'normal', weight: 700, data: fs.readFileSync(`${process.cwd()}/public/fonts/Inter-Bold.ttf`).buffer },
];

//
Expand Down
6 changes: 3 additions & 3 deletions nextjs/app/[locale]/(frontend)/profile/opengraph-image.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ export default async function Image({ params }) {
// A. Setup fonts

const customFonts = [
{ name: 'Inter', style: 'normal', weight: 500, data: fs.readFileSync(`${process.cwd()}/assets/fonts/Inter-Medium.ttf`).buffer },
{ name: 'Inter', style: 'normal', weight: 600, data: fs.readFileSync(`${process.cwd()}/assets/fonts/Inter-SemiBold.ttf`).buffer },
{ name: 'Inter', style: 'normal', weight: 700, data: fs.readFileSync(`${process.cwd()}/assets/fonts/Inter-Bold.ttf`).buffer },
{ name: 'Inter', style: 'normal', weight: 500, data: fs.readFileSync(`${process.cwd()}/public/fonts/Inter-Medium.ttf`).buffer },
{ name: 'Inter', style: 'normal', weight: 600, data: fs.readFileSync(`${process.cwd()}/public/fonts/Inter-SemiBold.ttf`).buffer },
{ name: 'Inter', style: 'normal', weight: 700, data: fs.readFileSync(`${process.cwd()}/public/fonts/Inter-Bold.ttf`).buffer },
];

//
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ export default async function Image({ params }) {
// A. Setup fonts

const customFonts = [
{ name: 'Inter', style: 'normal', weight: 500, data: fs.readFileSync(`${process.cwd()}/assets/fonts/Inter-Medium.ttf`).buffer },
{ name: 'Inter', style: 'normal', weight: 600, data: fs.readFileSync(`${process.cwd()}/assets/fonts/Inter-SemiBold.ttf`).buffer },
{ name: 'Inter', style: 'normal', weight: 700, data: fs.readFileSync(`${process.cwd()}/assets/fonts/Inter-Bold.ttf`).buffer },
{ name: 'Inter', style: 'normal', weight: 500, data: fs.readFileSync(`${process.cwd()}/public/fonts/Inter-Medium.ttf`).buffer },
{ name: 'Inter', style: 'normal', weight: 600, data: fs.readFileSync(`${process.cwd()}/public/fonts/Inter-SemiBold.ttf`).buffer },
{ name: 'Inter', style: 'normal', weight: 700, data: fs.readFileSync(`${process.cwd()}/public/fonts/Inter-Bold.ttf`).buffer },
];

//
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ export default async function Image({ params }) {
// A. Setup fonts

const customFonts = [
{ name: 'Inter', style: 'normal', weight: 500, data: fs.readFileSync(`${process.cwd()}/assets/fonts/Inter-Medium.ttf`).buffer },
{ name: 'Inter', style: 'normal', weight: 600, data: fs.readFileSync(`${process.cwd()}/assets/fonts/Inter-SemiBold.ttf`).buffer },
{ name: 'Inter', style: 'normal', weight: 700, data: fs.readFileSync(`${process.cwd()}/assets/fonts/Inter-Bold.ttf`).buffer },
{ name: 'Inter', style: 'normal', weight: 500, data: fs.readFileSync(`${process.cwd()}/public/fonts/Inter-Medium.ttf`).buffer },
{ name: 'Inter', style: 'normal', weight: 600, data: fs.readFileSync(`${process.cwd()}/public/fonts/Inter-SemiBold.ttf`).buffer },
{ name: 'Inter', style: 'normal', weight: 700, data: fs.readFileSync(`${process.cwd()}/public/fonts/Inter-Bold.ttf`).buffer },
];

//
Expand Down
6 changes: 3 additions & 3 deletions nextjs/app/[locale]/opengraph-image.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ export default async function Image({ params }) {
// A. Setup fonts

const customFonts = [
{ name: 'Inter', style: 'normal', weight: 500, data: fs.readFileSync(`${process.cwd()}/assets/fonts/Inter-Medium.ttf`).buffer },
{ name: 'Inter', style: 'normal', weight: 600, data: fs.readFileSync(`${process.cwd()}/assets/fonts/Inter-SemiBold.ttf`).buffer },
{ name: 'Inter', style: 'normal', weight: 700, data: fs.readFileSync(`${process.cwd()}/assets/fonts/Inter-Bold.ttf`).buffer },
{ name: 'Inter', style: 'normal', weight: 500, data: fs.readFileSync(`${process.cwd()}/public/fonts/Inter-Medium.ttf`).buffer },
{ name: 'Inter', style: 'normal', weight: 600, data: fs.readFileSync(`${process.cwd()}/public/fonts/Inter-SemiBold.ttf`).buffer },
{ name: 'Inter', style: 'normal', weight: 700, data: fs.readFileSync(`${process.cwd()}/public/fonts/Inter-Bold.ttf`).buffer },
];

//
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 7d32c63

Please sign in to comment.