Skip to content

Commit 530ac7e

Browse files
committed
add a promo to vote
1 parent a11ec5b commit 530ac7e

1 file changed

Lines changed: 8 additions & 6 deletions

File tree

resources/views/partials/promo.antlers.html

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,19 @@
1-
{{# <div class="c-promo"
1+
<div class="c-promo"
22
x-cloak
3-
x-data="{ dismissed: localStorage.getItem('promo-dismissed') === 'true' }"
3+
x-data="{ dismissed: localStorage.getItem('vote-dismissed') === 'true' }"
44
x-show="!dismissed">
55
<div class="c-promo__inner">
6-
You are reading the Statamic 6 Beta docs. 👀
6+
<a href="https://cmscritic.com/vote" target="_blank" class="block text-white">
7+
🏆 Vote for your favorite CMS at the CMS Critic Awards! Voting ends Feb 28th.
8+
</a>
79
<button
8-
@click="dismissed = true; localStorage.setItem('promo-dismissed', 'true')"
9-
class="c-promo__close"
10+
@click="dismissed = true; localStorage.setItem('vote-dismissed', 'true')"
11+
class="c-promo__close relative z-10"
1012
aria-label="Dismiss promo">
1113
&times;
1214
</button>
1315
</div>
14-
</div> #}}
16+
</div>
1517

1618
{{# <a href="https://laracasts.com/series/learn-statamic-with-jack?ref=statamic.dev" class="hidden md:block sticky z-50 -top-8 bg-gradient-to-r from-purple to-blue via-pink hover:bg-gradient-animate py-2 text-center text-white font-bold text-sm antialiased">
1719
📼 Learn Statamic with Jack &mdash; a 22 episode series — is now live on <span class="bg-yellow text-black px-1 rounded-sm">Laracasts!</span> 📼

0 commit comments

Comments
 (0)