Skip to content

Commit

Permalink
Fix link
Browse files Browse the repository at this point in the history
  • Loading branch information
sweetpea22 committed Jan 31, 2024
1 parent 3cebf39 commit 4934f6e
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 4 deletions.
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);

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) => {
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
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 4934f6e

Please sign in to comment.