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

Adding a specific layout for Home #146

Merged
merged 4 commits into from
Dec 29, 2022

Conversation

k-nearest-neighbor
Copy link
Collaborator

  • Adds a specific layout to Home page, so it can have (header / footer / grid / etc) choices independent of other pages.
  • Makes the header transparent on home (it was originally transparent, and recently became white in a change aimed at making the header look better for signed-in pages)

Use this pattern any time a page needs a different layout:

ThePage.getLayout = (page) => ( ... )

…he the header / footer / grid used on Home; Make header transparent on Home
return (
<header className="bg-white">
<header className={`${clsx({ "bg-transparent": transparent, "bg-white": !transparent })}`}>
Copy link
Collaborator

Choose a reason for hiding this comment

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

nit: much simpler:

<header className={clsx(!transparent && "bg-white")}>

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

That's much better. done.

@k-nearest-neighbor k-nearest-neighbor merged commit 640623f into LAION-AI:main Dec 29, 2022
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.

2 participants