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:
@@ -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>
|
||||
)
|
||||
|
||||
@@ -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
|
||||
Reference in New Issue
Block a user