-
Notifications
You must be signed in to change notification settings - Fork 24
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
Ondřej Chrastina
committed
Jan 23, 2023
1 parent
222743a
commit cfb3a5b
Showing
7 changed files
with
61 additions
and
40 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,9 @@ | ||
.page { | ||
display: flex; | ||
min-height: 100vh; | ||
flex-direction: column; | ||
} | ||
|
||
.content { | ||
flex: 1; | ||
} |
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,14 @@ | ||
import { Slice } from "gatsby"; | ||
import React from "react"; | ||
import "./layout.css" | ||
|
||
export const Layout = ({ children }) => { | ||
return ( | ||
<div className="page"> | ||
<div className="content"> | ||
{children} | ||
</div> | ||
<Slice alias="footer" /> | ||
</div > | ||
) | ||
} |
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 |
---|---|---|
@@ -1,18 +1,18 @@ | ||
import React from "react" | ||
import { RichTextElement } from "@kontent-ai/gatsby-components" | ||
import { Link, Slice } from "gatsby" | ||
|
||
const Index = () => { | ||
return ( | ||
<> | ||
<RichTextElement value="<div>Hello Kontent.ai!</div>" /> | ||
<ul> | ||
<li><Link to="author">Image resolution example</Link></li> | ||
<li><Link to="articles">Article listing example</Link></li> | ||
</ul> | ||
<Slice alias="footer"></Slice> | ||
</> | ||
) | ||
} | ||
|
||
export default Index; | ||
import React from "react" | ||
import { RichTextElement } from "@kontent-ai/gatsby-components" | ||
import { Link } from "gatsby" | ||
import { Layout } from "../components/layout" | ||
|
||
const Index = () => { | ||
return ( | ||
<Layout> | ||
<RichTextElement value="<div>Hello Kontent.ai!</div>" /> | ||
<ul> | ||
<li><Link to="author">Image resolution example</Link></li> | ||
<li><Link to="articles">Article listing example</Link></li> | ||
</ul> | ||
</Layout> | ||
) | ||
} | ||
|
||
export default Index; |