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(
- + + + + + +
-
+
diff --git a/static/tests/HomePageToggle.test.js b/static/tests/HomePageToggle.test.js index 4216825..3ee5462 100644 --- a/static/tests/HomePageToggle.test.js +++ b/static/tests/HomePageToggle.test.js @@ -8,9 +8,13 @@ describe('Central Content for site', () => { const {getByRole} = render(); + const aboutButton = await getByRole( + 'button', {name: 'About'} + ); const projectButton = await getByRole( 'button', {name: 'Projects'} ); + }); }); \ No newline at end of file