diff --git a/src/App.js b/src/App.js index a918d96..da81bf6 100644 --- a/src/App.js +++ b/src/App.js @@ -16,7 +16,7 @@ import Screenery from "./pages/Screenery"; import Autoreact from "./pages/Autoreact"; import Webmimic from "./pages/Webmimic"; -const AppStates = { +var AppStates = { home: 0, articles: 1, software: 2, @@ -36,13 +36,13 @@ function App() { window.removeEventListener('resize', handleWindowSizeChange); } }, []); - const footerStyle = { + var footerStyle = { position: "absolute", bottom: 0, width: "100%", height: "100px", overflow: "hidden" - }; + } //states const [x, setX] = React.useState(0) const [y, setY] = React.useState(0) diff --git a/src/background/CircularGradient.js b/src/background/CircularGradient.js index 9003d9f..c8fd624 100644 --- a/src/background/CircularGradient.js +++ b/src/background/CircularGradient.js @@ -1,4 +1,4 @@ -import React from 'react'; +import React, {useRef, useState} from 'react'; import './CircularGradient.css'; const CircularGradient = (props) => { diff --git a/src/components/AllSoftwarePC.js b/src/components/AllSoftwarePC.js index 2153b02..a010075 100644 --- a/src/components/AllSoftwarePC.js +++ b/src/components/AllSoftwarePC.js @@ -2,9 +2,10 @@ import Software from "./Software"; import React from "react"; import "./SectionsForPC.css" import PointedStar from "./PointedStar"; +import {getCustomPages} from "../App"; function AllSoftwarePC({shown, loadCustomPage}) { - const flexStyle = { + var flexStyle = { display: 'flex', flexDirection: 'row', justifyContent: 'center', @@ -12,7 +13,7 @@ function AllSoftwarePC({shown, loadCustomPage}) { width: '100%', height: '125px', pointerEvents: 'inherit', - }; + } let allData = require('../data/software.json'); return (