Skip to content

Commit 8bab758

Browse files
committed
create AddnewProduct page
- JSX structure for add new product page
1 parent 12eec13 commit 8bab758

File tree

1 file changed

+36
-1
lines changed

1 file changed

+36
-1
lines changed

admin/src/pages/NewProduct.jsx

Lines changed: 36 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,47 @@ import styled from 'styled-components'
44
// Styling...
55
const Container = styled.div`
66
flex:4;
7+
8+
79
`
10+
const NewProductTitle = styled.h1`
11+
12+
`
13+
const NewProductItem = styled.div`
14+
15+
`
16+
const NewProductLabel = styled.label`
17+
18+
`
19+
const NewProductInput = styled.input`
20+
21+
`
22+
const AddNewProductButtom = styled.button`
23+
24+
`
25+
//########################################
826
// New Product React Functional Component...
927
export default function NewProduct() {
1028
return (
1129
<Container>
12-
Add New Product here...
30+
<NewProductTitle>Add New Product</NewProductTitle>
31+
<NewProductItem>
32+
<NewProductLabel>Product Name</NewProductLabel>
33+
<NewProductInput type='text' placeholder='Iphone 12mini' />
34+
</NewProductItem>
35+
<NewProductItem>
36+
<NewProductLabel>Product Name</NewProductLabel>
37+
<NewProductInput type='text' placeholder='Iphone 12mini' />
38+
</NewProductItem>
39+
<NewProductItem>
40+
<NewProductLabel>Product Name</NewProductLabel>
41+
<NewProductInput type='text' placeholder='Iphone 12mini' />
42+
</NewProductItem>
43+
<NewProductItem>
44+
<NewProductLabel>Upload Product Image</NewProductLabel>
45+
<NewProductInput type='file' id='file' />
46+
</NewProductItem>
47+
<AddNewProductButtom>Create</AddNewProductButtom>
1348
</Container>
1449
)
1550
}

0 commit comments

Comments
 (0)