forked from OpenNeo/impress
Add announcement about new item page, replacing the hidden Neopass one
This commit is contained in:
parent
c60dceb0ae
commit
5001a50a60
7 changed files with 22 additions and 25 deletions
BIN
app/assets/images/about/announcement.png
Normal file
BIN
app/assets/images/about/announcement.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 7.9 KiB |
BIN
app/assets/images/about/announcement@2x.png
Normal file
BIN
app/assets/images/about/announcement@2x.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 23 KiB |
Binary file not shown.
Before Width: | Height: | Size: 8.9 KiB |
Binary file not shown.
Before Width: | Height: | Size: 22 KiB |
|
@ -7,9 +7,8 @@ body.outfits-new
|
||||||
#pet-not-found
|
#pet-not-found
|
||||||
display: none
|
display: none
|
||||||
|
|
||||||
.neopass-announcement
|
.announcement
|
||||||
border: 1px solid #cd8400
|
border: 1px solid $module-border-color
|
||||||
color: #764a00
|
|
||||||
padding: .5em
|
padding: .5em
|
||||||
display: grid
|
display: grid
|
||||||
grid-template-areas: "thumbnail content"
|
grid-template-areas: "thumbnail content"
|
||||||
|
@ -24,9 +23,6 @@ body.outfits-new
|
||||||
p:last-of-type
|
p:last-of-type
|
||||||
margin-bottom: 0
|
margin-bottom: 0
|
||||||
|
|
||||||
a
|
|
||||||
color: #be7a00
|
|
||||||
|
|
||||||
#outfit-forms
|
#outfit-forms
|
||||||
+clearfix
|
+clearfix
|
||||||
+module
|
+module
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
module OutfitsHelper
|
module OutfitsHelper
|
||||||
LAST_DAY_OF_NEOPASS_ANNOUNCEMENT = Date.parse("2024-05-05")
|
LAST_DAY_OF_ANNOUNCEMENT = Date.parse("2024-09-13")
|
||||||
def show_neopass_announcement?
|
def show_announcement?
|
||||||
Date.today <= LAST_DAY_OF_NEOPASS_ANNOUNCEMENT
|
Date.today <= LAST_DAY_OF_ANNOUNCEMENT
|
||||||
end
|
end
|
||||||
|
|
||||||
def destination_tag(value)
|
def destination_tag(value)
|
||||||
|
|
|
@ -4,26 +4,27 @@
|
||||||
|
|
||||||
%p#pet-not-found.alert= t 'pets.load.not_found'
|
%p#pet-not-found.alert= t 'pets.load.not_found'
|
||||||
|
|
||||||
- if show_neopass_announcement?
|
- if show_announcement?
|
||||||
%section.neopass-announcement
|
%section.announcement
|
||||||
= image_tag "about/neopass-survey.png", width: 70, height: 70,
|
= image_tag "about/announcement.png", width: 70, height: 70,
|
||||||
srcset: {"about/neopass-survey@2x.png": "2x"},
|
srcset: {"about/announcement@2x.png": "2x"},
|
||||||
class: "neopass-thumbnail"
|
class: "neopass-thumbnail"
|
||||||
.neopass-content
|
.content
|
||||||
%p
|
%p
|
||||||
%strong
|
%strong
|
||||||
💭 Thank you for sending us your NeoPass feedback!
|
= link_to "We've updated the item page!",
|
||||||
|
item_path("37002-Floating-Negg-Faerie-Doll")
|
||||||
|
It should load faster, work better on phones, and be more reliable—no
|
||||||
|
more "failed to fetch"! Please try it out and let us know if it does
|
||||||
|
anything weird!!
|
||||||
|
|
||||||
%p
|
%p{style: "font-style: italic; opacity: .85; font-size: 85%"}
|
||||||
We're working with TNT now to build new integrations, based on what you
|
By the way, our integration work with TNT is on pause while they focus
|
||||||
told us! We're glad
|
on the
|
||||||
= link_to "log in with NeoPass", about_neopass_path
|
= link_to "~Void Within plot~!", "https://www.neopets.com/tvw/",
|
||||||
is working well, and we're excited to do the next part! More info soon!
|
target: "_blank", style: "color: purple; font-weight: bold"
|
||||||
|
|
||||||
%p
|
|
||||||
Thanks again to everyone for helping us out! We're grateful, as always 💖
|
|
||||||
%br
|
%br
|
||||||
%em —Matchu
|
We'll start it back up closer to the new year.
|
||||||
|
|
||||||
#outfit-forms
|
#outfit-forms
|
||||||
- localized_cache :action_suffix => 'outfit_forms_intro' do
|
- localized_cache :action_suffix => 'outfit_forms_intro' do
|
||||||
|
|
Loading…
Reference in a new issue