diff --git a/index.html b/index.html index 6c33b1a..ebb67ac 100644 --- a/index.html +++ b/index.html @@ -2,7 +2,6 @@ - @@ -66,6 +65,22 @@ .logo { background-image: url("logo512.png"); } + + header#archived { + background: rgb(149 40 40 / 48%); + border-radius: 2rem; + position: fixed; + padding: 1rem 2rem; + font-size: 1.5rem; + letter-spacing: 1.5px; + text-transform: uppercase; + z-index: 99; + backdrop-filter: blur(7px); + font-family: "GlacialBold"; + left: 15rem; + right: 15rem; + top: 3rem; + } @@ -73,7 +88,10 @@ + style="display:none;visibility:hidden"> +
+
⚠️ Project has been archived.
+
- - - + + + + \ No newline at end of file diff --git a/index.js b/index.js index 10d6c08..a3887c5 100644 --- a/index.js +++ b/index.js @@ -1,28 +1,32 @@ -import React from "react"; -import ReactDOM from "react-dom"; -import firebase from "firebase/app"; -import "firebase/functions"; +'use strict'; -const FIREBASE_CONFIG = { - apiKey: "AIzaSyDKw8HXWRn3dtkIRETv-BxtwnklZIpIkxU", - authDomain: "vaxandme.firebaseapp.com", - projectId: "vaxandme", - storageBucket: "vaxandme.appspot.com", - messagingSenderId: "614738281692", - appId: "1:614738281692:web:7a89e0af76675e4f0ea019", - measurementId: "G-N016TVJ6JC", -}; +//import firebase from "firebase/app"; +//import "firebase/functions"; +// +//const FIREBASE_CONFIG = { +// apiKey: "AIzaSyDKw8HXWRn3dtkIRETv-BxtwnklZIpIkxU", +// authDomain: "vaxandme.firebaseapp.com", +// projectId: "vaxandme", +// storageBucket: "vaxandme.appspot.com", +// messagingSenderId: "614738281692", +// appId: "1:614738281692:web:7a89e0af76675e4f0ea019", +// measurementId: "G-N016TVJ6JC", +//}; +// +//firebase.initializeApp(FIREBASE_CONFIG); +// +//if (window.location.host !== "www.vaxand.me") { +// firebase.functions().useEmulator(window.location.host.split(":")[0], 5001); +//} +// +//const fb_functions = firebase.functions(); +//const saveResult = fb_functions.httpsCallable("saveResultV1"); +//const getPastResult = fb_functions.httpsCallable("getPastResultV1"); +//const getStats = fb_functions.httpsCallable("getStatsV1"); -firebase.initializeApp(FIREBASE_CONFIG); - -if (window.location.host !== "www.vaxand.me") { - firebase.functions().useEmulator(window.location.host.split(":")[0], 5001); -} - -const fb_functions = firebase.functions(); -const saveResult = fb_functions.httpsCallable("saveResultV1"); -const getPastResult = fb_functions.httpsCallable("getPastResultV1"); -const getStats = fb_functions.httpsCallable("getStatsV1"); +const saveResult = () => new Promise((resolve, reject) => reject()); +const getPastResult = () => new Promise((resolve, reject) => reject()); +const getStats = () => new Promise((resolve, reject) => reject()); const VAX_NAMES = { PB: "Pfizer-BioNTech", @@ -980,9 +984,6 @@ class App extends React.Component { } } -ReactDOM.render( - - - , - document.querySelector("#root") -); +const domContainer = document.querySelector('#root'); +const root = ReactDOM.createRoot(domContainer); +root.render(React.createElement(App));