mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2026-01-08 16:12:38 +00:00
Popup notification
Update the popup notification on the home page.
This commit is contained in:
@@ -4,7 +4,7 @@ const createClass = require('create-react-class');
|
|||||||
const _ = require('lodash');
|
const _ = require('lodash');
|
||||||
const cx = require('classnames'); //Unused variable
|
const cx = require('classnames'); //Unused variable
|
||||||
|
|
||||||
const DISMISS_KEY = 'dismiss_notification7-10-20';
|
const DISMISS_KEY = 'dismiss_notification09-9-21';
|
||||||
|
|
||||||
const NotificationPopup = createClass({
|
const NotificationPopup = createClass({
|
||||||
getInitialState : function() {
|
getInitialState : function() {
|
||||||
@@ -22,16 +22,33 @@ const NotificationPopup = createClass({
|
|||||||
notifications : {
|
notifications : {
|
||||||
psa : function(){
|
psa : function(){
|
||||||
return <li key='psa'>
|
return <li key='psa'>
|
||||||
<em>Google Drive Integration!</em> <br />
|
<em>V3.0.0 Released!</em> <br />
|
||||||
We have added Google Drive integration to the Homebrewery! <a target='_blank' href='https://www.naturalcrit.com/login'>Sign in</a> with
|
After a long and bumpy road, we decided it was high time we finally release version 3 of the homebrewery into the wild. You can check out a
|
||||||
your Google account to link it with your Homebrewery profile. A new button in the Edit page will let you transfer your file to your personal
|
brief overview and see how to opt-in to the new features here:
|
||||||
Google Drive storage, and Google will keep a backup of each version! No more lost work surprises!
|
<a target='_blank' href='https://homebrewery.naturalcrit.com/v3_preview'>V3 Welcome Page</a>
|
||||||
|
and <a target='_blank' href='https://homebrewery.naturalcrit.com/changelog'>the Changelog</a>.
|
||||||
<br /><br />
|
<br /><br />
|
||||||
However, we are aware that there may be uncaught bugs. We encourage you to copy your brew into a text document before transferring to Google
|
<em>BE WARNED:</em> As we continue to develop V3, expect small tweaks in the styling, fonts, and snippets; your brews may look slightly
|
||||||
Drive just in case any issues arise as this update is rolled out.
|
different from day-to-day. All of your old documents will continue to work as normal; we are not touching them. If you don't want to deal
|
||||||
|
with the possibility of slight formatting changes, you may choose to stick with the Legacy renderer on any of your brews for as long as you like.
|
||||||
<br /><br />
|
<br /><br />
|
||||||
<b>Note:</b> Transferring an existing brew to Google Drive will change the edit and share links of your document. If you have shared your
|
With this in mind, if you still wish to try out V3, you can opt-in any of your brews to the the V3 renderer.
|
||||||
document online, remember to update the links there as well.
|
This will likely break much of your formatting as a lot of the Markdown code has been updated, and starting from scratch may be cleaner.
|
||||||
|
(Don't worry, you can always change the renderer back to legacy for any brew at any time).
|
||||||
|
</li>;
|
||||||
|
},
|
||||||
|
refreshGoogle : function (){
|
||||||
|
return <li key='refreshGoogle'>
|
||||||
|
<em>Refresh your Google Drive Credentials!</em> <br />
|
||||||
|
Currently a lot of people are striking issues with their Google credentials expiring, which happens one year after the last sign in via
|
||||||
|
Google. This can cause errors when trying to save your brews. If this happens, simply visit the
|
||||||
|
<a target='_blank' href='https://www.naturalcrit.com/login'>
|
||||||
|
logout page
|
||||||
|
</a>
|
||||||
|
, sign out, and then sign back in "with Google" to refresh your credentials. See
|
||||||
|
<a target='_blank' href='https://github.com/naturalcrit/homebrewery/discussions/1580'>
|
||||||
|
this discussion on Github
|
||||||
|
</a> for more details.
|
||||||
</li>;
|
</li>;
|
||||||
},
|
},
|
||||||
faq : function(){
|
faq : function(){
|
||||||
@@ -62,8 +79,10 @@ const NotificationPopup = createClass({
|
|||||||
return <div className='notificationPopup'>
|
return <div className='notificationPopup'>
|
||||||
<i className='fas fa-times dismiss' onClick={this.dismiss}/>
|
<i className='fas fa-times dismiss' onClick={this.dismiss}/>
|
||||||
<i className='fas fa-info-circle info' />
|
<i className='fas fa-info-circle info' />
|
||||||
<h3>Notice</h3>
|
<div className='header'>
|
||||||
<small>This website is always improving and we are still adding new features and squashing bugs. Keep the following in mind:</small>
|
<h3>Notice</h3>
|
||||||
|
<small>This website is always improving and we are still adding new features and squashing bugs. Keep the following in mind:</small>
|
||||||
|
</div>
|
||||||
<ul>{_.values(this.state.notifications)}</ul>
|
<ul>{_.values(this.state.notifications)}</ul>
|
||||||
</div>;
|
</div>;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,23 +1,22 @@
|
|||||||
.popups{
|
.popups{
|
||||||
position : fixed;
|
position : fixed;
|
||||||
top : @navbarHeight;
|
top : @navbarHeight;
|
||||||
right : 15px;
|
right : 15px;
|
||||||
z-index : 10001;
|
z-index : 10001;
|
||||||
width : 350px;
|
width : 450px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.notificationPopup{
|
.notificationPopup{
|
||||||
position : relative;
|
position : relative;
|
||||||
float : right;
|
|
||||||
display : inline-block;
|
display : inline-block;
|
||||||
width : 350px;
|
width : 100%;
|
||||||
padding : 15px;
|
padding : 15px;
|
||||||
padding-bottom : 10px;
|
padding-bottom : 10px;
|
||||||
padding-left : 55px;
|
padding-left : 25px;
|
||||||
background-color : @blue;
|
background-color : @blue;
|
||||||
color : white;
|
color : white;
|
||||||
a{
|
a{
|
||||||
color : @steel;
|
color : #e0e5c1;
|
||||||
font-weight : 800;
|
font-weight : 800;
|
||||||
}
|
}
|
||||||
i.info{
|
i.info{
|
||||||
@@ -37,6 +36,9 @@
|
|||||||
opacity : 1;
|
opacity : 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
.header {
|
||||||
|
padding-left : 50px;
|
||||||
|
}
|
||||||
small{
|
small{
|
||||||
opacity : 0.7;
|
opacity : 0.7;
|
||||||
font-size : 0.6em;
|
font-size : 0.6em;
|
||||||
|
|||||||
Reference in New Issue
Block a user