diff --git a/pages/embed/embed-pro-notice.pixy b/pages/embed/embed-pro-notice.pixy new file mode 100644 index 00000000..b0ac4249 --- /dev/null +++ b/pages/embed/embed-pro-notice.pixy @@ -0,0 +1,8 @@ +component EmbedProNotice(user *arn.User) + h1 notify.moe is in a financial crisis right now + p + spa If we don't get the necessary funding to keep it alive, the site needs to shut down. The developer works 12 hours per day on this project and doesn't receive a single cent. Please help us fund the project and get yourself a + a(href="https://notify.moe/shop", target="_blank") PRO account + span to support the site. It only costs about 2.6 USD per month. Read more about it + a(href="https://notify.moe/thread/A9nC8uakR", target="_blank") here + span . \ No newline at end of file diff --git a/pages/embed/embed.go b/pages/embed/embed.go index 8010d842..5eb51d0b 100644 --- a/pages/embed/embed.go +++ b/pages/embed/embed.go @@ -2,6 +2,7 @@ package embed import ( "net/http" + "time" "github.com/aerogo/aero" "github.com/animenotifier/notify.moe/components" @@ -16,6 +17,10 @@ func Get(ctx *aero.Context) string { return utils.AllowEmbed(ctx, ctx.HTML(components.Login())) } + if !user.IsPro() && user.TimeSinceRegistered() > 14*24*time.Hour { + return utils.AllowEmbed(ctx, ctx.HTML(components.EmbedProNotice(user))) + } + animeList := user.AnimeList() if animeList == nil { diff --git a/patches/add-shop-items/add-shop-items.go b/patches/add-shop-items/add-shop-items.go index af303e4b..8c44fd5d 100644 --- a/patches/add-shop-items/add-shop-items.go +++ b/patches/add-shop-items/add-shop-items.go @@ -14,6 +14,7 @@ var items = []*arn.Item{ Includes: * Special highlight on the forums +* Chrome extension for quick list access * Access to the VIP channel on Discord * PRO star on your profile * High priority for your personal suggestions @@ -34,6 +35,7 @@ Includes: Includes: * Special highlight on the forums +* Chrome extension for quick list access * Access to the VIP channel on Discord * PRO star on your profile * High priority for your personal suggestions @@ -54,6 +56,7 @@ Includes: Includes: * Special highlight on the forums +* Chrome extension for quick list access * Access to the VIP channel on Discord * PRO star on your profile * High priority for your personal suggestions @@ -74,6 +77,7 @@ Includes: Includes: * Special highlight on the forums +* Chrome extension for quick list access * Access to the VIP channel on Discord * PRO star on your profile * High priority for your personal suggestions