Skip to content

Commit

Permalink
feat(app): replace "Nicholas Chiang" with "DOLCE"
Browse files Browse the repository at this point in the history
This patch creates a new `NAME` constant set to "DOLCE" and replaces all
instances of user-facing "Nicholas Chiang" with the new constant.

I intentionally decided to also update the copyright meta tags so as to
not dox myself unnecessarily. Ideally, there should be no way to figure
out who built the site from just the user-facing site itself.
  • Loading branch information
nicholaschiang committed Aug 7, 2023
1 parent 5452fff commit c227321
Show file tree
Hide file tree
Showing 7 changed files with 16 additions and 17 deletions.
7 changes: 4 additions & 3 deletions app/root.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ import {
isTheme,
useTheme,
} from 'theme'
import { NAME } from 'utils'

export type Handle = { breadcrumb: (match: RouteMatch) => ReactNode }

Expand Down Expand Up @@ -137,7 +138,7 @@ export const links: LinksFunction = () => [
{ rel: 'manifest', href: '/site.webmanifest' },
]

export const meta: V2_MetaFunction = () => [{ title: 'Nicholas Chiang' }]
export const meta: V2_MetaFunction = () => [{ title: NAME }]

type Env = { VERCEL_ANALYTICS_ID?: string }

Expand Down Expand Up @@ -228,8 +229,8 @@ function App({ data, children }: { data?: LoaderData; children: ReactNode }) {
<meta charSet='utf-8' />
<meta name='viewport' content='width=device-width,initial-scale=1' />
<meta name='referrer' content='no-referrer' />
<meta name='author' content='Nicholas Chiang' />
<meta name='copyright' content='Copyright (c) Nicholas Chiang 2023' />
<meta name='author' content={NAME} />
<meta name='copyright' content={`Copyright (c) ${NAME} 2023`} />
<Meta />
<Links />
<ThemeHead ssrTheme={Boolean(data?.theme)} />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import { type SitemapFunction } from 'remix-sitemap'
import { prisma } from 'db.server'
import { log } from 'log.server'
import { type Handle } from 'root'
import { invert } from 'utils'
import { NAME, invert } from 'utils'
import { cn } from 'utils/cn'
import { getScores } from 'utils/scores.server'
import { SEASON_NAME_TO_SLUG } from 'utils/season'
Expand All @@ -34,10 +34,10 @@ const rowsToEagerLoad = 3
const looksPerRow = 2

export const meta: V2_MetaFunction<typeof loader> = ({ data }) => {
if (data == null) return [{ title: '404 | Nicholas Chiang' }]
if (data == null) return [{ title: `404 | ${NAME}` }]
const keywords = getShowKeywords(data).join(', ')
return [
{ title: `${data.name} Collection | Nicholas Chiang` },
{ title: `${data.name} Collection | ${NAME}` },
{
name: 'description',
content: `${data.name} collection, runway looks, beauty, models, and reviews.`,
Expand Down
4 changes: 2 additions & 2 deletions app/routes/_header.shows._index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@ import { Image } from 'components/image'

import { prisma } from 'db.server'
import { log } from 'log.server'
import { NAME } from 'utils'
import { cn } from 'utils/cn'
import { getShowSeason, getShowPath } from 'utils/show'

export const meta: V2_MetaFunction = () => [
{
title:
'Fashion Shows: Fashion Week, Runway, Designer Collections | Nicholas Chiang',
title: `Fashion Shows: Fashion Week, Runway, Designer Collections | ${NAME}`,
},
{
name: 'description',
Expand Down
4 changes: 2 additions & 2 deletions app/routes/_layout.products.$productId.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@ import { Tooltip } from 'components/tooltip'

import { prisma } from 'db.server'
import { type Handle } from 'root'
import { useData } from 'utils'
import { NAME, useData } from 'utils'

export const meta: V2_MetaFunction<typeof loader> = ({ data }) => [
{ title: `${data?.name ?? '404'} | Nicholas Chiang` },
{ title: `${data?.name ?? '404'} | ${NAME}` },
]

export const handle: Handle = {
Expand Down
5 changes: 2 additions & 3 deletions app/routes/_layout.products.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,9 @@ import {
} from 'filters'
import { log } from 'log.server'
import { type Handle } from 'root'
import { NAME } from 'utils'

export const meta: V2_MetaFunction = () => [
{ title: 'Products | Nicholas Chiang' },
]
export const meta: V2_MetaFunction = () => [{ title: `Products | ${NAME}` }]

export const handle: Handle = {
breadcrumb: () => (
Expand Down
6 changes: 2 additions & 4 deletions app/routes/_layout.profile.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ import { updateUser } from 'models/user.server'
import { prisma } from 'db.server'
import { type Handle } from 'root'
import { getUserId } from 'session.server'
import { useUser } from 'utils'
import { NAME, useUser } from 'utils'
import {
name as nameSchema,
username as usernameSchema,
Expand Down Expand Up @@ -106,9 +106,7 @@ export async function action({ request }: ActionArgs) {
return json(submission)
}

export const meta: V2_MetaFunction = () => [
{ title: 'Profile | Nicholas Chiang' },
]
export const meta: V2_MetaFunction = () => [{ title: `Profile | ${NAME}` }]

export default function ProfilePage() {
const user = useUser()
Expand Down
1 change: 1 addition & 0 deletions app/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import type { User } from 'models/user.server'

import type { loader } from 'root'

export const NAME = 'DOLCE'
export const DEFAULT_REDIRECT = '/'
export const BASE_URL = 'https://nicholas.engineering'
export const OPTIMIZE_IMAGES = false
Expand Down

0 comments on commit c227321

Please sign in to comment.