mirror of
https://github.com/yude-jp/yude.jp
synced 2024-12-21 19:50:10 +09:00
Setup Tailwind CSS
This commit is contained in:
parent
6165a111e1
commit
b9f6b8a488
952
package-lock.json
generated
952
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@ -22,8 +22,11 @@
|
||||
"homepage": "https://github.com/yudemoe/yude.jp#readme",
|
||||
"dependencies": {
|
||||
"@zeit/next-css": "^1.0.1",
|
||||
"autoprefixer": "^10.2.4",
|
||||
"next": "^10.0.6",
|
||||
"postcss": "^8.2.4",
|
||||
"react": "^17.0.1",
|
||||
"react-dom": "^17.0.1"
|
||||
"react-dom": "^17.0.1",
|
||||
"tailwindcss": "^2.0.2"
|
||||
}
|
||||
}
|
||||
|
@ -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
|
6
postcss.config.js
Normal file
6
postcss.config.js
Normal file
@ -0,0 +1,6 @@
|
||||
module.exports = {
|
||||
plugins: {
|
||||
tailwindcss: {},
|
||||
autoprefixer: {},
|
||||
},
|
||||
}
|
11
tailwind.config.js
Normal file
11
tailwind.config.js
Normal file
@ -0,0 +1,11 @@
|
||||
module.exports = {
|
||||
purge: ['./pages/**/*.{js,ts,jsx,tsx}', './components/**/*.{js,ts,jsx,tsx}'],
|
||||
darkMode: false, // or 'media' or 'class'
|
||||
theme: {
|
||||
extend: {},
|
||||
},
|
||||
variants: {
|
||||
extend: {},
|
||||
},
|
||||
plugins: [],
|
||||
}
|
Loading…
Reference in New Issue
Block a user