Skip to content

Commit fc3fb2e

Browse files
committed
Update brand assets and improve file structure
1 parent 476c80d commit fc3fb2e

22 files changed

Lines changed: 10 additions & 4 deletions

File tree

app/pages/brand.tsx

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,13 @@ export const meta: Route.MetaFunction = () => {
55
return [{ title: "React Router Assets and Branding Guidelines" }];
66
};
77

8-
const BRAND_DIR = "/_brand/React Router Brand Assets";
8+
const BRAND_DIR = "/_brand/react-router-brand-assets";
9+
10+
const assetDirs = {
11+
Lockup: "lockup",
12+
Wordmark: "wordmark",
13+
Logo: "logo",
14+
} as const;
915

1016
export default function Brand() {
1117
return (
@@ -37,7 +43,7 @@ export default function Brand() {
3743
</p>
3844
<p>
3945
<a
40-
href={encodeURI("/_brand/React Router Brand Assets.zip")}
46+
href="/_brand/react-router-brand-assets.zip"
4147
className="underline hover:text-red-brand"
4248
download
4349
>
@@ -89,12 +95,12 @@ function Logos({
8995
subTitle?: string;
9096
oneColor?: boolean;
9197
}) {
92-
let filePath = `${BRAND_DIR}/React Router ${title}`;
98+
let filePath = `${BRAND_DIR}/${assetDirs[title]}`;
9399
if (subTitle) {
94100
filePath += `/${subTitle}`;
95101
}
96102
if (oneColor) {
97-
filePath += `/One Color`;
103+
filePath += `/one-color`;
98104
}
99105

100106
let downloadFilePath = `rr_${title}`;
File renamed without changes.

public/_brand/React Router Brand Assets/React Router Lockup/Dark.png renamed to public/_brand/react-router-brand-assets/lockup/Dark.png

File renamed without changes.

public/_brand/React Router Brand Assets/React Router Lockup/Dark.svg renamed to public/_brand/react-router-brand-assets/lockup/Dark.svg

File renamed without changes.

public/_brand/React Router Brand Assets/React Router Lockup/Light.png renamed to public/_brand/react-router-brand-assets/lockup/Light.png

File renamed without changes.

public/_brand/React Router Brand Assets/React Router Lockup/Light.svg renamed to public/_brand/react-router-brand-assets/lockup/Light.svg

File renamed without changes.

public/_brand/React Router Brand Assets/React Router Lockup/One Color/Dark.png renamed to public/_brand/react-router-brand-assets/lockup/one-color/Dark.png

File renamed without changes.

public/_brand/React Router Brand Assets/React Router Lockup/One Color/Dark.svg renamed to public/_brand/react-router-brand-assets/lockup/one-color/Dark.svg

File renamed without changes.

public/_brand/React Router Brand Assets/React Router Lockup/One Color/Light.png renamed to public/_brand/react-router-brand-assets/lockup/one-color/Light.png

File renamed without changes.

public/_brand/React Router Brand Assets/React Router Lockup/One Color/Light.svg renamed to public/_brand/react-router-brand-assets/lockup/one-color/Light.svg

File renamed without changes.

0 commit comments

Comments
 (0)