-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
44bc5b5
commit 48c57ae
Showing
50 changed files
with
617 additions
and
556 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
import { ReactNode } from 'react' | ||
import { notFound } from 'next/navigation' | ||
import { NextIntlClientProvider } from 'next-intl' | ||
import {unstable_setRequestLocale} from 'next-intl/server'; | ||
import { Metadata } from 'next' | ||
import '../globals.css' | ||
|
||
type Props = { | ||
children: ReactNode | ||
params: { locale: string } | ||
} | ||
|
||
export const metadata: Metadata = { | ||
title: 'ARKA', | ||
description: 'Arka é uma consultoria especializada em gestão de coleções digitais atuando no Brasil e em projetos internacionais.', | ||
} | ||
|
||
//function to get the translations | ||
async function getMessages(locale: string) { | ||
try { | ||
return (await import(`../../messages/${locale}.json`)).default | ||
} catch (error) { | ||
notFound() | ||
} | ||
} | ||
|
||
//function to generate the routes for all the locales | ||
export async function generateStaticParams() { | ||
return ['en', 'pt'].map((locale) => ({ locale })) | ||
} | ||
|
||
export default async function RootLayout({ children, params: { locale } }: Props) { | ||
unstable_setRequestLocale(locale); | ||
const messages = await getMessages(locale) | ||
return ( | ||
<html lang={locale}> | ||
<body> | ||
<NextIntlClientProvider locale={locale} messages={messages}> | ||
{children} | ||
</NextIntlClientProvider> | ||
</body> | ||
</html> | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
// 'use client' | ||
import { useTranslations } from 'next-intl' | ||
import { unstable_setRequestLocale } from 'next-intl/server'; | ||
|
||
import Hero from '../../src/components/Hero' | ||
import About from '../../src/components/About' | ||
import Team from '../../src/components/Team' | ||
import Partners from '../../src/components/Partners' | ||
import Projects from '../../src/components/Projects' | ||
import MainContent from '../../src/components/MainContent' | ||
import Footer from "../../src/components/Footer" | ||
import Link from 'next/link' | ||
|
||
|
||
export default function HomePage({ params: { locale } }) { | ||
unstable_setRequestLocale(locale); | ||
return ( | ||
<> | ||
<Hero /> | ||
<MainContent> | ||
<About /> | ||
<Team /> | ||
<Partners /> | ||
<Projects /> | ||
</MainContent> | ||
<Footer> | ||
<Link href="mailto:[email protected]">[email protected]</Link> | ||
</Footer> | ||
</> | ||
); | ||
} |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import { ReactNode } from 'react'; | ||
|
||
|
||
type Props = { | ||
children: ReactNode; | ||
}; | ||
|
||
|
||
export default function RootLayout({ children }: Props) { | ||
return children; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
'use client' | ||
|
||
import { redirect } from 'next/navigation'; | ||
|
||
export default function RootPage() { | ||
redirect('/en'); | ||
} | ||
|
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
{ | ||
"HomePage": { | ||
"Hero": { | ||
"description": "We are a <nobreak><highlight>digital studio</highlight></nobreak> specialized in research and development for cultural heritage institutions and <nobreak>private collectors</nobreak>" | ||
}, | ||
"About": { | ||
"title": "About", | ||
"description": "We use AI and open standards to digitize, catalog, and share artworks and historical documents on the web", | ||
"infrastructure": { | ||
"title": "IIIF infrastructure", | ||
"description": "Implementation of the International Image Interoperability Framework" | ||
}, | ||
"computer-vision": { | ||
"title":"Computer Vision", | ||
"description": "Object detection, content classification, manuscript transcription" | ||
} | ||
}, | ||
"Team": { | ||
"Anita": { | ||
"name": "Anita Lucchesi", | ||
"role": "Business" | ||
}, | ||
"Bruno": { | ||
"name": "Bruno Buccalon", | ||
"role": "Design" | ||
}, | ||
"Martim": { | ||
"name": "Martim Passos", | ||
"role": "Technology" | ||
}, | ||
"Yuri": { | ||
"name": "Yuri Tavares", | ||
"role": "Technology" | ||
} | ||
}, | ||
"Partners": { | ||
"title": "Partners" | ||
}, | ||
"Projects": { | ||
"title": "Projects", | ||
"tropiiify": { | ||
"title": "tropiiify", | ||
"description": "Tropy plugin for exporting IIIF collections" | ||
}, | ||
"imaginerio": { | ||
"title": "imagineRio", | ||
"description": "Historical mapping of Rio de Janeiro" | ||
} | ||
} | ||
}, | ||
"LocaleSwitcher": { | ||
"label": "Change language", | ||
"locale": "{locale, select, pt {Português} en {English} other {Unknown}}" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
{ | ||
"HomePage": { | ||
"Hero": { | ||
"description": "Somos um <nobreak><highlight>estúdio digital</highlight></nobreak> especializado em pesquisa e desenvolvimento para instituições de memória e <nobreak>coleções particulares</nobreak>" | ||
}, | ||
"About": { | ||
"title": "Sobre", | ||
"description": "Trabalhamos com inteligência artificial e padrões abertos na digitalização, catalogação e difusão de obras de arte e documentos históricos na web", | ||
"infrastructure": { | ||
"title": "Infraestrutura IIIF", | ||
"description": "Implementação do Protocolo Internacional para Interoperabilidade de Imagens" | ||
}, | ||
"computer-vision": { | ||
"title":"Visão Computacional", | ||
"description": "Detecção de objetos, classificação de conteúdo, transcrição de manuscritos" | ||
} | ||
}, | ||
"Team": { | ||
"Anita": { | ||
"name": "Anita Lucchesi", | ||
"role": "Negócios" | ||
}, | ||
"Bruno": { | ||
"name": "Bruno Buccalon", | ||
"role": "Design" | ||
}, | ||
"Martim": { | ||
"name": "Martim Passos", | ||
"role": "Tecnologia" | ||
}, | ||
"Yuri": { | ||
"name": "Yuri Tavares", | ||
"role": "Tecnologia" | ||
} | ||
}, | ||
"Partners": { | ||
"title": "Parceiros" | ||
}, | ||
"Projects": { | ||
"title": "Projetos", | ||
"tropiiify": { | ||
"title": "tropiiify", | ||
"description": "Plugin para exportar coleções IIIF através do gerenciador de imagens Tropy" | ||
}, | ||
"imaginerio": { | ||
"title": "imagineRio", | ||
"description": "Plataforma de mapeamento histórico da cidade do Rio de Janeiro" | ||
} | ||
} | ||
}, | ||
"LocaleSwitcher": { | ||
"label": "Mudar idioma", | ||
"locale": "{locale, select, pt {Português} en {English} other {Unknown}}" | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
/// <reference types="next" /> | ||
/// <reference types="next/image-types/global" /> | ||
/// <reference types="next/navigation-types/compat/navigation" /> | ||
|
||
// NOTE: This file should not be edited | ||
// see https://nextjs.org/docs/basic-features/typescript for more information. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
const createNextIntlPlugin = require('next-intl/plugin'); | ||
const withNextIntl = createNextIntlPlugin(); | ||
|
||
module.exports = withNextIntl({ | ||
output: 'export', | ||
images: { | ||
unoptimized: true, | ||
}, | ||
}) | ||
|
||
|
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.