ui: updated layout for InviteInfo

This commit is contained in:
Nishchit14
2023-05-02 14:44:54 +05:30
parent 33e1d4019f
commit 84ebf7fde6

View File

@@ -28,19 +28,19 @@ const Home: FC<any> = () => {
}; };
return ( return (
<Row flex={1} overflow="auto" className="h-full">
<Column>
<Container className="px-14 py-20" overflow="visible"> <Container className="px-14 py-20" overflow="visible">
<Container.Header> <Container.Header>
<div className="text-2xl mb-8 font-normal"> <div className="text-2xl mb-8 font-normal">
Welcome To Firecamp! Welcome To Firecamp!
<span className="block text-base font-light text-appForegroundInActive"> <span className="block text-base font-light text-appForegroundInActive">
This campsite is designed for you, giving you the power to do This campsite is designed for you, giving you the power to do what
what you love with APIs. you love with APIs.
</span> </span>
</div> </div>
</Container.Header> </Container.Header>
<Container.Body overflow="visible"> <Container.Body overflow="visible">
<Row flex={1} overflow="auto" className="h-full">
<Column>
<div className="mb-8"> <div className="mb-8">
<div className="block text-base uppercase font-semibold text-appForegroundInActive mb-6"> <div className="block text-base uppercase font-semibold text-appForegroundInActive mb-6">
Popular Requests Popular Requests
@@ -71,13 +71,14 @@ const Home: FC<any> = () => {
</div> </div>
</div> </div>
<Theme /> <Theme />
</Container.Body>
</Container>
</Column> </Column>
<Column className="p-8 px-8">
<Column>
<InviteInfo /> <InviteInfo />
</Column> </Column>
</Row> </Row>
</Container.Body>
</Container>
); );
}; };
@@ -233,12 +234,12 @@ interface IRequestItem {
openRequest: () => void; openRequest: () => void;
} }
const InviteInfo = ({ organisation = true }) => { const InviteInfo = ({ organisation = true, info = {workspace: 'My Workspace', organisation: 'Firecamp'} }) => {
return ( return (
<div className="flex flex-col border border-appBorder shadow-md p-4"> <div className="flex flex-col border border-appBorder rounded-sm p-4 m-auto">
<p className={'text-base font-semibold mb-2 mt-1'}> <p className={'text-base font-semibold mb-2 mt-1'}>
{organisation {organisation
? "You're in the `My Workspace` workspace of the `Firecamp` organization." ? `You're in the ${info.workspace} workspace of the ${info.organisation} organization.`
: `You're right now in your personal workspace`} : `You're right now in your personal workspace`}
</p> </p>