Skip to content

Commit

Permalink
add pronounce
Browse files Browse the repository at this point in the history
  • Loading branch information
lerte committed Aug 25, 2024
1 parent 0ce5b8a commit 2569f5b
Show file tree
Hide file tree
Showing 3 changed files with 52 additions and 0 deletions.
46 changes: 46 additions & 0 deletions components/Pronounce.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
import React from "react";

const Pronounce = () => {
const audioRef = React.useRef<HTMLAudioElement>(null);

const speak = () => {
audioRef.current?.play();
};

return (
<div>
<audio
hidden
ref={audioRef}
src="/ngroker.wav"
/>
<p className="mt-4 italic">
<span
className="cursor-pointer"
onClick={speak}
>
Ngroker
</span>
<svg
onClick={speak}
fill="none"
strokeWidth="1.5"
aria-hidden="true"
viewBox="0 0 24 24"
stroke="currentColor"
xmlns="http://www.w3.org/2000/svg"
className="mx-2 cursor-pointer size-5 inline-block"
>
<path
strokeLinecap="round"
strokeLinejoin="round"
d="M19.114 5.636a9 9 0 0 1 0 12.728M16.463 8.288a5.25 5.25 0 0 1 0 7.424M6.75 8.25l4.72-4.72a.75.75 0 0 1 1.28.53v15.88a.75.75 0 0 1-1.28.53l-4.72-4.72H4.51c-.88 0-1.704-.507-1.938-1.354A9.009 9.009 0 0 1 2.25 12c0-.83.112-1.633.322-2.396C2.806 8.756 3.63 8.25 4.51 8.25H6.75Z"
/>
</svg>
is pronounced 'en-groker'.
</p>
</div>
);
};

export default Pronounce;
6 changes: 6 additions & 0 deletions pages/docs/index.mdx
Original file line number Diff line number Diff line change
@@ -1,7 +1,13 @@
import Pronounce from "./../../components/Pronounce";

# Introduction

Ngroker is a gui client for ngrok. It is a simple and easy to use tool to create tunnels to localhost.

## How to pronounce?

<Pronounce />

## What is Ngroker?

First of all **[ngrok](https://ngrok.com)** is a unified ingress platform for developers that offer a cli tool for creates tunnels to localhost. It is a useful tool for developers who want to test their applications locally.
Expand Down
Binary file added public/ngroker.wav
Binary file not shown.

0 comments on commit 2569f5b

Please sign in to comment.