diff --git a/docs/src/containers/DownloadApp/index.js b/docs/src/containers/DownloadApp/index.js index 3414e4841..5fe184c8f 100644 --- a/docs/src/containers/DownloadApp/index.js +++ b/docs/src/containers/DownloadApp/index.js @@ -99,10 +99,11 @@ export default function DownloadApp() { Download for PC -
+
🚧 - - Warning: Jan is in the process of being built. Expect bugs! + Warning: + + Jan is in the process of being built. Expect bugs!
@@ -112,14 +113,14 @@ export default function DownloadApp() { key={i} href={system.href} className={twMerge( - "inline-flex m-2 px-4 py-2 rounded-lg text-lg font-semibold cursor-pointer justify-center items-center space-x-2 border border-gray-400 dark:border-gray-700 text-black dark:text-black bg-neutral-50 min-w-[150px] dark:bg-[#18181B]", + "btn-shadow inline-flex m-2 px-4 rounded-lg text-lg font-semibold cursor-pointer justify-center items-center space-x-2 border border-zinc-200 dark:border-gray-700 text-black dark:text-white bg-zinc-50 min-w-[150px] dark:bg-[#18181B] h-[36px]", system.comingSoon && "pointer-events-none" )} > - {system.name} + {system.name} {system.comingSoon && ( - + Coming Soon )} diff --git a/docs/src/containers/Elements/dropdown.js b/docs/src/containers/Elements/dropdown.js index 5709a89ac..6a5304fb0 100644 --- a/docs/src/containers/Elements/dropdown.js +++ b/docs/src/containers/Elements/dropdown.js @@ -3,26 +3,27 @@ import { Fragment } from "react"; import { Menu, Transition } from "@headlessui/react"; import { ChevronDownIcon } from "@heroicons/react/20/solid"; import axios from "axios"; +import { FaWindows, FaApple, FaLinux } from "react-icons/fa"; const systemsTemplate = [ { - name: "Download for Mac (M1/M2)", - logo: require("@site/static/img/apple-logo-white.png").default, + name: "Download for Mac (M1/M2/M3)", + logo: FaApple, fileFormat: "{appname}-mac-arm64-{tag}.dmg", }, { name: "Download for Mac (Intel)", - logo: require("@site/static/img/apple-logo-white.png").default, + logo: FaApple, fileFormat: "{appname}-mac-x64-{tag}.dmg", }, { name: "Download for Windows", - logo: require("@site/static/img/windows-logo-white.png").default, + logo: FaWindows, fileFormat: "{appname}-win-x64-{tag}.exe", }, { name: "Download for Linux", - logo: require("@site/static/img/linux-logo-white.png").default, + logo: FaLinux, fileFormat: "{appname}-linux-amd64-{tag}.deb", }, ]; @@ -66,11 +67,7 @@ export default function Dropdown() { } else if (userAgent.includes("Linux")) { // linux user setDefaultSystem(systems[3]); - } else if ( - userAgent.includes("Mac OS") && - arc && - arc.architecture === "arm" - ) { + } else if (userAgent.includes("Mac OS")) { setDefaultSystem(systems[0]); } else { setDefaultSystem(systems[1]); @@ -123,14 +120,14 @@ export default function Dropdown() { return (
- Logo + {defaultSystem.name} - + Open OS options @@ -143,7 +140,7 @@ export default function Dropdown() { leaveFrom="transform opacity-100 scale-100" leaveTo="transform opacity-0 scale-95" > - +
{systems.map((system) => ( - Logo - {system.name} + + + {system.name} + )} diff --git a/docs/src/containers/SocialButton/index.js b/docs/src/containers/SocialButton/index.js index 20616c209..7cbe0b2de 100644 --- a/docs/src/containers/SocialButton/index.js +++ b/docs/src/containers/SocialButton/index.js @@ -1,28 +1,44 @@ import React from "react"; import { FaGithub, FaDiscord } from "react-icons/fa"; +import { RiStarSFill } from "react-icons/ri"; +import { useAppStars } from "@site/src/hooks/useAppStars"; export default function SocialButton() { + const { stargazers } = useAppStars(); + return (
- - - - - Discord - - + - Github +
+

Github

+

+ + {stargazers.count} stars +

+
+
+ + + + + ); diff --git a/docs/src/pages/index.js b/docs/src/pages/index.js index e250ce661..460eb366f 100644 --- a/docs/src/pages/index.js +++ b/docs/src/pages/index.js @@ -12,6 +12,8 @@ import SocialButton from "@site/src/containers/SocialButton"; import { IoArrowDown } from "react-icons/io5"; +import Dropdown from "@site/src/containers/Elements/dropdown"; + export default function Home() { const { siteConfig } = useDocusaurusContext(); @@ -21,6 +23,11 @@ export default function Home() { .scrollIntoView({ behavior: "smooth" }); }; + const userAgent = navigator.userAgent; + + console.log(userAgent); + const isBrowserChrome = userAgent.includes("Chrome"); + return ( <> @@ -57,13 +64,18 @@ export default function Home() {
100% offline on your computer.

+
-
handleAnchorLink()} - className="inline-flex px-4 py-3 rounded-lg text-lg font-semibold cursor-pointer justify-center items-center space-x-2 dark:bg-white dark:text-black bg-black text-white dark:hover:text-black hover:text-white scroll-smooth" - > - Download Jan for PC -
+ {!isBrowserChrome ? ( +
handleAnchorLink()} + className="inline-flex px-4 py-3 rounded-lg text-lg font-semibold cursor-pointer justify-center items-center space-x-2 dark:bg-white dark:text-black bg-black text-white dark:hover:text-black hover:text-white scroll-smooth" + > + Download Jan for PC +
+ ) : ( + + )}
Mobile App

- + Coming Soon
@@ -229,28 +241,28 @@ export default function Home() {
-
+
Icon Offline Icon Offline Icon Offline
Offline and Local First
-

+

Conversations, preferences, and model usage stay on{" "}
your computer—secure, exportable, and can be deleted at any time. @@ -262,7 +274,7 @@ export default function Home() {

OpenAI Compatible
-

+

Jan provides an OpenAI-equivalent API{" "}
server at  localhost:  @@ -294,7 +306,7 @@ export default function Home() { Assistants framework - + Coming Soon

diff --git a/docs/src/styles/components/base.scss b/docs/src/styles/components/base.scss index b99ff21c2..41af09c12 100644 --- a/docs/src/styles/components/base.scss +++ b/docs/src/styles/components/base.scss @@ -60,4 +60,8 @@ border-radius: 4px; font-weight: var(--ifm-font-weight-bold); } + + .btn-shadow { + box-shadow: 0px 1px 2px 0px rgba(16, 24, 40, 0.05); + } }