Skip to content
Merged
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
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export const Form = styled.form`
display: flex;
flex-direction: column;
align-items: center;
margin-top: 30px;
margin-top: 90px;
padding: 15px 0;

border-radius: 5px;
Expand Down Expand Up @@ -61,7 +61,7 @@ export const Form = styled.form`
display: inline;

color: #343434;
width: 20%;
width: 30%;

}
`;
3 changes: 2 additions & 1 deletion src/components/Form.tsx → src/components/Form/Form.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@

import slcImage from '../assets/images/slcImage.svg';
import slcImage from '../../assets/images/slcImage.svg';
import { Form as StyleForm } from './Form-style';

export default function Form() {
return (
<div>

<StyleForm>
<label htmlFor="imgUpload">
<img id="test" src={slcImage} alt="Selecionar imagem"/>
Expand Down
23 changes: 23 additions & 0 deletions src/components/Header/Header-style.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
import styled from "styled-components";

export const Header = styled.header`
background-color: var(--bg-section-color);
text-align: center;

width: 100%;
position: fixed;
left: 0;
padding: 10px 0;


h1 {
color: #71BB00;
font-weight: 800;
}

p {
color: var(--light-grey);
text-transform: uppercase;

}
`;
10 changes: 10 additions & 0 deletions src/components/Header/Header.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import { Header as StyleHeader } from './Header-style';

export default function Header() {
return (
<StyleHeader>
<h1>builbox</h1>
<p>Web Challenge</p>
</StyleHeader>
);
}
3 changes: 1 addition & 2 deletions src/index.css
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
:root {
--bg-main-color: #343434;
--bg-section-color: #313131;
--bg-section-color: #2B2B2B;
--light-grey: #9F9F9F;


/*Form*/
--form-input-data: #494949;

Expand Down
4 changes: 3 additions & 1 deletion src/pages/feed/Feed.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
import Form from "../../components/Form"
import Form from "../../components/Form/Form"
import Header from "../../components/Header/Header"

function App() {

return (
<main>
<Header />
<Form />

</main>
Expand Down