0f4333a5a3
Converted Blog example over to TypeScript to match the Contribution guidelines. I also simplified the example by removing `_document.js` and prettier from `package.json`. ## Documentation / Examples - [X] Make sure the linting passes by running `pnpm lint` - [X] The examples guidelines are followed from [our contributing doc](https://github.com/vercel/next.js/blob/canary/contributing.md#adding-examples)
20 lines
347 B
JavaScript
20 lines
347 B
JavaScript
const YEAR = new Date().getFullYear()
|
|
|
|
export default {
|
|
footer: (
|
|
<footer>
|
|
<small>
|
|
<time>{YEAR}</time> © Your Name.
|
|
<a href="/feed.xml">RSS</a>
|
|
</small>
|
|
<style jsx>{`
|
|
footer {
|
|
margin-top: 8rem;
|
|
}
|
|
a {
|
|
float: right;
|
|
}
|
|
`}</style>
|
|
</footer>
|
|
),
|
|
}
|