feat: Add community page constants classes

This commit is contained in:
Igor Carvalho 2023-07-04 21:02:43 -03:00
commit 84aa84cc08
2 changed files with 32 additions and 8 deletions

View file

@ -281,4 +281,28 @@ The cursor: default; property value restores the browser's default cursor style
.main-page-flows-display { .main-page-flows-display {
@apply grid w-full gap-4 p-4 md:grid-cols-2 lg:grid-cols-4 @apply grid w-full gap-4 p-4 md:grid-cols-2 lg:grid-cols-4
} }
.community-page-arrangement {
@apply flex-max-width h-full flex-col overflow-auto bg-muted px-16
}
.community-page-nav-arrangement {
@apply flex-max-width justify-between px-6 py-12 pb-2
}
.community-page-nav-title {
@apply flex items-center justify-center gap-2 text-2xl font-semibold
}
.community-page-nav-button {
@apply flex gap-2
}
.community-page-description-text {
@apply flex w-[70%] px-6 pb-8 text-muted-foreground
}
.community-pages-flows-panel {
@apply grid w-full gap-4 p-4 md:grid-cols-2 lg:grid-cols-4
}
} }

View file

@ -37,31 +37,31 @@ export default function CommunityPage() {
handleExamples(); handleExamples();
}, []); }, []);
return ( return (
<div className="flex h-full w-full flex-col overflow-auto bg-muted px-16"> <div className="community-page-arrangement">
<div className="flex w-full justify-between px-6 py-12 pb-2"> <div className="community-page-nav-arrangement">
<span className="flex items-center justify-center gap-2 text-2xl font-semibold"> <span className="community-page-nav-title">
<Users2 className="w-6" /> <Users2 className="w-6" />
Community Examples Community Examples
</span> </span>
<div className="flex gap-2"> <div className="community-page-nav-button">
<a <a
href="https://github.com/logspace-ai/langflow_examples" href="https://github.com/logspace-ai/langflow_examples"
target="_blank" target="_blank"
rel="noreferrer" rel="noreferrer"
> >
<Button variant="primary"> <Button variant="primary">
<GithubIcon className="mr-2 w-4" /> <GithubIcon className="main-page-nav-button" />
Add Your Example Add Your Example
</Button> </Button>
</a> </a>
</div> </div>
</div> </div>
<span className="flex w-[70%] px-6 pb-8 text-muted-foreground"> <span className="community-page-description-text">
Discover and learn from shared examples by the LangFlow community. We Discover and learn from shared examples by the LangFlow community. We
welcome new example contributions that can help our community explore welcome new example contributions that can help our community explore
new and powerful features. new and powerful features.
</span> </span>
<div className="grid w-full gap-4 p-4 md:grid-cols-2 lg:grid-cols-4"> <div className="community-pages-flows-panel">
{!loadingExamples && {!loadingExamples &&
examples.map((flow, idx) => ( examples.map((flow, idx) => (
<CardComponent <CardComponent
@ -79,7 +79,7 @@ export default function CommunityPage() {
}); });
}} }}
> >
<GitFork className="mr-2 w-4" /> <GitFork className="main-page-nav-button" />
Fork Example Fork Example
</Button> </Button>
} }