diff --git a/platform/firecamp-platform/src/components/tabs/home/Home.tsx b/platform/firecamp-platform/src/components/tabs/home/Home.tsx index a0e8410f..224f58ee 100644 --- a/platform/firecamp-platform/src/components/tabs/home/Home.tsx +++ b/platform/firecamp-platform/src/components/tabs/home/Home.tsx @@ -1,7 +1,7 @@ import { FC, useEffect } from 'react'; import cx from 'classnames'; import shallow from 'zustand/shallow'; -import { Container, EditorApi } from '@firecamp/ui'; +import { Container, EditorApi, Row, Column } from '@firecamp/ui'; import { ERequestTypes, EEditorTheme } from '@firecamp/types'; import { FcIconGetSquare, @@ -28,49 +28,56 @@ const Home: FC = () => { }; return ( - - -
- Welcome To Firecamp! - - This campsite is designed for you, giving you the power to do what - you love with APIs. - -
-
- -
-
- Popular Requests -
-
- } - openRequest={() => _openTab(ERequestTypes.Rest)} - /> - } - openRequest={() => _openTab(ERequestTypes.GraphQL)} - /> - } - openRequest={() => _openTab(ERequestTypes.WebSocket)} - hasInvertIcon={true} - /> - } - openRequest={() => _openTab(ERequestTypes.SocketIO)} - hasInvertIcon={true} - /> -
-
- -
-
+ + + + +
+ Welcome To Firecamp! + + This campsite is designed for you, giving you the power to do + what you love with APIs. + +
+
+ +
+
+ Popular Requests +
+
+ } + openRequest={() => _openTab(ERequestTypes.Rest)} + /> + } + openRequest={() => _openTab(ERequestTypes.GraphQL)} + /> + } + openRequest={() => _openTab(ERequestTypes.WebSocket)} + hasInvertIcon={true} + /> + } + openRequest={() => _openTab(ERequestTypes.SocketIO)} + hasInvertIcon={true} + /> +
+
+ +
+
+
+ + + +
); }; @@ -225,3 +232,37 @@ interface IRequestItem { /** Open request tab */ openRequest: () => void; } + +const InviteInfo = ({ organisation = true }) => { + return ( +
+

+ {organisation + ? "You're in the `My Workspace` workspace of the `Firecamp` organization." + : `You're right now in your personal workspace`} +

+ + {organisation ? ( +

+ You can invite your team/colleagues to this workspace to work + collaboratively. +

+ ) : ( +

+ The personal workspace is not meant to work collaboratively, for now, + you can create an organization and invite your team/colleagues to work + collaboratively. +

+ )} + + + {organisation + ? 'create an organization' + : 'invite your team/colleagues'} + +
+ ); +};