Skip to content

Commit

Permalink
Merge pull request #14 from sygmaprotocol/cindy/fix-broken-links
Browse files Browse the repository at this point in the history
Cindy/fix broken links
  • Loading branch information
sweetpea22 authored Feb 5, 2024
2 parents 3cebf39 + 5aa0d89 commit 1537a88
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 8 deletions.
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) => {
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

0 comments on commit 1537a88

Please sign in to comment.