[site][lg] - integrate demenech changes into monorepo

This commit is contained in:
Luccas Mateus de Medeiros Gomes
2023-04-11 08:19:58 -03:00
parent fda6c4b827
commit 97c1dc0d59
32 changed files with 8815 additions and 319 deletions

View File

@@ -0,0 +1,51 @@
const config = {
title:
"Portal.JS - Rapidly build rich data portals using a modern frontend framework",
description:
"Portal.JS is a framework for rapidly building rich data portal frontends using a modern frontend approach. portal.js can be used to present a single dataset or build a full-scale data catalog/portal.",
theme: {
default: "",
},
author: "Datopian",
authorLogo: "/datopian-logo.png",
authorUrl: "https://datopian.com/",
navLinks: [
{ name: "Docs", href: "/docs" },
{ name: "Components", href: "/docs/components" },
{ name: "Learn", href: "/learn" },
{ name: "Gallery", href: "/gallery" },
{ name: "Data Literate", href: "/data-literate" },
{ name: "DL Demo", href: "/data-literate/demo" },
{ name: "Excel Viewer", href: "/excel-viewer" },
{ name: "GitHub", href: "https://github.com/datopian/portal.js" },
],
footerLinks: [],
nextSeo: {
openGraph: {
type: "website",
title:
"Portal.JS - Rapidly build rich data portals using a modern frontend framework",
description:
"Portal.JS is a framework for rapidly building rich data portal frontends using a modern frontend approach. portal.js can be used to present a single dataset or build a full-scale data catalog/portal.",
locale: "en_US",
images: [
{
url: "https://datahub.io/static/img/opendata/product.png", // TODO
alt: "Portal.JS - Rapidly build rich data portals using a modern frontend framework",
width: 1200,
height: 627,
type: "image/jpg",
},
],
},
twitter: {
handle: "@datopian",
site: "https://datopian.com/",
cardType: "summary_large_image",
},
},
// tableOfContents: true,
// analytics: "xxxxxx",
// editLinkShow: true,
};
export default config;

View File

@@ -42,7 +42,7 @@ export default function Home(){
Nav component accepts two properties:
* **logo**: A string to an image path. Can be relative or absolute.
* **navMenu**: An array of objects with title and path. E.g : [\{ title: 'Blog', path: '/blog' },\{ title: 'Search', path: '/search' }]
* **navMenu**: An array of objects with title and path. E.g : {"[{ title: 'Blog', path: '/blog' },{ title: 'Search', path: '/search' }]"}
#### [Recent Component](https://github.com/datopian/portal.js/blob/main/src/components/ui/Recent.js)
@@ -346,8 +346,8 @@ export default function Home() {
#### Table Component Prop Types
Table component accepts two properties:
* **data**: An array of column names with properties: e.g [\{field: "col1", headerName: "col1"}, \{field: "col2", headerName: "col2"}]
* **columns**: An array of data objects e.g. [ \{col1: 1, col2: 2}, \{col1: 5, col2: 7} ]
* **data**: An array of column names with properties: e.g {'[{field: "col1", headerName: "col1"}, {field: "col2", headerName: "col2"}]'}
* **columns**: An array of data objects e.g. {'[ {col1: 1, col2: 2}, {col1: 5, col2: 7} ]'}
### [Search Components](https://github.com/datopian/portal.js/tree/main/src/components/search)

View File

@@ -55,7 +55,7 @@ These are the default routes set up in the "starter" app.
You can create new routes in `/pages` directory where each file is associated with a route based on its name. We suggest using [Next.JS docs][] for more detailed information.
[Next.JS docs]: https://nextjs.org/docs/basic-features/pages
[next.js docs]: https://nextjs.org/docs/basic-features/pages
### Data fetching
@@ -205,10 +205,8 @@ export default function Org({ variables }) {
}
className="h-5 w-5 mr-2 inline-block"
/>
<Link href={`/@${organization.name}`}>
<a className="font-semibold text-primary underline">
<Link href={`/@${organization.name}`} className="font-semibold text-primary underline">
{organization.title || organization.name}
</a>
</Link>
</>
) : (
@@ -217,4 +215,4 @@ export default function Org({ variables }) {
</>
);
}
```
```