File tree Expand file tree Collapse file tree 1 file changed +34
-7
lines changed
Expand file tree Collapse file tree 1 file changed +34
-7
lines changed Original file line number Diff line number Diff line change 11import React from 'react'
2+ // import styled components library for css styling...
23import styled from 'styled-components'
34
45// Styling...
56const Container = styled . div `
67 flex:4;
7-
8+ display: flex;
9+ flex-direction: column;
10+ margin: 20px;
811
912`
1013const NewProductTitle = styled . h1 `
11-
14+ margin-bottom: 25px;
1215`
1316const NewProductItem = styled . div `
14-
17+ display: flex;
18+ flex-direction: column;
19+ margin-left: 20px;
1520`
1621const NewProductLabel = styled . label `
17-
22+ margin-bottom: 10px;
23+ font-size: 18px;
24+ font-weight: 400;
1825`
1926const NewProductInput = styled . input `
20-
27+ border-radius: 10px;
28+ padding: 8px 15px;
29+ width: 20%;
2130`
2231const 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...
2754export default function NewProduct ( ) {
2855 return (
You can’t perform that action at this time.
0 commit comments