react-icons/ri#RiRssFill JavaScript Examples

The following examples show how to use react-icons/ri#RiRssFill. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: index.jsx    From xetera.dev with MIT License 5 votes vote down vote up
BlogIndex = ({ data, pageContext }) => {
  const posts = data.allMdx.edges
  return (
    <Layout
      display="flex"
      flexDirection="column"
      maxWidth="1200px"
      margin={["0 auto", null, "5% auto"]}
      gap={{ base: 6, md: 10, lg: 24 }}
    >
      <SEO canonical="/" image={pageContext.ogImage} />
      <Helmet>
        <title>{data.site.siteMetadata.title}</title>
      </Helmet>
      <Bio />
      <LayoutContent
        gridAutoFlow="row"
        gridTemplateColumns={{ base: "1fr", lg: "repeat(3, 1fr)" }}
        gridTemplateAreas={{
          base: `
          "blog"
          "spotify"
        `,
          lg: `
            "blog blog spotify"
          `,
        }}
      >
        <StackedSection gridArea="blog" flex={1}>
          <Flex
            flexFlow="row"
            justifyContent="space-between"
            alignItems="center"
            width="100%"
          >
            <Flex alignItems="center">
              <SectionHeader>{posts.length} Posts</SectionHeader>
              <ExternalLink
                color="text.300"
                ml={2}
                href="/rss.xml"
                aria-label="Go to RSS feed"
              >
                <RiRssFill size={15} /> {/* 16 just doesnt look right */}
              </ExternalLink>
            </Flex>
            <Flex alignItems="center">
              <ExternalLink
                color="text.300"
                fontSize="xs"
                mr={2}
                href="https://github.com/xetera/xetera.dev"
              >
                View the site's code
              </ExternalLink>
              <RiGithubFill size={18} />
            </Flex>
            {/* <PostSwitch /> */}
          </Flex>
          <Grid gap={10}>
            {posts.map(({ node }) => (
              <PostList node={node} key={node.fields.slug} />
            ))}
          </Grid>
        </StackedSection>
        <SpotifyLikedSongs gridArea="spotify" />
      </LayoutContent>
    </Layout>
  )
}