Skip to content
This repository has been archived by the owner on Nov 16, 2023. It is now read-only.

Commit

Permalink
fix: add product hunt badge
Browse files Browse the repository at this point in the history
  • Loading branch information
phuctm97 committed Feb 17, 2022
1 parent d8086e9 commit ae96232
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 2 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

Explain shell commands using next-generation autocomplete from [Fig](https://fig.io).

<a href="https://www.producthunt.com/posts/shell-how?utm_source=badge-featured&utm_medium=badge&utm_souce=badge-shell-how" target="_blank"><img src="https://api.producthunt.com/widgets/embed-image/v1/featured.svg?post_id=332221&theme=light" alt="shell.how - Explain how your shell command works | Product Hunt" width="222" height="48" /></a>

## Contributing

### Requirements
Expand Down
3 changes: 3 additions & 0 deletions next.config.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
module.exports = {
reactStrictMode: true,
images: {
domains: ["api.producthunt.com"],
},
};
18 changes: 16 additions & 2 deletions pages/[[...slug]].tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import React, {
useRef,
useState,
} from "react";
import Image from "next/image";
import { ImSpinner } from "react-icons/im";
import {
HiCheck,
Expand Down Expand Up @@ -78,7 +79,7 @@ const Index: NextPage<StaticProps> = ({ initialCommandString }) => {

return (
<>
<div className="max-w-7xl min-h-[calc(100vh-4rem)] mx-auto py-14 sm:py-20 md:py-24 px-4 sm:px-6 lg:px-8 sm:flex sm:flex-col sm:items-center">
<div className="max-w-7xl min-h-[calc(100vh-7rem)] mx-auto py-14 sm:py-20 md:py-24 px-4 sm:px-6 lg:px-8 sm:flex sm:flex-col sm:items-center">
{/* Title */}
<h1 className="text-5xl font-extrabold text-gray-900 dark:text-white sm:text-center inline-flex items-center select-none">
<HiTerminal className="mr-2" size="1.2em" />
Expand Down Expand Up @@ -201,7 +202,20 @@ const Index: NextPage<StaticProps> = ({ initialCommandString }) => {
)}
</div>
</div>
<footer className="w-full h-[4rem] flex justify-center items-center space-x-3 sm:space-x-6">
<footer className="relative w-full h-[7rem] flex justify-center items-center space-x-3 sm:space-x-6">
<a
href="https://www.producthunt.com/posts/shell-how?utm_source=badge-featured&utm_medium=badge&utm_souce=badge-shell-how"
target="_blank"
rel="noopener noreferrer"
className="absolute bottom-[4.5rem]"
>
<Image
src="https://api.producthunt.com/widgets/embed-image/v1/featured.svg?post_id=332221&theme=light"
alt="shell.how - Explain how your shell command works | Product Hunt"
width={250}
height={54}
/>
</a>
<a
href="https://github.com/phuctm97/shell.how/issues"
target="_blank"
Expand Down

1 comment on commit ae96232

@vercel
Copy link

@vercel vercel bot commented on ae96232 Feb 17, 2022

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.