Skip to content

Commit

Permalink
Merge pull request #23 from atiehamidi/fear-add-styling
Browse files Browse the repository at this point in the history
added some styling for admin dashboard
  • Loading branch information
atiehamidi authored Aug 31, 2020
2 parents 4957749 + bb3eccd commit b3c314b
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 2 deletions.
33 changes: 33 additions & 0 deletions src/pages/Admin/index.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
.adminPage {
background: url("https://image.freepik.com/free-vector/bons-foot-prints-pattern-background_1374-18.jpg");
color: white;
padding: 20px;
}

.customers {
font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
border-collapse: collapse;
width: 100%;
}

.customers td,
.customers thead {
border: 1px solid #ddd;
padding: 8px;
}

.customers tr:nth-child(even) {
background-color: black;
}

.customers tr:hover {
background-color: grey;
}

#customers thead {
padding-top: 12px;
padding-bottom: 12px;
text-align: left;
background-color: #4caf50;
color: white;
}
7 changes: 5 additions & 2 deletions src/pages/Admin/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ import { useSelector, useDispatch } from "react-redux";
import { selectToken, selectAdmin } from "../../store/user/selectors";
import { selectOrders } from "../../store/orders/selectors";
import { fetchOrders, changeOrders } from "../../store/orders/actions";
import "./index.css";

export default function Admin() {
const [isdone, setIsdone] = useState("");
const dispatch = useDispatch();
Expand All @@ -20,10 +22,10 @@ export default function Admin() {
}

return (
<div>
<div className="adminPage">
<h3>List Of Orders</h3>

<table>
<table className="customers">
<thead>
<tr>
<th>Id</th>
Expand Down Expand Up @@ -63,6 +65,7 @@ export default function Admin() {
})}
</tbody>
</table>
<div style={{ height: "500px" }}></div>
</div>
);
}

0 comments on commit b3c314b

Please sign in to comment.