From 8cbdecfc7f14c24528fbe59e65647d3a4a654cff Mon Sep 17 00:00:00 2001 From: Djordje Vlaisavljevic Date: Sat, 17 Aug 2024 17:33:19 +0100 Subject: [PATCH] Added static design for Search page ref https://linear.app/tryghost/issue/AP-352/search-for-mastodon-usernames-in-ghost-admin --- .../src/components/Search.tsx | 38 ++++++++++++++++++- .../components/activities/ActivityItem.tsx | 1 + 2 files changed, 37 insertions(+), 2 deletions(-) diff --git a/apps/admin-x-activitypub/src/components/Search.tsx b/apps/admin-x-activitypub/src/components/Search.tsx index 8ed44b58e5..05dfa2a608 100644 --- a/apps/admin-x-activitypub/src/components/Search.tsx +++ b/apps/admin-x-activitypub/src/components/Search.tsx @@ -1,6 +1,8 @@ +import APAvatar from './global/APAvatar'; +import ActivityItem from './activities/ActivityItem'; import MainNavigation from './navigation/MainNavigation'; import React from 'react'; -import {Icon} from '@tryghost/admin-x-design-system'; +import {Button, Icon} from '@tryghost/admin-x-design-system'; interface SearchProps {} @@ -9,7 +11,39 @@ const Search: React.FC = ({}) => { <>
-
Search the Fediverse
+
Search the Fediverse
+ + +
+
Lydia Mango @username@domain.com
+
1,535 followers
+
+
); diff --git a/apps/admin-x-activitypub/src/components/activities/ActivityItem.tsx b/apps/admin-x-activitypub/src/components/activities/ActivityItem.tsx index af3ea48b3a..0a2a12b887 100644 --- a/apps/admin-x-activitypub/src/components/activities/ActivityItem.tsx +++ b/apps/admin-x-activitypub/src/components/activities/ActivityItem.tsx @@ -19,6 +19,7 @@ const ActivityItem: React.FC = ({children}) => {
{childrenArray[0]} {childrenArray[1]} + {childrenArray[2]}
);