Skip to content

Commit

Permalink
Merge branch 'LAION-AI:main' into devcontainer-improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewm4894 authored Jan 3, 2023
2 parents da776c4 + 7ff6a55 commit 2566795
Show file tree
Hide file tree
Showing 4 changed files with 573 additions and 7 deletions.
8 changes: 8 additions & 0 deletions website/src/components/Layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,12 @@ export const getDefaultLayout = (page: React.ReactElement) => (
</div>
);

export const getTransparentHeaderLayout = (page: React.ReactElement) => (
<div className="grid grid-rows-[min-content_1fr_min-content] h-full justify-items-stretch">
<Header transparent={true} />
{page}
<Footer />
</div>
);

export const noLayout = (page: React.ReactElement) => page;
9 changes: 2 additions & 7 deletions website/src/pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import { Faq } from "src/components/Faq";
import { Footer } from "src/components/Footer";
import { Header } from "src/components/Header";
import { Hero } from "src/components/Hero";
import { getTransparentHeaderLayout } from "src/components/Layout";
import { TaskSelection } from "src/components/TaskSelection";

const Home = () => {
Expand Down Expand Up @@ -32,12 +33,6 @@ const Home = () => {
);
};

Home.getLayout = (page) => (
<div className="grid grid-rows-[min-content_1fr_min-content] h-full justify-items-stretch">
<Header transparent={true} />
{page}
<Footer />
</div>
);
Home.getLayout = getTransparentHeaderLayout;

export default Home;
Loading

0 comments on commit 2566795

Please sign in to comment.