Skip to content

Commit

Permalink
add redirects and update links
Browse files Browse the repository at this point in the history
  • Loading branch information
dschlabach committed Nov 20, 2024
1 parent 14cf354 commit f96f3da
Show file tree
Hide file tree
Showing 8 changed files with 25 additions and 11 deletions.
9 changes: 9 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,15 @@
"[typescript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[typescriptreact]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[javascript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[javascriptreact]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},

// ESLint
"editor.codeActionsOnSave": ["source.fixAll.eslint"],
Expand Down
4 changes: 2 additions & 2 deletions apps/base-docs/docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -130,11 +130,11 @@ const config = {
eventContext: 'navbar',
},
{
to: 'https://base.org/getstarted',
to: 'https://base.org/resourcekit',
navposition: 'bottomLeft',
label: 'Get Started',
type: 'custom-navbarLink',
eventLabel: 'getstarted',
eventLabel: 'resourcekit',
eventContext: 'navbar',
},
{
Expand Down
2 changes: 1 addition & 1 deletion apps/base-docs/src/components/Hero/HeroButton/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export default function HeroButton() {

return (
<a
href="https://base.org/getstarted/?utm_source=basedocs&utm_medium=hero"
href="https://base.org/resourcekit/?utm_source=basedocs&utm_medium=hero"
className={styles.cta}
target="_blank"
rel="noreferrer noopener"
Expand Down
2 changes: 1 addition & 1 deletion apps/web/app/(base-org)/(root)/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export default async function Home() {
<Container>
<Title level={TitleLevel.Title1}>Base is for everyone.</Title>
<div className="mt-4 flex gap-4">
<Link href="/getstarted?utm_source=dotorg&medium=hero">
<Link href="/resourcekit?utm_source=dotorg&medium=hero">
<Button variant={ButtonVariants.Secondary} iconName="baseOrgDiagonalUpArrow">
Start building
</Button>
Expand Down
2 changes: 1 addition & 1 deletion apps/web/app/(base-org)/getstarted/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export const metadata: Metadata = {
title: `Base | Get Started`,
openGraph: {
title: `Base | Get Started`,
url: '/getstarted',
url: '/resourcekit',
images: ['https://base.org/images/getstarted-open-graph.png'],
},
};
Expand Down
9 changes: 7 additions & 2 deletions apps/web/next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ const contentSecurityPolicy = {
'https://unpkg.com/@lottiefiles/dotlottie-web@0.31.1/dist/dotlottie-player.wasm', // lottie player
`https://${process.env.NEXT_PUBLIC_PINATA_GATEWAY_URL}`,
],
'frame-src': ["https://p.datadoghq.com"],
'frame-src': ['https://p.datadoghq.com'],
'frame-ancestors': ["'self'", baseXYZDomains],
'form-action': ["'self'", baseXYZDomains],
'img-src': [
Expand Down Expand Up @@ -259,7 +259,12 @@ module.exports = extendBaseConfig(
},
{
source: '/onchainsummer',
destination: '/getstarted',
destination: '/resourcekit',
permanent: true,
},
{
source: '/getstarted',
destination: '/resourcekit',
permanent: true,
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export default async function BuildExploreSection() {
</div>
</div>
</CardLink>
<CardLink href="/getstarted">
<CardLink href="/resourcekit">
<div className="flex items-center gap-4">
<ImageAdaptive
src={resourcesIllustration as StaticImageData}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,11 @@ const links: TopNavigationLink[] = [
{
name: 'Build',
analyticContext: 'build',
href: '/getstarted',
href: '/resourcekit',
subItems: [
{
name: 'Get Started',
href: '/getstarted',
href: '/resourcekit',
},
{ name: 'Docs', href: 'https://docs.base.org' },
{ name: 'Learn', href: 'https://docs.base.org/base-learn/docs/welcome' },
Expand Down Expand Up @@ -92,7 +92,7 @@ const links: TopNavigationLink[] = [
},
];

const cryptoExcludedPaths = ['/jobs', '/about', '/ecosystem', '/getstarted'];
const cryptoExcludedPaths = ['/jobs', '/about', '/ecosystem', '/resourcekit'];

export default function TopNavigation() {
const pathname = usePathname();
Expand Down

0 comments on commit f96f3da

Please sign in to comment.