Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Style Empty State and 404 #695

Merged
merged 22 commits into from Jan 14, 2023

Conversation

rsandb
Copy link
Contributor

@rsandb rsandb commented Jan 14, 2023

Update styling to match rest of app

<Box bg={backgroundColor} p="10" borderRadius="xl" shadow="base">
<Box display="flex" flexDirection="column" alignItems="center" gap="8">
<FiAlertTriangle size="30" color="DarkOrange" />
<Box display="flex" flexDirection="column" alignItems="center" gap="3">
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

would make sense to have EmptyState accept children so you can re-use it here?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I agree, EmptyState should be a more generic component that takes in children.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this is sufficient for now and a fairly large PR. my request is to make a follow up PR to make EmptyState a re-usable component and update only other components using EmptyState.

website: Make the more text button clearer
<Box display="flex" flexDirection="column" alignItems="center" gap="8">
<FiAlertTriangle size="30" color="DarkOrange" />
<Box display="flex" flexDirection="column" alignItems="center" gap="3">
<Text>Sorry, the page you are looking for does not exist.</Text>
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you merge in my changes? I added in a button to file a bug here.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

working on it now

<Box bg={backgroundColor} p="10" borderRadius="xl" shadow="base">
<Box display="flex" flexDirection="column" alignItems="center" gap="8">
<FiAlertTriangle size="30" color="DarkOrange" />
<Box display="flex" flexDirection="column" alignItems="center" gap="3">
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I agree, EmptyState should be a more generic component that takes in children.

@fozziethebeat
Copy link
Collaborator

Also, if you're feeling motivated, I added a 500.tsx page. That could use the same styling update as I copied it from 404.

@rsandb
Copy link
Contributor Author

rsandb commented Jan 14, 2023

Also, if you're feeling motivated, I added a 500.tsx page. That could use the same styling update as I copied it from 404.

Is it just in the pages dir? I can't find it

@fozziethebeat fozziethebeat merged commit 206ef80 into LAION-AI:main Jan 14, 2023
@rsandb rsandb deleted the Style-Empty-State-and-404 branch January 14, 2023 08:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants