-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
67 additions
and
120 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 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,41 @@ | ||
import Image from "next/image"; | ||
import Link from "next/link"; | ||
|
||
import styles from "../styles/Home.module.css"; | ||
|
||
import xpShield from '../public/images/xp-shield.svg'; | ||
import React from "react"; | ||
|
||
export default function Home() { | ||
return ( | ||
<div className={styles.container}> | ||
<main className={styles.main}> | ||
<h1 className={styles.title}>Enonic ❤ Next.js</h1> | ||
<p>Welcome to the Enonic XP + <a href="https://nextjs.org">Next.js</a> proof of concept!</p> | ||
|
||
<Image src={xpShield} | ||
width={156} | ||
height={300} | ||
alt={"Enonic XP logo"} | ||
/> | ||
|
||
<section> | ||
<h2>Browsing</h2> | ||
<p>If this app is hooked up to a running XP instance | ||
(see <em>src/enonic-connection-config.js</em>), you can already browse content item data in | ||
this app. Go to the <pre style={{display: 'inline'}}>_path</pre> of a content item: | ||
</p> | ||
<p>/_draft/<em><site/path/to/item></em></p> | ||
<p>Of course, just replace '_draft' with '_master' to view published content.</p> | ||
</section> | ||
|
||
<section> | ||
<h2>Get started</h2> | ||
<p>The data browsing is a general view that uses a generic guillotine query and shared react component. Check out <strong | ||
style={{color: 'green'}}>the docs</strong> for how to tailor your own queries and react | ||
components to fetch and render content from XP, by content type.</p> | ||
</section> | ||
</main> | ||
</div> | ||
); | ||
} |
This file was deleted.
Oops, something went wrong.