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 Head from 'next/head'
import { useAmp } from 'next/amp' import { useAmp } from 'next/amp'
import Layout from '../components/Layout'
import Byline from '../components/Byline' import Byline from '../components/Byline'
export default () => { export default () => {
const isAmp = useAmp() const isAmp = useAmp()
return ( return (
<> <Layout>
<Head> <Head>
<title>The Cat</title> <title>The Cat</title>
</Head> </Head>
...@@ -200,6 +201,11 @@ export default () => { ...@@ -200,6 +201,11 @@ export default () => {
belly and purr when you are asleep. Lounge in doorway poop on grasses belly and purr when you are asleep. Lounge in doorway poop on grasses
for lounge in doorway for chew iPad power cord. for lounge in doorway for chew iPad power cord.
</p> </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