Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion static/app/components/illustrations/NoProjectEmptyState.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -202,14 +202,15 @@ const Smoke = styled('g')`
)}
`;

function NoProjectEmptyState() {
function NoProjectEmptyState({className}: {className?: string}) {
return (
<svg
width="683"
height="600"
viewBox="0 0 683 600"
fill="none"
xmlns="http://www.w3.org/2000/svg"
className={className}
>
<Background {...backgroundAnimationProps}>
<path d="M425.89 15.49v118.33h128c.38 0 0-118 0-118l-128-.33z" fill="#E7E1EC" />
Expand Down
34 changes: 23 additions & 11 deletions static/app/components/noProjectMessage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -72,10 +72,24 @@ function NoProjectMessage({
);

return (
<Flex flex="1" align="center" justify="center">
<NoProjectEmptyState />
<Flex
flex="1"
align="center"
justify="center"
gap="3xl"
padding="lg"
direction={{xs: 'column', sm: 'row'}}
>
<Flex
align="center"
justify="center"
height="auto"
width={{xs: '300px', sm: 'auto'}}
>
<StyledNoProjectEmptyState />
</Flex>

<Content>
<Flex direction="column" justify="center">
<Layout.Title>{t('Remain Calm')}</Layout.Title>
<HelpMessage>{t('You need at least one project to use this view')}</HelpMessage>
<Actions>
Expand All @@ -88,22 +102,20 @@ function NoProjectMessage({
createProjectAction
)}
</Actions>
</Content>
</Flex>
</Flex>
);
}

export default NoProjectMessage;

const HelpMessage = styled('div')`
margin-bottom: ${space(2)};
const StyledNoProjectEmptyState = styled(NoProjectEmptyState)`
width: 100%;
height: auto;
`;

const Content = styled('div')`
display: flex;
flex-direction: column;
justify-content: center;
margin-left: 40px;
const HelpMessage = styled('div')`
margin-bottom: ${space(2)};
`;

const Actions = styled(ButtonBar)`
Expand Down
Loading