Skip to content

Commit

Permalink
feat: installed and set up preline UI
Browse files Browse the repository at this point in the history
  • Loading branch information
dev-phantom committed Aug 2, 2023
1 parent f11cb83 commit 2e8652f
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 2 deletions.
19 changes: 18 additions & 1 deletion package-lock.json

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

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
"next": "^13.2.4",
"next-sitemap": "^3.1.29",
"posthog-js": "^1.33.0",
"preline": "^1.9.0",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-icons": "^4.6.0",
Expand Down
4 changes: 4 additions & 0 deletions src/pages/_app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@ function MyApp({ Component, pageProps }: ComponentWithPageLayout) {
// From documentation on using Posthog with Next.js: https://posthog.com/docs/integrate/third-party/next-js
const router = useRouter();

useEffect(() => {
import('preline')
}, [])

useEffect(() => {
initiateAnalytics();

Expand Down
5 changes: 4 additions & 1 deletion tailwind.config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
/** @type {import('tailwindcss').Config} */
module.exports = {
content: [
'node_modules/preline/dist/*.js',
"./src/pages/**/*.{js,ts,jsx,tsx}",
"./src/components/**/*.{js,ts,jsx,tsx}"
],
Expand Down Expand Up @@ -36,5 +37,7 @@ module.exports = {
}
}
},
plugins: []
plugins: [
require('preline/plugin'),
]
};

0 comments on commit 2e8652f

Please sign in to comment.