Skip to content

Commit

Permalink
build: add issue counter
Browse files Browse the repository at this point in the history
  • Loading branch information
Kikobeats committed Jun 5, 2020
1 parent 9a43319 commit 4ed82e8
Showing 1 changed file with 19 additions and 7 deletions.
26 changes: 19 additions & 7 deletions src/pages/oss.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { Star as StarIcon, AlertCircle as IssueIcon } from 'react-feather'
import { Headline, DotsBackground, Layout } from 'components/patterns'
import { Link, Text, Flex, Box } from 'components/elements'
import { useOss } from 'components/hook'
import { layout } from 'theme'
import React from 'react'
import { Star as StarIcon } from 'react-feather'
import { layout } from 'theme'

export default () => {
const repos = useOss()
Expand Down Expand Up @@ -32,8 +32,14 @@ export default () => {
community by creating valuable, free and easy-to-use software.
</Text>
<Flex width='100%' maxWidth={layout.medium} flexDirection='column'>
{repos.map(({ name, description, stars, url }) => (
<Box key={name} mb={2} borderBottom={1} borderColor='black05'>
{repos.map(({ name, description, stars, issues, url }) => (
<Box
data-debug
key={name}
mb={2}
borderBottom={1}
borderColor='black05'
>
<Link color='black' href={url}>
<Text
fontWeight='bold'
Expand All @@ -42,9 +48,15 @@ export default () => {
width='150px'
children={name}
/>
<Flex style={{ float: 'right' }}>
<Text mr={1} children={stars} />
<StarIcon color='black' width='16px' />
<Flex color='black' style={{ float: 'right' }}>
<Flex alignItems='center' mr={3}>
<Text mr={1} children={stars} />
<StarIcon width='16px' />
</Flex>
<Flex alignItems='center'>
<Text mr={1} children={issues} />
<IssueIcon width='16px' />
</Flex>
</Flex>
<Text color='black50' children={description} mb={2} />
</Link>
Expand Down

1 comment on commit 4ed82e8

@vercel
Copy link

@vercel vercel bot commented on 4ed82e8 Jun 5, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.