Commit 23178db5 authored by JJ Kasper's avatar JJ Kasper Committed by Tim Neutkens

Add styles to experimental-amp example (#6461)

After discussion added global styles to experimental-amp example
parent 70d611f0
export default function Layout ({ children }) {
return (
<>
{children}
<style jsx global>{`
body {font-family: Roboto, sans-serif; padding: 30px; color: #444;}
`}</style>
</>
)
}
import Head from 'next/head'
import { useAmp } from 'next/amp'
import Layout from '../components/Layout'
import Byline from '../components/Byline'
export default () => {
const isAmp = useAmp()
return (
<>
<Layout>
<Head>
<title>The Cat</title>
</Head>
......@@ -200,6 +201,11 @@ export default () => {
belly and purr when you are asleep. Lounge in doorway poop on grasses
for lounge in doorway for chew iPad power cord.
</p>
</>
<style jsx>{`
h1 {margin-bottom: 5px;}
p {font-size: 18px; line-height: 30px; margin-top: 30px;}
.caption {color: #ccc; margin-top: 0; font-size: 14px; text-align: center;}
`}</style>
</Layout>
)
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment