[next] Fixes #1463 - re-re-implements the About page w/ nextjs #1624
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Issue This PR Addresses
Fixes #1463
Type of Change
Description
Been trying to research how to render an
md
file with NextJS, and AFAIK NextJS rendersmd
files differently than Gatsby. Upon researching this further I found this neat library which not only rendersmd
files, but allows you to inject JSX (TSX) code directly into themd
file in question. When styling/MUI is finished for next, styling the about page should be nothing short of jovial.Furthermore, I think the MDX lib pairs really nicely with how NextJS automagically creates routes based on present files in the
pages
directory. All I had to do was place the.mdx
file alongside otherside the.tsx
(currently onlyindex.tsx
) files and it renders @localhost:8000/about
out of the box.I also had to create a next config file (see:
next.config.js
) to be able to import and readMD
/MDX
files (see: here)I'm hesitant about a PR which introduces another dependency, so let me know what you think!
(Ignore the blue Hello text, that was me testing to see if a
.tsx
component would actually render.)Checklist