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
9 changes: 9 additions & 0 deletions src/Pages/ProductPage/ProductPage.css
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,13 @@
text-align: center;
}

.image1{
position: relative;
right: 450px;
top: 100px;
border-radius: 100px;
}

.panel1 {
height: 500px;
font-family: 'Times New Roman', Times, serif;
Expand All @@ -29,6 +36,7 @@
*/
.header2 {
position: relative;
top: -350px;
left: 55%;
height: 500px;
width: 40%;
Expand All @@ -41,6 +49,7 @@

.panel1 button {
position: relative;
top: -350px;
left: 25%;
width: 15%;
}
16 changes: 13 additions & 3 deletions src/Pages/ProductPage/ProductPage.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
import "./ProductPage.css"
import image from "../../images/testglasses.jpg";

function Product() {
let name = "Test Glasses";
let manufacturer = "Stark Industries"
let cost = 99.99;
return (
<div>
<div className="App1">
Expand All @@ -9,10 +13,16 @@ function Product() {
</div>
{/* create an overall panel, with header 2, the image, and the button inside of it */}
<div className="panel1">
<div className="image1">
<img src={image}
alt=""
width="400"
height="400" />
</div>
<div className="header2">
<p>Name: </p>
<p>Manufacturer: </p>
<p>Cost: </p>
<p><b>Name: </b> {name}</p>
<p><b>Manufacturer: </b>{manufacturer} </p>
<p><b>Cost: </b>{cost}</p>
</div>
<button>Add to Cart</button>
</div>
Expand Down