Skip to content

Commit

Permalink
Fix widget
Browse files Browse the repository at this point in the history
  • Loading branch information
junaid33 committed Feb 28, 2020
1 parent 6d246ba commit 2a92fc4
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 36 deletions.
17 changes: 17 additions & 0 deletions src/components/layout.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,23 @@ class Layout extends React.Component {
return (
<Box background="#EDF2F7" minHeight="100vh">
<Header />
<Box
as="a"
p={5}
href="https://www.producthunt.com/posts/opensource-builders?utm_source=badge-featured&utm_medium=badge&utm_souce=badge-opensource-builders"
target="_blank"
// display={{ base: "none", md: "flex" }}
position="fixed"
bottom={0}
right={0}
>
<Box
as="img"
src="https://api.producthunt.com/widgets/embed-image/v1/featured.svg?post_id=185805&theme=dark"
alt="Opensource Builders - Find open-source alternatives to commercial apps | Product Hunt Embed"
width="200px"
/>
</Box>
{/* <header>{header}</header> */}
<Box as="main" height="100%">
{children}
Expand Down
13 changes: 1 addition & 12 deletions src/pages/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -252,18 +252,7 @@ const Index = ({ data, location }) => {
Find open-source alternatives for your favorite apps
</Text>
</Box>
<a
href="https://www.producthunt.com/posts/opensource-builders?utm_source=badge-featured&utm_medium=badge&utm_souce=badge-opensource-builders"
target="_blank"
>
<Box
as="img"
src="https://api.producthunt.com/widgets/embed-image/v1/featured.svg?post_id=185805&theme=dark"
alt="Opensource Builders - Find open-source alternatives to commercial apps | Product Hunt Embed"
width="250px"
height="54px"
/>
</a>

</Box>
</Box>
</Box>
Expand Down
13 changes: 1 addition & 12 deletions src/pages/requests.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,18 +51,7 @@ export default () => {
Request open-source alternatives
</Text>
</Box>
<a
href="https://www.producthunt.com/posts/opensource-builders?utm_source=badge-featured&utm_medium=badge&utm_souce=badge-opensource-builders"
target="_blank"
>
<Box
as="img"
src="https://api.producthunt.com/widgets/embed-image/v1/featured.svg?post_id=185805&theme=dark"
alt="Opensource Builders - Find open-source alternatives to commercial apps | Product Hunt Embed"
width="250px"
height="54px"
/>
</a>

</Box>
</Box>
</Box>
Expand Down
12 changes: 0 additions & 12 deletions src/templates/blog-post.js
Original file line number Diff line number Diff line change
Expand Up @@ -99,18 +99,6 @@ class BlogPostTemplate extends React.Component {
On a mission to find great open-source software
</Text>
</Box>
<a
href="https://www.producthunt.com/posts/opensource-builders?utm_source=badge-featured&utm_medium=badge&utm_souce=badge-opensource-builders"
target="_blank"
>
<Box
as="img"
src="https://api.producthunt.com/widgets/embed-image/v1/featured.svg?post_id=185805&theme=dark"
alt="Opensource Builders - Find open-source alternatives to commercial apps | Product Hunt Embed"
width="250px"
height="54px"
/>
</a>
</Box>
</Box>
</Box>
Expand Down

1 comment on commit 2a92fc4

@vercel
Copy link

@vercel vercel bot commented on 2a92fc4 Feb 28, 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.