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

Removed Sign up today banner when the user is logged in #1094

Merged
merged 5 commits into from
Oct 8, 2024
Merged
Changes from 1 commit
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
40 changes: 21 additions & 19 deletions app/(app)/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,26 +17,28 @@ const Home = async () => {
<>
<div>
<Hero />
<section className="bg-white px-2 dark:bg-neutral-300" id="cta">
<div className="mx-auto py-20 sm:max-w-2xl sm:py-32 lg:max-w-5xl">
<h2 className="max-w-[660px] text-center text-2xl font-semibold tracking-tight text-neutral-900 dark:text-gray-900 sm:text-4xl md:text-left">
<span className="font-extrabold">Sign up today</span> to become a
writer and get a <span className="font-extrabold">free</span>{" "}
invite to our Discord community.
</h2>
<div className="mt-8 flex items-center justify-center gap-x-6 md:justify-start">
<Link href="/get-started" className="primary-button">
Get started
</Link>
<Link
href="/articles/explore-the-benefits-of-being-a-part-of-cod-ety1wehv"
className="font-semibold leading-6 text-neutral-900 dark:text-gray-900"
>
Learn more <span aria-hidden="true">→</span>
</Link>
{session == null && (
<section className="bg-white px-2 dark:bg-neutral-300" id="cta">
<div className="mx-auto py-20 sm:max-w-2xl sm:py-32 lg:max-w-5xl">
<h2 className="max-w-[660px] text-center text-2xl font-semibold tracking-tight text-neutral-900 dark:text-gray-900 sm:text-4xl md:text-left">
<span className="font-extrabold">Sign up today</span> to become a
writer and get a <span className="font-extrabold">free</span>{" "}
invite to our Discord community.
</h2>
<div className="mt-8 flex items-center justify-center gap-x-6 md:justify-start">
<Link href="/get-started" className="primary-button">
Get started
</Link>
<Link
href="/articles/explore-the-benefits-of-being-a-part-of-cod-ety1wehv"
className="font-semibold leading-6 text-neutral-900 dark:text-gray-900"
>
Learn more <span aria-hidden="true">→</span>
</Link>
</div>
</div>
</div>
</section>
</section>
)}
</div>

<div className="mx-2">
Expand Down
Loading