new card types, style changes, image preloading etc etc
diff --git a/pages/_app.js b/pages/_app.js
index 59fdadb..222765c 100644
--- a/pages/_app.js
+++ b/pages/_app.js
@@ -53,8 +53,11 @@
const [subBar, setSubBar] = React.useState(false);
const [currentElement, setElement] = React.useState(<></>);
- const showSubBar = (element, timeout) => {
+ const showSubBar = (element, timeout, positioning="left") => {
setSubBar(true);
+ if (positioning === "center") {
+ element = <div className={Styles.centeredSubBar}>{element}</div>
+ }
setElement(element);
if (timeout) {
setTimeout(() => {
@@ -70,8 +73,8 @@
setSubBar(false);
}
- const showMessage = (text) => {
- showSubBar(<p className={Styles.message}>{text}</p>, 5);
+ const showMessage = (text, positioning="left") => {
+ showSubBar(<p className={Styles.message}>{text}</p>, 5, positioning);
}
return <>