Skip to content

Commit

Permalink
Fix Style #50
Browse files Browse the repository at this point in the history
  • Loading branch information
AymanSami98 committed Apr 13, 2022
1 parent bcc7317 commit 4b7fec5
Show file tree
Hide file tree
Showing 7 changed files with 35 additions and 9 deletions.
1 change: 1 addition & 0 deletions client/src/App.css
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
}
body {
font-family: Arial, Helvetica, sans-serif;

}

html {
Expand Down
8 changes: 6 additions & 2 deletions client/src/components/Modal/Modal.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -100,20 +100,22 @@ export default class Modal extends Component {
Close
</a>
<h3>{modalOpened}</h3>

<form>
<input
placeholder="Product Name"
type="text"
name="name"
value={name || nameUpdate}
onChange={this.handleChange}
required
/>
<input
placeholder="Product Price (in USD)"
type="number"
name="price"
value={price || priceUpdate}
onChange={this.handleChange}
required
/>
<textarea
placeholder="Product Description"
Expand All @@ -123,6 +125,7 @@ export default class Modal extends Component {
name="description"
value={description || descriptionUpdate}
onChange={this.handleChange}
required
></textarea>
<select
name="category"
Expand All @@ -134,7 +137,7 @@ export default class Modal extends Component {
/>
<input
placeholder="Product Image"
type="text"
type="url"
name="image"
value={image || imageUpdate}
onChange={this.handleChange}
Expand All @@ -153,6 +156,7 @@ export default class Modal extends Component {
>
{modalOpened}
</button>
</form>
</div>
</div>
</>
Expand Down
2 changes: 2 additions & 0 deletions client/src/components/Product/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
.p-card {
position: relative;
width: 270px;
margin: 20px 0;

}

.product-img {
Expand Down
7 changes: 7 additions & 0 deletions client/src/components/header/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,11 @@ import NavigationMenu from "./downHeader/NavigationMenu";
import "./upperHeader/upperHeader.css";

const Header = ({handleSearch, itemsOfCart}) => {

return (
<>
<div className="Header">

<div className="upper__header">
<Logo />
<SearchBar handleSearch = {handleSearch}/>
Expand All @@ -21,6 +24,10 @@ import "./upperHeader/upperHeader.css";
<NavigationMenu />
</div>
</div>
<div className='headermargin'></div>

</>

)
}
export default Header;
9 changes: 7 additions & 2 deletions client/src/components/header/upperHeader/upperHeader.css
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,14 @@
padding: 0.5rem 2rem;
display: flex;
flex-direction: column;

width: 100%;
background: white;
z-index: 999;
position: fixed;
}
.headermargin{
margin-top: 136px;
}

.upper__header {
width: 100%;

Expand Down
1 change: 1 addition & 0 deletions client/src/pages/seller/seller.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

.SellerProducts {
width: 100%;
display: flex;
Expand Down
16 changes: 11 additions & 5 deletions server/database/build/build.sql
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,16 @@ CREATE TABLE products(


INSERT INTO products (name, price, description, image, category) VALUES
('Luffy Haki', 102, ' Sneakers Custom Wano Arc One Piece Shoes','https://i0.wp.com/loketshirt.com/wp-content/uploads/2021/12/Luffy-Haki-Sneakers-Custom-Wano-Arc-One-Piece-Shoes-GearAnime.jpg', 'kids'),
('Sanji Sneakers', 50 , ' Diable Jambe Skill One Piece Anime Shoes Fan MN06','https://www.shopeuvi.com/wp-content/uploads/2021/03/sanji-jordan-sneakers-diable-jambe-skill-one-piece-anime-shoes-fan-mn06-gearanime_1500x1500-510x510.jpeg', 'kids'),
('Zoro Sneakers', 200 , ' Boots Three Swords Skill Anime Shoes','https://animecustomshoes.com/wp-content/uploads/2021/03/one-piece-zoro-jordan-sneakers-boots-three-swords-skill-anime-sneakers-gearanime-3_650x.jpeg', 'kids'),
('Ace Sneakers ', 85 , 'Slip On Shoes','https://cdn.animecools.com/data/2106/10/040520/GA2021681730_portgas-d-ace-shoes-boots-fire-fist-skill-one-piece-anime-jordan-sneakers-gearanime-3_1500x1500.jpg', 'kids'),
('Luffy Haki', 102, ' Sneakers Custom Wano Arc One Piece Shoes','https://i0.wp.com/loketshirt.com/wp-content/uploads/2021/12/Luffy-Haki-Sneakers-Custom-Wano-Arc-One-Piece-Shoes-GearAnime.jpg', 'men'),
('Sanji Sneakers', 50 , ' Diable Jambe Skill One Piece Anime Shoes Fan MN06','https://www.shopeuvi.com/wp-content/uploads/2021/03/sanji-jordan-sneakers-diable-jambe-skill-one-piece-anime-shoes-fan-mn06-gearanime_1500x1500-510x510.jpeg', 'women'),
('Zoro Sneakers', 150 , ' Boots Three Swords Skill Anime Shoes','https://animecustomshoes.com/wp-content/uploads/2021/03/one-piece-zoro-jordan-sneakers-boots-three-swords-skill-anime-sneakers-gearanime-3_650x.jpeg', 'kids'),
('Ace Sneakers ', 85 , 'Slip On Shoes','https://cdn.animecools.com/data/2106/10/040520/GA2021681730_portgas-d-ace-shoes-boots-fire-fist-skill-one-piece-anime-jordan-sneakers-gearanime-3_1500x1500.jpg', 'men');


('Sanji Sneakers', 115 , ' Diable Jambe Skill One Piece Anime Shoes Fan MN06','https://www.shopeuvi.com/wp-content/uploads/2021/03/sanji-jordan-sneakers-diable-jambe-skill-one-piece-anime-shoes-fan-mn06-gearanime_1500x1500-510x510.jpeg', 'men'),
('Zoro Sneakers', 250 , ' Boots Three Swords Skill Anime Shoes','https://animecustomshoes.com/wp-content/uploads/2021/03/one-piece-zoro-jordan-sneakers-boots-three-swords-skill-anime-sneakers-gearanime-3_650x.jpeg', 'men'),
('Ace Sneakers ', 270 , 'Slip On Shoes','https://cdn.animecools.com/data/2106/10/040520/GA2021681730_portgas-d-ace-shoes-boots-fire-fist-skill-one-piece-anime-jordan-sneakers-gearanime-3_1500x1500.jpg', 'men'),
('Luffy Haki', 177, ' Sneakers Custom Wano Arc One Piece Shoes','https://i0.wp.com/loketshirt.com/wp-content/uploads/2021/12/Luffy-Haki-Sneakers-Custom-Wano-Arc-One-Piece-Shoes-GearAnime.jpg', 'women'),
('Sanji Sneakers', 115 , ' Diable Jambe Skill One Piece Anime Shoes Fan MN06','https://www.shopeuvi.com/wp-content/uploads/2021/03/sanji-jordan-sneakers-diable-jambe-skill-one-piece-anime-shoes-fan-mn06-gearanime_1500x1500-510x510.jpeg', 'women'),
('Zoro Sneakers', 30 , ' Boots Three Swords Skill Anime Shoes','https://animecustomshoes.com/wp-content/uploads/2021/03/one-piece-zoro-jordan-sneakers-boots-three-swords-skill-anime-sneakers-gearanime-3_650x.jpeg', 'women'),
('Ace Sneakers ', 40 , 'Slip On Shoes','https://cdn.animecools.com/data/2106/10/040520/GA2021681730_portgas-d-ace-shoes-boots-fire-fist-skill-one-piece-anime-jordan-sneakers-gearanime-3_1500x1500.jpg', 'women');
COMMIT;

0 comments on commit 4b7fec5

Please sign in to comment.