Repository navigation
improvement(landing): homepage FAQ for category questions and a startup pricing comparison #10371
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
+342
−0
Merged
Changes from all commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,36 @@ | ||
| import { INTEGRATION_COUNT_LABEL } from '@sim/deployment-config/integration-claims' | ||
|
|
||
| /** | ||
| * Category questions answer engines ask before they name a product: what Sim is, who can | ||
| * build with it, how it is hosted, deployed, and governed. Every answer restates a claim the | ||
| * homepage already makes (`HOME_FEATURES`, the security certifications) and names the plan or | ||
| * license a claim depends on. The FAQPage JSON-LD reads this same array, so the structured | ||
| * answers always equal the visible ones. | ||
| * Pricing questions live on `/pricing`; do not repeat them here. | ||
| */ | ||
| export const HOME_FAQS = [ | ||
| { | ||
| question: 'Is Sim an AI agent builder?', | ||
| answer: `Yes. Sim is the open-source AI workspace where teams build, deploy, and manage AI agents. Build an agent visually in the workflow builder, describe it in Chat and let Sim build it, or write it with code through the API and CLI, using ${INTEGRATION_COUNT_LABEL} integrations and every major LLM.`, | ||
| }, | ||
| { | ||
| question: 'Can non-technical teams build AI agents in Sim?', | ||
| answer: | ||
| 'Yes. In Chat, anyone can describe the agent they need in plain language and Sim builds it. The visual workflow builder shows every step, so teams can review and adjust an agent without writing code, and engineers can extend it with custom functions, the API, or the CLI.', | ||
| }, | ||
| { | ||
| question: 'Is Sim open source, and can I self-host it?', | ||
| answer: | ||
| "Yes. Sim's core is open source under the Apache 2.0 license and runs in your own cloud with Docker or Kubernetes, or you can use the hosted workspace at sim.ai. Enterprise features such as SSO and access control need a separate license.", | ||
| }, | ||
| { | ||
| question: 'How do teams deploy agents built in Sim?', | ||
| answer: | ||
| 'Deploy an agent as a chat, an API endpoint, or an MCP server, the standard way other AI tools call an agent. A chat can be public or limited to SSO, specific emails, or a password. Agents can also run on a schedule or start from event triggers in connected apps.', | ||
| }, | ||
| { | ||
| question: 'How does Sim govern AI agents across a company?', | ||
| answer: | ||
| "Sim's Enterprise plan gives administrators permission groups that control which models, integrations, and tools each team can use, organization and per-member spend limits, audit records, single sign-on with domain verification, and configurable data retention. Every plan traces each run in Logs, and Sim is SOC 2 Type II compliant.", | ||
| }, | ||
| ] as const |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,68 @@ | ||
| import { ChevronDown, cn } from '@sim/emcn' | ||
| import { SITE_URL } from '@/lib/core/utils/urls' | ||
| import { HOME_FAQS } from '@/app/(landing)/components/home-faq/faqs' | ||
| import { JsonLd } from '@/app/(landing)/components/json-ld' | ||
| import { | ||
| HOME_INSET, | ||
| HOME_TYPE, | ||
| LANDING_CONTENT_WIDTH, | ||
| LANDING_GUTTER, | ||
| } from '@/app/(landing)/components/landing-layout' | ||
|
|
||
| const HOME_FAQ_JSON_LD = { | ||
| '@context': 'https://schema.org', | ||
| '@type': 'FAQPage', | ||
| '@id': `${SITE_URL}#faq`, | ||
| mainEntity: HOME_FAQS.map(({ question, answer }) => ({ | ||
| '@type': 'Question', | ||
| name: question, | ||
| acceptedAnswer: { '@type': 'Answer', text: answer }, | ||
| })), | ||
| } | ||
|
|
||
| /** | ||
| * Homepage FAQ with matching `FAQPage` JSON-LD. Native `<details>` rows keep it a server | ||
| * component: the homepage loads its animated islands with `next/dynamic`, and the animated | ||
| * `LandingFAQ` would put framer-motion in the initial bundle. Closed answers stay in the HTML. | ||
| */ | ||
| export function HomeFAQ() { | ||
| return ( | ||
| <section | ||
| id='faq' | ||
| aria-labelledby='home-faq-heading' | ||
| className={cn('flex w-full flex-col', LANDING_CONTENT_WIDTH, LANDING_GUTTER)} | ||
| > | ||
| <JsonLd data={HOME_FAQ_JSON_LD} /> | ||
| <div | ||
| className={cn( | ||
| 'flex items-start justify-between gap-10 max-sm:gap-5 max-xl:flex-col', | ||
| HOME_INSET | ||
| )} | ||
| > | ||
| <h2 | ||
| id='home-faq-heading' | ||
| className={cn( | ||
| 'max-w-[16ch] text-balance text-[var(--text-primary)] md:w-1/2', | ||
| HOME_TYPE.h2 | ||
| )} | ||
| > | ||
| Questions teams ask about Sim | ||
| </h2> | ||
| <div className='w-full divide-y divide-[var(--border)] xl:w-1/2'> | ||
| {HOME_FAQS.map(({ question, answer }, index) => ( | ||
| <details key={question} open={index === 0} className='group'> | ||
| <summary className='flex cursor-pointer list-none items-center justify-between gap-4 py-4 text-[var(--text-body)] transition-colors hover:text-[var(--text-primary)] group-open:text-[var(--text-primary)] [&::-webkit-details-marker]:hidden'> | ||
| <h3 className='text-base leading-snug tracking-[-0.02em]'>{question}</h3> | ||
| <ChevronDown | ||
| className='size-3 shrink-0 text-[var(--text-muted)] transition-transform duration-200 group-open:rotate-180' | ||
| aria-hidden='true' | ||
| /> | ||
| </summary> | ||
| <p className='pb-4 text-[var(--text-body)] text-sm leading-[1.75]'>{answer}</p> | ||
| </details> | ||
| ))} | ||
| </div> | ||
| </div> | ||
| </section> | ||
| ) | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,2 @@ | ||
| export { HOME_FAQS } from './faqs' | ||
| export { HomeFAQ } from './home-faq' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.