diff --git a/src/components/Button.jsx b/src/components/Button.jsx index f4135e7..76f892f 100644 --- a/src/components/Button.jsx +++ b/src/components/Button.jsx @@ -1,9 +1,12 @@ export const Button = ({onClick, sticky = false, children}) => { - // Base classes - const baseClasses = "inline-block py-2 px-5 font-bold text-black border-2 border-black"; // If we want the button to be sticky, flip the colors - const dynamicClasses = sticky ? `border-dotted hover:border-solid` : `border-solid hover:border-dotted`; + const dynamicBorder = sticky ? `border-dotted hover:border-solid` : `border-solid hover:border-dotted`; // Return a styled button, where the text is passed as child prop - return ; + return ( + ); }; diff --git a/src/components/HamburgerMenu.jsx b/src/components/HamburgerMenu.jsx new file mode 100644 index 0000000..22f63fc --- /dev/null +++ b/src/components/HamburgerMenu.jsx @@ -0,0 +1,30 @@ +import { useState } from "react"; + +export const HamburgerMenu = ({children}) => { + const [checked, setChecked] = useState(false); + return ( +
+ + {/* The navigation bar on mobile-sized screens, hidden behind a hamburger menu */} + {checked && ( + // TODO: Style this as a half-page overlay + + )} + {/* The navigation bar on desktop-sized screens */} + +
+ ); +}; \ No newline at end of file diff --git a/src/components/SplitPane.jsx b/src/components/SplitPane.jsx index bb5ac57..a90d9a1 100644 --- a/src/components/SplitPane.jsx +++ b/src/components/SplitPane.jsx @@ -1,7 +1,7 @@ export const SplitPane = ({children}) => { // Split the pane in half and add the children to it return ( -
+
{children}
) diff --git a/src/features/about/About.jsx b/src/features/about/About.jsx index b5bb9a4..adedd1b 100644 --- a/src/features/about/About.jsx +++ b/src/features/about/About.jsx @@ -1,13 +1,13 @@ export const About = () => { return (
-
-

About

+
+

About

Out of personal frustration of visualizing complicated LaTeX tables generated by code, and a passion for web development, LaTeX Table Viewer came to life!

Simply copy and paste your LaTeX table code into the code editor and compile your table. All compilation happens on your computer, no data/information is collected. If you need additional packages, view the full source code and add it where appropriate.


-

Credits

-

This project is powered by SwiftLaTeX and their efforts of creating a Web Assembly binary for TeXLive. I tweaked their code slightly to make it work nice with Webpack and it is freely available on GitHub alongside the LaTeX Table Viewer.

+

Credits

+

This project is powered by SwiftLaTeX and their efforts of creating a Web Assembly binary for TeXLive. I tweaked their code slightly to make it work nice with Webpack and it is freely available on GitHub alongside the LaTeX Table Viewer.

); diff --git a/src/features/buttonBar/ButtonBar.jsx b/src/features/buttonBar/ButtonBar.jsx index efa00ee..05e1282 100644 --- a/src/features/buttonBar/ButtonBar.jsx +++ b/src/features/buttonBar/ButtonBar.jsx @@ -6,7 +6,7 @@ export const ButtonBar = ({toggleVisibility, compile, showFullSourceCode}) => { const toggleText = showFullSourceCode ? "Hide full source code" : "Show full source code"; return ( -