From 83ff230d1fd6ac63783e0902d908d69f394b2d79 Mon Sep 17 00:00:00 2001 From: Felix Ableitner Date: Mon, 23 May 2022 12:10:21 +0200 Subject: [PATCH] Revert "Redesign instance list" This reverts commit 702d1651b6ba57367ae1b4cb9e6f664339668419. --- src/assets/css/main.css | 34 ++---------------- src/shared/components/instances.tsx | 56 ++++++++++++++--------------- 2 files changed, 29 insertions(+), 61 deletions(-) diff --git a/src/assets/css/main.css b/src/assets/css/main.css index 9d5b530..e84e0a3 100644 --- a/src/assets/css/main.css +++ b/src/assets/css/main.css @@ -14,12 +14,6 @@ webkit-box-shadow: unset; box-shadow: unset; border: 1px solid var(--color-darkGrey) !important; - padding: 10px; - margin: 10px 0 10px 0; - height: 100px; - display: flex; - flex-direction: row; - align-items: center; } .stylized { font-family: "CaviarDreams", Fallback, sans-serif; @@ -38,29 +32,11 @@ p { font: 1.2em/1.62 sans-serif; } -.join-icon { - width: 80px; - height: 80px; +.join-banner { + width: 100%; + height: 100px; object-fit: scale-down; } -.join-text { - display: inline-block; - margin: 0 10px 0 10px; - display: flex; - flex-direction: column; - flex: 1; -} -.join-header { - display: flex; - flex-direction: row; -} -.join-title { - margin: 0px; - flex: 1; -} -.join-desc { - font-size: 0.9em; -} .app-banner { width: 100%; height: 300px; @@ -89,7 +65,3 @@ img { margin-top: 7px; background-color: #333; } - -.button-yellow { - background-color: #b5932e !important; -} \ No newline at end of file diff --git a/src/shared/components/instances.tsx b/src/shared/components/instances.tsx index 5fee813..4ff12af 100644 --- a/src/shared/components/instances.tsx +++ b/src/shared/components/instances.tsx @@ -62,46 +62,42 @@ export class Instances extends Component { renderList(header: string, instances: any[]) { return (
- - - -
-

{header}

- - {instances.map(instance => { - const site = instance.site_info.site_view.site; - const counts = instance.site_info.site_view.counts; - return ( -
- -
-
-

{site.name}

+

{header}

+
+ {instances.map(i => ( +
+
+
+

{i.domain}

+

- {numToSI(counts.users_active_month)} {i18n.t("users")} /{" "} + {numToSI(i.users_active_month)} {i18n.t("users")} /{" "} {i18n.t("month")} -

-

{site.description}

+
- {site.require_application ? ( - + +
+ +
+
+

{i.description}

+
- ); - })} + +
+ ))}
);