import Head from "next/head"; import { Menu, Transition } from "@headlessui/react"; import { useState, useRef, useEffect } from "react"; function ChevronIcon({ open }: { open: boolean }) { return ( {open ? "▴" : "▾"} ); } function ExternalLinkIcon() { return ( ↗ ); } function GithubIcon() { return ( ); } export default function Page() { const [chevron, setChevron] = useState(false); const menuButtonRef = useRef(null); const toggleDropdown = () => { setChevron(!chevron); }; const handleClickOutside = (event: MouseEvent) => { if ( menuButtonRef.current && !menuButtonRef.current.contains(event.target as Node) ) { setChevron(false); } }; useEffect(() => { document.addEventListener("click", handleClickOutside); return () => { document.removeEventListener("click", handleClickOutside); }; }, []); return ( <> Burrow Burrow Through{" "} Firewalls Burrow is an open source tool for burrowing through firewalls, built by teenagers at{" "} Hack Club. {" "} burrow {" "} is a Rust-based VPN for getting around restrictive Internet censors. toggleDropdown()} ref={menuButtonRef} className="w-50 h-12 rounded-2xl bg-hackClubRed px-3 font-SpaceMono hover:scale-105 md:h-12 md:w-auto md:rounded-3xl md:text-xl 2xl:h-16 2xl:text-2xl " > Install for Linux {({ active }) => ( Install for Windows )} Install for MacOS Docs Contribute {/* Footer */} {/* By Hack Club */} > ); }
Burrow is an open source tool for burrowing through firewalls, built by teenagers at{" "} Hack Club. {" "} burrow {" "} is a Rust-based VPN for getting around restrictive Internet censors.