feat: add doc page
CI / CI - Validation Technique (push) Failing after 37s

This commit is contained in:
2026-04-20 22:57:57 +02:00
parent af3fada37a
commit 45b64991eb
5 changed files with 36 additions and 11 deletions
+1 -1
View File
@@ -21,7 +21,7 @@
"nav": {
"label1": "Home",
"label2": "Example",
"label3": "Home 2"
"label3": "Doc"
},
"home": {
"name": "Iceberg Server",
+1 -1
View File
@@ -21,7 +21,7 @@
"nav": {
"label1": "Accueil",
"label2": "Exemple",
"label3": "Accueil 2"
"label3": "Doc"
},
"home": {
"name": "Iceberg Server",
+33
View File
@@ -0,0 +1,33 @@
// 'use client'
// import { useEffect, useState } from 'react'
// export default function AboutPage() {
// const [data, setData] = useState<any>(null)
// const [loading, setLoading] = useState(true)
// useEffect(() => {
// fetch((process.env.NEXT_PUBLIC_API_URL as string) + "/docs.json")
// .then((res) => res.json())
// .then((result) => {
// setData(result)
// setLoading(false)
// })
// .catch((err) => {
// console.error(err)
// setLoading(false)
// })
// }, [])
// return (
// <div className="p-6">
// <h1>About</h1>
// {loading && <p>Loading...</p>}
// {!loading && data && (
// <pre>{JSON.stringify(data, null, 2)}</pre>
// )}
// </div>
// )
// }
-8
View File
@@ -1,8 +0,0 @@
export default function AboutPage() {
return (
<div className="p-6">
<h1>About</h1>
<p>This is an example</p>
</div>
);
}
+1 -1
View File
@@ -31,7 +31,7 @@ export default function Navbar() {
const links = [
{ to: '/', label: t('label1') },
{ to: '/example', label: t('label2') },
{ to: '/3', label: t('label3') },
{ to: '/doc', label: t('label3') },
];
useEffect(() => {