diff --git a/.env.example b/.env.example
index bf99869..5c16aff 100644
--- a/.env.example
+++ b/.env.example
@@ -6,5 +6,3 @@ NEXT_PUBLIC_GOOGLE_VERIFICATION =
# POSTHOG SETTINGS
NEXT_PUBLIC_POSTHOG_KEY =
-NEXT_PUBLIC_POSTHOG_HOST =
-NEXT_PUBLIC_POSTHOG_UI_HOST =
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 046e4ee..0181534 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -3,10 +3,12 @@
## [v2.0.0](https://github.com/brook-code-theme/official-website/releases/tag/v2.0.0) - 2024-11-29 13:37:07
## What's Changed
-* Add multiple pages by @nyomansunima in https://github.com/brook-code-theme/official-website/pull/5
+
+- Add multiple pages by @nyomansunima in https://github.com/brook-code-theme/official-website/pull/5
## New Contributors
-* @nyomansunima made their first contribution in https://github.com/brook-code-theme/official-website/pull/5
+
+- @nyomansunima made their first contribution in https://github.com/brook-code-theme/official-website/pull/5
**Full Changelog**: https://github.com/brook-code-theme/official-website/compare/v1.0.0...v2.0.0
@@ -14,4 +16,4 @@
**Full Changelog**: https://github.com/brook-code-theme/official-website/commits/v1.0.0
-\* *This CHANGELOG was automatically generated by [auto-generate-changelog](https://github.com/BobAnkh/auto-generate-changelog)*
+\* _This CHANGELOG was automatically generated by [auto-generate-changelog](https://github.com/BobAnkh/auto-generate-changelog)_
diff --git a/bun.lockb b/bun.lockb
index 68fc608..f78a8c5 100755
Binary files a/bun.lockb and b/bun.lockb differ
diff --git a/package.json b/package.json
index 4185202..f3bd02b 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,5 @@
{
"name": "website",
- "version": "0.1.0",
"private": true,
"scripts": {
"dev": "next dev --turbo",
@@ -14,27 +13,18 @@
},
"dependencies": {
"@flaticon/flaticon-uicons": "^3.3.1",
- "@hookform/resolvers": "^3.9.1",
"@radix-ui/react-accordion": "^1.2.1",
- "@radix-ui/react-alert-dialog": "^1.1.2",
- "@radix-ui/react-label": "^2.1.0",
"@radix-ui/react-slot": "^1.1.0",
"@radix-ui/react-toast": "^1.2.2",
"@radix-ui/react-tooltip": "^1.1.4",
- "@tanstack/react-query": "^5.61.3",
- "@tanstack/react-query-devtools": "^5.61.3",
- "date-fns": "^4.1.0",
- "framer-motion": "^11.11.17",
+ "dayjs": "^1.11.13",
"lenis": "^1.1.16",
+ "motion": "^11.13.3",
"next": "15.0.4",
"next-themes": "^0.4.3",
- "npm": "^10.9.1",
- "plaiceholder": "^3.0.0",
"posthog-js": "^1.188.0",
- "react": "19.0.0-rc-66855b96-20241106",
- "react-dom": "19.0.0",
- "react-hook-form": "^7.53.2",
- "zod": "^3.23.8"
+ "react": "19.0.0",
+ "react-dom": "19.0.0"
},
"devDependencies": {
"@tailwindcss/forms": "^0.5.9",
diff --git a/src/app/(landing)/page.tsx b/src/app/(landing)/page.tsx
index 90ad880..c2cdcb0 100644
--- a/src/app/(landing)/page.tsx
+++ b/src/app/(landing)/page.tsx
@@ -8,7 +8,7 @@ import {
PricingSection,
TestimonialSection,
} from '@features/landing'
-import * as defaultMetadata from '@shared/libs/shared-metadata'
+import { sharedMetadata } from '@shared/libs'
import { Metadata } from 'next'
import * as React from 'react'
@@ -17,13 +17,13 @@ export const metadata: Metadata = {
description:
'The best clean code editor theme that combine simplicity and clean look',
openGraph: {
- ...defaultMetadata.openGraph,
+ ...sharedMetadata.openGraph,
title: 'Brook Code Theme',
description:
'The best clean code editor theme that combine simplicity and clean look',
},
twitter: {
- ...defaultMetadata.twitter,
+ ...sharedMetadata.twitter,
title: 'Brook Code Theme',
description:
'The best clean code editor theme that combine simplicity and clean look',
diff --git a/src/app/changelog/page.tsx b/src/app/changelog/page.tsx
index 28e5ad0..ea756b4 100644
--- a/src/app/changelog/page.tsx
+++ b/src/app/changelog/page.tsx
@@ -1,5 +1,5 @@
import { ChangelogSection } from '@features/changelog'
-import * as defaultMetadata from '@shared/libs/shared-metadata'
+import { sharedMetadata } from '@shared/libs'
import { Metadata } from 'next'
import * as React from 'react'
@@ -8,13 +8,13 @@ export const metadata: Metadata = {
description:
"See what's new in the progress, we always ship and fix in a weeks",
openGraph: {
- ...defaultMetadata.openGraph,
+ ...sharedMetadata.openGraph,
title: "What's new",
description:
"See what's new in the progress, we always ship and fix in a weeks",
},
twitter: {
- ...defaultMetadata.twitter,
+ ...sharedMetadata.twitter,
title: "What's new",
description:
"See what's new in the progress, we always ship and fix in a weeks",
diff --git a/src/app/docs/page.tsx b/src/app/docs/page.tsx
index 6ed8b50..e16c521 100644
--- a/src/app/docs/page.tsx
+++ b/src/app/docs/page.tsx
@@ -1,4 +1,4 @@
-import * as defaultMetadata from '@shared/libs/shared-metadata'
+import { sharedMetadata } from '@shared/libs'
import { Metadata } from 'next'
import * as React from 'react'
@@ -7,13 +7,13 @@ export const metadata: Metadata = {
description:
'Read the docs to find the tips and tricks to get started with brook code theme',
openGraph: {
- ...defaultMetadata.openGraph,
+ ...sharedMetadata.openGraph,
title: 'Docs',
description:
'Read the docs to find the tips and tricks to get started with brook code theme',
},
twitter: {
- ...defaultMetadata.twitter,
+ ...sharedMetadata.twitter,
title: 'Docs',
description:
'Read the docs to find the tips and tricks to get started with brook code theme',
diff --git a/src/app/global-error.tsx b/src/app/global-error.tsx
index bb8447d..43f939b 100644
--- a/src/app/global-error.tsx
+++ b/src/app/global-error.tsx
@@ -1,9 +1,10 @@
'use client'
+
import * as React from 'react'
import '@shared/styles/globals.css'
-import { Button } from '@shared/components/ui/button'
-import { ThemeProvider } from '@shared/providers/theme-provider'
-import * as fonts from '@shared/fonts'
+import { Button } from '@shared/components'
+import { ThemeProvider } from '@shared/providers'
+import { fonts } from '@shared/fonts'
export default function GlobalError({
reset,
diff --git a/src/app/layout.tsx b/src/app/layout.tsx
index 389131e..3160ada 100644
--- a/src/app/layout.tsx
+++ b/src/app/layout.tsx
@@ -1,16 +1,14 @@
import * as React from 'react'
import type { Metadata } from 'next'
import '@shared/styles/globals.css'
-import * as fonts from '@shared/fonts'
-import config from '@shared/libs/config'
-import * as defaultMetadata from '@shared/libs/shared-metadata'
-import { ThemeProvider } from '@shared/providers/theme-provider'
-import { QueryProvider } from '@shared/providers/query-provider'
-import { Sonner } from '@shared/components/ui/sonner'
-import { PosthogProvider } from '@shared/providers/posthog-provider'
-import { Header } from '@shared/components/common/header'
-import { Footer } from '@shared/components/common/footer'
-import { AnimationProvider } from '@shared/providers/animation-provider'
+import { fonts } from '@shared/fonts'
+import { config, sharedMetadata } from '@shared/libs'
+import {
+ PosthogProvider,
+ AnimationProvider,
+ ThemeProvider,
+} from '@shared/providers'
+import { Header, Sonner, Footer } from '@shared/components'
interface RootLayoutProps {
children: React.ReactNode
@@ -39,13 +37,13 @@ export const metadata: Metadata = {
publisher: 'Nyoman Sunima',
creator: 'Nyoman Sunima',
openGraph: {
- ...defaultMetadata.openGraph,
+ ...sharedMetadata.openGraph,
title: 'Brook Code Theme',
description:
'The best clean code editor theme that combine simplicity and clean look',
},
twitter: {
- ...defaultMetadata.twitter,
+ ...sharedMetadata.twitter,
title: 'Brook Code Theme',
description:
'The best clean code editor theme that combine simplicity and clean look',
@@ -73,14 +71,10 @@ export default function RootLayout({
defaultTheme="system"
disableTransitionOnChange
>
-
- <>
-
- {children}
-
-
- >
-
+
+ {children}
+
+