From 8bd2eb826db316a089c289d869e73240bfe62a36 Mon Sep 17 00:00:00 2001 From: Dessalines Date: Sun, 24 Sep 2023 19:10:47 -0400 Subject: [PATCH] Finishing up blocks. --- src/shared/components/donate-lines.tsx | 41 ----- src/shared/components/donate.tsx | 2 - src/shared/components/main.tsx | 233 ++++++++++++++++++++++--- 3 files changed, 208 insertions(+), 68 deletions(-) delete mode 100644 src/shared/components/donate-lines.tsx diff --git a/src/shared/components/donate-lines.tsx b/src/shared/components/donate-lines.tsx deleted file mode 100644 index ce8da4b..0000000 --- a/src/shared/components/donate-lines.tsx +++ /dev/null @@ -1,41 +0,0 @@ -import { Component } from "inferno"; -import { Link } from "inferno-router"; -import { i18n } from "../i18next"; -import { T } from "inferno-i18next"; - -export class DonateLines extends Component { - constructor(props: any, context: any) { - super(props, context); - } - render() { - return ( - <> -

- - ### - -

- - - ); - } -} diff --git a/src/shared/components/donate.tsx b/src/shared/components/donate.tsx index 39ca411..57c6ede 100644 --- a/src/shared/components/donate.tsx +++ b/src/shared/components/donate.tsx @@ -1,6 +1,5 @@ import { Component } from "inferno"; import { Helmet } from "inferno-helmet"; -import { DonateLines } from "./donate-lines"; import { i18n } from "../i18next"; import { T } from "inferno-i18next"; import { translators } from "../translations/translators"; @@ -100,7 +99,6 @@ export class Donate extends Component {

{i18n.t("support_lemmy")}

-

diff --git a/src/shared/components/main.tsx b/src/shared/components/main.tsx index f9a1fc6..b366c6e 100644 --- a/src/shared/components/main.tsx +++ b/src/shared/components/main.tsx @@ -1,19 +1,19 @@ import { Component } from "inferno"; import { Link } from "inferno-router"; import { Helmet } from "inferno-helmet"; -import { DonateLines } from "./donate-lines"; import { i18n } from "../i18next"; import { T } from "inferno-i18next"; import { isBrowser } from "../utils"; import { Icon } from "./icon"; +const gradientTextClasses = + "bg-gradient-to-r bg-clip-text text-transparent from-[#69D066] to-[#03A80E]"; + const LemmyTitleBlock = () => (
-

- Lemmy -

-

{i18n.t("lemmy_desc")}

+

Lemmy

+

{i18n.t("lemmy_desc")}

@@ -23,14 +23,14 @@ const LemmyTitleBlock = () => ( ); const JoinServerButton = () => ( - + {i18n.t("join_a_server")} ); const RunServerButton = () => ( {i18n.t("run_a_server")} @@ -39,10 +39,12 @@ const RunServerButton = () => ( const FollowCommunitiesBlock = () => (
-
+
-

{i18n.t("follow_communities")}

-

+

+ {i18n.t("follow_communities")} +

+

{i18n.t("lemmy_long_desc")}

@@ -52,7 +54,7 @@ const FollowCommunitiesBlock = () => ( ); const FeatureCard = ({ pic, title, subtitle }) => ( -
+
@@ -124,21 +126,21 @@ const ModToolsCard = () => ( const FeatureCardsBlock = () => (
-
+
-
+
-
+
{/* TODO Add censorship and other cards */} -
+ } + text={ + + ## + # + + } + /> + + +
+ } + text={i18n.t("integrated_image_uploading")} + /> + + +
+ } + text={i18n.t("notifications_including")} + /> + + +
+ } + text={ + + # + + # + + + } + /> + + +
+ } + text={ + + ## + # + # + # + # + + } + /> + + +
+ } + text={i18n.t("can_fully_erase")} + /> + + +
+ } + text={i18n.t("nsfw_support")} />
@@ -215,12 +352,58 @@ const MoreFeaturesBlock = () => ( const MoreFeaturesCard = ({ icons, text }) => (
-
{icons}
+
{icons}

{text}

); +const DonateDesc = () => ( +

+ + # + + # + + # + +

+); + +const DonateButtons = () => ( +
+); + +const SupportDonateBlock = () => ( +
+
+
+

+ {i18n.t("support_donate")} +

+ + +
+
+
+); + export class Main extends Component { constructor(props: any, context: any) { super(props, context); @@ -244,6 +427,7 @@ export class Main extends Component { +

@@ -412,7 +596,6 @@ export class Main extends Component {

{i18n.t("support_donate")}

-