diff --git a/static/css/main.css b/static/css/main.css index 237b73a..743f4ca 100644 --- a/static/css/main.css +++ b/static/css/main.css @@ -11,8 +11,8 @@ body, html { .toggle-container{ align-items: center; display: flex; - justify-content: center; height: 80%; + justify-content: center; } diff --git a/static/js/HomePageToggle.jsx b/static/js/HomePageToggle.jsx index 45dc8e2..29de02e 100644 --- a/static/js/HomePageToggle.jsx +++ b/static/js/HomePageToggle.jsx @@ -1,13 +1,51 @@ import React from 'react'; +import {useState} from 'react'; import '../css/main.css'; export function HomePageToggle(){ + /** + * @type {[Number, Function]} + */ + const [selectedSection, setSelectedSelection] = useState(0); return(