diff options
| author | Andrew Lee <[email protected]> | 2025-12-14 15:57:36 -0500 |
|---|---|---|
| committer | Andrew Lee <[email protected]> | 2025-12-14 15:57:36 -0500 |
| commit | 8b680990b0bb4fe3212a4f632519320191065f67 (patch) | |
| tree | 79720858bfae86e041f2c8d3b3cc168e6e8730e5 /src/components | |
| parent | a906252380a9c041a4c2b78790506412ffd40f75 (diff) | |
| download | shiftos-archive-website-8b680990b0bb4fe3212a4f632519320191065f67.tar.gz shiftos-archive-website-8b680990b0bb4fe3212a4f632519320191065f67.tar.bz2 shiftos-archive-website-8b680990b0bb4fe3212a4f632519320191065f67.zip | |
init shifter + slideshow
Diffstat (limited to 'src/components')
| -rw-r--r-- | src/components/shifter.tsx | 79 | ||||
| -rw-r--r-- | src/components/slideshow.astro | 0 |
2 files changed, 79 insertions, 0 deletions
diff --git a/src/components/shifter.tsx b/src/components/shifter.tsx new file mode 100644 index 0000000..5c62be9 --- /dev/null +++ b/src/components/shifter.tsx @@ -0,0 +1,79 @@ +import { useState } from 'react'; +import '../styles/shifter.css'; +export default function Shifter() { + const [sidebar, setSidebar] = useState(0); + + function changeSidebar(window: number) { + setSidebar(window); + } + + function applyButton() { + + } + + function sidebarContent(): React.ReactNode { + switch (sidebar) { + case 0: + return ( + <> + <div className="shifter-welcome"> + <h1>Welcome to the Shifter!</h1> + <p>The shifter is an application that allows you to modify various features in ShiftOS. + Initially the user interface of ShiftOS is very dull however you can use the Shifter and + various sub programs within the Shifter such as the "Colour Picker" to improve the + appearance of ShiftOS.</p> + <p>The basic process of modifying your ShiftOS interface is very simple. You first choose a + main category on the left which will bring up a list of sub categories. Next select a + sub category to display your list of customization options. Once you have modified the + appropriate settings click Apply Changes to confirm your choices.</p> + </div> + <div className="shifter-codepoints"> + <h2>You can earn codepoints using the Shifter!</h2> + <p>That's right! Simply by customizing your ShiftOS interface you can earn as many + codepoints as you like. The amount of codepoints you earn will be calculated and + displayed the moment you press "Apply Changes". The more time you spend customizing the + more codepoints you will earn!</p> + </div> + </> + ) + case 1: + return ( + <> + <h1>Windows Settings</h1> + </> + ) + case 2: + return ( + <> + <h1>Do you want to reset your settings?</h1> + </> + ) + } + } + + + return ( + <div> + <div className="window"> + <div className="titlebar"> + <div className="titlebar-text">Shifter</div> + <div className="titlebar-buttons"> + <div className="titlebar-box titlebar-box-link"></div> + </div> + </div> + <div className="content"> + <div className="sidebar"> + <div className="sidebar-content"> + <a className="shifter-button" onClick={() => changeSidebar(1)}>Windows</a> + <a className="shifter-button" onClick={() => changeSidebar(2)}>Reset</a> + </div> + <a onClick={() => applyButton()}>Apply Changes</a> + </div> + <div className="shifter-body"> + {sidebarContent()} + </div> + </div> + </div> + </div> + ) +} diff --git a/src/components/slideshow.astro b/src/components/slideshow.astro new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/src/components/slideshow.astro |
