Skip to content

Commit

Permalink
fix spacing landing page responsive
Browse files Browse the repository at this point in the history
  • Loading branch information
urmauur committed Dec 7, 2023
1 parent 9b467cf commit d6b8175
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 19 deletions.
18 changes: 12 additions & 6 deletions docs/docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -142,19 +142,22 @@ const config = {
{
name: "description",
content:
"Jan is a ChatGPT-alternative that runs on your own computer, with a local API server.",
"Jan runs 100% offline on your computer, utilizes open-source AI models, prioritizes privacy, and is highly customizable.",
},
{
name: "keywords",
content:
"Jan, ChatGPT alternative, on-premises AI, local API server, local AI, llm, conversational AI, no-subscription fee",
},
{ name: "robots", content: "index, follow" },
{ property: "og:title", content: "Run your own AI | Jan" },
{
property: "og:title",
content: "Jan | Open-source ChatGPT Alternative",
},
{
property: "og:description",
content:
"Jan is a ChatGPT-alternative that runs on your own computer, with a local API server.",
"Jan runs 100% offline on your computer, utilizes open-source AI models, prioritizes privacy, and is highly customizable.",
},
{
property: "og:image",
Expand All @@ -163,11 +166,14 @@ const config = {
{ property: "og:type", content: "website" },
{ property: "twitter:card", content: "summary_large_image" },
{ property: "twitter:site", content: "@janhq_" },
{ property: "twitter:title", content: "Run your own AI | Jan" },
{
property: "twitter:title",
content: "Jan | Open-source ChatGPT Alternative",
},
{
property: "twitter:description",
content:
"Jan is a ChatGPT-alternative that runs on your own computer, with a local API server.",
"Jan runs 100% offline on your computer, utilizes open-source AI models, prioritizes privacy, and is highly customizable.",
},
{
property: "twitter:image",
Expand All @@ -194,7 +200,7 @@ const config = {
"@type": "localAI",
name: "Jan",
description:
"Jan is a ChatGPT-alternative that runs on your own computer, with a local API server.",
"Jan runs 100% offline on your computer, utilizes open-source AI models, prioritizes privacy, and is highly customizable.",
keywords:
"Jan, ChatGPT alternative, on-premises AI, local API server, local AI, llm, conversational AI, no-subscription fee",
applicationCategory: "BusinessApplication",
Expand Down
10 changes: 6 additions & 4 deletions docs/src/containers/DownloadApp/index.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
import React, { useState, useEffect } from "react";
import axios from "axios";
import { FaWindows, FaApple, FaLinux } from "react-icons/fa";
import { twMerge } from "tailwind-merge";

const systemsTemplate = [
{
name: "Mac Silicon",
name: "Mac M1, M2, M3",
logo: FaApple,
fileFormat: "{appname}-mac-arm64-{tag}.dmg",
comingSoon: false,
Expand Down Expand Up @@ -110,9 +111,10 @@ export default function DownloadApp() {
<a
key={i}
href={system.href}
className={`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], ${
system.comingSoon && "pointer-events-none "
}`}
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]",
system.comingSoon && "pointer-events-none"
)}
>
<system.logo />
<span>{system.name}</span>
Expand Down
18 changes: 9 additions & 9 deletions docs/src/pages/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export default function Home() {
<>
<Banner />
<Layout
title="Jan | Open-source ChatGPT Alternative"
title="Open-source ChatGPT Alternative"
description="Jan runs 100% offline on your computer, utilizes open-source AI models, prioritizes privacy, and is highly customizable."
>
<main>
Expand Down Expand Up @@ -94,7 +94,7 @@ export default function Home() {
</div>

<div
className="dark:bg-[#09090B]/20 border-t border-zinc-200 dark:border-gray-800 py-16"
className="dark:bg-[#09090B]/20 border-t border-zinc-200 dark:border-gray-800 py-10 lg:py-16"
id="download-section"
>
<div className="container">
Expand All @@ -104,7 +104,7 @@ export default function Home() {
</div>
</div>

<div className="dark:bg-[#09090B]/20 pb-36">
<div className="dark:bg-[#09090B]/20 pb-10 lg:pb-36">
<div className="container h-full ">
<div className="w-full lg:w-3/4 mx-auto relative rounded-xl py-10">
<img
Expand Down Expand Up @@ -146,7 +146,7 @@ export default function Home() {
</div>
</div>

<div className="dark:bg-[#27272A] bg-zinc-100 pt-20 pb-10">
<div className="dark:bg-[#27272A] bg-zinc-100 pt-10 lg:pt-20 pb-10">
<div className="container">
<div className="w-full lg:w-3/4 mx-auto relative">
<div className="grid grid-cols-1 lg:grid-cols-12 gap-8 items-center">
Expand Down Expand Up @@ -183,7 +183,7 @@ export default function Home() {
</div>
</div>

<div className="dark:bg-[#27272A] bg-zinc-100 pb-20 pt-10">
<div className="dark:bg-[#27272A] bg-zinc-100 lg:pb-20 pb-10 pt-10">
<div className="container">
<div className="w-full lg:w-3/4 mx-auto relative ">
<div className="grid grid-cols-1 lg:grid-cols-12 gap-8 items-center">
Expand Down Expand Up @@ -226,7 +226,7 @@ export default function Home() {
</div>

<div className="dark:bg-[#09090B]/20">
<div className="container py-32">
<div className="container py-12 lg:py-32">
<div className="w-full xl:w-10/12 mx-auto relative">
<div className="text-center">
<div className="card-link-bg dark:card-link-bg-dark px-4 py-2 inline-flex rounded-xl items-center space-x-4">
Expand All @@ -247,7 +247,7 @@ export default function Home() {
/>
</div>
<div className="mt-8">
<h6 className="text-4xl font-semibold">
<h6 className="text-3xl lg:text-4xl font-semibold">
Offline and Local First
</h6>
<p className="mt-2 leading-relaxed text-zinc-600 dark:text-zinc-400">
Expand All @@ -256,10 +256,10 @@ export default function Home() {
exportable, and can be deleted at any time.
</p>

<div className="grid grid-cols-12 mt-20 text-left gap-8">
<div className="grid grid-cols-12 mt-10 lg:mt-20 text-left gap-8">
<div className="col-span-full lg:col-span-4">
<div className="dark:bg-[#27272A] bg-zinc-100 rounded-xl p-8 min-h-[450px]">
<h6 className="text-4xl font-semibold">
<h6 className="text-3xl lg:text-4xl font-semibold">
OpenAI Compatible
</h6>
<p className="mt-4 leading-relaxed text-zinc-600 dark:text-zinc-400">
Expand Down

0 comments on commit d6b8175

Please sign in to comment.