Nodejs.dev: Feature: new page /community

Created on 18 May 2020  路  7Comments  路  Source: nodejs/nodejs.dev

Summary

A new top level page /community should be created.
The content should be loaded from markdown like the docs pages.
I think the best practice with Gatsby sites is to have a content directory. See https://github.com/gatsbyjs/gatsby-starter-blog

The structure I'd like to see is /content/community/index.md

Basic example

A similar page for the existing nodejs.org site is here
https://nodejs.org/en/get-involved/

Another similar site is from Electon https://www.electronjs.org/community

Here's the design mockup
https://www.figma.com/file/lOxAGGg5KXb6nwie7zXkz6/NJ-Design-System?node-id=1338%3A12737

MVP enhancement help wanted wr-agenda

All 7 comments

@benhalverson Can I pick this issue if nobody is already working on it?

@designMoreWeb is already working on this one.
You can work on #730 if you like.

@benhalverson is this an issue I can still look at? I know May 31 has been a couple of months.

@benhalverson is this an issue I can still look at? I know May 31 has been a couple of months.

I am working on this we just got some stuff approved that I needed to proceed I am on vacation this week will push it end of the next week

@designMoreWeb If you need some help with this look at how @rmleg setup the homepage with markdown

Here's the graphql query
export const query = graphql` query pageQuery { page: markdownRemark(fields: { slug: { eq: "homepage" } }) { frontmatter { title displayTitle subTitle description learnLinkText nodeFeatureHeader1 nodeFeatureHeader2 nodeFeatureHeader3 nodeFeature1 nodeFeature2 nodeFeature3 nodeFeatureAltText } } } `;

and the props are here. https://github.com/nodejs/nodejs.dev/blob/master/src/pages/index.tsx#L38-L56

@designMoreWeb If you need some help with this look at how @rmleg setup the homepage with markdown

Here's the graphql query

```

export const query = graphql`

query pageQuery {

page: markdownRemark(fields: { slug: { eq: "homepage" } }) {

  frontmatter {

    title

    displayTitle

    subTitle

    description

    learnLinkText

    nodeFeatureHeader1

    nodeFeatureHeader2

    nodeFeatureHeader3

    nodeFeature1

    nodeFeature2

    nodeFeature3

    nodeFeatureAltText

  }

}

}

`;```

and the props are here. https://github.com/nodejs/nodejs.dev/blob/master/src/pages/index.tsx#L38-L56

This is fantastic thanks @benhalverson

Was this page helpful?
0 / 5 - 0 ratings

Related issues

giankotarola picture giankotarola  路  4Comments

antsmartian picture antsmartian  路  3Comments

BeniCheni picture BeniCheni  路  3Comments

SMotaal picture SMotaal  路  4Comments

jemjam picture jemjam  路  3Comments