Skip to content

Commit 75310ae

Browse files
authored
Merge pull request #1333 from basedosdados/feat/AB-services
feat/AB-services
2 parents 09e51e7 + 188c16b commit 75310ae

File tree

3 files changed

+40
-7
lines changed

3 files changed

+40
-7
lines changed

next/components/molecules/Menu.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -74,14 +74,14 @@ function MenuDrawer({ userData, isOpen, onClose, links }) {
7474
widthImage="65px"
7575
heightImage="30px"
7676
marginBottom="24px"
77-
onClick={() => router.push('/search')}
77+
onClick={() => router.push('/')}
7878
/>
7979
) : (
8080
<BDLogoImage
8181
widthImage="65px"
8282
heightImage="30px"
8383
marginBottom="24px"
84-
onClick={() => router.push('/search')}
84+
onClick={() => router.push('/')}
8585
/>
8686
)}
8787
<VStack alignItems="flex-start" width="100%" spacing="16px">
@@ -210,14 +210,14 @@ function MenuDrawerUser({ userData, isOpen, onClose, isUserPro, haveInterprisePl
210210
widthImage="65px"
211211
heightImage="30px"
212212
marginBottom="24px"
213-
onClick={() => router.push('/search')}
213+
onClick={() => router.push('/')}
214214
/>
215215
) : (
216216
<BDLogoImage
217217
widthImage="65px"
218218
heightImage="30px"
219219
marginBottom="24px"
220-
onClick={() => router.push('/search')}
220+
onClick={() => router.push('/')}
221221
/>
222222
)}
223223

@@ -1047,7 +1047,7 @@ export default function MenuNav({ simpleTemplate = false, userTemplate = false }
10471047
width="80px"
10481048
minWidth="80px"
10491049
_hover={{opacity:"none"}}
1050-
href={"/search"}
1050+
href={"/"}
10511051
marginLeft="0 !important"
10521052
transition="0.5s"
10531053
overflow="hidden"

next/components/molecules/ServiceHighlightABTest.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import BodyText from '../atoms/Text/BodyText';
44
import LabelText from '../atoms/Text/LabelText';
55
import Link from '../atoms/Link';
66
import Button from '../atoms/Button';
7+
import { triggerGAEvent } from '../../utils';
78
import RedirectIcon from '../../public/img/icons/redirectIcon';
89

910
export default function ServiceHighlightABTest({
@@ -13,6 +14,7 @@ export default function ServiceHighlightABTest({
1314
buttonText,
1415
link,
1516
imageUrl,
17+
value
1618
}) {
1719
return (
1820
<Stack
@@ -41,6 +43,7 @@ export default function ServiceHighlightABTest({
4143
marginTop="16px !important"
4244
backgroundColor="transparent"
4345
_hover={{ backgroundColor: 'transparent' }}
46+
onClick={() => {triggerGAEvent("button_service_highlight_ab", value)}}
4447
>
4548
<LabelText typography="small" color="current-color">
4649
{buttonText}

next/pages/dataset/[dataset].js

Lines changed: 32 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -290,15 +290,17 @@ export default function DatasetPage ({ dataset, userGuide, hiddenDataset, verify
290290
description: "Estruturamos ambientes em nuvem, pipelines e APIs para ingestão, tratamento e integração de dados públicos e privados. Tudo com automação, segurança e rastreabilidade para escalar suas análises e produtos.",
291291
buttonText: "Conheça os serviços de consultoria",
292292
link: "/services",
293-
imageUrl: "https://storage.googleapis.com/basedosdados-website/images/image-servicos.svg"
293+
imageUrl: "https://storage.googleapis.com/basedosdados-website/images/image-servicos.svg",
294+
value: "A"
294295
},
295296
B: {
296297
id: "solucoes-de-dados-para-toda-a-jornada",
297298
title: "Soluções de dados para toda a jornada",
298299
description: "Do diagnóstico à visualização, oferecemos serviços completos para transformar dados em valor: arquitetura, portais, painéis, chatbots e formação. Tudo sob medida para sua organização evoluir com dados.",
299300
buttonText: "Conheça os serviços de consultoria",
300301
link: "/services",
301-
imageUrl: "https://storage.googleapis.com/basedosdados-website/images/image-servicos.svg"
302+
imageUrl: "https://storage.googleapis.com/basedosdados-website/images/image-servicos.svg",
303+
value: "B"
302304
}
303305
};
304306

@@ -351,6 +353,34 @@ export default function DatasetPage ({ dataset, userGuide, hiddenDataset, verify
351353
onClose={modalSurveyTour.onClose}
352354
/>
353355

356+
<Stack
357+
display={{base: "none", md: "flex"}}
358+
width="100%"
359+
spacing="0"
360+
gap="8px"
361+
paddingY="8px"
362+
flexDirection="row"
363+
alignItems="flex-start"
364+
>
365+
<Link
366+
target="_self"
367+
href="/search"
368+
>
369+
<BodyText
370+
color="#0068C5"
371+
_hover={{
372+
color: "#0057A4"
373+
}}
374+
>
375+
Dados
376+
</BodyText>
377+
</Link>
378+
<BodyText>/</BodyText>
379+
<BodyText>
380+
{dataset[`name${capitalize(locale)}`] || dataset.name || t('noName')}
381+
</BodyText>
382+
</Stack>
383+
354384
<Grid
355385
templateColumns={{ base: "1fr", lg: "295px 1fr" }}
356386
width="100%"

0 commit comments

Comments
 (0)