Skip to content

Commit

Permalink
feat(dcellar-web-ui): add dcellar open-source card to the toolbox
Browse files Browse the repository at this point in the history
  • Loading branch information
devinxl committed Apr 2, 2024
1 parent 34068bc commit 3f7af84
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 2 deletions.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
import { Badge, Flex, Text } from '@node-real/uikit';

import { Card, CircleLink } from './Common';

import { IconFont } from '@/components/IconFont';

export const OpenSourceCard = () => {
return (
<Card>
<IconFont type="source-code" w={48} />
<Flex justifyContent={'space-between'} gap={8}>
<Text fontSize={16} fontWeight={600} flex={1}>
DCellar Open Source
</Text>
<CircleLink title="github" href="https://github.com/node-real/dcellar/">
<IconFont type="line-github" w={16} />
</CircleLink>
</Flex>

<Badge colorScheme="primary" width={'fit-content'} borderRadius={4}>
Developer Tool
</Badge>
<Text color={'readable.secondary'}>
Utilize DCellar open-source codebase and encourage collaboration to improve and extend its
functionality.
</Text>
</Card>
);
};
2 changes: 2 additions & 0 deletions apps/dcellar-web-ui/src/modules/toolbox/page/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import { Box, Flex, Text } from '@node-real/uikit';

import { TellUsCard } from '../components/TellUsCard';
import { UploadKitCard } from '../components/UploadkitCard';
import { OpenSourceCard } from '../components/OpenSourceCard';

export const ToolBoxPage = () => {
return (
Expand All @@ -11,6 +12,7 @@ export const ToolBoxPage = () => {
</Text>
<Flex gap={16} flexWrap={'wrap'}>
<UploadKitCard />
<OpenSourceCard />
<TellUsCard />
</Flex>
</Box>
Expand Down
2 changes: 1 addition & 1 deletion apps/dcellar-web-ui/src/pages/_document.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export default function Document() {
__html: `window.__ASSET_PREFIX = ${flatted.stringify(assetPrefix)}`,
}}
></script>
<script defer src={`${assetPrefix}/js/iconfont_v0.7.min.js`}></script>
<script defer src={`${assetPrefix}/js/iconfont_v0.8.min.js`}></script>
<script defer src={`${assetPrefix}/wasm/tinygo_wasm_exec_v1.js`}></script>
<script defer src={`${assetPrefix}/wasm/tinygo_init_v1.js`}></script>
<EthereumScript />
Expand Down

0 comments on commit 3f7af84

Please sign in to comment.