Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cindy/fix broken links #14

Merged
merged 3 commits into from
Feb 5, 2024
Merged
Show file tree
Hide file tree
Changes from 2 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
10 changes: 10 additions & 0 deletions src/pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,16 @@ import DevFeature2 from "@/sections/DevFeature2";
import DevJourney from "@/sections/DevJourney";
import SlidingWords from "@/sections/SlidingWords";
import CoreFeatures from "@/sections/CoreFeatures";
import ProductOverview from "@/sections/ProductOverview";
import BlogTeaser from "@/sections/BlogTeaser";
import { getAllPosts } from "@/ghost-client";
// import { use } from 'react';

export default function Home(props: any) {
const posts = getAllPosts();

console.log(posts);
sweetpea22 marked this conversation as resolved.
Show resolved Hide resolved

return (
<HubspotProvider>
<>
Expand Down Expand Up @@ -94,12 +102,14 @@ export default function Home(props: any) {
<DevFeature2 />
<DevFeature1 />
<SlidingWords />
<ProductOverview />
<DevJourney />
<CoreFeatures />
<BuildersProgram />
<SocialBanner />
<CTA />
<Footer />
<BlogTeaser posts={posts} />
</>
</HubspotProvider>
);
Expand Down
7 changes: 4 additions & 3 deletions src/sections/BlogTeaser/index.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import BlogCard from "@/components/BlogCard";
import { getAllPosts } from "@/ghost-client";

export type Post = {
title: string;
Expand All @@ -21,7 +22,7 @@ export type Post = {
showExcerpt?: boolean;
};

const BlogTeaser: React.FC<{ posts: Post[] }> = (props) => {
const BlogTeaser: React.FC<{ posts: any }> = (props) => {
sweetpea22 marked this conversation as resolved.
Show resolved Hide resolved
const { posts } = props;

return (
Expand All @@ -33,7 +34,7 @@ const BlogTeaser: React.FC<{ posts: Post[] }> = (props) => {
</h2>
</div>
<div className="mx-auto mt-16 grid max-w-2xl grid-cols-1 gap-x-8 gap-y-20 lg:mx-0 lg:max-w-none lg:grid-cols-3">
{posts
{ posts && posts
.map((post: Post) => (
<BlogCard key={post.id} {...post} showExcerpt={true} />
))
Expand All @@ -44,4 +45,4 @@ const BlogTeaser: React.FC<{ posts: Post[] }> = (props) => {
);
};

export default BlogTeaser;
export default BlogTeaser
4 changes: 2 additions & 2 deletions src/sections/DevFeature2/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -65,14 +65,14 @@ export default function DevFeature2() {
</div>
<div className="mx-auto mt-2 flex max-w-4xl justify-between gap-2">
<GiantButton
href="https://docs.buildwithsygma.com/sdk/examples/substrate-evm-example"
href="https://docs.buildwithsygma.com/sdk/quickstart/examples/erc20/substrate-evm-example"
type="secondary"
>
Sending Substrate Transfers (CLI){" "}
</GiantButton>
<GiantButton
type="secondary"
href="https://docs.buildwithsygma.com/sdk/examples/evm-example"
href="https://docs.buildwithsygma.com/sdk/quickstart/examples/erc20/evm-example"
>
Sending EVM Transfers (CLI){" "}
</GiantButton>
Expand Down
2 changes: 1 addition & 1 deletion src/sections/Hero/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export default function Hero() {
</p>
<div className="mt-10 flex flex-col items-center justify-center gap-x-2 gap-y-4 md:flex-row">
<ExternalButton
href="https://docs.buildwithsygma.com/sdk/introduction"
href="https://docs.buildwithsygma.com/sdk"
type="primary"
>
Start Building
Expand Down
Loading