aboutsummaryrefslogtreecommitdiff
path: root/dashboard/index.html
diff options
context:
space:
mode:
authorKumar Priyansh <[email protected]>2019-05-31 17:31:33 +0700
committerKumar Priyansh <[email protected]>2019-05-31 17:31:33 +0700
commit25e6d1baea735376ab9af0fb9e1d1a0eaef4b21b (patch)
treed9efecad23815419f0a6d7960a39f4763e4be735 /dashboard/index.html
parent68498c857fd448758800d2ee2931e4d3a502d77a (diff)
downloadfirebase-ecommerce-25e6d1baea735376ab9af0fb9e1d1a0eaef4b21b.tar.xz
firebase-ecommerce-25e6d1baea735376ab9af0fb9e1d1a0eaef4b21b.zip
Updated Dashboard, Added Dashboard Functions, Added Login Check to Login and Dashboard Scripts
Diffstat (limited to 'dashboard/index.html')
-rw-r--r--dashboard/index.html55
1 files changed, 53 insertions, 2 deletions
diff --git a/dashboard/index.html b/dashboard/index.html
index e4a5f56..c16dcd0 100644
--- a/dashboard/index.html
+++ b/dashboard/index.html
@@ -4,9 +4,60 @@
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
- <title>Firebase ECommerce Solution</title>
+ <title>Firebase ECommerce Solution</title><style>
+ #snackbar {
+ visibility: hidden;
+ min-width: 250px;
+ background-color: rgb(231, 81, 81);
+ color: #fff;
+ text-align: center;
+ border-radius: 2px;
+ padding: 16px;
+ position: fixed;
+ z-index: 1;
+ top: 30px;
+ right:30px;
+ }
+ #snackbar.show {
+ visibility: visible;
+ -webkit-animation: fadein 0.5s, fadeout 0.5s 2.5s;
+ animation: fadein 0.5s, fadeout 0.5s 2.5s;
+ }
+ @-webkit-keyframes fadein {
+ from {opacity: 0;}
+ to { opacity: 1;}
+ }
+
+ @keyframes fadein {
+ from { opacity: 0;}
+ to { opacity: 1;}
+ }
+
+ @-webkit-keyframes fadeout {
+ from {opacity: 1;}
+ to {opacity: 0;}
+ }
+
+ @keyframes fadeout {
+ from {opacity: 1;}
+ to {opacity: 0;}
+ }
+ .middle {
+ margin: 0 auto;
+ width: 50%;
+ justify-content: center;
+ justify-items: center;
+ align-content: center;
+ align-items: center;
+ }
+ </style>
</head>
<body>
-
+ <div id="snackbar">Some text some message..</div>
+ <button id="signout">Signout</button>
+ <script src="../shared/jquery.js"></script>
+ <script src="https://www.gstatic.com/firebasejs/6.1.0/firebase.js"></script>
+ <script src="../shared/firebaseConfig.js"></script>
+ <script src="../shared/Dashboard.js"></script>
</body>
</html> \ No newline at end of file