Skip to content

Commit

Permalink
Merge pull request #5 from brook-code-theme/release/version-2
Browse files Browse the repository at this point in the history
Add multiple pages
  • Loading branch information
nyomansunima authored Nov 29, 2024
2 parents 9d8636b + 3a0b7bc commit d795b1a
Show file tree
Hide file tree
Showing 53 changed files with 1,893 additions and 47 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,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)_
Binary file modified bun.lockb
Binary file not shown.
6 changes: 6 additions & 0 deletions next.config.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
import type { NextConfig } from 'next'

const nextConfig: NextConfig = {
images: {
remotePatterns: [
{ hostname: 'cdn.hashnode.com' },
{ hostname: 'camo.githubusercontent.com' },
],
},
skipTrailingSlashRedirect: true,
}

Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
"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",
Expand Down
Binary file removed public/images/icon-dark.png
Binary file not shown.
20 changes: 18 additions & 2 deletions src/app/(landing)/page.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,13 @@
import { WaitlistSection } from '@features/landing'
import {
AboutSection,
CTASection,
FAQSection,
FeatureSection,
GallerySection,
HeroSection,
PricingSection,
TestimonialSection,
} from '@features/landing'
import * as defaultMetadata from '@shared/libs/shared-metadata'
import { Metadata } from 'next'
import * as React from 'react'
Expand All @@ -24,7 +33,14 @@ export const metadata: Metadata = {
export default function LandingPage(): React.ReactElement {
return (
<main className="flex flex-col">
<WaitlistSection />
<HeroSection />
<FeatureSection />
<GallerySection />
<AboutSection />
<TestimonialSection />
<PricingSection />
<FAQSection />
<CTASection />
</main>
)
}
30 changes: 30 additions & 0 deletions src/app/changelog/page.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
import { ChangelogSection } from '@features/changelog'
import * as defaultMetadata from '@shared/libs/shared-metadata'
import { Metadata } from 'next'
import * as React from 'react'

export const metadata: Metadata = {
title: "What's new",
description:
"See what's new in the progress, we always ship and fix in a weeks",
openGraph: {
...defaultMetadata.openGraph,
title: "What's new",
description:
"See what's new in the progress, we always ship and fix in a weeks",
},
twitter: {
...defaultMetadata.twitter,
title: "What's new",
description:
"See what's new in the progress, we always ship and fix in a weeks",
},
}

export default function ChangelogPage(): React.ReactElement {
return (
<main className="flex flex-col">
<ChangelogSection />
</main>
)
}
31 changes: 31 additions & 0 deletions src/app/docs/page.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
import * as defaultMetadata from '@shared/libs/shared-metadata'
import { Metadata } from 'next'
import * as React from 'react'

export const metadata: Metadata = {
title: 'Docs',
description:
'Read the docs to find the tips and tricks to get started with brook code theme',
openGraph: {
...defaultMetadata.openGraph,
title: 'Docs',
description:
'Read the docs to find the tips and tricks to get started with brook code theme',
},
twitter: {
...defaultMetadata.twitter,
title: 'Docs',
description:
'Read the docs to find the tips and tricks to get started with brook code theme',
},
}

export default function TermsPage(): React.ReactElement {
return (
<main className="flex flex-col">
<section className="flex py-36 container mx-auto px-5 tablet:px-0">
<div className="flex tablet:w-6/12 mx-auto w-full"></div>
</section>
</main>
)
}
File renamed without changes
58 changes: 24 additions & 34 deletions src/app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ 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'

interface RootLayoutProps {
children: React.ReactNode
Expand Down Expand Up @@ -47,24 +50,6 @@ export const metadata: Metadata = {
description:
'The best clean code editor theme that combine simplicity and clean look',
},
icons: {
icon: [
{
rel: 'favicon',
url: '/images/favicon.ico',
},
{
rel: 'icon',
url: '/images/icon-light.png',
media: '(prefers-color-scheme: light)',
},
{
rel: 'icon',
url: '/images/icon-dark.png',
media: '(prefers-color-scheme: dark)',
},
],
},
metadataBase: new URL(config.app.host),
verification: {
google: config.verification.google,
Expand All @@ -77,23 +62,28 @@ export default function RootLayout({
return (
<html lang="en" suppressHydrationWarning>
<PosthogProvider>
<body
className={`${fonts.geistSans.variable} ${fonts.geistMono.variable}`}
>
<ThemeProvider
enableSystem
attribute={'class'}
defaultTheme="system"
disableTransitionOnChange
<AnimationProvider>
<body
className={`${fonts.geistSans.variable} ${fonts.geistMono.variable}`}
suppressHydrationWarning
>
<QueryProvider>
<>
{children}
<Sonner />
</>
</QueryProvider>
</ThemeProvider>
</body>
<ThemeProvider
enableSystem
attribute={'class'}
defaultTheme="system"
disableTransitionOnChange
>
<QueryProvider>
<>
<Header />
{children}
<Footer />
<Sonner />
</>
</QueryProvider>
</ThemeProvider>
</body>
</AnimationProvider>
</PosthogProvider>
</html>
)
Expand Down
185 changes: 185 additions & 0 deletions src/app/privacy/page.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,185 @@
import { ArticleContent } from '@shared/components/common/content'
import * as defaultMetadata from '@shared/libs/shared-metadata'
import { Metadata } from 'next'
import Link from 'next/link'
import * as React from 'react'

export const metadata: Metadata = {
title: 'Privacy policy',
description: 'Read the privacy and policy',
openGraph: {
...defaultMetadata.openGraph,
title: 'Privacy policy',
description: 'Read the privacy and policy',
},
twitter: {
...defaultMetadata.twitter,
title: 'Privacy policy',
description: 'Read the privacy and policy',
},
}

export default function TermsPage(): React.ReactElement {
return (
<main className="flex flex-col">
<section className="flex py-36 container mx-auto px-5 tablet:px-0">
<div className="flex tablet:w-6/12 mx-auto w-full">
<ArticleContent>
<h1>Privacy policy</h1>

<strong>Effective Date: Friday, 12 April 2024</strong>

<p>
This privacy policy outlines the information practices and
procedures followed by{' '}
<Link href={'https://brookcodetheme.vercel.app'}>
https://brookcodetheme.vercel.app
</Link>{' '}
("we," "us," or "our") regarding the collection, use, and
disclosure of personal information when you access and use our
website (the "Website"). We are committed to protecting your
privacy and ensuring the security of your personal information. By
accessing or using our Website, you consent to the collection,
use, and disclosure of your personal information as described in
this Privacy Policy.
</p>

<h2>Information We Collect</h2>

<h3>Personal Information</h3>

<p>
We may collect personal information that you voluntarily provide
to us when you interact with our Website, such as your name, email
address, and any other information you choose to provide.
</p>

<h3>Usage Information</h3>

<p>
When you visit our Website, we may automatically collect certain
information about your visit, such as your IP address, browser
type, operating system, referring URLs, and other technical
information.
</p>

<h2>Use of Information</h2>

<p>We may use the personal information we collect to:</p>

<ul>
<li>Respond to your inquiries or requests</li>
<li>Provide the services or information you requested</li>
<li>Personalize and enhance your experience on our Website</li>
<li>
Communicate with you about updates, promotions, or other news
about our services
</li>
<li>
Conduct analytics and research to improve our Website and
services
</li>
<li>
Detect, prevent, and address technical issues or security
breaches
</li>
<li>
Comply with applicable laws, regulations, or legal processes.
</li>
</ul>

<p>
We may use usage information to analyze trends, administer our
Website, track users' movements, and gather demographic
information for aggregate use. This information is collected on an
anonymous basis and does not personally identify you.
</p>

<h2>Cookies and Tracking Technologies</h2>

<p>
We may use cookies, web beacons, and similar technologies to
enhance your experience on our Website, analyze trends, track
users' movements, and gather demographic information. You can
control the use of cookies through your browser settings.
</p>

<h2>Information Sharing and Disclosure</h2>

<p>
We do not sell, trade, or otherwise transfer your personal
information to third parties for their marketing purposes.
However, we may share your personal information in the following
circumstances:
</p>

<ul>
<li>
With trusted third-party service providers who assist us in
operating our Website, conducting business, or providing
services to you, subject to their agreement to maintain the
confidentiality of your information
</li>
<li>
When we believe in good faith that disclosure is necessary to
protect our rights, investigate potential violations, or enforce
our policies
</li>
<li>
In connection with a corporate transaction, such as a merger,
acquisition, or sale of assets, where your personal information
may be transferred to the acquiring entity.
</li>
</ul>

<h2>Data Security</h2>

<p>
We implement reasonable security measures to protect the personal
information we collect from unauthorized access, disclosure,
alteration, or destruction. However, no method of transmission or
storage is completely secure, and we cannot guarantee absolute
security.
</p>

<h2>Third-Party Links</h2>

<p>
Our Website may contain links to third-party websites or services
that are not owned or controlled by us. This Privacy Policy
applies only to our Website. We have no control over and assume no
responsibility for the privacy practices of third-party websites
or services. We encourage you to review the privacy policies of
any third-party websites or services that you visit.
</p>

<h2>Changes to this Privacy Policy</h2>

<p>
We may update this Privacy Policy from time to time. Any changes
we make will be posted on this page, and the "Effective Date" at
the top of this policy will be revised. We encourage you to review
this Privacy Policy periodically to stay informed about our
information practices.
</p>

<h2>Contact</h2>

<p>
If you have any questions, concerns, or requests regarding this
privacy policy or the handling of your personal information,
please{' '}
<Link
href={'https://github.com/orgs/brook-code-theme/discussions'}
target="_blank"
>
contact us
</Link>
.
</p>
</ArticleContent>
</div>
</section>
</main>
)
}
12 changes: 12 additions & 0 deletions src/app/template.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import * as React from 'react'
import { PageTransition } from '@shared/components/common/transition'

interface RootTemplateProps {
children: React.ReactNode
}

export default function RootTemplate({
children,
}: RootTemplateProps): React.ReactElement {
return <PageTransition>{children}</PageTransition>
}
Loading

0 comments on commit d795b1a

Please sign in to comment.