Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
530 changes: 266 additions & 264 deletions package-lock.json

Large diffs are not rendered by default.

20 changes: 10 additions & 10 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "arkstudios-website",
"version": "1.0.8",
"version": "1.0.9",
"private": true,
"scripts": {
"dev": "next dev",
Expand All @@ -14,27 +14,27 @@
"@fortawesome/free-brands-svg-icons": "^7.2.0",
"@fortawesome/free-regular-svg-icons": "^7.2.0",
"@fortawesome/free-solid-svg-icons": "^7.2.0",
"@fortawesome/react-fontawesome": "^3.3.0",
"@tailwindcss/postcss": "^4.2.2",
"next": "16.2.4",
"@fortawesome/react-fontawesome": "^3.3.1",
"@tailwindcss/postcss": "^4.3.0",
"next": "16.2.6",
"react": "^19",
"react-dom": "^19"
},
"devDependencies": {
"@types/node": "^25",
"@types/react": "^19",
"@types/react-dom": "^19",
"@typescript-eslint/eslint-plugin": "^8.58.2",
"@typescript-eslint/parser": "^8.58.0",
"@typescript-eslint/eslint-plugin": "^8.59.3",
"@typescript-eslint/parser": "^8.59.0",
"autoprefixer": "^10.5.0",
"eslint": "^9.39.0",
"eslint-config-next": "16.2.4",
"eslint": "^9.39.4",
"eslint-config-next": "16.2.6",
"eslint-config-prettier": "^10.1.8",
"eslint-import-resolver-typescript": "^4.4.4",
"eslint-plugin-import": "^2.32.0",
"postcss": "^8.5.10",
"postcss": "^8.5.14",
"prettier": "^3.8.3",
"prettier-plugin-tailwindcss": "^0.7.2",
"prettier-plugin-tailwindcss": "^0.8.0",
"tailwindcss": "^4.1.10",
"typescript": "^6.0.3"
}
Expand Down
54 changes: 0 additions & 54 deletions src/app/[language]/eula/bitremote/data.ts

This file was deleted.

