diff --git a/src/assets/stylesheets/browse.scss b/src/assets/stylesheets/browse.scss index 94e5961..2f56efe 100644 --- a/src/assets/stylesheets/browse.scss +++ b/src/assets/stylesheets/browse.scss @@ -53,7 +53,11 @@ $white: #fff; .browse-cable { width: 80%; height: 100px; - background: $white; + background: linear-gradient( + -30deg, + rgb(187, 208, 236) 0%, + rgba(255, 255, 255, 1) 100% + ); display: flex; align-items: center; justify-content: flex-start; @@ -66,6 +70,7 @@ $white: #fff; transition: all 0.3s ease-in-out; cursor: pointer; text-decoration: none; + filter: drop-shadow(0px 4px 4px rgba(0, 0, 0, 0.25)); } .browse-cable:hover { @@ -75,38 +80,57 @@ $white: #fff; .browse-cable-image { width: auto; height: 100%; + margin-right: 25px; background-color: transparent; - margin-right: 10px; + border: $gray solid 1px; + border-radius: 10px; + filter: drop-shadow(0px 4px 4px rgba(0, 0, 0, 0.25)); } .browse-cable-label { width: 90%; height: auto; + background-color: transparent; } .browse-cable-arrow { width: auto; height: auto; - font-size: 45px; - font-family: "Gotham Light"; - transform:scaleY(2); - color: $gray; + font-size: 35px; + transform: scaleY(2); + font-family: "Gotham Book"; + color: $medium-blue; + background-color: transparent; } -.browse-cable-name, .browse-cable-brand, .browse-cable-description, .browse-cable-short { +.browse-cable-name { background-color: transparent; font-size: 20px; color: $medium-blue; width: auto; height: auto; + font-family: "Gotham Bold"; + margin-bottom: 2px; +} + +.browse-cable-description { + background-color: transparent; + font-size: 18px; + color: $medium-blue; + width: auto; + height: auto; + font-family: "Gotham Medium"; + margin-bottom: 10px; +} + +.browse-cable-brand, +.browse-cable-short, +.browse-cable-position { + background-color: transparent; + font-size: 16px; + color: $light-blue; + color: $light-blue; + width: auto; + height: auto; font-family: "Gotham Medium"; } - -.browse-cable-name { - padding-bottom: 10px; -} - -.browse-cable-brand, .browse-cable-description, .browse-cable-short { - color: $black; - font-size: 16px; -} \ No newline at end of file diff --git a/src/components/BrowseComponent.js b/src/components/BrowseComponent.js index efeaf39..b443b6f 100644 --- a/src/components/BrowseComponent.js +++ b/src/components/BrowseComponent.js @@ -33,13 +33,21 @@ class cable { Cable
{this.name}
+
+ + {this.description} +
- Brand: + + Brand:{" "} + {this.brand}
-
- About: - {this.description} +
+ + Position:{" "} + + {this.position}
{">"} diff --git a/src/components/CableDetailComponent.js b/src/components/CableDetailComponent.js index 9e30134..eecfc5a 100644 --- a/src/components/CableDetailComponent.js +++ b/src/components/CableDetailComponent.js @@ -1,17 +1,64 @@ import React, { Component } from "react"; import BeldenLogo from "../assets/images/belden-white.png"; +import DefaultPartImg from "../assets/images/part.png"; import { NavLink } from "react-router-dom"; import "../assets/stylesheets/cabledetail.scss"; +class cable { + constructor( + part_number, + position, + name, + brand, + description, + short_description, + image + ) { + this.part_number = part_number; + this.position = position; + this.name = name; + this.brand = brand; + this.description = description; + this.short_description = short_description; + if (image === undefined) { + this.image = DefaultPartImg; + } else { + this.image = image; + } + } + + returnDiv() { + return ( + + Cable +
+
{this.name}
+
+ Brand: + {this.brand} +
+
+ About: + {this.description} +
+
+ {">"} +
+ ); + } +} + export default class CableDetailComponent extends Component { constructor(props) { super(props); } - // componentDidMount() { - // this.props.socket.send('{"type":"cable_map","call":"request","data":{}}'); - // this.props.socket.addEventListener("message", this.handleMessage); - // } + componentDidMount() { + // this.props.socket.send('{"type":"cable_map","call":"request","data":{}}'); + // this.props.socket.addEventListener("message", this.handleMessage); + const id = this.props.cableId; + console.log("ID: ", id); + } // handleMessage = (event) => { // try { @@ -33,7 +80,6 @@ export default class CableDetailComponent extends Component { Belden
-
); diff --git a/src/components/SummaryComponent.js b/src/components/SummaryComponent.js index 60f4a04..2415855 100644 --- a/src/components/SummaryComponent.js +++ b/src/components/SummaryComponent.js @@ -8,6 +8,13 @@ export default class SummaryComponent extends Component {
Belden
+ {/* */} +
); }