Skip to content

Commit

Permalink
fix: add shop link
Browse files Browse the repository at this point in the history
  • Loading branch information
JimmyLv committed Mar 2, 2023
1 parent 0829e83 commit 341ee28
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 7 deletions.
19 changes: 15 additions & 4 deletions pages/[...slug].tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import { useLocalStorage } from "react-use";
import Sentence from "../components/Sentence";
import SquigglyLines from "../components/SquigglyLines";
import { useSummarize } from "../hooks/useSummarize";
import { checkoutUrl } from "../utils/constants";

let isSecureContext = false;

Expand Down Expand Up @@ -149,11 +150,21 @@ export const Home: NextPage = () => {
<p className="text-left font-medium">
<span className="text-sky-400 hover:text-sky-600">
请使用自己的 API Key
</span>{" "}
<a href="/wechat.jpg" target="_blank" rel="noopener noreferrer">
(我的账号可能很快没钱了,也可以就真的{" "}
</span>
(终于,支持
<a
className="text-pink-400 hover:underline"
href={checkoutUrl}
target="_blank"
rel="noopener noreferrer"
>
「购买次数」
</a>
啦!
<a href="/shop" target="_blank" rel="noopener noreferrer">
也可以真的
<span className="text-pink-400 hover:underline">
给我打钱
给我打赏
</span>
哦 🤣)
</a>
Expand Down
5 changes: 2 additions & 3 deletions pages/shop.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
import SquigglyLines from "../components/SquigglyLines";
import { checkoutUrl } from "../utils/constants";

export default () => {
const checkoutUrl =
"https://jimmylv.lemonsqueezy.com/checkout/buy/1ddaaa34-05eb-4db6-8c48-3ac0faed1b94";
return (
<div>
<h1 className="max-w-5xl pb-10 text-center text-4xl font-bold sm:text-7xl">
Expand All @@ -11,7 +10,7 @@ export default () => {
<SquigglyLines />
<a
className="relative text-pink-400 hover:underline"
href="https://jimmylv.lemonsqueezy.com/checkout/buy/1ddaaa34-05eb-4db6-8c48-3ac0faed1b94"
href={checkoutUrl}
>
点击购买
</a>
Expand Down
2 changes: 2 additions & 0 deletions utils/constants.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
export const checkoutUrl =
"https://jimmylv.lemonsqueezy.com/checkout/buy/1ddaaa34-05eb-4db6-8c48-3ac0faed1b94";

1 comment on commit 341ee28

@vercel
Copy link

@vercel vercel bot commented on 341ee28 Mar 2, 2023

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.