Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

feat: add blog promo banner on email confirm

thecodrr73803b9e7c39
diff --git a/apps/web/src/components/announcements/index.js b/apps/web/src/components/announcements/index.js
index 7e3642ce3..60e685d4a 100644
--- a/apps/web/src/components/announcements/index.js
+++ b/apps/web/src/components/announcements/index.js
@@ -87,8 +87,8 @@ function Announcements({ announcements, removeAnnouncement }) {
else window.open(action.data, "_blank");
break;
case "promo":
- const coupon = action.data;
- await showBuyDialog(coupon);
+ const [coupon, plan] = action.data.split(":");
+ await showBuyDialog(plan, coupon);
break;
default:
return;
diff --git a/apps/web/src/views/email-confirmed.js b/apps/web/src/views/email-confirmed.js
index b480c55f7..eb5e384f4 100644
--- a/apps/web/src/views/email-confirmed.js
+++ b/apps/web/src/views/email-confirmed.js
@@ -50,7 +50,7 @@ function EmailConfirmed() {
</Text>
Email confirmed
</Text>
- <SaleBanner discount={50} coupon="WRLD2021" userId={userId} />
+ <BlogPromoBanner link="" />
</Flex>
</Flex>
</Flex>
@@ -59,6 +59,54 @@ function EmailConfirmed() {
}
export default EmailConfirmed;
+function BlogPromoBanner(props) {
+ const { link } = props;
+ return (
+ <Flex flexDirection="column" p={4}>
+ <Text variant="heading" textAlign="center">
+ Do you know why we made notesnook?
+ </Text>
+ <Text variant="body" fontSize="title" mt={1}>
+ There are so many note taking apps out there. But none of them fix the
+ core issue with privacy.
+ </Text>
+
+ <Text variant="body" fontSize="title" mt={1}>
+ Privacy has become undesirable because you have to sacrifice so much.
+ </Text>
+
+ <Text variant="body" fontSize="title" mt={1}>
+ In your heart, you know privacy is important. But you can't give up on
+ that awesome feature.
+ </Text>
+
+ <Text variant="body" fontSize="title" mt={1}>
+ You are forced to keep using privacy invasive apps because...the
+ alternative is not as productive.
+ </Text>
+
+ <Text variant="title" mt={1}>
+ But we are going to change that.
+ </Text>
+ <Button
+ mt={2}
+ as="a"
+ href={link}
+ target="_blank"
+ fontSize="title"
+ width="100%"
+ fontWeight="bold"
+ sx={{ boxShadow: "2px 2px 15px 0px #00000044" }}
+ onClick={() =>
+ trackEvent(`Email verification blog promo`, "blog-promo")
+ }
+ >
+ How are we going to do that? Read on.
+ </Button>
+ </Flex>
+ );
+}
+
function SaleBanner(props) {
const { discount, coupon, userId } = props;