Skip to content
Merged
Show file tree
Hide file tree
Changes from all 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
12 changes: 6 additions & 6 deletions next/components/molecules/Tour.js
Original file line number Diff line number Diff line change
Expand Up @@ -202,9 +202,9 @@ export const startFirstTour = (locale) => {
'<div class="tour-step">Paso 2 de 10</div>Verifique la cobertura temporal de la tabla'
),
intro: translateText(locale,
'A cobertura temporal dos dados pode variar entre <strong>totalmente grátis</strong>, <strong>parcialmente grátis</strong> e <strong>totalmente pago</strong>. Os dados dentro do intervalo de anos gratuitos podem ser acessados sem custos, enquanto os dados nos anos pagos exigem uma assinatura do plano <strong>Pro</strong> ou <strong>Empresas</strong>.',
'The temporal coverage of data may vary between <strong>fully free</strong>, <strong>partially free</strong>, and <strong>fully paid</strong>. Data within the free year range can be accessed at no cost, while data in paid years requires a <strong>Pro</strong> or <strong>Enterprise</strong> plan subscription.',
'La cobertura temporal de los datos puede variar entre <strong>totalmente gratuito</strong>, <strong>parcialmente gratuito</strong> y <strong>totalmente pago</strong>. Los datos dentro del rango de años gratuitos pueden ser accedidos sin costo, mientras que los datos en los años pagos requieren una suscripción al plan <strong>Pro</strong> o <strong>Empresas</strong>.'
'A cobertura temporal dos dados pode variar entre <strong>totalmente grátis</strong>, <strong>parcialmente grátis</strong> e <strong>totalmente pago</strong>. Os dados dentro do intervalo de anos gratuitos podem ser acessados sem custos, enquanto os dados nos anos pagos exigem uma assinatura do plano <strong>Pro</strong> ou <strong>BD Orgs</strong>.',
'The temporal coverage of data may vary between <strong>fully free</strong>, <strong>partially free</strong>, and <strong>fully paid</strong>. Data within the free year range can be accessed at no cost, while data in paid years requires a <strong>Pro</strong> or <strong>DB Orgs</strong> plan subscription.',
'La cobertura temporal de los datos puede variar entre <strong>totalmente gratuito</strong>, <strong>parcialmente gratuito</strong> y <strong>totalmente pago</strong>. Los datos dentro del rango de años gratuitos pueden ser accedidos sin costo, mientras que los datos en los años pagos requieren una suscripción al plan <strong>Pro</strong> o <strong>BD Orgs</strong>.'
),
position: 'right'
},
Expand Down Expand Up @@ -384,9 +384,9 @@ export const startThirdTour = (locale) => {
'<div class="tour-step">Paso 8 de 10</div>Acceso mediante Descarga'
),
intro: translateText(locale,
'Clique no botão para baixar o arquivo <strong>CSV</strong> diretamente na plataforma. Lembre-se de que o download está disponível apenas para tabelas de até <strong>1 GB</strong>. Tabelas até <strong>100 MB</strong> podem ser baixadas <strong>gratuitamente</strong>, enquanto tabelas entre <strong>100 MB</strong> e <strong>1 GB</strong> exigem uma assinatura do plano <strong>Pro</strong> ou <strong>Empresas</strong>.',
'Click the button to download the <strong>CSV</strong> file directly from the platform. Please note downloads are only available for tables up to <strong>1 GB</strong>. Tables up to <strong>100 MB</strong> can be downloaded <strong>for free</strong>, while tables between <strong>100 MB</strong> and <strong>1 GB</strong> require a <strong>Pro</strong> or <strong>Enterprise</strong> plan subscription.',
'Haga clic en el botón para descargar el archivo <strong>CSV</strong> directamente en la plataforma. Tenga en cuenta que la descarga solo está disponible para tablas de hasta <strong>1 GB</strong>. Las tablas de hasta <strong>100 MB</strong> se pueden descargar <strong>gratuitamente</strong>, mientras que las tablas entre <strong>100 MB</strong> y <strong>1 GB</strong> requieren una suscripción al plan <strong>Pro</strong> o <strong>Empresas</strong>.'
'Clique no botão para baixar o arquivo <strong>CSV</strong> diretamente na plataforma. Lembre-se de que o download está disponível apenas para tabelas de até <strong>1 GB</strong>. Tabelas até <strong>100 MB</strong> podem ser baixadas <strong>gratuitamente</strong>, enquanto tabelas entre <strong>100 MB</strong> e <strong>1 GB</strong> exigem uma assinatura do plano <strong>Pro</strong> ou <strong>BD Orgs</strong>.',
'Click the button to download the <strong>CSV</strong> file directly from the platform. Please note downloads are only available for tables up to <strong>1 GB</strong>. Tables up to <strong>100 MB</strong> can be downloaded <strong>for free</strong>, while tables between <strong>100 MB</strong> and <strong>1 GB</strong> require a <strong>Pro</strong> or <strong>DB Orgs</strong> plan subscription.',
'Haga clic en el botón para descargar el archivo <strong>CSV</strong> directamente en la plataforma. Tenga en cuenta que la descarga solo está disponible para tablas de hasta <strong>1 GB</strong>. Las tablas de hasta <strong>100 MB</strong> se pueden descargar <strong>gratuitamente</strong>, mientras que las tablas entre <strong>100 MB</strong> y <strong>1 GB</strong> requieren una suscripción al plan <strong>Pro</strong> o <strong>BD Orgs</strong>.'
),
position: 'left'
},
Expand Down
33 changes: 29 additions & 4 deletions next/components/organisms/componentsUserPage/PlansAndPayment.js
Original file line number Diff line number Diff line change
Expand Up @@ -175,8 +175,6 @@ export default function PlansAndPayment ({ userData }) {
const filteredPlans = {
bd_pro_month : filterData("BD Pro", "month", true, 47)[0].node,
bd_pro_year : filterData("BD Pro", "year", true, 444)[0].node,
bd_empresas_month : filterData("BD Empresas", "month", true, 385)[0].node,
bd_empresas_year : filterData("BD Empresas", "year", true, 3700)[0].node,
bd_chatbot_month : filterChatbot("month", 30)[0]?.node,
bd_chatbot_year : filterChatbot("year", 326)[0]?.node,
}
Expand Down Expand Up @@ -347,7 +345,15 @@ export default function PlansAndPayment ({ userData }) {
}],
resources : [
{name: t('username.accessFor10Accounts')},
{name: t('username.prioritySupport')}
{name: t('username.prioritySupport')},
{name: t('username.bdOrgsChatbot'), hideInListFeature: true},
{name: t('username.bdOrgsSegmentedInfrastructure')},
{name: t('username.bdOrgsUnifiedBilling')},
{
name: t('username.bdOrgsSpecializedServices'),
linkText: t('username.bdOrgsLearnMore'),
linkHref: '/services',
},
]}
}

