|
|
|
@ -18,21 +18,25 @@ const WorkPage: React.FC<{ data: IWorkWithImages }> = ({ data }) => {
|
|
|
|
|
mb="1rem"
|
|
|
|
|
/>
|
|
|
|
|
<Box w={['100%', '100%', '1220px']} pt="2rem" px="1rem" mx="auto">
|
|
|
|
|
<Flex pb="4rem">
|
|
|
|
|
<Box>
|
|
|
|
|
<Flex pb="4rem" direction={['column', 'column', 'row']}>
|
|
|
|
|
<Box pb="2rem">
|
|
|
|
|
<Heading as="h3" fontSize="xl" pb="0.5rem">
|
|
|
|
|
{data.titulo}
|
|
|
|
|
</Heading>
|
|
|
|
|
<Stack fontSize="md" spacing="1rem" direction="row">
|
|
|
|
|
{data.tags.map((tag) => (
|
|
|
|
|
<Text fontSize="md" key={tag}>
|
|
|
|
|
{tag}
|
|
|
|
|
<Text
|
|
|
|
|
fontSize="md"
|
|
|
|
|
sx={{
|
|
|
|
|
whiteSpace: 'nowrap',
|
|
|
|
|
textOverflow: 'ellipsis',
|
|
|
|
|
overflow: 'hidden',
|
|
|
|
|
wordSpacing: '0.5rem',
|
|
|
|
|
}}
|
|
|
|
|
>
|
|
|
|
|
{data.tags.map((tag) => `${tag} `)}
|
|
|
|
|
</Text>
|
|
|
|
|
))}
|
|
|
|
|
</Stack>
|
|
|
|
|
</Box>
|
|
|
|
|
<Spacer />
|
|
|
|
|
<Flex direction="column" w="40%">
|
|
|
|
|
<Flex direction="column" w={['100%', '100%', '40%']} px={['1rem', '1rem', '0']}>
|
|
|
|
|
<Stack
|
|
|
|
|
direction="row"
|
|
|
|
|
wrap="wrap"
|
|
|
|
@ -59,14 +63,14 @@ const WorkPage: React.FC<{ data: IWorkWithImages }> = ({ data }) => {
|
|
|
|
|
<Text>{data.year}</Text>
|
|
|
|
|
</Box>
|
|
|
|
|
</Stack>
|
|
|
|
|
<Box w="100%" h="8px" mb="calc(2rem + 8px)">
|
|
|
|
|
<Box w="100%" h="8px" mb="calc(3rem + 8px)">
|
|
|
|
|
<Box display="inline-block" w="60%" h="100%" bg={data.color1} />
|
|
|
|
|
<Box display="inline-block" w="15%" h="100%" bg={data.color2} />
|
|
|
|
|
</Box>
|
|
|
|
|
<Heading as="h4" fontSize="md" pb="1rem">
|
|
|
|
|
El proyecto
|
|
|
|
|
</Heading>
|
|
|
|
|
<Text fontSize="lg">{data.texto_descripcion}</Text>
|
|
|
|
|
<Text fontSize={['md', 'md', 'lg']}>{data.texto_descripcion}</Text>
|
|
|
|
|
</Flex>
|
|
|
|
|
</Flex>
|
|
|
|
|
{data.imagenes_files.map((imagen, index) => (
|
|
|
|
|