diff --git a/docs/package.json b/docs/package.json index ad051494a..8e113da88 100644 --- a/docs/package.json +++ b/docs/package.json @@ -17,6 +17,7 @@ "@docusaurus/core": "2.4.1", "@docusaurus/preset-classic": "2.4.1", "@docusaurus/theme-live-codeblock": "^2.4.1", + "@headlessui/react": "^1.7.17", "@heroicons/react": "^2.0.18", "@mdx-js/react": "^1.6.22", "autoprefixer": "^10.4.16", diff --git a/docs/src/components/Elements/dropdown.js b/docs/src/components/Elements/dropdown.js new file mode 100644 index 000000000..d895e21f2 --- /dev/null +++ b/docs/src/components/Elements/dropdown.js @@ -0,0 +1,67 @@ +import React from "react"; +import { Fragment } from "react"; +import { Menu, Transition } from "@headlessui/react"; +import { ChevronDownIcon } from "@heroicons/react/20/solid"; + +const items = [ + { name: "Download for Mac (Intel)", href: "#" }, + { name: "Download for Windows", href: "#" }, + { name: "Download for Linux", href: "#" }, +]; + +function classNames(...classes) { + return classes.filter(Boolean).join(" "); +} + +export default function Dropdown() { + return ( +
+ + + + Open OS options + + + +
+ {items.map((item) => ( + + {({ active }) => ( + + {item.name} + + )} + + ))} +
+
+
+
+
+ ); +} diff --git a/docs/src/components/Homepage/hero.js b/docs/src/components/Homepage/hero.js index fe9b10bb9..7cda58d90 100644 --- a/docs/src/components/Homepage/hero.js +++ b/docs/src/components/Homepage/hero.js @@ -1,6 +1,7 @@ import React from "react"; import { ChevronRightIcon } from "@heroicons/react/20/solid"; import { useColorMode } from "@docusaurus/theme-common"; +import Dropdown from "@site/src/components/Elements/dropdown"; export default function HomepageHero() { const { isDarkTheme } = useColorMode(); @@ -51,15 +52,11 @@ export default function HomepageHero() { fugiat aliqua.

+ {/* TODO: handle mobile model download app instead */} + - Download (Mac Silicon) - - Book a Demo diff --git a/docs/static/img/apple-logo-white.png b/docs/static/img/apple-logo-white.png new file mode 100644 index 000000000..44c9eb034 Binary files /dev/null and b/docs/static/img/apple-logo-white.png differ diff --git a/docs/yarn.lock b/docs/yarn.lock index 968f2f023..91a5e871d 100644 --- a/docs/yarn.lock +++ b/docs/yarn.lock @@ -1715,6 +1715,13 @@ dependencies: "@hapi/hoek" "^9.0.0" +"@headlessui/react@^1.7.17": + version "1.7.17" + resolved "https://registry.yarnpkg.com/@headlessui/react/-/react-1.7.17.tgz#a0ec23af21b527c030967245fd99776aa7352bc6" + integrity sha512-4am+tzvkqDSSgiwrsEpGWqgGo9dz8qU5M3znCkC4PgkpY4HcCZzEDEvozltGGGHIKl9jbXbZPSH5TWn4sWJdow== + dependencies: + client-only "^0.0.1" + "@heroicons/react@^2.0.18": version "2.0.18" resolved "https://registry.yarnpkg.com/@heroicons/react/-/react-2.0.18.tgz#f80301907c243df03c7e9fd76c0286e95361f7c1" @@ -3143,6 +3150,11 @@ cli-table3@^0.6.2: optionalDependencies: "@colors/colors" "1.5.0" +client-only@^0.0.1: + version "0.0.1" + resolved "https://registry.yarnpkg.com/client-only/-/client-only-0.0.1.tgz#38bba5d403c41ab150bff64a95c85013cf73bca1" + integrity sha512-IV3Ou0jSMzZrd3pZ48nLkT9DA7Ag1pnPzaiQhpW7c3RbcqqzvzzVu+L8gfqMp/8IM2MQtSiqaCxrrcfu8I8rMA== + cliui@^7.0.2: version "7.0.4" resolved "https://registry.yarnpkg.com/cliui/-/cliui-7.0.4.tgz#a0265ee655476fc807aea9df3df8df7783808b4f"