From 9f1e2c1ca521de64771bc273d90e8d4916245230 Mon Sep 17 00:00:00 2001 From: Elijah Lucian Date: Tue, 12 Oct 2021 22:28:33 -0600 Subject: [PATCH] wtf --- package-lock.json | 16 ++++++++++++++++ package.json | 1 + src/App.css | 38 -------------------------------------- src/App.tsx | 27 +++++++++------------------ 4 files changed, 26 insertions(+), 56 deletions(-) delete mode 100644 src/App.css diff --git a/package-lock.json b/package-lock.json index 8a5b69a..d6da53b 100644 --- a/package-lock.json +++ b/package-lock.json @@ -17,6 +17,7 @@ "react": "^17.0.2", "react-dom": "^17.0.2", "react-scripts": "4.0.3", + "react-webcam": "^6.0.0", "typescript": "^4.4.4", "web-vitals": "^1.1.2" } @@ -16170,6 +16171,15 @@ "semver": "bin/semver" } }, + "node_modules/react-webcam": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/react-webcam/-/react-webcam-6.0.0.tgz", + "integrity": "sha512-pw7067WYnDHRjAXYXrsLeig9/AAxCFDnnaEJzZ5ep6UZoYMqF4UNRtVkeTk0LotpwqT/c8vHisn/+QodNbUsQA==", + "peerDependencies": { + "react": ">=15.3.0", + "react-dom": ">=15.3.0" + } + }, "node_modules/read-pkg": { "version": "5.2.0", "resolved": "https://registry.npmjs.org/read-pkg/-/read-pkg-5.2.0.tgz", @@ -33529,6 +33539,12 @@ } } }, + "react-webcam": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/react-webcam/-/react-webcam-6.0.0.tgz", + "integrity": "sha512-pw7067WYnDHRjAXYXrsLeig9/AAxCFDnnaEJzZ5ep6UZoYMqF4UNRtVkeTk0LotpwqT/c8vHisn/+QodNbUsQA==", + "requires": {} + }, "read-pkg": { "version": "5.2.0", "resolved": "https://registry.npmjs.org/read-pkg/-/read-pkg-5.2.0.tgz", diff --git a/package.json b/package.json index eba3224..813c85d 100644 --- a/package.json +++ b/package.json @@ -13,6 +13,7 @@ "react": "^17.0.2", "react-dom": "^17.0.2", "react-scripts": "4.0.3", + "react-webcam": "^6.0.0", "typescript": "^4.4.4", "web-vitals": "^1.1.2" }, diff --git a/src/App.css b/src/App.css deleted file mode 100644 index 74b5e05..0000000 --- a/src/App.css +++ /dev/null @@ -1,38 +0,0 @@ -.App { - text-align: center; -} - -.App-logo { - height: 40vmin; - pointer-events: none; -} - -@media (prefers-reduced-motion: no-preference) { - .App-logo { - animation: App-logo-spin infinite 20s linear; - } -} - -.App-header { - background-color: #282c34; - min-height: 100vh; - display: flex; - flex-direction: column; - align-items: center; - justify-content: center; - font-size: calc(10px + 2vmin); - color: white; -} - -.App-link { - color: #61dafb; -} - -@keyframes App-logo-spin { - from { - transform: rotate(0deg); - } - to { - transform: rotate(360deg); - } -} diff --git a/src/App.tsx b/src/App.tsx index a53698a..dbad74b 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -1,24 +1,15 @@ -import React from 'react'; -import logo from './logo.svg'; -import './App.css'; +import Webcam from "react-webcam"; + +import "./app.css"; function App() { return ( -
-
- logo -

- Edit src/App.tsx and save to reload. -

- - Learn React - -
+
+ +
+
+
Scan the Record QR Code.
+
); }