44 changes: 14 additions & 30 deletions src/app/[language]/eula/bitremote/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@ import {
import Footer from '@/app/ui/components/footer'
import NavigationBar from '@/app/ui/components/navigation-bar'

import { getEULAItems } from './data'

import type { Metadata } from 'next'

const pathname = '/eula/bitremote'
Expand All @@ -29,48 +27,34 @@ export async function generateMetadata({
}
}

function Subsection({ title, children }: { title: string; children: React.ReactNode }) {
return (
<div className='flex flex-col gap-1'>
<h2 className='text-2xl font-semibold'>{title}</h2>
{children}
</div>
)
}

function Label({ title }: { title: string }) {
return (
<p className='font-light whitespace-pre-line text-zinc-700 dark:text-zinc-300'>
{title}
</p>
)
}

export default async function Page({
params,
}: {
params: Promise<{ language: Language }>
}) {
const { language } = await params
const d = (await getDictionary(language)).EULA.BitRemote
const eulaItems = await getEULAItems({ language })
const a11y = (await getDictionary(language)).Accessibility
const destination = `https://bitremote.app/${language}/terms/eula`

return (
<div className='flex flex-col'>
<NavigationBar language={language} pathname={pathname} />
<main id='main-content' className='mt-14 flex min-h-screen justify-center'>
<div className='w-limited pt-14 pb-32 md:pt-20'>
<div className='flex flex-col gap-10'>
<div className='flex flex-col gap-6'>
<h1 className='text-4xl font-bold'>{d.title}</h1>

{eulaItems.map((eulaItem) => {
const key = eulaItem.title + eulaItem.content
return (
<Subsection key={key} title={eulaItem.title}>
<Label title={eulaItem.content} />
</Subsection>
)
})}
<h2 className='text-2xl font-semibold'>{d.movedHeading}</h2>
<p className='font-light whitespace-pre-line text-zinc-700 dark:text-zinc-300'>
{d.movedDescription}
</p>
<a
href={destination}
aria-label={`${d.movedCta} ${a11y.externalSiteSuffix}`}
className='focus-ring mt-2 inline-flex w-fit rounded-xl bg-zinc-700 px-8 py-3 text-sm font-bold text-white transition-colors hover:bg-zinc-600 active:bg-zinc-500 sm:text-base dark:bg-cyan-800 dark:text-cyan-400 dark:hover:bg-cyan-700 dark:active:bg-cyan-600'
>
{d.movedCta}
</a>
</div>
</div>
</main>
Expand Down
69 changes: 0 additions & 69 deletions src/app/[language]/privacy/bitremote/data.ts

This file was deleted.

74 changes: 14 additions & 60 deletions src/app/[language]/privacy/bitremote/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@ import {
import Footer from '@/app/ui/components/footer'
import NavigationBar from '@/app/ui/components/navigation-bar'

import { getPrivacyPolicyItems } from './data'

import type { Metadata } from 'next'

const pathname = '/privacy/bitremote'
Expand All @@ -29,78 +27,34 @@ export async function generateMetadata({
}
}

function Subsection({ title, children }: { title: string; children: React.ReactNode }) {
return (
<div className='flex flex-col gap-1'>
<h2 className='text-2xl font-semibold'>{title}</h2>
{children}
</div>
)
}

function Label({ title }: { title: string }) {
return (
<p className='font-light whitespace-pre-line text-zinc-700 dark:text-zinc-300'>
{title}
</p>
)
}

async function Links({ language }: { language: Language }) {
const d = (await getDictionary(language)).Accessibility
const links = [
{ title: 'AdMob', destination: 'https://support.google.com/admob/answer/6128543' },
{ title: 'Firebase', destination: 'https://firebase.google.com/support/privacy' },
]
return (
<div className='flex flex-col gap-1'>
{links.map((link) => {
return (
<div key={link.destination} className='flex'>
<Label title='・' />
<a
href={link.destination}
aria-label={`${link.title} ${d.externalSiteSuffix}`}
className='focus-ring rounded-sm'
>
<p>{link.title}</p>
</a>
</div>
)
})}
</div>
)
}

export default async function Page({
params,
}: {
params: Promise<{ language: Language }>
}) {
const { language } = await params
const d = (await getDictionary(language)).PrivacyPolicy.BitRemote
const policyItems = await getPrivacyPolicyItems({ language })
const a11y = (await getDictionary(language)).Accessibility
const destination = `https://bitremote.app/${language}/terms/privacy`

return (
<div className='flex flex-col'>
<NavigationBar language={language} pathname={pathname} />
<main id='main-content' className='mt-14 flex min-h-screen justify-center'>
<div className='w-limited pt-14 pb-32 md:pt-20'>
<div className='flex flex-col gap-10'>
<div className='flex flex-col gap-6'>
<h1 className='text-4xl font-bold'>{d.title}</h1>

{policyItems.map((policyItem) => {
const key = policyItem.title + policyItem.content
return (
<Subsection key={key} title={policyItem.title}>
<Label title={policyItem.content} />

{policyItem.type === 'informationCollection' && (
<Links language={language} />
)}
</Subsection>
)
})}
<h2 className='text-2xl font-semibold'>{d.movedHeading}</h2>
<p className='font-light whitespace-pre-line text-zinc-700 dark:text-zinc-300'>
{d.movedDescription}
</p>
<a
href={destination}
aria-label={`${d.movedCta} ${a11y.externalSiteSuffix}`}
className='focus-ring mt-2 inline-flex w-fit rounded-xl bg-zinc-700 px-8 py-3 text-sm font-bold text-white transition-colors hover:bg-zinc-600 active:bg-zinc-500 sm:text-base dark:bg-cyan-800 dark:text-cyan-400 dark:hover:bg-cyan-700 dark:active:bg-cyan-600'
>
{d.movedCta}
</a>
</div>
</div>
</main>
Expand Down
Loading