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 all 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
2 changes: 1 addition & 1 deletion next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ module.exports = {
},
env: {
ghostKey: process.env.NEXT_PUBLIC_GHOST_KEY,
ghostUrl: process.env.GHOST_URL,
ghostUrl: process.env.NEXT_PUBLIC_GHOST_URL,
},
reactStrictMode: true,
};
1 change: 0 additions & 1 deletion src/ghost-client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,5 @@ export async function getAllPosts(props?: { limit: number }): Promise<PostsOrPag
include: ["tags", "authors"],
...(props && { ...props }),
})
console.log(posts);
return await posts;
}
7 changes: 7 additions & 0 deletions src/pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,14 @@ 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) {


return (
<HubspotProvider>
<>
Expand Down Expand Up @@ -94,6 +100,7 @@ export default function Home(props: any) {
<DevFeature2 />
<DevFeature1 />
<SlidingWords />
<ProductOverview />
<DevJourney />
<CoreFeatures />
<BuildersProgram />
Expand Down
6 changes: 3 additions & 3 deletions src/sections/BlogTeaser/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,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 +33,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 +44,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