diff --git a/package.json b/package.json index cce7e373..c1e929a8 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "javaistic", - "version": "1.4.0", + "version": "1.5.0", "description": "The official website for Javaistic.", "private": true, "main": "index.js", @@ -21,6 +21,8 @@ "@badrap/bar-of-progress": "^0.1.2", "@docsearch/react": "^1.0.0-alpha.28", "@formspree/react": "^2.2.4", + "@headlessui/react": "^1.4.2", + "@heroicons/react": "^1.0.5", "@juggle/resize-observer": "^3.3.1", "@mdx-js/loader": "^1.6.22", "@mdx-js/react": "^1.6.22", @@ -75,4 +77,4 @@ "prettier": "^2.5.0", "typescript": "^4.5.2" } -} \ No newline at end of file +} diff --git a/redirects.json b/redirects.json index 41839d94..60a2833d 100644 --- a/redirects.json +++ b/redirects.json @@ -7,6 +7,8 @@ }, { "source": "/docs/slug", "destination": "/docs/slug", "permanent": false }, { "source": "/community", "destination": "https://discord.gg/RkHJqvK9r8", "permanent": false }, + { "source": "/changelog", "destination":"https://javaistic-changelog.vercel.app/", "permanent": false }, + { "source": "/license", "destination":" https://raw.githubusercontent.com/javaistic/javaistic/main/LICENSE", "permanent": false }, { "source": "/discord", "destination": "https://discord.gg/RkHJqvK9r8", "permanent": false }, { "source": "/status", "destination": "https://javaistic.betteruptime.com/", "permanent": false }, { "source": "/stats", "destination": "https://javaistic.betteruptime.com/", "permanent": false } diff --git a/src/components/home/Menu.js b/src/components/home/Menu.js new file mode 100644 index 00000000..2b725a04 --- /dev/null +++ b/src/components/home/Menu.js @@ -0,0 +1,123 @@ +import { Menu, Transition } from '@headlessui/react' +import { ChevronDownIcon } from '@heroicons/react/solid' +import { Fragment } from 'react' + +function classNames(...classes) { + return classes.filter(Boolean).join(' ') +} + +export default function MenuButton() { + return ( + +
+ + Menu + +
+ + + +
+ + {({ active }) => ( + + Documentation + + )} + + + {({ active }) => ( + + About + + )} + + + {({ active }) => ( + + Sponsors + + )} + + + {({ active }) => ( + + License + + )} + + + {({ active }) => ( + + Change Log + + )} + + + {({ active }) => ( + +
+ Javaistic on GitHub + + + + GitHub +
+
+ )} +
+ +
+
+
+
+ ) +} diff --git a/src/pages/index.js b/src/pages/index.js index 5679876e..069c4d94 100644 --- a/src/pages/index.js +++ b/src/pages/index.js @@ -1,6 +1,7 @@ import { BigText, InlineCode, Paragraph, Widont } from '@/components/home/common' import { Footer } from '@/components/home/Footer' import { Hero } from '@/components/home/Hero' +import MenuButton from '@/components/home/Menu' import { Newsletter } from '@/components/home/Newsletter' import { OpenSource } from '@/components/home/OpenSource' import { Logo } from '@/components/Logo' @@ -46,17 +47,17 @@ export default function Home() { -
+
- - Docs + Documentation + Javaistic on GitHub diff --git a/yarn.lock b/yarn.lock index e5adb821..842f08db 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1381,6 +1381,16 @@ resolved "https://registry.yarnpkg.com/@hapi/hoek/-/hoek-9.2.0.tgz#f3933a44e365864f4dad5db94158106d511e8131" integrity sha512-sqKVVVOe5ivCaXDWivIJYVSaEgdQK9ul7a4Kity5Iw7u9+wBAPbX1RMSnLLmp7O4Vzj0WOWwMAJsTL00xwaNug== +"@headlessui/react@^1.4.2": + version "1.4.2" + resolved "https://registry.yarnpkg.com/@headlessui/react/-/react-1.4.2.tgz#87e264f190dbebbf8dfdd900530da973dad24576" + integrity sha512-N8tv7kLhg9qGKBkVdtg572BvKvWhmiudmeEpOCyNwzOsZHCXBtl8AazGikIfUS+vBoub20Fse3BjawXDVPPdug== + +"@heroicons/react@^1.0.5": + version "1.0.5" + resolved "https://registry.yarnpkg.com/@heroicons/react/-/react-1.0.5.tgz#2fe4df9d33eb6ce6d5178a0f862e97b61c01e27d" + integrity sha512-UDMyLM2KavIu2vlWfMspapw9yii7aoLwzI2Hudx4fyoPwfKfxU8r3cL8dEBXOjcLG0/oOONZzbT14M1HoNtEcg== + "@juggle/resize-observer@^3.3.1": version "3.3.1" resolved "https://registry.yarnpkg.com/@juggle/resize-observer/-/resize-observer-3.3.1.tgz#b50a781709c81e10701004214340f25475a171a0"