Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add referrals banner #102

Merged
merged 2 commits into from
Dec 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 4 additions & 5 deletions app.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
export default defineAppConfig({
dateFormat: 'MMM DD, YYYY',
notice: {
text: 'Join our Halloween Hackathon 2024! $6666 in DEVILISH prizes up for grabs. Apply before the 13th of October!',
href: 'https://hackathon.storacha.network',
displayUntil: '2024-10-14', // use ISO date format or final day +1 in yyyy-mm-dd
text: 'EARN RACHA POINTS AND STORAGE CREDITS BY REFERRING FRIENDS <u>LEARN MORE</u>',
href: 'https://storacha.network/referrals',
displayUntil: '2025-12-31', // use ISO date format or final day +1 in yyyy-mm-dd
},
actions: {
start: { text: 'Start Storing', href: 'https://console.storacha.network/' },
Expand All @@ -17,8 +17,7 @@ export default defineAppConfig({
{ text: 'Node Providers', href: '/node-providers' },
{ text: 'Blog', href: '/blog' },
{ text: 'Docs', href: 'https://docs.storacha.network' },
// TODO: uncomment when we're ready for this to go live
// { text: 'Referrals', href: '/referrals' },
{ text: 'Referrals', href: '/referrals' },
],
mailingList: {
icon: 'i-carbon:email',
Expand Down
7 changes: 3 additions & 4 deletions components/Notice.vue
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,8 @@ onMounted(() => {
</script>

<template>
<div v-if="isVisible" class="bg-brand-3 p-3 text-center text-sm text-brand-4">
<AppLink :href="href" class="block w-full">
{{ text }} <AppIcon i="i-carbon:arrow-right" class="inline-block" />
</AppLink>
<div v-if="isVisible" class="bg-brand-5 p-3 text-center text-sm text-brand-1"
:class="{ 'bg-brand-3': true}">
<AppLink :href="href" class="block w-full" v-html="text" />
</div>
</template>
Loading