manage default CTAs

This commit is contained in:
timothycarambat 2023-06-08 14:26:29 -07:00
parent d5951fd5a2
commit 93ee4349ba
4 changed files with 21 additions and 10 deletions

View File

@ -3,6 +3,7 @@ import { GitHub, GitMerge, Mail, Plus } from "react-feather";
import NewWorkspaceModal, { import NewWorkspaceModal, {
useNewWorkspaceModal, useNewWorkspaceModal,
} from "../Modals/NewWorkspace"; } from "../Modals/NewWorkspace";
import paths from "../../utils/paths";
export default function DefaultChatContainer() { export default function DefaultChatContainer() {
const [mockMsgs, setMockMessages] = useState([]); const [mockMsgs, setMockMessages] = useState([]);
@ -65,7 +66,8 @@ export default function DefaultChatContainer() {
makes it easy to use. makes it easy to use.
</p> </p>
<a <a
href="" href={paths.github()}
target="_blank"
className="mt-4 w-fit flex flex-grow gap-x-2 py-[5px] px-4 border border-slate-400 rounded-lg text-slate-800 dark:text-slate-200 justify-start items-center hover:bg-slate-100 dark:hover:bg-stone-900 dark:bg-stone-900" className="mt-4 w-fit flex flex-grow gap-x-2 py-[5px] px-4 border border-slate-400 rounded-lg text-slate-800 dark:text-slate-200 justify-start items-center hover:bg-slate-100 dark:hover:bg-stone-900 dark:bg-stone-900"
> >
<GitMerge className="h-4 w-4" /> <GitMerge className="h-4 w-4" />
@ -192,7 +194,8 @@ export default function DefaultChatContainer() {
</p> </p>
<div className="flex items-center gap-x-4"> <div className="flex items-center gap-x-4">
<a <a
href="" href={paths.github()}
target="_blank"
className="mt-4 w-fit flex flex-grow gap-x-2 py-[5px] px-4 border border-slate-400 rounded-lg text-slate-800 dark:text-slate-200 justify-start items-center hover:bg-slate-100 dark:hover:bg-stone-900 dark:bg-stone-900" className="mt-4 w-fit flex flex-grow gap-x-2 py-[5px] px-4 border border-slate-400 rounded-lg text-slate-800 dark:text-slate-200 justify-start items-center hover:bg-slate-100 dark:hover:bg-stone-900 dark:bg-stone-900"
> >
<GitHub className="h-4 w-4" /> <GitHub className="h-4 w-4" />
@ -201,7 +204,7 @@ export default function DefaultChatContainer() {
</p> </p>
</a> </a>
<a <a
href="" href={paths.mailToMintplex()}
className="mt-4 w-fit flex flex-grow gap-x-2 py-[5px] px-4 border border-slate-400 rounded-lg text-slate-800 dark:text-slate-200 justify-start items-center hover:bg-slate-100 dark:hover:bg-stone-900 dark:bg-stone-900" className="mt-4 w-fit flex flex-grow gap-x-2 py-[5px] px-4 border border-slate-400 rounded-lg text-slate-800 dark:text-slate-200 justify-start items-center hover:bg-slate-100 dark:hover:bg-stone-900 dark:bg-stone-900"
> >
<Mail className="h-4 w-4" /> <Mail className="h-4 w-4" />

View File

@ -80,7 +80,8 @@ export default function Sidebar() {
<IndexCount /> <IndexCount />
</div> </div>
<a <a
href="" href={paths.hosting()}
target="_blank"
className="flex flex-grow w-[100%] h-[36px] gap-x-2 py-[5px] px-4 border border-slate-400 dark:border-transparent rounded-lg text-slate-800 dark:text-slate-200 justify-center items-center hover:bg-slate-100 dark:bg-stone-800 dark:hover:bg-stone-900" className="flex flex-grow w-[100%] h-[36px] gap-x-2 py-[5px] px-4 border border-slate-400 dark:border-transparent rounded-lg text-slate-800 dark:text-slate-200 justify-center items-center hover:bg-slate-100 dark:bg-stone-800 dark:hover:bg-stone-900"
> >
<Cpu className="h-4 w-4" /> <Cpu className="h-4 w-4" />
@ -89,12 +90,13 @@ export default function Sidebar() {
</p> </p>
</a> </a>
<a <a
href="" href={paths.hosting()}
target="_blank"
className="flex flex-grow w-[100%] h-[36px] gap-x-2 py-[5px] px-4 border border-slate-400 dark:border-transparent rounded-lg text-slate-800 dark:text-slate-200 justify-center items-center hover:bg-slate-100 dark:bg-stone-800 dark:hover:bg-stone-900" className="flex flex-grow w-[100%] h-[36px] gap-x-2 py-[5px] px-4 border border-slate-400 dark:border-transparent rounded-lg text-slate-800 dark:text-slate-200 justify-center items-center hover:bg-slate-100 dark:bg-stone-800 dark:hover:bg-stone-900"
> >
<Briefcase className="h-4 w-4" /> <Briefcase className="h-4 w-4" />
<p className="text-slate-800 dark:text-slate-200 text-xs leading-loose font-semibold"> <p className="text-slate-800 dark:text-slate-200 text-xs leading-loose font-semibold">
Enterpise Installation Enterprise Installation
</p> </p>
</a> </a>
</div> </div>

View File

@ -3,14 +3,17 @@ export default {
return "/"; return "/";
}, },
github: () => { github: () => {
return "/"; return "https://github.com/Mintplex-Labs/anything-llm";
}, },
docs: () => { docs: () => {
return "/"; return "https://discord.com/invite/6UyHPeGZAC";
}, },
mailToMintplex: () => { mailToMintplex: () => {
return "mailto:team@mintplex.xyz"; return "mailto:team@mintplex.xyz";
}, },
hosting: () => {
return "https://form.typeform.com/to/KdSCdSvq";
},
workspace: { workspace: {
chat: (slug) => { chat: (slug) => {
return `/workspace/${slug}`; return `/workspace/${slug}`;

View File

@ -1,7 +1,6 @@
SERVER_PORT=5000 SERVER_PORT=5000
OPEN_AI_KEY= OPEN_AI_KEY=
OPEN_MODEL_PREF='gpt-3.5-turbo' OPEN_MODEL_PREF='gpt-3.5-turbo'
# AUTH_TOKEN="hunter2" # This is the password to your application if remote hosting.
CACHE_VECTORS="true" CACHE_VECTORS="true"
# Enable all below if you are using vector database: Chroma. # Enable all below if you are using vector database: Chroma.
@ -13,3 +12,7 @@ VECTOR_DB="pinecone"
PINECONE_ENVIRONMENT= PINECONE_ENVIRONMENT=
PINECONE_API_KEY= PINECONE_API_KEY=
PINECONE_INDEX= PINECONE_INDEX=
# CLOUD DEPLOYMENT VARIRABLES ONLY
# AUTH_TOKEN="hunter2" # This is the password to your application if remote hosting.
# STORAGE_DIR= # absolute filesystem path with no trailing slash