Expand All @@ -361,6 +367,8 @@ export default function PlansAndPayment ({ userData }) {
}

const ListFeature = ({ elm, index, notIncludes = false }) => {
if (!elm || elm === "" || elm.hideInListFeature) return null;

return (
<Box key={index} display="flex" alignItems="center">
{notIncludes ?
Expand All @@ -371,7 +379,24 @@ export default function PlansAndPayment ({ userData }) {
<BodyText
typography="small"
color="#464A51"
>{elm.name}</BodyText>
>
{elm.linkHref ? (
<>
{elm.name}{" "}
<Link
href={elm.linkHref}
color="#0068C5"
_hover={{ color: "#0057A4" }}
fontSize="14px"
fontWeight="400"
>
{elm.linkText}
</Link>
</>
) : (
elm.name
)}
</BodyText>
{elm.tooltip &&
<Tooltip
label={elm.tooltip}
Expand Down
8 changes: 7 additions & 1 deletion next/pages/api/stripe/getPlans.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,5 +40,11 @@ export default async function handler(req, res) {
if(result.errors) return res.status(500).json({error: result.errors, success: false})
if(result === "err") return res.status(500).json({error: "err", success: false})

res.status(200).json({data: result?.data?.allStripePrice?.edges, success: true})
const edges = (result?.data?.allStripePrice?.edges ?? []).filter(({ node }) => {
const name = node.productName?.toLowerCase() || ""
const slug = node.productSlug?.toLowerCase() || ""
return !name.includes("empresas") && !slug.includes("empresas")
})

res.status(200).json({ data: edges, success: true })
}
58 changes: 58 additions & 0 deletions next/pages/bd-orgs.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
import { Box, Stack } from "@chakra-ui/react";
import Head from "next/head";
import Script from "next/script";
import { useTranslation } from "next-i18next";
import { serverSideTranslations } from "next-i18next/serverSideTranslations";
import { MainPageTemplate } from "../components/templates/main";
import { withPages } from "../hooks/pages.hook";

export async function getStaticProps({ locale }) {
const pages = await withPages();
return {
props: {
...pages,
...(await serverSideTranslations(locale, ["common", "menu", "bd-orgs"])),
},
};
}

export default function BdOrgs() {
const { t } = useTranslation("bd-orgs");

return (
<MainPageTemplate paddingX="24px">
<Head>
<title>{t("pageTitle")}</title>
<meta property="og:title" content={t("pageTitle")} key="ogtitle" />
<meta
property="og:description"
content={t("pageDescription")}
key="ogdesc"
/>
</Head>

<Script
src="https://js.hsforms.net/forms/embed/9331013.js"
strategy="afterInteractive"
/>

<Stack
width="100%"
maxWidth="800px"
alignItems="center"
margin="50px auto 80px"
spacing="40px"
>
<Box
className="hs-form-frame"
data-region="na1"
data-form-id="744b422f-59fb-4894-ab8a-9aa20954593e"
data-portal-id="9331013"
width="100%"
minWidth={{ base: "100%", lg: "900px" }}
maxWidth="1200px"
/>
</Stack>
</MainPageTemplate>
);
}
Loading