Temp commit
This commit is contained in:
parent
c779f3d5bd
commit
88839adbd3
2 changed files with 43 additions and 5 deletions
|
|
@ -1,9 +1,10 @@
|
|||
import React, { useState, useEffect } from 'react';
|
||||
import { CSSTransition } from 'react-transition-group';
|
||||
import About from './GeolosysComponents/About';
|
||||
import Deposits from './GeolosysComponents/Deposits';
|
||||
import Datapacks from './GeolosysComponents/Datapacks';
|
||||
import Config from './GeolosysComponents/Config';
|
||||
import CT from './GeolosysComponents/CraftTweaker';
|
||||
import CraftTweaker from './GeolosysComponents/CraftTweaker';
|
||||
|
||||
const extractComponentName = () => {
|
||||
const url = window.location.href;
|
||||
|
|
@ -70,6 +71,15 @@ export default () => {
|
|||
Docs
|
||||
</a>
|
||||
<ul className="dropdown-menu" aria-labelledby="geolosysDocsDD">
|
||||
<li>
|
||||
<a
|
||||
className={`dropdown-item ${component === 'deposits' ? 'active' : ''}`}
|
||||
onClick={() => setComponent('deposits')}
|
||||
href="#deposits"
|
||||
>
|
||||
Deposits
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a
|
||||
className={`dropdown-item ${component === 'datapacks' ? 'active' : ''}`}
|
||||
|
|
@ -90,9 +100,9 @@ export default () => {
|
|||
</li>
|
||||
<li>
|
||||
<a
|
||||
className={`dropdown-item ${component === 'ct' ? 'active' : ''}`}
|
||||
onClick={() => setComponent('ct')}
|
||||
href="#ct"
|
||||
className={`dropdown-item ${component === 'crafttweaker' ? 'active' : ''}`}
|
||||
onClick={() => setComponent('crafttweaker')}
|
||||
href="#crafttweaker"
|
||||
>
|
||||
CraftTweaker API
|
||||
</a>
|
||||
|
|
@ -106,9 +116,10 @@ export default () => {
|
|||
</div>
|
||||
|
||||
{component === 'about' && (<About />)}
|
||||
{component === 'deposits' && (<Deposits />)}
|
||||
{component === 'datapacks' && (<Datapacks />)}
|
||||
{component === 'config' && (<Config />)}
|
||||
{component === 'ct' && (<CT />)}
|
||||
{component === 'crafttweaker' && (<CraftTweaker />)}
|
||||
|
||||
</div>
|
||||
</CSSTransition>
|
||||
|
|
|
|||
27
src/components/mods/GeolosysComponents/Deposits.jsx
Normal file
27
src/components/mods/GeolosysComponents/Deposits.jsx
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
import React from 'react';
|
||||
|
||||
export default () => (
|
||||
<div className="pb-5">
|
||||
<div className="fluid container pb-5">
|
||||
<h1>Plutons</h1>
|
||||
|
||||
<p>
|
||||
There are many specificities to plutons and how they're implemented
|
||||
in Geolosys, and knowing them could be helpful while creating your datapack,
|
||||
{' '}
|
||||
<code>geolosys.json</code>
|
||||
, or CraftTweaker Script.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div className="fluid container">
|
||||
<h2>Types of Plutons</h2>
|
||||
|
||||
<p>
|
||||
In the Geolosys configuration tool and in the Datapack, you'll see mention
|
||||
of Ore- and Stone-type plutons. There are some key differences between the two,
|
||||
which are outlined below:
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
Loading…
Reference in a new issue