From de53eb7546957132a47c0f6e0f78b34e58d59cdb Mon Sep 17 00:00:00 2001 From: DIYgod Date: Thu, 9 Feb 2023 15:19:36 +0000 Subject: [PATCH] feat: replace icons with images --- public/assets/rss3.svg | 43 +++++++++++++++++++++++++ src/components/icons/HootIcon.tsx | 41 ------------------------ src/components/icons/RSS3Icon.tsx | 51 ------------------------------ src/components/icons/XCharIcon.tsx | 36 --------------------- src/components/icons/XFeedIcon.tsx | 29 ----------------- src/components/icons/XShopIcon.tsx | 36 --------------------- src/components/icons/XSyncIcon.tsx | 29 ----------------- src/components/site/SiteHeader.tsx | 12 +++---- src/pages/index.tsx | 38 ++++++++++++---------- 9 files changed, 69 insertions(+), 246 deletions(-) create mode 100644 public/assets/rss3.svg delete mode 100644 src/components/icons/HootIcon.tsx delete mode 100644 src/components/icons/RSS3Icon.tsx delete mode 100644 src/components/icons/XCharIcon.tsx delete mode 100644 src/components/icons/XFeedIcon.tsx delete mode 100644 src/components/icons/XShopIcon.tsx delete mode 100644 src/components/icons/XSyncIcon.tsx diff --git a/public/assets/rss3.svg b/public/assets/rss3.svg new file mode 100644 index 00000000..3b778472 --- /dev/null +++ b/public/assets/rss3.svg @@ -0,0 +1,43 @@ + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/src/components/icons/HootIcon.tsx b/src/components/icons/HootIcon.tsx deleted file mode 100644 index 8e856099..00000000 --- a/src/components/icons/HootIcon.tsx +++ /dev/null @@ -1,41 +0,0 @@ -import React from "react" - -export const HootIcon: React.FC> = ( - props, -) => { - return ( - - - - - - - - - ) -} diff --git a/src/components/icons/RSS3Icon.tsx b/src/components/icons/RSS3Icon.tsx deleted file mode 100644 index 2027b54c..00000000 --- a/src/components/icons/RSS3Icon.tsx +++ /dev/null @@ -1,51 +0,0 @@ -import React from "react" - -export const RSS3Icon: React.FC> = ( - props, -) => { - return ( - - - - - - - - - - - - - - - - - - - - ) -} diff --git a/src/components/icons/XCharIcon.tsx b/src/components/icons/XCharIcon.tsx deleted file mode 100644 index bc0c6b33..00000000 --- a/src/components/icons/XCharIcon.tsx +++ /dev/null @@ -1,36 +0,0 @@ -import React from "react" - -export const XCharIcon: React.FC> = ( - props, -) => { - return ( - - - - - - - - - - - - ) -} diff --git a/src/components/icons/XFeedIcon.tsx b/src/components/icons/XFeedIcon.tsx deleted file mode 100644 index 2e914969..00000000 --- a/src/components/icons/XFeedIcon.tsx +++ /dev/null @@ -1,29 +0,0 @@ -import React from "react" - -export const XFeedIcon: React.FC> = ( - props, -) => { - return ( - - - - - ) -} diff --git a/src/components/icons/XShopIcon.tsx b/src/components/icons/XShopIcon.tsx deleted file mode 100644 index b956d145..00000000 --- a/src/components/icons/XShopIcon.tsx +++ /dev/null @@ -1,36 +0,0 @@ -import React from "react" - -export const XShopIcon: React.FC> = ( - props, -) => { - return ( - - - - - - - - - - - - ) -} diff --git a/src/components/icons/XSyncIcon.tsx b/src/components/icons/XSyncIcon.tsx deleted file mode 100644 index 04991d4a..00000000 --- a/src/components/icons/XSyncIcon.tsx +++ /dev/null @@ -1,29 +0,0 @@ -import React from "react" - -export const XSyncIcon: React.FC> = ( - props, -) => { - return ( - - - - - ) -} diff --git a/src/components/site/SiteHeader.tsx b/src/components/site/SiteHeader.tsx index f9fc691c..c3152ec2 100644 --- a/src/components/site/SiteHeader.tsx +++ b/src/components/site/SiteHeader.tsx @@ -8,14 +8,12 @@ import { UniLink } from "../ui/UniLink" import { Profile } from "~/lib/types" import { ConnectButton } from "../common/ConnectButton" import { BlockchainIcon } from "~/components/icons/BlockchainIcon" -import { RSS3Icon } from "~/components/icons/RSS3Icon" import { EllipsisHorizontalIcon } from "@heroicons/react/20/solid" import { Image } from "~/components/ui/Image" import { FollowingButton } from "~/components/common/FollowingButton" import { FollowingCount } from "~/components/common/FollowingCount" import { RssIcon } from "@heroicons/react/24/solid" -import { XCharIcon } from "~/components/icons/XCharIcon" -import { XFeedIcon } from "~/components/icons/XFeedIcon" +import { XCharLogo, XFeedLogo } from "@crossbell/ui" import { FastAverageColor } from "fast-average-color" import { useState, useRef, useEffect, RefObject } from "react" import chroma from "chroma-js" @@ -62,12 +60,12 @@ export const SiteHeader: React.FC<{ const moreMenuItems = [ { text: "View on xChar", - icon: , + icon: , url: `${CSB_XCHAR}/${site?.username}`, }, { text: "View on xFeed", - icon: , + icon: , url: `${CSB_IO}/@${site?.username}`, }, { @@ -76,7 +74,7 @@ export const SiteHeader: React.FC<{
Hoot It Hoot It { const queryClient = new QueryClient() @@ -154,52 +154,56 @@ export default function Home() { }, { name: "xChar", - icon: , + icon: , url: "https://xchar.app/", }, { name: "xFeed", - icon: , + icon: , url: "https://crossbell.io/feed", }, { name: "xSync", - icon: , + icon: , url: "https://xsync.app/", }, { name: "xShop", - icon: , + icon: , text: "Coming soon", }, { name: "Crossbell Scan", - icon: , + icon: , url: "https://scan.crossbell.io/", }, { name: "Crossbell Faucet", - icon: , + icon: , url: "https://faucet.crossbell.io/", }, { name: "Crossbell Export", - icon: , + icon: , url: "https://export.crossbell.io/", }, { name: "Crossbell SDK", - icon: , + icon: , url: "https://crossbell-box.github.io/crossbell.js/", }, { name: "RSS3", - icon: , + icon: ( + RSS3 + ), url: "https://rss3.io/", }, { name: "Hoot It", - icon: , + icon: ( + Hoot It + ), url: "https://hoot.it/search/xLog", }, {