diff --git a/app/page.jsx b/app/page.jsx index 36080ea..56fc8e0 100644 --- a/app/page.jsx +++ b/app/page.jsx @@ -6,21 +6,6 @@ import React from 'react'; import Header from '@parts/Header'; import Hero from '@parts/Hero'; import Form from '@parts/Form'; -// import { useSuspenseQuery } from '@apollo/experimental-nextjs-app-support/ssr'; -// import { gql } from '@apollo/client'; - -// GraphQL -// ------------ -// Tells the age how to cache content -// export const dynamic = 'force-dynamic'; - -// const query = gql` -// query { -// launchLatest { -// mission_name -// } -// } -// `; // Component // ------------ diff --git a/src/parts/Button/index.jsx b/src/parts/Button/index.jsx index b94d69b..92c75a9 100644 --- a/src/parts/Button/index.jsx +++ b/src/parts/Button/index.jsx @@ -12,9 +12,9 @@ import { Jacket } from './styles'; const Button = ({ label, onClick, icon, icoL, icoR, disabled }) => { return ( - {icon && icoL && ()} + {icon && icoL && ()} {label} - {icon && icoR && ()} + {icon && icoR && ()} ); } diff --git a/src/parts/Button/styles.js b/src/parts/Button/styles.js index 34c4ebc..c86731c 100644 --- a/src/parts/Button/styles.js +++ b/src/parts/Button/styles.js @@ -11,6 +11,7 @@ export const Jacket = styled.button( position: relative; display: flex; flex-direction: row; + align-items: center; gap: 1.2rem; width: max-content; border-radius: 3.6rem; @@ -21,10 +22,15 @@ export const Jacket = styled.button( transition: all .4s ${props.theme.easing.bezzy}; &:hover { - cursor: pointer; + cursor: pointer !important; transform: scale(0.95); } + svg { + width: 1.6rem; + height: 1.6rem; + } + span { ${pStyles} text-transform: uppercase; diff --git a/src/parts/Contexts/Contexts.jsx b/src/parts/Contexts/Contexts.jsx index 1b95822..a9c1245 100644 --- a/src/parts/Contexts/Contexts.jsx +++ b/src/parts/Contexts/Contexts.jsx @@ -10,12 +10,13 @@ import { GlobalContext } from './'; const Contexts = ({ children }) => { // NOTE • States const [isLoaded, setIsLoaded] = React.useState(false); + const [begin, setBegin] = React.useState(false); // NOTE • Refs const scrollProxy = React.useRef(); return ( - + {children} ); diff --git a/src/parts/Form/index.jsx b/src/parts/Form/index.jsx index a785330..f6d5233 100644 --- a/src/parts/Form/index.jsx +++ b/src/parts/Form/index.jsx @@ -2,24 +2,26 @@ // Imports // ------------ -import React, { useState, useEffect, use } from 'react'; +import React, { useState, useEffect, useContext } from 'react'; import init, { Node, NodeConfig } from '@package/lumina-node-wasm'; import Input from './Input'; import Button from '@parts/Button'; import Icon from '@icon'; import Visualisation from '@parts/Visualisation'; import { Grid } from '@waffl'; +import { GlobalContext } from '@parts/Contexts'; // Styles // ------------ -import { Blanket, Jacket, ImageContainer, Container, Title, NetworkList, NetworkItem, StatsItem, PeerList, Col, } from './styles'; +import { Blanket, Jacket, ImageContainer, Container, Header, Title, Progress, NetworkList, NetworkItem, StatsItem, PeerList, Col, FieldGroup, ButtonJacket } from './styles'; // Component // ------------ const Form = () => { + const { begin, setBegin } = useContext(GlobalContext); + const [node, setNode] = useState(null); const [config, setConfig] = useState({}); - const [begin, setBegin] = useState(false); const [go, setGo] = useState(false); const [modalOpen, setModalOpen] = useState({ modal1: false, @@ -165,6 +167,10 @@ const Form = () => { } }; + const handleReload = () => { + window.location.reload(); + }; + return ( @@ -221,7 +227,17 @@ const Form = () => { - Status + + +
+ Status + + + in progress… + +
+ +
@@ -231,16 +247,12 @@ const Form = () => { handleInput(e)} placeholder="..." light /> - - - - - - - - - - - - - - + + + + + + + + + + + +