();
useEffect(() => {
switch (platform) {
case "macos":
setScreenshotUrl(`/screenshot_desktop_mac_${colorScheme}.webp`);
break;
case "linux":
setScreenshotUrl(`/screenshot_desktop_linux_${colorScheme}.webp`);
break;
case "windows":
default:
setScreenshotUrl(`/screenshot_desktop_win_${colorScheme}.webp`);
break;
}
}, [ colorScheme ]);
return (
{t("hero_section.title")}
{t("hero_section.subtitle")}
{screenshotUrl &&

}
)
}
function OrganizationBenefitsSection() {
const { t } = useTranslation();
return (
<>
{t("organization_benefits.note_structure_description")}
{t("organization_benefits.attributes_description")}
{t("organization_benefits.hoisting_description")}
>
);
}
function ProductivityBenefitsSection() {
const { t } = useTranslation();
return (
<>
{t("productivity_benefits.revisions_content")}
{t("productivity_benefits.sync_content")}
{t("productivity_benefits.protected_notes_content")}
{t("productivity_benefits.jump_to_content")}
{t("productivity_benefits.search_content")}
{t("productivity_benefits.web_clipper_content")}
>
);
}
function NoteTypesSection() {
const { t } = useTranslation();
return (
);
}
function ExtensibilityBenefitsSection() {
const { t } = useTranslation();
return (
<>
{t("extensibility_benefits.import_export_description")}
{t("extensibility_benefits.share_description")}
{t("extensibility_benefits.scripting_description")}
{t("extensibility_benefits.api_description")}
>
);
}
function CollectionsSection() {
const { t } = useTranslation();
return (
);
}
function ListWithScreenshot({ items, horizontal, cardExtra }: {
items: { title: string, imageUrl: string, description: string, moreInfo: string, iconSvg?: string }[];
horizontal?: boolean;
cardExtra?: ComponentChildren;
}) {
const [ selectedItem, setSelectedItem ] = useState(items[0]);
const { t } = useTranslation();
return (
{items.map(item => (
-
setSelectedItem(item)}
onClick={() => setSelectedItem(item)}
moreInfoUrl={item.moreInfo}
iconSvg={item.iconSvg}
>
{item.description}
))}
{selectedItem && (
<>

>
)}
)
}
function FaqSection() {
const { t } = useTranslation();
return (
{t("faq.mobile_answer")}
{t("faq.database_answer")}
{t("faq.server_answer")}
{t("faq.scaling_answer")}
{t("faq.network_share_answer")}
{t("faq.security_answer")}
);
}
function FaqItem({ question, children }: { question: string; children: ComponentChildren }) {
return (
{children}
)
}
function FinalCta() {
const { t } = useTranslation();
return (
{t("final_cta.description")}
)
}