Skip to content

Commit 8bf3c4f

Browse files
committed
Remove sign up button if logged in
1 parent 4358c15 commit 8bf3c4f

File tree

1 file changed

+19
-12
lines changed

1 file changed

+19
-12
lines changed

web/components/home/home.tsx

Lines changed: 19 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import {useEffect} from "react";
22
import {Col} from "web/components/layout/col";
33
import {SignUpButton} from "web/components/nav/sidebar";
4+
import {useUser} from "web/hooks/use-user";
45

56
export function AboutBox(props: {
67
title: string
@@ -18,6 +19,8 @@ export function AboutBox(props: {
1819
}
1920

2021
export function LoggedOutHome() {
22+
const user = useUser()
23+
2124
useEffect(() => {
2225
const text = "Search.";
2326
const el = document.getElementById("typewriter");
@@ -46,14 +49,14 @@ export function LoggedOutHome() {
4649

4750
return (
4851
<>
49-
<Col className="mb-4 gap-2 lg:hidden">
50-
<SignUpButton
51-
className="mt-4 flex-1 fixed bottom-[55px] w-full left-0 right-0 z-10 mx-auto px-4"
52-
size="xl"
53-
text="Sign up"
54-
/>
52+
{user === null && <Col className="mb-4 gap-2 lg:hidden">
53+
<SignUpButton
54+
className="mt-4 flex-1 fixed bottom-[55px] w-full left-0 right-0 z-10 mx-auto px-4"
55+
size="xl"
56+
text="Sign up"
57+
/>
5558
{/*<SignUpAsMatchmaker className="flex-1"/>*/}
56-
</Col>
59+
</Col>}
5760
<h1
5861
className="pt-12 pb-2 text-7xl md:text-8xl xs:text-6xl font-extrabold leading-tight xl:whitespace-nowrap md:whitespace-nowrap text-center">
5962
Don't Swipe.<br/>
@@ -68,13 +71,17 @@ export function LoggedOutHome() {
6871
<div className="w-full py-8 mt-20">
6972
<div className="max-w-6xl mx-auto px-4">
7073
<div className="grid md:grid-cols-3 gap-8 text-center">
71-
<AboutBox title="Radically Transparent" text="No algorithms. Every profile searchable. You decide who to discover."/>
72-
<AboutBox title="Built for Depth" text="Search and filter by values, interests, goals, and keywords — from “stoicism” to “sustainable living.” Surface the connections that truly matter."/>
73-
<AboutBox title="Community Owned & Open Source" text="Free forever. No ads, no subscriptions. Built by the people who use it, for the benefit of everyone."/>
74+
<AboutBox title="Radically Transparent"
75+
text="No algorithms. Every profile searchable. You decide who to discover."/>
76+
<AboutBox title="Built for Depth"
77+
text="Search and filter by values, interests, goals, and keywords — from “stoicism” to “sustainable living.” Surface the connections that truly matter."/>
78+
<AboutBox title="Community Owned & Open Source"
79+
text="Free forever. No ads, no subscriptions. Built by the people who use it, for the benefit of everyone."/>
7480
</div>
7581
<div className="mt-10 max-w-xl mx-auto">
76-
<p className="text-center">
77-
Compass is to human connection what Linux is to software, Wikipedia is to knowledge, and Firefox is to browsing — a public digital good designed to serve people, not profit.
82+
<p className="text-center">
83+
Compass is to human connection what Linux is to software, Wikipedia is to knowledge, and Firefox is to
84+
browsing — a public digital good designed to serve people, not profit.
7885
</p>
7986
</div>
8087
</div>

0 commit comments

Comments
 (0)