diff --git a/components/shared/Hero.tsx b/components/shared/Hero.tsx
index 7f82063..f272f80 100644
--- a/components/shared/Hero.tsx
+++ b/components/shared/Hero.tsx
@@ -21,13 +21,15 @@ const Hero = () => {
const [command, setCommand] = useState(
'sudo bash -c "$(curl -fsSL https://downloads.svrjs.org/installer/svr.js.installer.linux.20240509.sh)"'
);
- const [selectedButton, setSelectedButton] = useState<"linux" | "docker">(
- "linux"
- );
+ const [selectedButton, setSelectedButton] = useState<
+ "linux" | "windows" | "docker"
+ >("linux");
const commands = {
linux:
'sudo bash -c "$(curl -fsSL https://downloads.svrjs.org/installer/svr.js.installer.linux.20240509.sh)"',
+ windows:
+ 'powershell -c "irm https://downloads.svrjs.org/installer/svr.js.installer.windows.20241204.ps1 | iex"',
docker:
"docker pull svrjs/svrjs && docker run --name mysvrjs -d -p 80:80 --restart=always svrjs/svrjs"
};
@@ -38,7 +40,7 @@ const Hero = () => {
setTimeout(() => setIsCopied(false), 2000);
};
- const handleButtonClick = (type: "linux" | "docker") => {
+ const handleButtonClick = (type: "linux" | "windows" | "docker") => {
setCommand(commands[type]);
setSelectedButton(type);
};
@@ -138,6 +140,29 @@ const Hero = () => {
/>
+