diff --git a/components/navigation/communityItems.js b/components/navigation/communityItems.js index e03aacf22510..1d7bc8223e98 100644 --- a/components/navigation/communityItems.js +++ b/components/navigation/communityItems.js @@ -12,7 +12,7 @@ export default [ icon: IconOverview, title: 'Overview', href: '/community', - description: 'Connect, share and learn', + description: 'Connect, share, and learn.', }, { icon: IconTools, diff --git a/config/orbitData.json b/config/orbitData.json new file mode 100644 index 000000000000..4719b6f1de28 --- /dev/null +++ b/config/orbitData.json @@ -0,0 +1,109 @@ +[ +[ + { + "id": "item", + "img": "/img/homepage/reaction.png", + "alt": "reaction" + }, + { + "id": "item", + "img": "/img/homepage/ale.jpeg", + "alt": "ale" + }, + { + "id": "item", + "img": "/img/homepage/idea.png", + "alt": "idea" + }, + { + "id": "item", + "img": "/img/homepage/lukasz-homepage-slack.jpg", + "alt": "lukasz" + }, + { + "id": "item", + "img": "/img/homepage/comment.png", + "alt": "comment" + }, + { + "id": "item", + "img": "/img/homepage/fran.png", + "alt": "fran" + } +], +[ + { + "id": "item-2", + "img": "/img/homepage/jonas.jpeg", + "alt": "jonas" + }, + { + "id": "item-2", + "img": "/img/homepage/slack.png", + "alt": "slack" + }, + { + "id": "item-2", + "img": "/img/homepage/missy.jpeg", + "alt": "missy" + }, + { + "id": "item-2", + "img": "/img/homepage/check.png", + "alt": "check" + }, + { + "id": "item-2", + "img": "/img/homepage/eve-and-chan.png", + "alt": "eve-chan" + }, + { + "id": "item-2", + "img": "/img/homepage/maciej.png", + "alt": "maciej" + }, + { + "id": "item-2", + "img": "/img/homepage/git.png", + "alt": "git" + } +], +[ + { + "id": "item-3", + "img": "/img/homepage/ace.jpeg", + "alt": "ace" + }, + { + "id": "item-3", + "img": "/img/homepage/star.png", + "alt": "star" + }, + { + "id": "item-3", + "img": "/img/homepage/barbano.jpeg", + "alt": "barbano" + }, + { + "id": "item-3", + "img": "/img/homepage/dale.jpeg", + "alt": "dale" + }, + { + "id": "item-3", + "img": "/img/homepage/kuda.jpeg", + "alt": "kuda" + }, + { + "id": "item-3", + "img": "/img/homepage/yash.jpeg", + "alt": "yash" + }, + { + "id": "item-3", + "img": "/img/homepage/sergio.jpeg", + "alt": "sergio" + } +] + +] \ No newline at end of file diff --git a/pages/community/index.js b/pages/community/index.js index 43dcd5ab721d..25a39fc48385 100644 --- a/pages/community/index.js +++ b/pages/community/index.js @@ -2,129 +2,16 @@ import React from 'react'; import Heading from '../../components/typography/Heading'; import Button from '../../components/buttons/Button'; -import CommunityLayout from '../../components/layout/CommunityLayout'; import IconRocket from '../../components/icons/Rocket'; import NewsletterSubscribe from '../../components/NewsletterSubscribe'; - -const orbit1 = [ - { - id: "item", - img: "/img/homepage/reaction.png", - alt: "reaction", - }, - { - id: "item", - img: "/img/homepage/ale.jpeg", - alt: "ale", - }, - { - id: "item", - img: "/img/homepage/idea.png", - alt: "idea", - }, - { - id: "item", - img: "/img/homepage/lukasz-homepage-slack.jpg", - alt: "lukasz", - }, - { - id: "item", - img: "/img/homepage/comment.png", - alt: "comment", - }, - { - id: "item", - img: "/img/homepage/fran.png", - alt: "fran", - }, -]; - -const orbit2 = [ - { - id: "item-2", - img: "/img/homepage/jonas.jpeg", - alt: "jonas", - }, - { - id: "item-2", - img: "/img/homepage/slack.png", - alt: "slack", - }, - { - id: "item-2", - img: "/img/homepage/missy.jpeg", - alt: "missy", - }, - { - id: "item-2", - img: "/img/homepage/check.png", - alt: "check", - }, - { - id: "item-2", - img: "/img/homepage/eve-and-chan.png", - alt: "eve-chan", - }, - { - id: "item-2", - img: "/img/homepage/maciej.png", - alt: "maciej", - }, - { - id: "item-2", - img: "/img/homepage/git.png", - alt: "git", - }, -]; - -const orbit3 = [ - { - id: "item-3", - img: "/img/homepage/ace.jpeg", - alt: "ace", - }, - { - id: "item-3", - img: "/img/homepage/star.png", - alt: "star", - }, - { - id: "item-3", - img: "/img/homepage/barbano.jpeg", - alt: "barbano", - }, - { - id: "item-3", - img: "/img/homepage/dale.jpeg", - alt: "dale", - }, - { - id: "item-3", - img: "/img/homepage/kuda.jpeg", - alt: "kuda", - }, - { - id: "item-3", - img: "/img/homepage/yash.jpeg", - alt: "yash", - }, - { - id: "item-3", - img: "/img/homepage/sergio.jpeg", - alt: "sergio", - }, -]; - -const quickLinks = [ - { title: "Advocate Programs", bg: "white", color: "primary-600" }, - { title: "Events & Meetups", bg: "white", color: "primary-600" }, - { title: "Community Members", bg: "white", color: "primary-600" }, - { title: "Start Contributing", bg: "white", color: "primary-600" }, -]; +import GenericLayout from '../../components/layout/GenericLayout'; +import Link from 'next/link'; +import orbitData from '../../config/orbitData.json'; function CommunityIndexPage() { + const image = '/img/social/website-card.png'; const heading = ( -