From b70cc6f53321bb5b4f94fdf592f7d008dc1d217e Mon Sep 17 00:00:00 2001
From: Kaylee <34007889+KayleePop@users.noreply.github.com>
Date: Sat, 1 Jun 2019 18:21:53 -0500
Subject: [PATCH] Add QR code for tempalinks (#97)
* Add QR code of tempalink
* add padding to the bottom of the QR code
to ensure that there's space to scroll down far enough so the footer
isn't covering the QR code
* Fix spinner css
Use a rotating css background image instead of a separate element placed
behind
This allows flexbox to function correctly
---
lib/components/Spinner.js | 26 ++++++------------
lib/components/Tempalink.js | 18 +++++++-----
lib/index.styl | 55 +++++++++++++++++++------------------
package.json | 1 +
4 files changed, 49 insertions(+), 51 deletions(-)
diff --git a/lib/components/Spinner.js b/lib/components/Spinner.js
index c606a41..485b4af 100644
--- a/lib/components/Spinner.js
+++ b/lib/components/Spinner.js
@@ -10,23 +10,15 @@ export default class Spinner extends React.Component {
})
return
-
-
-
-
-
- {this.props.name === null ? null
- :
{this.props.name}
}
- {this.props.size === null ? null
- :
{formatSize(this.props.size)}
}
-
-
-
-
-
+
+
+ {this.props.name === null ? null
+ :
{this.props.name}
}
+ {this.props.size === null ? null
+ :
{formatSize(this.props.size)}
}
}
diff --git a/lib/components/Tempalink.js b/lib/components/Tempalink.js
index 8ae9ef7..24a3644 100644
--- a/lib/components/Tempalink.js
+++ b/lib/components/Tempalink.js
@@ -1,4 +1,5 @@
import React from 'react'
+import QRCode from 'react-qr'
export default class Tempalink extends React.Component {
constructor() {
@@ -12,13 +13,16 @@ export default class Tempalink extends React.Component {
render() {
var url = window.location.origin + '/' + this.props.token
- return
+ return