Skip to content

Commit

Permalink
fix taco images paths and buttons texts
Browse files Browse the repository at this point in the history
  • Loading branch information
evandrosaturnino committed Mar 20, 2024
1 parent 0a3a1ed commit 029fd00
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 14 deletions.
4 changes: 2 additions & 2 deletions src/content/pages/build/taco.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ tacoDiagrams:
- label: "taco-web"
url: https://github.com/nucypher/taco-web
variant: EXTERNAL_OUTLINE
- label: "nucypher/nucypher"
- label: "nucypher/main"
url: https://github.com/nucypher/nucypher/tree/main
variant: EXTERNAL_OUTLINE
- title: "Accessing Decrypted Data"
Expand All @@ -79,7 +79,7 @@ tacoDiagrams:
- label: "taco-web"
url: https://github.com/nucypher/taco-web
variant: EXTERNAL_OUTLINE
- label: "nucypher/nucypher"
- label: "nucypher/main"
url: https://github.com/nucypher/nucypher/tree/main
variant: EXTERNAL_OUTLINE
tacoExamplesInfo:
Expand Down
12 changes: 6 additions & 6 deletions src/templates/build-page/taco/TacoDiagrams.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React, { FC, useState } from "react"
import { Box, Stack } from "@chakra-ui/react"
import { Box, Stack, Image as ChakraImage } from "@chakra-ui/react"
import { BodyLg, H3, LabelMd } from "../../../components/Typography"
import {
PageSection,
Expand Down Expand Up @@ -35,7 +35,7 @@ const TacoDiagrams: FC<TacoDiagramsProps> = ({
return (
<PageSection withMediumPadding position="relative">
<ResponsiveStack rowGap={12} alignItems="center">
<Box maxW={{ base: "100%", md: "350px" }}>
<Box maxW={{ base: "100%", md: "370px" }}>
<LabelMd textTransform="uppercase" color="gray.500">
{currentDiagram.preTitle}
</LabelMd>
Expand All @@ -56,9 +56,9 @@ const TacoDiagrams: FC<TacoDiagramsProps> = ({
variant="outline"
size="md"
fontSize="14px"
maxW="10rem"
maxW="12rem"
width="100%"
py="20px"
py="24px"
>
{button.label}
</ExternalButtonLink>
Expand All @@ -83,14 +83,14 @@ const TacoDiagrams: FC<TacoDiagramsProps> = ({
cursor="pointer"
opacity={current === 0 ? 0.5 : 1}
>
<Image relativePath="/left-arrow.svg" />
<ChakraImage src="/images/left-arrow.svg" />
</Box>
<Box
onClick={() => handleNext()}
cursor="pointer"
opacity={current === 2 ? 0.5 : 1}
>
<Image relativePath="/right-arrow.svg" />
<ChakraImage src="/images/right-arrow.svg" />
</Box>
</Stack>
</Box>
Expand Down
21 changes: 15 additions & 6 deletions src/templates/build-page/taco/TacoTable.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,15 @@
import React, { FC } from "react"
import { Box, Table, Tbody, Td, Th, Thead, Tr, Center } from "@chakra-ui/react"
import { Image } from "../../../components/Image"
import {
Box,
Table,
Tbody,
Td,
Th,
Thead,
Tr,
Center,
Image,
} from "@chakra-ui/react"
import { BodySm } from "../../../components"

export interface TableOptions {
Expand Down Expand Up @@ -34,11 +43,11 @@ const TacoTable: FC<TacoTableProps> = ({ headers, features }) => {

switch (mark) {
case "POSITIVE":
return `/check-${colorSuffix}.svg`
return `/images/check-${colorSuffix}.svg`
case "NEGATIVE":
return `/x-${colorSuffix}.svg`
return `/images/x-${colorSuffix}.svg`
case "NEUTRAL":
return `/dash-${colorSuffix}.svg`
return `/images/dash-${colorSuffix}.svg`
default:
return ""
}
Expand Down Expand Up @@ -77,7 +86,7 @@ const TacoTable: FC<TacoTableProps> = ({ headers, features }) => {
<Td textAlign="center" key={optIndex}>
<Center>
<Image
relativePath={getMarkImage(option.mark, option.highlight)}
src={getMarkImage(option.mark, option.highlight)}
alt={option.mark}
/>
</Center>
Expand Down

0 comments on commit 029fd00

Please sign in to comment.