-
Notifications
You must be signed in to change notification settings - Fork 234
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
62d201f
commit 091c118
Showing
12 changed files
with
274 additions
and
244 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,142 @@ | ||
"use client" | ||
|
||
import { | ||
CrossbellChainLogo, | ||
XCharLogo, | ||
XFeedLogo, | ||
XShopLogo, | ||
XSyncLogo, | ||
} from "@crossbell/ui" | ||
import { RssIcon } from "@heroicons/react/24/outline" | ||
|
||
import { Image } from "~/components/ui/Image" | ||
import { Tooltip } from "~/components/ui/Tooltip" | ||
import { UniLink } from "~/components/ui/UniLink" | ||
import { getSiteLink } from "~/lib/helpers" | ||
|
||
export function Integration() { | ||
const integrations = [ | ||
{ | ||
name: "RSS", | ||
icon: <RssIcon className="w-full h-full text-orange-500" />, | ||
url: | ||
getSiteLink({ | ||
subdomain: "xlog", | ||
}) + "/feed?format=xml", | ||
}, | ||
{ | ||
name: "JSON Feed", | ||
icon: <Image src="/assets/json-feed.png" alt="JSON Feed" />, | ||
url: | ||
getSiteLink({ | ||
subdomain: "xlog", | ||
}) + "/feed", | ||
}, | ||
{ | ||
name: "xChar", | ||
icon: <XCharLogo className="w-full h-full" />, | ||
url: "https://xchar.app/", | ||
}, | ||
{ | ||
name: "xFeed", | ||
icon: <XFeedLogo className="w-full h-full" />, | ||
url: "https://crossbell.io/feed", | ||
}, | ||
{ | ||
name: "xSync", | ||
icon: <XSyncLogo className="w-full h-full" />, | ||
url: "https://xsync.app/", | ||
}, | ||
{ | ||
name: "xShop", | ||
icon: <XShopLogo className="w-full h-full" />, | ||
text: "Coming soon", | ||
}, | ||
{ | ||
name: "Crossbell Scan", | ||
icon: <CrossbellChainLogo className="w-full h-full text-[#E7B75B]" />, | ||
url: "https://scan.crossbell.io/", | ||
}, | ||
{ | ||
name: "Crossbell Faucet", | ||
icon: <CrossbellChainLogo className="w-full h-full text-[#E7B75B]" />, | ||
url: "https://faucet.crossbell.io/", | ||
}, | ||
{ | ||
name: "Crossbell Export", | ||
icon: <CrossbellChainLogo className="w-full h-full text-[#E7B75B]" />, | ||
url: "https://export.crossbell.io/", | ||
}, | ||
{ | ||
name: "Crossbell SDK", | ||
icon: <CrossbellChainLogo className="w-full h-full text-[#E7B75B]" />, | ||
url: "https://crossbell-box.github.io/crossbell.js/", | ||
}, | ||
{ | ||
name: "RSS3", | ||
icon: ( | ||
<Image alt="RSS3" src="/assets/rss3.svg" className="rounded" fill /> | ||
), | ||
url: "https://rss3.io/", | ||
}, | ||
{ | ||
name: "Hoot It", | ||
icon: ( | ||
<Image alt="Hoot It" src="/assets/hoot.svg" className="rounded" fill /> | ||
), | ||
url: "https://hoot.it/search/xLog", | ||
}, | ||
{ | ||
name: "Raycast", | ||
icon: <Image src="/assets/raycast.png" alt="Raycast" />, | ||
url: "https://www.raycast.com/Songkeys/crossbell", | ||
}, | ||
{ | ||
name: "Obsidian", | ||
icon: ( | ||
<Image | ||
src="/assets/obsidian.svg" | ||
alt="Obsidian" | ||
className="rounded" | ||
fill | ||
/> | ||
), | ||
text: "Coming soon", | ||
}, | ||
] | ||
return ( | ||
<> | ||
{integrations.map((item, index) => ( | ||
<li | ||
className="hover:scale-105 transition-transform duration-300" | ||
key={index} | ||
> | ||
{item.url ? ( | ||
<UniLink | ||
href={item.url} | ||
className="w-full flex items-center flex-col justify-center" | ||
> | ||
<div className="w-12 h-12 rounded-md overflow-hidden"> | ||
{item.icon} | ||
</div> | ||
<div className="font-medium sm:text-lg mt-2 text-center"> | ||
{item.name} | ||
</div> | ||
</UniLink> | ||
) : ( | ||
<Tooltip label={item.text!}> | ||
<div className="w-full h-full flex items-center flex-col justify-center"> | ||
<div className="w-12 h-12 rounded-md overflow-hidden"> | ||
{item.icon} | ||
</div> | ||
<div className="font-medium sm:text-lg mt-2 text-center"> | ||
{item.name} | ||
</div> | ||
</div> | ||
</Tooltip> | ||
)} | ||
</li> | ||
))} | ||
</> | ||
) | ||
} |
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,24 @@ | ||
"use client" | ||
|
||
import { FollowAllButton } from "~/components/common/FollowAllButton" | ||
import { useGetShowcase } from "~/queries/home" | ||
|
||
import ShowcaseList from "./ShowcaseList" | ||
|
||
export function ShowCase() { | ||
const showcaseSites = useGetShowcase() | ||
return ( | ||
<> | ||
<FollowAllButton | ||
className="mt-5" | ||
size="xl" | ||
characterIds={showcaseSites.data | ||
?.map((s: { characterId?: string }) => s.characterId) | ||
.filter(Boolean) | ||
.map(Number)} | ||
siteIds={showcaseSites.data?.map((s: { handle: string }) => s.handle)} | ||
/> | ||
<ShowcaseList sites={showcaseSites.data} /> | ||
</> | ||
) | ||
} |
File renamed without changes.
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.