generated from shuding/nextra-docs-template
-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into feat/ecosystem-map
- Loading branch information
Showing
32 changed files
with
531 additions
and
302 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
import { ExternalLink } from "lucide-react"; | ||
import Image from "next/image"; | ||
import { App } from "../../data/appData"; | ||
|
||
interface AppCardProps { | ||
app: App; | ||
} | ||
const AppCard = ({ app }: AppCardProps) => { | ||
if (!app) return null; | ||
const { title, description, href, image } = app; | ||
return ( | ||
<a | ||
href={href} | ||
target="_blank" | ||
rel="noopener noreferrer" | ||
className="group flex flex-col" | ||
> | ||
<div className="border dark:border-gray-800 rounded-lg overflow-hidden flex flex-row lg:flex-col grow h-ull"> | ||
<div className="relative overflow-hidden grid place-items-center aspect-square lg:aspect-video border-r lg:border-b lg:border-r-0 dark:border-gray-800"> | ||
<div className="absolute z-10"> | ||
<Image | ||
src={image} | ||
alt={title} | ||
width={200} | ||
height={200} | ||
className="group-hover:scale-[0.85] scale-75 transition-all" | ||
/> | ||
</div> | ||
<div className="bg-gray-400 dark:bg-gray-800 opacity-50 h-full w-full blur-3xl overflow-hidden"> | ||
<Image | ||
src={image} | ||
alt={title} | ||
width={100} | ||
height={100} | ||
className="object-cover w-full h-full" | ||
/> | ||
</div> | ||
</div> | ||
<div className="p-4 bg-gray-100 dark:bg-gray-800 w-full flex flex-col grow"> | ||
<h3 className="text-lg font-semibold mb-2 inline-flex items-center gap-2"> | ||
{title} <ExternalLink className="inline-block w-4 h-4" /> | ||
</h3> | ||
<p className="opacity-75">{description}</p> | ||
</div> | ||
</div> | ||
</a> | ||
); | ||
}; | ||
|
||
export default AppCard; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
import { Callout } from "nextra-theme-docs"; | ||
import { Tag, appData } from "../../data/appData"; | ||
import AppCard from "./AppCard"; | ||
|
||
const AppCardsGrid = ({ tags }: { tags?: Tag[] }) => { | ||
const filteredData = (() => { | ||
if (!tags) return appData; | ||
|
||
return appData.filter((app) => tags.some((tag) => app.tags.includes(tag))); | ||
})(); | ||
|
||
return ( | ||
<div> | ||
<Callout type="info"> | ||
<p> | ||
Projects listed here are developed by the Sei community. Inclusion on | ||
this site does not constitute endorsement. For questions related to | ||
each, please contact the project directly. | ||
</p> | ||
</Callout> | ||
<div className="grid grid-cols-1 lg:grid-cols-2 gap-4 my-4"> | ||
{filteredData.map((app, index) => ( | ||
<AppCard key={index} app={app} /> | ||
))} | ||
</div> | ||
</div> | ||
); | ||
}; | ||
|
||
export default AppCardsGrid; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
export { default as AppCard } from './AppCard'; | ||
export { default as AppCardsGrid } from './AppCardsGrid'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.