A fully open source & end-to-end encrypted note taking alternative to Evernote.
TypeScript asp-net-coredotnet-coreelectronfosshacktoberfestnote-managmentnote-takingnote-taking-appnotebooknotesnotes-appopen-sourceopensourceprivacyproductivityreactreact-nativereactjsself-hosted
chore: add offer on email verified
thecodrre91051f39418
diff --git a/apps/web/src/views/email-confirmed.js b/apps/web/src/views/email-confirmed.jsindex ee4f2cd53..917224b93 100644--- a/apps/web/src/views/email-confirmed.js+++ b/apps/web/src/views/email-confirmed.js@@ -8,7 +8,7 @@ import { upgrade } from "../common/checkout";import { db } from "../common/db";import { showLogInDialog } from "../common/dialog-controller";import { showToast } from "../utils/toast";-import CountdownTimer from "@inlightmedia/react-countdown-timer";+// import CountdownTimer from "@inlightmedia/react-countdown-timer";import { trackEvent } from "../utils/analytics";function EmailConfirmed() {@@ -49,12 +49,12 @@ function EmailConfirmed() {<Text variant="body" mt={2}>You can safely close this window and return to Notesnook.</Text>- {/* <SaleBanner- discount={80}- coupon="EARLYBIRD"- offerEndDate="2021-04-11T00:00:00Z"+ <SaleBanner+ discount={50}+ coupon="WRLD2021"+ offerEndDate="2021-06-06T00:00:00Z"userId={userId}- /> */}+ /></Flex></Flex></ThemeProvider>@@ -67,21 +67,46 @@ function SaleBanner(props) {return (<Flex- bg="shade"flexDirection="column"mt={5}justifyContent="center"alignItems="center"p={2}- maxWidth={["80%", "auto", "auto"]}+ maxWidth={["95%", "60%", "50%"]}sx={{borderRadius: "default",border: "1px solid",borderColor: "primary",}}>- <Text variant="title" textAlign="center">- Notesnook Pro Early Bird Offer!+ <Text variant="heading" textAlign="center">+ We proved them wrong!+ </Text>+ <Text+ as="p"+ variant="body"+ fontSize="title"+ lineHeight="22px"+ textAlign="center"+ >+ We started out building Notesnook in November 2019. Our mission was to+ make privacy simple. It is one thing to say,{" "}+ <Text as="span" color="primary">+ "Privacy is our basic right"+ </Text>{" "}+ and quite another to actually prove it.+ <br />+ Almost 1 and a half year later, we are here with over 2000 users, 5000++ downloads on Google Play Store, 10,000+ encrypted notes, and 100++ members in our Discord community; all proof that{" "}+ <Text as="span" color="primary">+ privacy matters.+ </Text>+ <br />+ </Text>+ <Text variant="title" mt={2}>+ In celebration of this happy day, we are giving a special discount to+ all our new members.</Text><Textvariant="heading"@@ -90,9 +115,15 @@ function SaleBanner(props) {textAlign="center"fontWeight="bold">- {discount}% OFF+ {discount}% OFF if you subscribe today!+ </Text>+ <Text variant="body" textAlign="center" mt={1}>+ Big companies say, "This X & Y feature won't be possible if we went+ zero-knowledge." We are here to call them out. Your contribution will+ help us prove that giving up on privacy is just an excuse to rip users+ off, sell their data and make money.</Text>- <Text variant="body" fontSize="title" textAlign="center">+ {/* <Text variant="body" fontSize="title" textAlign="center">*Use coupon{" "}<Text as="b" color="primary">{coupon}@@ -101,8 +132,8 @@ function SaleBanner(props) {<Text as="b" color="primary">{discount}% off your first month.</Text>- </Text>- <CountdownTimer+ </Text> */}+ {/* <CountdownTimerdateTime={offerEndDate}style={{color: "black",@@ -117,11 +148,12 @@ function SaleBanner(props) {/><Text variant="body" color="error" fontWeight="bold">Remaining to get {discount}% off your first month- </Text>+ </Text> */}<Button- mt={1}+ mt={2}fontSize="title"width="100%"+ fontWeight="bold"onClick={async () => {trackEvent(`Email verification offer`, "offers");@@ -151,10 +183,10 @@ function SaleBanner(props) {await upgrade(user, coupon);}}>- Subscribe now before offer ends!+ Subscribe now to stand up for privacy!</Button><Text variant="body" fontSize="subBody" mt={1}>- *This offer only works if you purchase through our web app.+ *Use code <b>{coupon}</b> at checkout to get your discount.</Text></Flex>);