Skip to content

Commit

Permalink
done for now.
Browse files Browse the repository at this point in the history
  • Loading branch information
sandstone991 committed Aug 31, 2023
1 parent a233d85 commit 425fff8
Showing 1 changed file with 26 additions and 38 deletions.
64 changes: 26 additions & 38 deletions source/Popup/Popup.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,44 +9,32 @@ function openWebPage(url: string): Promise<Tabs.Tab> {

const Popup: React.FC = () => {
return (
<section id="popup">
<h2>WEB-EXTENSION-STARTER</h2>
<button
id="options__button"
type="button"
onClick={(): Promise<Tabs.Tab> => {
return openWebPage('options.html');
}}
>
Options Page
</button>
<div className="links__holder">
<ul>
<li>
<button
type="button"
onClick={(): Promise<Tabs.Tab> => {
return openWebPage(
'https://github.com/abhijithvijayan/web-extension-starter',
);
}}
>
GitHub
</button>
</li>
<li>
<button
type="button"
onClick={(): Promise<Tabs.Tab> => {
return openWebPage(
'https://www.buymeacoffee.com/abhijithvijayan',
);
}}
>
Buy Me A Coffee
</button>
</li>
</ul>
<section id="popup" className="w-96 h-full bg-white">
<div className="py-6 px-4 flex flex-col justify-start gap-4">
<h2 className="text-xl w-full text-center">Alt CDN</h2>
<div className="flex flex-row justify-evenly">
<button
id="options__button"
type="button"
onClick={(): Promise<Tabs.Tab> => {
return openWebPage('options.html');
}}
className="bg-gray-700 hover:bg-gray-800 text-white font-bold py-2 px-4 rounded"
>
Options
</button>
<button
type="button"
onClick={(): Promise<Tabs.Tab> => {
return openWebPage(
'https://github.com/sandstone991/alt-cdn',
);
}}
className="bg-gray-700 hover:bg-gray-800 text-white font-bold py-2 px-4 rounded"
>
GitHub
</button>
</div>
</div>
</section>
);
Expand Down

0 comments on commit 425fff8

Please sign in to comment.