Skip to content

create cardjob component #36

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
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
88 changes: 88 additions & 0 deletions components/CardJob.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,88 @@
import React, { PropsWithChildren, useState } from 'react';
import { motion } from 'framer-motion';
import {
Box,
BoxProps,
Image,
Flex,
Text,
Button,
Heading,
Tag,
TagLabel,
Collapse,
} from '@chakra-ui/core';
import styled from '@emotion/styled';
import { Card } from '../components';

import { Colors } from '../theme';

export const CardJob: React.FC<PropsWithChildren<BoxProps>> = ({
children,
...props
}) => {
const collapse = () => {
return (
<>
<Text>
Sporty is a mobile internet company with a focus on emerging markets.
Our integrated sports media, betting, gaming and social platform
serves a huge userbase across numerous countries. We have a talented
and proven team of 200+ people comprised of 50+ tech staff and 150+
product, operations and support, and are looking to expand our tech
team count to 100+ people as we look to drive further geographical
expansion, whilst iterating on our offering with a user-driven
development approach.
</Text>
<Flex justifyContent="center" alignItems="center">
<Button>Aplicar</Button>
</Flex>
</>
);
};

return (
<Card collapse={collapse}>
<Flex>
<Box>
<Image
boxSize="50px"
objectFit="cover"
src="https://bit.ly/sage-adebayo"
alt="Segun Adebayo"
/>
</Box>
<Flex justifyContent="center" flexDirection="column">
<Text>Nombre de la Empresa</Text>
<Heading as="h4" fontSize="1.2rem">
Nombre del puesto
</Heading>
</Flex>
<Flex
justifyContent="flex-start"
alignItems="center"
pr="2rem"
pl="2rem"
>
<Tag colorScheme="blue" size="sm" m="5px" variant="outline">
<TagLabel>Backend</TagLabel>
</Tag>
<Tag colorScheme="blue" size="sm" m="5px" variant="outline">
<TagLabel>Frontend</TagLabel>
</Tag>
<Tag colorScheme="blue" size="sm" m="5px" variant="outline">
<TagLabel>React.js</TagLabel>
</Tag>
<Tag colorScheme="blue" size="sm" m="5px" variant="outline">
<TagLabel>Node.js</TagLabel>
</Tag>
</Flex>
<Flex alignItems="center" justifyContent="center" p="0 1rem">
<Text fontSize="14px" fontWeight="500">
12hs
</Text>
</Flex>
</Flex>
</Card>
);
};
1 change: 1 addition & 0 deletions components/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,6 @@ import TextField from './TextField';
export { Form } from './Form';
export { Text } from './Text';
export { TextureGrid } from './TextureGrid';
export { CardJob } from './CardJob';

export { ThemeSwitcher, Header, Footer, Layout, Card, TextField };
7 changes: 5 additions & 2 deletions pages/jobs.tsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
import React from 'react';
import { Layout, Text } from '../components';
import { Layout, Text, CardJob } from '../components';

const Jobs = ({ posts }) => (
<Layout>
<Text fontSize="6xl" color="inherit">
<Text fontSize="2xl" color="inherit">
Trabajos de Programación
</Text>
{[1, 2, 3, 4].map((index) => (
<CardJob />
))}
</Layout>
);

Expand Down