Skip to content
This repository has been archived by the owner on Oct 14, 2024. It is now read-only.

feat: update homepage #328

Merged
merged 6 commits into from
Oct 4, 2024
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/assets/images/homepage/assistant-dark.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/assets/images/homepage/extension-dark.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/assets/images/homepage/features01.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/assets/images/homepage/features01dark.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/assets/images/homepage/features02.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/assets/images/homepage/features02dark.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/assets/images/homepage/features03.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/assets/images/homepage/features03dark.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/assets/images/homepage/features04.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/assets/images/homepage/features04dark.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/assets/images/homepage/features05.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/assets/images/homepage/features05dark.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/assets/images/homepage/glow.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/assets/images/homepage/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 0 additions & 1 deletion src/components/Home/APIStructure/index.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import React from 'react'
import { BsArrowRight } from 'react-icons/bs'

const endpoints = [
{
Expand Down
75 changes: 75 additions & 0 deletions src/components/Home/Customizable/index.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
import ThemeImage from '@/components/ThemeImage'
import React from 'react'

const Customizable = () => {
return (
<div className="pt-24 pb-20 nextra-wrap-container">
<div className="w-full text-center">
<h1 className="text-5xl lg:text-7xl !font-normal leading-tight lg:leading-tight mt-2 font-serif">
Highly Customizable
</h1>
<div className="lg:w-1/2 mx-auto">
<p className="leading-relaxed mt-2 text-black/60 dark:text-white/60">
Customize Jan to match your needs and preferences.
</p>
</div>
</div>

<div className="flex gap-4 flex-col lg:flex-row mt-10 ">
<div className="w-full lg:w-1/2 border border-neutral-200 rounded-2xl dark:border-neutral-800">
<div className="p-6">
<div className="flex gap-2 items-center">
<h1 className="text-2xl font-medium">Assistants & Memory</h1>
<div className="font-medium text-sm bg-blue-100 rounded-lg px-2 py-1 text-blue-700">
Coming Soon
</div>
</div>
<p className="text-lg mt-4 text-black/60 dark:text-white/60">
Create personalized AI assistants that remember your conversations
and execute specific tasks across your systems.
</p>
</div>

<div className="relative p-3">
<ThemeImage
alt="App Screenshot Feature"
width={800}
height={800}
className="w-full h-full object-cover object-center"
priority
source={{
light: '/assets/images/homepage/assistant-light.png',
dark: '/assets/images/homepage/assistant-dark.png',
}}
/>
</div>
</div>
<div className="w-full lg:w-1/2 border border-neutral-200 rounded-2xl dark:border-neutral-800">
<div className="p-6">
<h1 className="text-2xl font-medium">Extensions</h1>
<p className="text-lg mt-4 text-black/60 dark:text-white/60">
Customize Jan with Extensions, that range from Cloud AI
connectors, tools, data connectors.
</p>
</div>

<div className="relative p-3">
<ThemeImage
alt="App Screenshot Feature"
width={800}
height={800}
className="w-full h-full object-cover object-center"
priority
source={{
light: '/assets/images/homepage/extension-light.png',
dark: '/assets/images/homepage/extension-dark.png',
}}
/>
</div>
</div>
</div>
</div>
)
}

export default Customizable
66 changes: 39 additions & 27 deletions src/components/Home/Feature/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,25 +5,30 @@ import { twMerge } from 'tailwind-merge'

const features = [
{
title: 'Local',
title: 'Chat with AI',
experimantal: false,
description:
'Run AI models like Llama or Mistral directly on your device for enhanced privacy. No need for an internet connection- keep all your data and processing locally.',
'Ask your questions, brainstorm, and learn from the AI running on your device to be more productive.',
},
{
title: 'Remote API',
description: `Connect to remote APIs, like OpenAI, Groq, or Mistral API. Access AI capabilities without needing advanced hardware, with all processing handled in the cloud.`,
title: 'Model Hub',
experimantal: false,
description: `Download and Run powerful models like Llama3, Gemma or Mistral on your computer.`,
},
{
title: '100% offline',
description: `Conversations, preferences, and model usage stay on your computer. It's secure, exportable, and can be deleted at any time.`,
title: 'Connect to Cloud AIs',
experimantal: false,
description: `You can also route to more powerful cloud models, like OpenAI, Groq, Cohere etc., when needed.`,
},
{
title: 'Cross Platform',
description: `Jan is optimized for any device, from PCs to multi-GPU clusters. It's fast on NVIDIA GPUs and Apple M-series, supporting Apple Intel, Linux Debian, and Windows x64.`,
title: 'Local API Server',
experimantal: false,
description: `Set up and run your own OpenAI-compatible API server using local models with just one click.`,
},
{
title: 'Extensions',
description: `Customize Jan with Extensions to meet your specific needs, enhancing your AI experience to be uniquely yours.`,
title: 'Chat with your files',
experimantal: true,
description: `Set up and run your own OpenAI-compatible API server using local models with just one click.`,
},
]

Expand All @@ -43,7 +48,7 @@ const Feature = () => {
</div>

<div className="flex lg:flex-row flex-col items-start gap-10 xl:gap-14 mt-10">
<div className="w-full lg:w-2/5 px-4 lg:p-0">
<div className="w-full lg:w-1/2 px-4 lg:p-0">
{features.map((feature, i) => {
const isActive = activeFeature === i
return (
Expand All @@ -65,7 +70,14 @@ const Feature = () => {
0{i + 1}
</h1>
<div>
<h6 className="text-xl font-bold">{feature.title}</h6>
<div className="flex items-center gap-x-2">
<h6 className="text-xl font-bold">{feature.title}</h6>
{feature.experimantal && (
<div className="font-medium text-sm bg-blue-100 rounded-lg px-2 py-1 text-blue-700">
Experimantal
urmauur marked this conversation as resolved.
Show resolved Hide resolved
</div>
)}
</div>
<p
className={twMerge(
'mt-1 leading-relaxed text-black/60 dark:text-white/60 hidden',
Expand All @@ -87,11 +99,11 @@ const Feature = () => {
alt="App Screenshot Feature"
width={800}
height={800}
className="w-full"
className="w-full h-full object-cover object-center"
priority
source={{
light: '/assets/images/homepage/features01.webp',
dark: '/assets/images/homepage/features01dark.webp',
light: '/assets/images/homepage/features01.png',
dark: '/assets/images/homepage/features01dark.png',
}}
/>
)}
Expand All @@ -100,11 +112,11 @@ const Feature = () => {
alt="App Screenshot Feature"
width={800}
height={800}
className="w-full"
className="w-full h-full object-cover object-center"
priority
source={{
light: '/assets/images/homepage/features02.webp',
dark: '/assets/images/homepage/features02dark.webp',
light: '/assets/images/homepage/features02.png',
dark: '/assets/images/homepage/features02dark.png',
}}
/>
)}
Expand All @@ -113,11 +125,11 @@ const Feature = () => {
alt="App Screenshot Feature"
width={800}
height={800}
className="w-full"
className="w-full h-full object-cover object-center"
priority
source={{
light: '/assets/images/homepage/features03.webp',
dark: '/assets/images/homepage/features03dark.webp',
light: '/assets/images/homepage/features03.png',
dark: '/assets/images/homepage/features03dark.png',
}}
/>
)}
Expand All @@ -126,11 +138,11 @@ const Feature = () => {
alt="App Screenshot Feature"
width={800}
height={800}
className="w-full"
className="w-full h-full object-cover object-center"
priority
source={{
light: '/assets/images/homepage/features04.webp',
dark: '/assets/images/homepage/features04dark.webp',
light: '/assets/images/homepage/features04.png',
dark: '/assets/images/homepage/features04dark.png',
}}
/>
)}
Expand All @@ -139,11 +151,11 @@ const Feature = () => {
alt="App Screenshot Feature"
width={800}
height={800}
className="w-full"
className="w-full h-full object-cover object-center"
priority
source={{
light: '/assets/images/homepage/features05.webp',
dark: '/assets/images/homepage/features05dark.webp',
light: '/assets/images/homepage/features05.png',
dark: '/assets/images/homepage/features05dark.png',
}}
/>
)}
Expand Down
Loading
Loading