0
0
mirror of https://github.com/yude-jp/yude.jp synced 2025-12-16 20:54:17 +09:00

Setup Tailwind CSS

This commit is contained in:
2021-02-06 09:36:00 +09:00
parent 6165a111e1
commit b9f6b8a488
6 changed files with 933 additions and 52 deletions

View File

@@ -1,5 +1,6 @@
import Head from "next/head"
import Link from "next/link"
import "tailwindcss/tailwind.css";
const Layout = (props) => {
const { title, children } = props
@@ -18,14 +19,10 @@ const Layout = (props) => {
{children}
</div>
</main>
<style jsx global>{`
body {
text-align: center;
}
.avatar{
border-radius: 50%;
}
`}</style>
</div>
)

View File

@@ -5,8 +5,8 @@ import Image from 'next/image'
const Index = () => (
<Layout title="ホーム">
<div>
<Image className="avatar"
<div className="my-9">
<Image className="rounded-full"
src = "/static/images/avatar.png"
alt = "yude's avatar"
width = {200}
@@ -17,8 +17,8 @@ const Index = () => (
<p>For now, please visit <Link href="https://yude.moe"><a>yude.moe</a></Link>.
</p>
</div>
</Layout>
)
export default Index