Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 0 additions & 12 deletions .eslintrc.json

This file was deleted.

17 changes: 8 additions & 9 deletions app/[lng]/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,22 +5,20 @@ import { cn } from '@/lib/utils'
import { SpeedInsights } from '@vercel/speed-insights/next'
import { dir } from 'i18next'
import type { Metadata } from 'next'
import { Inter } from 'next/font/google'
import Script from 'next/script'
import '../globals.css'
import { languages } from '../i18n/settings'

const inter = Inter({ subsets: ['latin'] })

export async function generateStaticParams() {
return languages.map((lng) => ({ lng }))
}

export async function generateMetadata({
params: { lng },
params,
}: {
params: { lng: string }
params: Promise<{ lng: string }>
}): Promise<Metadata> {
const { lng } = await params
const title = {
en: 'Dev For Good - Developer collective for positive impact',
fr: 'Dev For Good - Collectif de développeurs à impact positif',
Expand Down Expand Up @@ -88,13 +86,14 @@ export async function generateMetadata({
}
}

export default function RootLayout({
export default async function RootLayout({
children,
params: { lng },
params,
}: Readonly<{
children: React.ReactNode
params: { lng: string }
params: Promise<{ lng: string }>
}>) {
const { lng } = await params
const structuredData = {
'@context': 'https://schema.org',
'@type': 'Organization',
Expand Down Expand Up @@ -146,7 +145,7 @@ export default function RootLayout({
href={`${process.env.NEXT_PUBLIC_URL}/site.webmanifest`}
/>
</head>
<body className={cn('min-h-screen bg-background', inter.className)}>
<body className={cn('min-h-screen bg-background')}>
<ThemeProvider
attribute="class"
defaultTheme="dark"
Expand Down
3 changes: 2 additions & 1 deletion app/[lng]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ export async function generateStaticParams() {
return languages.map((lng) => ({ lng }))
}

export default function Home({ params: { lng } }: { params: { lng: string } }) {
export default async function Home({ params }: { params: Promise<{ lng: string }> }) {
const { lng } = await params
return (
<>
<HeroSection lng={lng} />
Expand Down
2 changes: 2 additions & 0 deletions app/globals.css
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
@import '@fontsource-variable/inter';
@tailwind base;
@tailwind components;
@tailwind utilities;

html {
scroll-behavior: smooth;
font-family: 'Inter Variable', sans-serif;
}

/* *=========== Theme =========== */
Expand Down
2 changes: 1 addition & 1 deletion components/layout/sections/project-details.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import { Tabs, TabsContent, TabsList, TabsTrigger } from '@/components/ui/tabs'
import { Project } from '@/utils/projects-utils'
import { Users } from 'lucide-react'
import Image, { StaticImageData } from 'next/image'
import placeholderImage from '/public/projects/placeholder.jpg'
import placeholderImage from '@/public/projects/placeholder.jpg'
import { TechList } from './tech-list'

export default function ProjectDetails({
Expand Down
2 changes: 1 addition & 1 deletion components/layout/sections/projects.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import { useState } from 'react'
import ProjectDetails from './project-details'
import { SectionDivider } from './section-divider'
import { TechList } from './tech-list'
import placeholderImage from '/public/projects/placeholder.jpg'
import placeholderImage from '@/public/projects/placeholder.jpg'

export const ProjectSection = ({ lng }: { lng: string }) => {
const { t } = useTranslation(lng)
Expand Down
6 changes: 6 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import nextConfig from "eslint-config-next/core-web-vitals";
import prettierConfig from "eslint-config-prettier";

const config = [...nextConfig, prettierConfig];

export default config;
Loading