From 65aae5f41278d159d73e8db6d895ef5bfbfddd83 Mon Sep 17 00:00:00 2001 From: Dessalines Date: Sun, 24 Sep 2023 12:42:46 -0400 Subject: [PATCH] Adding a few more blocks. --- src/shared/components/main.tsx | 176 ++++++++++++++++++++++++++++++++- src/style.css | 9 ++ 2 files changed, 184 insertions(+), 1 deletion(-) diff --git a/src/shared/components/main.tsx b/src/shared/components/main.tsx index 076bca9..f9a1fc6 100644 --- a/src/shared/components/main.tsx +++ b/src/shared/components/main.tsx @@ -5,6 +5,7 @@ import { DonateLines } from "./donate-lines"; import { i18n } from "../i18next"; import { T } from "inferno-i18next"; import { isBrowser } from "../utils"; +import { Icon } from "./icon"; const LemmyTitleBlock = () => (
@@ -37,7 +38,7 @@ const RunServerButton = () => ( ); const FollowCommunitiesBlock = () => ( -
+

{i18n.t("follow_communities")}

@@ -50,6 +51,176 @@ const FollowCommunitiesBlock = () => (
); +const FeatureCard = ({ pic, title, subtitle }) => ( +
+
+ +
+
+

{title}

+

{subtitle}

+
+
+); + +const OpenSourceCard = () => ( + + # + + # + + + # + + + # + + + } + /> +); + +const BlazingFastCard = () => ( + + # + + # + + + # + + + # + + + # + + + # + + + } + /> +); + +const ModToolsCard = () => ( + +); + +const FeatureCardsBlock = () => ( +
+
+ +
+
+ +
+
+ +
+ {/* TODO Add censorship and other cards */} + +
+ +
+
+ +
+
+); + +const DiscussionPlatformBlock = () => ( +
+
+
+

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

+

+ + # + + # + + # + + # + + +

+ +
{i18n.t("join_a_server")}
+ +
+
+
+); + +// TODO more FEATURES(needs to be green) +// TODO add all of these ones +const MoreFeaturesBlock = () => ( +
+
{i18n.t("more_features")}
+
+ } + text={ + + # + + # + + + # + + + } + /> + + +
+ } + text={"Some more here"} + /> +
+
+); + +const MoreFeaturesCard = ({ icons, text }) => ( +
+
+
{icons}
+

{text}

+
+
+); + export class Main extends Component { constructor(props: any, context: any) { super(props, context); @@ -70,6 +241,9 @@ export class Main extends Component { + + +

diff --git a/src/style.css b/src/style.css index 76fcadc..ad2d80f 100644 --- a/src/style.css +++ b/src/style.css @@ -1,3 +1,12 @@ @import "tailwindcss/base"; @import "tailwindcss/components"; @import "tailwindcss/utilities"; + +.icon { + display: inline-block; + max-width: 1rem; + max-height: 1rem; + stroke-width: 0; + stroke: currentColor; + fill: currentColor; +}