Skip to content

Commit 3774b06

Browse files
authored
Merge branch 'master' into blog/safe-support
2 parents 79370e8 + 69fe46f commit 3774b06

File tree

163 files changed

+10185
-6670
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

163 files changed

+10185
-6670
lines changed

app/(home)/academy/page.tsx

Lines changed: 35 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,52 +1,63 @@
1-
import type { Metadata } from 'next';
2-
import { createMetadata } from '@/utils/metadata';
3-
import { blog } from '@/lib/source';
4-
import { AcademyLayout } from '@/components/academy/shared/academy-layout';
5-
import { avalancheDeveloperAcademyLandingPageConfig } from '@/app/(home)/academy/avalanche-developer.config';
1+
import type { Metadata } from "next";
2+
import { createMetadata } from "@/utils/metadata";
3+
import { blog } from "@/lib/source";
4+
import { AcademyLayout } from "@/components/academy/shared/academy-layout";
5+
import { avalancheDeveloperAcademyLandingPageConfig } from "@/app/(home)/academy/avalanche-developer.config";
66

77
export const metadata: Metadata = createMetadata({
8-
title: 'Academy',
9-
description: 'Learn blockchain development with courses designed for the Avalanche ecosystem',
8+
title: "Academy",
9+
description:
10+
"Learn blockchain development with courses designed for the Avalanche ecosystem",
1011
openGraph: {
11-
url: '/academy',
12+
url: "/academy",
1213
images: {
13-
url: '/api/og/academy',
14+
url: "/api/og/academy",
1415
width: 1200,
1516
height: 630,
16-
alt: 'Avalanche Academy',
17+
alt: "Avalanche Academy",
1718
},
1819
},
1920
twitter: {
2021
images: {
21-
url: '/api/og/academy',
22+
url: "/api/og/academy",
2223
width: 1200,
2324
height: 630,
24-
alt: 'Avalanche Academy',
25+
alt: "Avalanche Academy",
2526
},
2627
},
2728
});
2829

2930
export default function AcademyPage(): React.ReactElement {
3031
// Get all guides server-side
31-
const blogPages = [...blog.getPages()].sort(
32-
(a, b) =>
33-
new Date(b.data.date ?? b.file.name).getTime() -
34-
new Date(a.data.date ?? a.file.name).getTime(),
35-
).slice(0, 9); // Limit to 9 guides
32+
const blogPages = [...blog.getPages()]
33+
.sort(
34+
(a, b) =>
35+
new Date((b.data.date as string) ?? b.file.name).getTime() -
36+
new Date((a.data.date as string) ?? a.file.name).getTime()
37+
)
38+
.slice(0, 9); // Limit to 9 guides
3639

3740
// Serialize blog data to pass to client component
38-
const blogs = blogPages.map(page => ({
41+
const blogs = blogPages.map((page) => ({
3942
url: page.url,
4043
data: {
41-
title: page.data.title,
42-
description: page.data.description || '',
43-
topics: page.data.topics,
44-
date: page.data.date instanceof Date ? page.data.date.toISOString() : page.data.date,
44+
title: page.data.title || "Untitled",
45+
description: page.data.description || "",
46+
topics: (page.data.topics as string[]) || [],
47+
date:
48+
page.data.date instanceof Date
49+
? page.data.date.toISOString()
50+
: (page.data.date as string) || "",
4551
},
4652
file: {
4753
name: page.file.name,
4854
},
4955
}));
5056

51-
return <AcademyLayout config={avalancheDeveloperAcademyLandingPageConfig} blogs={blogs} />;
52-
}
57+
return (
58+
<AcademyLayout
59+
config={avalancheDeveloperAcademyLandingPageConfig}
60+
blogs={blogs}
61+
/>
62+
);
63+
}

app/(home)/avalanche-for-builders/page.tsx

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -119,9 +119,7 @@ export default function AvalancheForBuildersPage() {
119119
<div className="container relative max-w-7xl mx-auto px-6 py-8 lg:py-20">
120120
{/* Hero Section */}
121121
<section className="text-center space-y-8 pt-16 pb-32 lg:pt-24 lg:pb-40">
122-
<div
123-
className="inline-flex items-center gap-2 px-4 py-2 rounded-full bg-avax-red/10 border border-avax-red/20 text-sm font-medium mb-6 text-avax-red"
124-
>
122+
<div className="inline-flex items-center gap-2 px-4 py-2 rounded-full bg-avax-red/10 border border-avax-red/20 text-sm font-medium mb-6 text-avax-red">
125123
<span className="w-2 h-2 rounded-full bg-avax-red animate-pulse" />
126124
Avalanche For Builders
127125
</div>
@@ -136,12 +134,18 @@ export default function AvalancheForBuildersPage() {
136134
</p>
137135

138136
<p className="text-sm md:text-base text-muted-foreground leading-relaxed max-w-2xl mx-auto text-pretty">
139-
Stop waiting for the perfect moment. Join the most successful builders who are already funded and shipping. From breakthrough
140-
infrastructure to viral consumer apps - we're backing the teams that will define Web3's next chapter.
137+
Stop waiting for the perfect moment. Join the most successful
138+
builders who are already funded and shipping. From breakthrough
139+
infrastructure to viral consumer apps - we're backing the teams
140+
that will define Web3's next chapter.
141141
</p>
142142

143143
<div className="flex flex-col sm:flex-row gap-4 justify-center pt-4">
144-
<Link href="https://4h8ew.share.hsforms.com/2DhyJTNzhRXmMMDebQMY1QQ" target="_blank" rel="noopener noreferrer">
144+
<Link
145+
href="https://4h8ew.share.hsforms.com/2DhyJTNzhRXmMMDebQMY1QQ"
146+
target="_blank"
147+
rel="noopener noreferrer"
148+
>
145149
<Button
146150
size="lg"
147151
className="bg-avax-red hover:bg-avax-red/90 text-white px-8 h-12 rounded-xl font-medium text-sm transition-all duration-200 hover:-translate-y-0.5 hover:shadow-lg hover:shadow-avax-red/25"
@@ -173,7 +177,8 @@ export default function AvalancheForBuildersPage() {
173177
Momentum is Everything
174178
</h2>
175179
<p className="text-base md:text-lg text-muted-foreground max-w-3xl mx-auto leading-relaxed text-pretty">
176-
September 2025 proves it: builders who choose Avalanche see explosive growth and real adoption
180+
September 2025 proves it: builders who choose Avalanche see
181+
explosive growth and real adoption
177182
</p>
178183
</div>
179184

@@ -340,7 +345,7 @@ export default function AvalancheForBuildersPage() {
340345
</p>
341346
<div className="pt-4">
342347
<Link
343-
href="https://build.avax.network/grants"
348+
href="https://4h8ew.share.hsforms.com/2DhyJTNzhRXmMMDebQMY1QQ"
344349
target="_blank"
345350
rel="noopener noreferrer"
346351
>

0 commit comments

Comments
 (0)