/landing

Plutonium landing page.

Primary LanguageJavaScript

Pluto site

The new pluto site.

Build with:

  • NextJS
  • Tailwind
  • styled-jsx (for stuff that can't be achieved with tailwind)
  • MDX (for docs - src/pages/docs)

Dev setup

Prerequisites

Setting up a dev environment

# Get the latest code
git clone https://github.com/plutoniumpw/landing.git

# Change into the newly cloned directory
cd landing

# Install dependencies
npm install

# Start the local web server
npm run dev

Working on the docs

Docs can be found in src/pages/docs.
Most of it is written in markdown, with some additional components (see below).

Creating a new page:

  • You create a src/pages/docs/blah.md page, and it will appear at localhost:3000/docs/blah.
  • Then, edit src/const/sidebar.js to import the page, and add it to the appropiate section.

NOTE:

  • doc pages should always start with a title (h1).
  • index pages are named index.md (not README.md)
  • MDX components should always have a blank line at the start and at the end of the component's content

Docs MDX components

Several components exist outside of the normal markdown syntax for situations where we want UI that can't be achieved with normal markdown.

<Alert />

Example:

<Alert 
  variant="warning" // ... or info, danger.
>

The docs are a work in progress. Feel free to contribute on [GitHub](https://github.com/plutoniumpw/site/).

</Alert>

It looks like...
Preview

<Details />

Example:

<Details title="Spoiler"> 

![Img](https://i.imgur.com/ykDtpPU.png)

</Details>

It looks like...
Preview

<Player />

Example:

<Player url="https://youtu.be/0ijMY8FiLSg" />

It looks like...
A video player mate. It supports everything URL react-player does, because it is react-player.

<NavTile />

Example:

<NavTiles>
    <NavTile title="Installing the Plutonium launcher" to="/docs/install/#plutonium-launcher" className="from-blue-500 to-blue-800 ring-blue-400">
        Learn how to install the launcher, which you will use to start playing on any of our clients.
    </NavTile>
</NavTiles>

It looks like...

<Redirect />

Use this to redirect to a different page.

Example:

<Redirect to="/docs/modding/" />

It looks like...
N/A