-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor LayoutMiddleBox for auth pages; solve className on body tag
- Loading branch information
Showing
14 changed files
with
79 additions
and
49 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,2 @@ | ||
export * from "./Form" | ||
export * from "./LabeledTextField" | ||
export * from "./FormLayout" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
import { EyeDropperIcon } from "@heroicons/react/24/solid" | ||
import Head from "next/head" | ||
import React from "react" | ||
import { Layout } from "./Layout" | ||
import { Logo } from "./Logo" | ||
|
||
type Props = { | ||
title?: string | ||
subtitle?: string | ||
children: React.ReactNode | ||
} | ||
|
||
export const LayoutMiddleBox: React.FC<Props> = ({ title, subtitle, children }) => { | ||
return ( | ||
<Layout> | ||
<div className="set-bg-indigo-50-on-body"> | ||
<div className="flex min-h-full flex-col justify-center py-12 sm:px-6 lg:px-8"> | ||
<div className="sm:mx-auto sm:w-full sm:max-w-md"> | ||
<Logo /> | ||
|
||
{Boolean(title) && ( | ||
<h2 className="mt-6 text-center text-3xl font-bold tracking-tight text-gray-900"> | ||
{title} | ||
</h2> | ||
)} | ||
{Boolean(subtitle) && ( | ||
<p className="mt-2 text-center text-sm text-gray-600">{subtitle}</p> | ||
)} | ||
</div> | ||
|
||
<div className="mt-8 sm:mx-auto sm:w-full sm:max-w-md"> | ||
<div className="bg-white py-8 px-4 shadow sm:rounded-lg sm:px-10">{children}</div> | ||
</div> | ||
</div> | ||
</div> | ||
</Layout> | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
import { EyeDropperIcon } from "@heroicons/react/24/solid" | ||
import React from "react" | ||
|
||
export const Logo: React.FC = () => { | ||
return <EyeDropperIcon className="mx-auto h-12 w-auto" /> | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export * from "./Logo" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
export * from "./Layout" | ||
export * from "./LayoutArticle" | ||
export * from "./LayoutMiddleBox" | ||
export * from "./Logo" | ||
export * from "./MetaTags" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters