Skip to content

Commit 733d975

Browse files
committed
Add styling to NewProduct page
- Add styling to NewProduct page by styled components
1 parent 8bab758 commit 733d975

File tree

1 file changed

+34
-7
lines changed

1 file changed

+34
-7
lines changed

admin/src/pages/NewProduct.jsx

Lines changed: 34 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,55 @@
11
import React from 'react'
2+
// import styled components library for css styling...
23
import styled from 'styled-components'
34

45
// Styling...
56
const Container = styled.div`
67
flex:4;
7-
8+
display: flex;
9+
flex-direction: column;
10+
margin: 20px;
811
912
`
1013
const NewProductTitle = styled.h1`
11-
14+
margin-bottom: 25px;
1215
`
1316
const NewProductItem = styled.div`
14-
17+
display: flex;
18+
flex-direction: column;
19+
margin-left: 20px;
1520
`
1621
const NewProductLabel = styled.label`
17-
22+
margin-bottom: 10px;
23+
font-size: 18px;
24+
font-weight: 400;
1825
`
1926
const NewProductInput = styled.input`
20-
27+
border-radius: 10px;
28+
padding: 8px 15px;
29+
width: 20%;
2130
`
2231
const AddNewProductButtom = styled.button`
23-
32+
width: 10%;
33+
cursor: pointer;
34+
border: none;
35+
border-radius: 5px;
36+
padding: 10px 15px;
37+
background-color: #069106;
38+
color: white;
39+
margin-top: 25px;
40+
margin-left: 25px;
41+
// when hover on button...
42+
&:hover{
43+
transform: scale(1.1);
44+
font-weight: bold;
45+
box-shadow: rgba(0, 0, 0, 0.16) 0px 1px 4px;
46+
}
47+
// when active on button...
48+
&:active{
49+
background-color: #0ee80e;
50+
}
2451
`
25-
//########################################
52+
2653
// New Product React Functional Component...
2754
export default function NewProduct() {
2855
return (

0 commit comments

Comments
 (0)