From 09fede4b07a7426c5d777b33d40000222aaebb42 Mon Sep 17 00:00:00 2001 From: bytesparallel Date: Thu, 16 Dec 2021 19:01:06 -0600 Subject: [PATCH] saving completed home page (MVP) --- package-lock.json | 16 ++- package.json | 4 + src/components/ApplicationViews.js | 4 + src/components/GraphicsBayTracker.js | 2 + src/components/home/GraphicsBayTrackerHome.js | 2 +- src/components/nav/NavBar.js | 6 +- src/components/pricing/GPUDataInterface.js | 104 ++++++++++++++++-- src/components/pricing/OEMSelector.js | 2 + src/components/profile/Profile.js | 19 ++++ 9 files changed, 140 insertions(+), 19 deletions(-) diff --git a/package-lock.json b/package-lock.json index f93a167..f205360 100644 --- a/package-lock.json +++ b/package-lock.json @@ -16,6 +16,10 @@ "react-router-dom": "5.3", "react-scripts": "4.0.3", "web-vitals": "^1.1.2" + }, + "devDependencies": { + "eslint": "^7.32.0", + "eslint-plugin-react": "^7.27.1" } }, "node_modules/@babel/code-frame": { @@ -6141,9 +6145,9 @@ } }, "node_modules/confusing-browser-globals": { - "version": "1.0.10", - "resolved": "https://registry.npmjs.org/confusing-browser-globals/-/confusing-browser-globals-1.0.10.tgz", - "integrity": "sha512-gNld/3lySHwuhaVluJUKLePYirM3QNCKzVxqAdhJII9/WXKVX5PURzMVJspS1jTslSqjeuG4KMVTSouit5YPHA==" + "version": "1.0.11", + "resolved": "https://registry.npmjs.org/confusing-browser-globals/-/confusing-browser-globals-1.0.11.tgz", + "integrity": "sha512-JsPKdmh8ZkmnHxDk55FZ1TqVLvEQTvoByJZRN9jzI0UjxK/QgAmsphz7PGtqgPieQZ/CQcHWXCR7ATDNhGe+YA==" }, "node_modules/connect-history-api-fallback": { "version": "1.6.0", @@ -26267,9 +26271,9 @@ } }, "confusing-browser-globals": { - "version": "1.0.10", - "resolved": "https://registry.npmjs.org/confusing-browser-globals/-/confusing-browser-globals-1.0.10.tgz", - "integrity": "sha512-gNld/3lySHwuhaVluJUKLePYirM3QNCKzVxqAdhJII9/WXKVX5PURzMVJspS1jTslSqjeuG4KMVTSouit5YPHA==" + "version": "1.0.11", + "resolved": "https://registry.npmjs.org/confusing-browser-globals/-/confusing-browser-globals-1.0.11.tgz", + "integrity": "sha512-JsPKdmh8ZkmnHxDk55FZ1TqVLvEQTvoByJZRN9jzI0UjxK/QgAmsphz7PGtqgPieQZ/CQcHWXCR7ATDNhGe+YA==" }, "connect-history-api-fallback": { "version": "1.6.0", diff --git a/package.json b/package.json index 22103cf..c8f4e86 100644 --- a/package.json +++ b/package.json @@ -35,5 +35,9 @@ "last 1 firefox version", "last 1 safari version" ] + }, + "devDependencies": { + "eslint": "^7.32.0", + "eslint-plugin-react": "^7.27.1" } } diff --git a/src/components/ApplicationViews.js b/src/components/ApplicationViews.js index f89353c..f2a8b36 100644 --- a/src/components/ApplicationViews.js +++ b/src/components/ApplicationViews.js @@ -3,6 +3,7 @@ import { Route } from "react-router-dom" import { GraphicsBayTrackerHome } from "./home/GraphicsBayTrackerHome" import { Profile } from "./profile/Profile" import { GPUDataInterface } from "./pricing/GPUDataInterface" +import { HomepageBanner } from "./home/HomepageBanner" @@ -19,6 +20,9 @@ export const ApplicationViews = () => { + + + ) diff --git a/src/components/GraphicsBayTracker.js b/src/components/GraphicsBayTracker.js index 578180b..a35fec9 100644 --- a/src/components/GraphicsBayTracker.js +++ b/src/components/GraphicsBayTracker.js @@ -4,6 +4,7 @@ import { ApplicationViews } from "./ApplicationViews"; import { NavBar } from "./nav/NavBar"; import { Login } from "./auth/Login"; import { Register } from "./auth/Register"; +import { HomepageBanner } from "./home/HomepageBanner"; export const GraphicsBayTracker = () => { return ( <> @@ -13,6 +14,7 @@ export const GraphicsBayTracker = () => { if (localStorage.getItem("graphicsbaytracker_customer")) { return ( <> + diff --git a/src/components/home/GraphicsBayTrackerHome.js b/src/components/home/GraphicsBayTrackerHome.js index 6cdeb24..8e5e7b9 100644 --- a/src/components/home/GraphicsBayTrackerHome.js +++ b/src/components/home/GraphicsBayTrackerHome.js @@ -22,7 +22,7 @@ export const GraphicsBayTrackerHome = () => { return ( <> -

GraphicsBay Tracker

+
{NewsStories()}
diff --git a/src/components/nav/NavBar.js b/src/components/nav/NavBar.js index c84527c..860fcbc 100644 --- a/src/components/nav/NavBar.js +++ b/src/components/nav/NavBar.js @@ -2,6 +2,7 @@ import React, { useEffect, useState } from "react" import { Link, useHistory } from "react-router-dom" import { Login } from "../auth/Login" + import { Profile } from "../profile/Profile" import { GPUDataInterface } from "../pricing/GPUDataInterface" import { Props } from "react" @@ -10,6 +11,7 @@ import "./NavBar.css" export const NavBar = (props) => { + const history = useHistory() @@ -24,10 +26,10 @@ export const NavBar = (props) => {