diff --git a/site/components/Community.tsx b/site/components/Community.tsx new file mode 100644 index 00000000..65e8b93a --- /dev/null +++ b/site/components/Community.tsx @@ -0,0 +1,67 @@ +import Container from './Container'; +import DiscordIcon from './icons/DiscordIcon'; +import EmailIcon from './icons/EmailIcon'; +import GitHubIcon from './icons/GitHubIcon'; + +import { siteConfig } from '@/config/siteConfig'; + +const Stat = ({ title, value, ...props }) => { + return ( +
+ {value} +

{title}

+
+ ); +}; + +const IconButton = ({ Icon, text, href, ...props }) => { + return ( +
+ + + {text} + +
+ ); +}; + +export default function Community() { + return ( + +

+ Community +

+

+ We are growing. Get in touch or become a contributor! +

+
+ + +
+
+ + + +
+
+ ); +} diff --git a/site/components/Container.tsx b/site/components/Container.tsx new file mode 100644 index 00000000..610d9992 --- /dev/null +++ b/site/components/Container.tsx @@ -0,0 +1,7 @@ +export default function Container({ children }) { + return ( +
+ {children} +
+ ); +} diff --git a/site/components/Features.tsx b/site/components/Features.tsx index 76032116..274a37bb 100644 --- a/site/components/Features.tsx +++ b/site/components/Features.tsx @@ -1,3 +1,5 @@ +import Container from './Container'; + const features: { title: string; description: string; icon: string }[] = [ { title: 'Unified sites', @@ -37,8 +39,10 @@ const features: { title: string; description: string; icon: string }[] = [ export default function Features() { return ( -
-

How Portal.JS works?

+ +

+ How Portal.JS works? +

Portal.JS is built in JavaScript and React on top of the popular Next.js framework, assuming a "decoupled" approach where the frontend is a @@ -66,6 +70,6 @@ export default function Features() {

))} - + ); } diff --git a/site/components/Gallery.tsx b/site/components/Gallery.tsx new file mode 100644 index 00000000..06224743 --- /dev/null +++ b/site/components/Gallery.tsx @@ -0,0 +1,53 @@ +import Container from './Container'; +import GalleryItem from './GalleryItem'; + +const items = [ + { + title: 'Open Data Northern Ireland', + href: 'https://www.opendatani.gov.uk/', + image: '/images/showcases/odni.png', + description: 'Government Open Data Portal', + }, + { + title: 'Birmingham City Observatory', + href: 'https://www.cityobservatory.birmingham.gov.uk/', + image: '/images/showcases/birmingham.png', + description: 'Government Open Data Portal', + }, + { + title: 'UAE Open Data', + href: 'https://opendata.fcsc.gov.ae/', + image: '/images/showcases/uae.png', + description: 'Government Open Data Portal', + }, + { + title: 'Brazil Open Data', + href: 'https://dados.gov.br/', + image: '/images/showcases/brazil.png', + description: 'Government Open Data Portal', + }, + { + title: 'Datahub Open Data', + href: 'https://opendata.datahub.io/', + image: '/images/showcases/datahub.png', + description: 'Demo Data Portal by DataHub', + }, +]; + +export default function Gallery() { + return ( + +

+ Gallery +

+

+ Discover what's being powered by Portal.JS +

+
+ {items.map((item) => { + return ; + })} +
+
+ ); +} diff --git a/site/components/GalleryItem.tsx b/site/components/GalleryItem.tsx new file mode 100644 index 00000000..53bf5f1e --- /dev/null +++ b/site/components/GalleryItem.tsx @@ -0,0 +1,24 @@ +export default function GalleryItem({ item }) { + return ( + +
+
+
+
+
+
+ {item.title} +

{item.description}

+
+
+
+
+ ); +} diff --git a/site/components/Hero.tsx b/site/components/Hero.tsx index 3932807d..48cf954a 100644 --- a/site/components/Hero.tsx +++ b/site/components/Hero.tsx @@ -32,7 +32,7 @@ export function Hero() { const el = useRef(null); return ( -
+
{/* Commented code on line 37, 39 and 113 will reenable the two columns hero */} {/*
*/} diff --git a/site/components/icons/DiscordIcon.tsx b/site/components/icons/DiscordIcon.tsx new file mode 100644 index 00000000..06f17174 --- /dev/null +++ b/site/components/icons/DiscordIcon.tsx @@ -0,0 +1,14 @@ +export default function DiscordIcon(props) { + return ( + + + + ); +} diff --git a/site/components/icons/EmailIcon.tsx b/site/components/icons/EmailIcon.tsx new file mode 100644 index 00000000..064540e4 --- /dev/null +++ b/site/components/icons/EmailIcon.tsx @@ -0,0 +1,14 @@ +export default function EmailIcon(props) { + return ( + + + + ); +} diff --git a/site/components/icons/GitHubIcon.tsx b/site/components/icons/GitHubIcon.tsx new file mode 100644 index 00000000..db2ffaa3 --- /dev/null +++ b/site/components/icons/GitHubIcon.tsx @@ -0,0 +1,7 @@ +export default function GitHubIcon(props) { + return ( + + ); +} diff --git a/site/content/config.js b/site/content/config.js index 47041b2c..9d83b156 100644 --- a/site/content/config.js +++ b/site/content/config.js @@ -19,7 +19,7 @@ const config = { { name: "Docs", href: "/docs" }, { name: "Components", href: "/docs/components" }, { name: "Learn", href: "/learn" }, - { name: "Gallery", href: "/gallery" }, + // { name: "Gallery", href: "/gallery" }, // { name: "Data Literate", href: "/data-literate" }, // { name: "DL Demo", href: "/data-literate/demo" }, // { name: "Excel Viewer", href: "/excel-viewer" }, diff --git a/site/pages/index.tsx b/site/pages/index.tsx index 7e88f60f..19e4740d 100644 --- a/site/pages/index.tsx +++ b/site/pages/index.tsx @@ -1,4 +1,6 @@ +import Community from '@/components/Community'; import Features from '@/components/Features'; +import Gallery from '@/components/Gallery'; import { Hero } from '@/components/Hero'; import { UnstyledLayout } from '@flowershow/core'; import Layout from '../components/Layout'; @@ -10,6 +12,8 @@ export default function Home() { + + diff --git a/site/public/images/showcases/birmingham.png b/site/public/images/showcases/birmingham.png new file mode 100644 index 00000000..7905bb36 Binary files /dev/null and b/site/public/images/showcases/birmingham.png differ diff --git a/site/public/images/showcases/brazil.png b/site/public/images/showcases/brazil.png new file mode 100644 index 00000000..4009b538 Binary files /dev/null and b/site/public/images/showcases/brazil.png differ diff --git a/site/public/images/showcases/datahub.png b/site/public/images/showcases/datahub.png new file mode 100644 index 00000000..c2f8e655 Binary files /dev/null and b/site/public/images/showcases/datahub.png differ diff --git a/site/public/images/showcases/odni.png b/site/public/images/showcases/odni.png new file mode 100644 index 00000000..70073135 Binary files /dev/null and b/site/public/images/showcases/odni.png differ diff --git a/site/public/images/showcases/uae.png b/site/public/images/showcases/uae.png new file mode 100644 index 00000000..ff30b39c Binary files /dev/null and b/site/public/images/showcases/uae.png differ