From c80923a06df41f810d8eeb93c3728c60a37dcde9 Mon Sep 17 00:00:00 2001 From: rusiruavb Date: Sat, 4 Jun 2022 01:52:55 +0530 Subject: [PATCH 1/2] Implement ticket geneator --- package.json | 4 +- src/App.js | 7 ++- src/assets/qr_code.png | Bin 0 -> 3284 bytes src/components/Footer/index.jsx | 56 +++++++++--------- src/components/Navbar/index.jsx | 4 +- src/components/Ticket/index.jsx | 64 ++++++++++++++++++++ src/components/index.js | 3 +- src/data/Sessions.json | 3 + src/views/Sponsors/index.jsx | 16 ++--- src/views/Timeline/index.jsx | 8 ++- yarn.lock | 100 +++++++++++++++++++------------- 11 files changed, 178 insertions(+), 87 deletions(-) create mode 100644 src/assets/qr_code.png create mode 100644 src/components/Ticket/index.jsx create mode 100644 src/data/Sessions.json diff --git a/package.json b/package.json index 7cdeeff..14e5c47 100644 --- a/package.json +++ b/package.json @@ -11,10 +11,12 @@ "@testing-library/user-event": "^13.2.1", "dayjs": "^1.11.2", "firebase": "^9.8.2", + "html-to-image": "^1.9.0", "react": "^18.1.0", "react-dom": "^18.1.0", "react-icons": "^4.4.0", "react-multi-carousel": "^2.8.0", + "react-qr-code": "^2.0.7", "react-scripts": "5.0.1", "react-scroll": "^1.8.7", "react-vertical-timeline-component": "^3.5.2", @@ -23,7 +25,7 @@ }, "scripts": { "predeploy": "yarn build", - "start": "react-scripts start", + "start": "GENERATE_SOURCEMAP=false react-scripts start", "build": "react-scripts build", "test": "react-scripts test", "eject": "react-scripts eject", diff --git a/src/App.js b/src/App.js index 92acf75..3a991cd 100644 --- a/src/App.js +++ b/src/App.js @@ -1,16 +1,17 @@ import { Gallery, Header, Sponsors, Timeline, Eligibility } from "./views"; -import { Footer, Navbar } from "./components"; +import { Footer, Navbar, Ticket } from "./components"; function App() { return ( <> - + + {/*
-