-
-
Notifications
You must be signed in to change notification settings - Fork 146
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
Add newsletter unsubscribed page #776
Add newsletter unsubscribed page #776
Conversation
@NiallJoeMaher is attempting to deploy a commit to the Codú Team on Vercel. A member of the Team first needs to authorize it. |
WalkthroughThis update introduces a dedicated page for confirming a user's decision to unsubscribe from the newsletter. It not only confirms the unsubscription but also offers an easy path to resubscribe, all wrapped in a visually appealing design with a background gradient and styled message. Changes
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (invoked as PR comments)
Additionally, you can add CodeRabbit Configration File (
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Review Status
Actionable comments generated: 1
Configuration used: CodeRabbit UI
Files selected for processing (1)
- app/(standalone)/newsletter/unsubscribed/page.tsx (1 hunks)
Additional comments: 2
app/(standalone)/newsletter/unsubscribed/page.tsx (2)
- 4-9: The metadata configuration correctly sets the page to not be followed or indexed by search engines, which is appropriate for an unsubscribe confirmation page. This ensures that the page won't appear in search engine results, aligning with best practices for such types of pages.
- 22-26: The message to the user is clear, concise, and aligns with the objectives of maintaining a positive relationship with users even as they opt out of communications. The use of
<Link>
for the resubscribe option is correctly implemented, ensuring an easy pathway for users to reconsider their decision. This is a good practice in user experience design, as it provides a straightforward method for users to navigate back to the subscription page.
export default function NewsletterUnsubscribedPage() { | ||
return ( | ||
<div className="relative isolate min-h-svh overflow-hidden bg-black py-16 sm:flex sm:items-center sm:py-24 lg:py-32"> | ||
<div className="mx-auto max-w-7xl px-6 lg:px-8"> | ||
<div className="mx-auto max-w-2xl grid-cols-1 gap-x-8 gap-y-16"> | ||
<div className="max-w-xl lg:max-w-lg"> | ||
<h2 className="text-3xl font-bold tracking-tight text-white sm:text-4xl"> | ||
You are now unsubscribed. | ||
</h2> | ||
<p className="mt-4 text-lg leading-8 text-gray-300"> | ||
We are sad to see you go. If you change your mind, you can always{" "} | ||
<Link className="underline" href="/newsletter"> | ||
resubscribe | ||
</Link> | ||
. | ||
</p> | ||
</div> | ||
</div> | ||
</div> | ||
<div | ||
className="absolute left-1/2 top-0 -z-10 -translate-x-1/2 blur-3xl xl:-top-6" | ||
aria-hidden="true" | ||
> | ||
<div | ||
className="aspect-[1155/678] w-[72.1875rem] bg-gradient-to-tr from-orange-300 to-pink-500 opacity-30" | ||
style={{ | ||
clipPath: | ||
"polygon(74.1% 44.1%, 100% 61.6%, 97.5% 26.9%, 85.5% 0.1%, 80.7% 2%, 72.5% 32.5%, 60.2% 62.4%, 52.4% 68.1%, 47.5% 58.3%, 45.2% 34.5%, 27.5% 76.7%, 0.1% 64.9%, 17.9% 100%, 27.6% 76.8%, 76.1% 97.7%, 74.1% 44.1%)", | ||
}} | ||
/> | ||
</div> | ||
</div> | ||
); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The structure and styling of the NewsletterUnsubscribedPage
component are well-implemented, providing a visually appealing and brand-consistent user experience. The use of Tailwind CSS classes for styling ensures consistency and maintainability. However, consider adding alt text to the decorative div (lines 31-42) for better accessibility, even though it's marked with aria-hidden="true"
. While aria-hidden
effectively removes the element from the accessibility tree, providing alt text for decorative elements can sometimes offer additional context for those elements that might become visible to users in unexpected ways or contexts.
className="aspect-[1155/678] w-[72.1875rem] bg-gradient-to-tr from-orange-300 to-pink-500 opacity-30"
style={{
clipPath:
"polygon(74.1% 44.1%, 100% 61.6%, 97.5% 26.9%, 85.5% 0.1%, 80.7% 2%, 72.5% 32.5%, 60.2% 62.4%, 52.4% 68.1%, 47.5% 58.3%, 45.2% 34.5%, 27.5% 76.7%, 0.1% 64.9%, 17.9% 100%, 27.6% 76.8%, 76.1% 97.7%, 74.1% 44.1%)",
}}
+ alt="Decorative background"
Committable suggestion
‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation.
export default function NewsletterUnsubscribedPage() { | |
return ( | |
<div className="relative isolate min-h-svh overflow-hidden bg-black py-16 sm:flex sm:items-center sm:py-24 lg:py-32"> | |
<div className="mx-auto max-w-7xl px-6 lg:px-8"> | |
<div className="mx-auto max-w-2xl grid-cols-1 gap-x-8 gap-y-16"> | |
<div className="max-w-xl lg:max-w-lg"> | |
<h2 className="text-3xl font-bold tracking-tight text-white sm:text-4xl"> | |
You are now unsubscribed. | |
</h2> | |
<p className="mt-4 text-lg leading-8 text-gray-300"> | |
We are sad to see you go. If you change your mind, you can always{" "} | |
<Link className="underline" href="/newsletter"> | |
resubscribe | |
</Link> | |
. | |
</p> | |
</div> | |
</div> | |
</div> | |
<div | |
className="absolute left-1/2 top-0 -z-10 -translate-x-1/2 blur-3xl xl:-top-6" | |
aria-hidden="true" | |
> | |
<div | |
className="aspect-[1155/678] w-[72.1875rem] bg-gradient-to-tr from-orange-300 to-pink-500 opacity-30" | |
style={{ | |
clipPath: | |
"polygon(74.1% 44.1%, 100% 61.6%, 97.5% 26.9%, 85.5% 0.1%, 80.7% 2%, 72.5% 32.5%, 60.2% 62.4%, 52.4% 68.1%, 47.5% 58.3%, 45.2% 34.5%, 27.5% 76.7%, 0.1% 64.9%, 17.9% 100%, 27.6% 76.8%, 76.1% 97.7%, 74.1% 44.1%)", | |
}} | |
/> | |
</div> | |
</div> | |
); | |
export default function NewsletterUnsubscribedPage() { | |
return ( | |
<div className="relative isolate min-h-svh overflow-hidden bg-black py-16 sm:flex sm:items-center sm:py-24 lg:py-32"> | |
<div className="mx-auto max-w-7xl px-6 lg:px-8"> | |
<div className="mx-auto max-w-2xl grid-cols-1 gap-x-8 gap-y-16"> | |
<div className="max-w-xl lg:max-w-lg"> | |
<h2 className="text-3xl font-bold tracking-tight text-white sm:text-4xl"> | |
You are now unsubscribed. | |
</h2> | |
<p className="mt-4 text-lg leading-8 text-gray-300"> | |
We are sad to see you go. If you change your mind, you can always{" "} | |
<Link className="underline" href="/newsletter"> | |
resubscribe | |
</Link> | |
. | |
</p> | |
</div> | |
</div> | |
</div> | |
<div | |
className="absolute left-1/2 top-0 -z-10 -translate-x-1/2 blur-3xl xl:-top-6" | |
aria-hidden="true" | |
> | |
<div | |
className="aspect-[1155/678] w-[72.1875rem] bg-gradient-to-tr from-orange-300 to-pink-500 opacity-30" | |
style={{ | |
clipPath: | |
"polygon(74.1% 44.1%, 100% 61.6%, 97.5% 26.9%, 85.5% 0.1%, 80.7% 2%, 72.5% 32.5%, 60.2% 62.4%, 52.4% 68.1%, 47.5% 58.3%, 45.2% 34.5%, 27.5% 76.7%, 0.1% 64.9%, 17.9% 100%, 27.6% 76.8%, 76.1% 97.7%, 74.1% 44.1%)", | |
}} | |
alt="Decorative background" | |
/> | |
</div> | |
</div> | |
); |
✨ Codu Pull Request 💻
Pull Request details
Any Breaking changes
Associated Screenshots
New page:
/newsletter/unsubscribed
Summary by CodeRabbit