Skip to content

Commit

Permalink
Merge pull request #3 from clubedevit/Resumodavaga
Browse files Browse the repository at this point in the history
Resumo da vaga
  • Loading branch information
limaricardo authored Aug 30, 2023
2 parents 042098c + d9f3b26 commit f52a245
Show file tree
Hide file tree
Showing 7 changed files with 337 additions and 177 deletions.
4 changes: 3 additions & 1 deletion src/app/globals.css
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,14 @@
margin: 0;
}

html,

body {
max-width: 100vw;
overflow-x: hidden;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
height: 100%;
padding: 20px;
}
6 changes: 5 additions & 1 deletion src/app/page.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
import JobPostingForm from '../components/molecules/JobPostingForm/index'
import JobPostingForm2 from '../components/molecules/JobPostingForm2/resumo'

export default function Home() {
return (

<>
<JobPostingForm2></JobPostingForm2>
<JobPostingForm></JobPostingForm>

</>

)
}
78 changes: 40 additions & 38 deletions src/components/atoms/InputForm/index.tsx
Original file line number Diff line number Diff line change
@@ -1,42 +1,44 @@
import { Label } from './label';
import { ContainerInput , Field } from './style'
import { Label } from "./label";
import { ContainerInput, Field } from "./style";

interface InputFormProps {
id: string;
name: string;
type: string;
placeholder: string;
label: string;
width: string;
height?: number
id: string;
name: string;
type: string;
placeholder: string;
label: string;
width?: string;
height?: number;
options?: string[];
}

export default function InputForm
({
id,
name,
type,
placeholder,
label,
width,
height
} : InputFormProps)

{
return (
<ContainerInput>
<Label
htmlFor={id}
name={label}
/>
<Field
id={id}
name={name}
type={type}
placeholder={placeholder}
width={width}
height={height}
/>
</ContainerInput>
)
}
export default function InputForm({
id,
name,
type,
placeholder,
label,
width,
height,
options,

}: InputFormProps) {
return (
<ContainerInput>
<Label htmlFor={id} name={label}/>
<Field
id={id}
name={name}
type={type}
placeholder={placeholder}
width={width}
height={height}
as={options ? "select" : "input"}
>
{options?.map((option) => (
<option key={option} value={option}>{option}</option>
))}
</Field>
</ContainerInput>
);
}
6 changes: 4 additions & 2 deletions src/components/atoms/InputForm/style.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export const Field = styled(FieldComponent)`
border-radius: 12px;
border: 1px solid #FFF;
background: #DEDEDE;
padding: 10px 10px;
padding: 10px;
margin-top: 3px;
margin-bottom: 15px;
Expand All @@ -29,9 +29,11 @@ export const Field = styled(FieldComponent)`
export const StyledLabel = styled.label`
font-size: 12px;
color: #FFF;
margin-left: 5px
margin-left: 5px;
height: 15px;
`;

export const StyledLabelError = styled(StyledLabel)`
margin-left: 5px
height: 15px;
`;
Loading

0 comments on commit f52a245

Please sign in to comment.