From 7f92343921a930a340cd5db9d7020b6a4f1b6741 Mon Sep 17 00:00:00 2001 From: Dessalines Date: Tue, 26 Sep 2023 21:53:24 -0400 Subject: [PATCH] Adding most of instances page. --- joinlemmy-translations | 2 +- lemmy-translations | 2 +- src/shared/components/app.tsx | 7 +- src/shared/components/apps.tsx | 18 +- src/shared/components/common.tsx | 35 +- src/shared/components/contact.tsx | 6 +- src/shared/components/donate-definitions.ts | 93 +++++ src/shared/components/donate.tsx | 327 ++++++++---------- .../components/instances-definitions.ts | 31 ++ src/shared/components/instances.tsx | 318 ++++++++++++----- src/shared/components/main.tsx | 10 +- src/shared/components/news-item.tsx | 2 +- src/shared/components/news.tsx | 6 +- src/shared/components/symbols.tsx | 9 + 14 files changed, 547 insertions(+), 319 deletions(-) create mode 100644 src/shared/components/donate-definitions.ts create mode 100644 src/shared/components/instances-definitions.ts diff --git a/joinlemmy-translations b/joinlemmy-translations index b5b5981..f96ec38 160000 --- a/joinlemmy-translations +++ b/joinlemmy-translations @@ -1 +1 @@ -Subproject commit b5b5981499854a7e25f128a5c8cc541b258e7e09 +Subproject commit f96ec38a927aa2477d9a1d21f6a637ed8838b913 diff --git a/lemmy-translations b/lemmy-translations index de9de2c..18da108 160000 --- a/lemmy-translations +++ b/lemmy-translations @@ -1 +1 @@ -Subproject commit de9de2c53bee034d3824ecaa9a2104f8f341332e +Subproject commit 18da10858d8c63750beb06247947f25d91944741 diff --git a/src/shared/components/app.tsx b/src/shared/components/app.tsx index ce231be..c186502 100644 --- a/src/shared/components/app.tsx +++ b/src/shared/components/app.tsx @@ -7,6 +7,7 @@ import { NoMatch } from "./no-match"; import { Symbols } from "./symbols"; import { Navbar } from "./navbar"; import { Footer } from "./footer"; +import { BACKGROUND_GRADIENT_1, BACKGROUND_GRADIENT_2 } from "./common"; export class App extends Component { constructor(props: any, context: any) { @@ -14,8 +15,8 @@ export class App extends Component { } render() { return ( - <> -
+
+
{/* */} @@ -33,7 +34,7 @@ export class App extends Component {
- +
); } } diff --git a/src/shared/components/apps.tsx b/src/shared/components/apps.tsx index 92565e7..aa0fa37 100644 --- a/src/shared/components/apps.tsx +++ b/src/shared/components/apps.tsx @@ -1,7 +1,7 @@ import { Component } from "inferno"; import { Helmet } from "inferno-helmet"; import { i18n } from "../i18next"; -import { gradientTextClasses } from "./common"; +import { TEXT_GRADIENT } from "./common"; import { ANDROID_APPS, API_LIBRARIES, @@ -14,10 +14,8 @@ import { import { Icon } from "./icon"; const TitleBlock = () => ( -
-

- {i18n.t("lemmy_apps")} -

+
+

{i18n.t("lemmy_apps")}

{i18n.t("choose_from_apps")}

@@ -34,7 +32,7 @@ const AppDetailsTitle = ({ app }: AppDetailsCardProps) => ( src={app.icon || "/static/assets/images/lemmy.svg"} className="rounded-xl w-7 h-7" /> - + {app.name}
@@ -55,7 +53,7 @@ const AppDetailsButtons = ({ links }: AppDetailsButtonsProps) => ( ); const AppDetailsCard = ({ app }: AppDetailsCardProps) => ( -
+
( const ApiLibrariesBlock = () => (
-
+