From d7c49fe19f46077a10c13d60d57a4e3e53e55bd4 Mon Sep 17 00:00:00 2001 From: MartinBraquet Date: Sun, 7 Sep 2025 20:39:09 +0200 Subject: [PATCH] Refactor into AboutBox --- web/components/about/box.tsx | 14 ++++++++++++++ web/pages/index.tsx | 33 +++++++++++++-------------------- 2 files changed, 27 insertions(+), 20 deletions(-) create mode 100644 web/components/about/box.tsx diff --git a/web/components/about/box.tsx b/web/components/about/box.tsx new file mode 100644 index 00000000..e01da9db --- /dev/null +++ b/web/components/about/box.tsx @@ -0,0 +1,14 @@ +export function AboutBox(props: { + title: string + text: string +}) { + const {title, text} = props + return ( +
+

{title}

+

+ {text} +

+
+ ) +} diff --git a/web/pages/index.tsx b/web/pages/index.tsx index deecb2f5..32cd8c12 100644 --- a/web/pages/index.tsx +++ b/web/pages/index.tsx @@ -22,6 +22,7 @@ import {api} from 'web/lib/api' import {debounce, omit} from 'lodash' import {PREF_AGE_MAX, PREF_AGE_MIN,} from 'web/components/filters/location-filter' import {signupRedirect} from "web/lib/util/signup"; +import {AboutBox} from "web/components/about/box"; export default function ProfilesPage() { @@ -214,26 +215,18 @@ export default function ProfilesPage() {
-
-

Radically Transparent

-

- No algorithms. Every profile searchable. -

-
- -
-

Built for Depth

-

- Filter by any keyword and what matters most. -

-
- -
-

Community Owned

-

- Free forever. Built by users, for users. -

-
+ + +