-
Notifications
You must be signed in to change notification settings - Fork 89
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add website preview * Add page seo * add widget * Merge SEO props and add previews * SEO preview * Drop page SEO * Apply suggestions from code review Co-authored-by: Matheus Gaudencio do Rêgo <matheusgr@users.noreply.github.com> * Apply suggestions from code review Co-authored-by: Matheus Gaudencio do Rêgo <matheusgr@users.noreply.github.com> * Drop comments --------- Co-authored-by: Matheus Gaudencio do Rêgo <matheusgr@users.noreply.github.com>
- Loading branch information
1 parent
ae9b691
commit 5e13c82
Showing
13 changed files
with
772 additions
and
223 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import { default as SEOPreview } from "./components/_seo/Preview.tsx"; | ||
import { Props as WebsiteAppProps } from "./mod.ts"; | ||
|
||
interface Props { | ||
state: WebsiteAppProps; | ||
} | ||
|
||
export default function Preview(props: Props) { | ||
const { seo } = props.state; | ||
|
||
return ( | ||
<section> | ||
{seo && <SEOPreview {...seo} />} | ||
{!seo && <p>SEO not configured</p>} | ||
</section> | ||
); | ||
} |
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
Oops, something went wrong.