Skip to content

Commit

Permalink
webapp: add basic layout
Browse files Browse the repository at this point in the history
  • Loading branch information
doitian committed Dec 22, 2023
1 parent d5e0632 commit 76eb114
Show file tree
Hide file tree
Showing 4 changed files with 39 additions and 9 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
"@ckb-lumos/config-manager": "^0.21.1",
"@ckb-lumos/helpers": "^0.21.1",
"@joyid/ckb": "^0.0.2",
"@tailwindcss/typography": "^0.5.10",
"flowbite": "^2.2.0",
"flowbite-react": "^0.7.2",
"next": "14.0.4",
Expand Down
31 changes: 31 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 5 additions & 1 deletion src/app/layout.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,11 @@ export const metadata = {
export default function RootLayout({ children }) {
return (
<html lang="en">
<body>{children}</body>
<body>
<main class="max-w-5xl mx-auto prose dark:prose-invert">
{children}
</main>
</body>
</html>
);
}
10 changes: 2 additions & 8 deletions tailwind.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,7 @@ module.exports = {
"./node_modules/flowbite-react/lib/**/*.js",
],
theme: {
extend: {
backgroundImage: {
"gradient-radial": "radial-gradient(var(--tw-gradient-stops))",
"gradient-conic":
"conic-gradient(from 180deg at 50% 50%, var(--tw-gradient-stops))",
},
},
extend: {},
},
plugins: [require("flowbite/plugin")],
plugins: [require("flowbite/plugin"), require("@tailwindcss/typography")],
};

0 comments on commit 76eb114

Please sign in to comment.