Skip to content

Commit

Permalink
fix: styling of buttons
Browse files Browse the repository at this point in the history
  • Loading branch information
JimmyLv committed Mar 2, 2023
1 parent aef9f3a commit bacb1c3
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 10 deletions.
2 changes: 1 addition & 1 deletion components/Sentence.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export default function Sentence({
href={`${encodeURI(`${baseUrl}/?t=${seconds}`)}`}
target="_blank"
rel="noopener noreferrer"
className="text-sky-400 hover:text-sky-600"
className="z-10 text-sky-400 hover:text-sky-600"
>
{timestamp}
</a>
Expand Down
21 changes: 13 additions & 8 deletions pages/[...slug].tsx
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,10 @@ export const Home: NextPage = () => {
{`【📝 总结:${currentBvId}】`}
</a>
</h3>
<div className="mx-auto mt-6 max-w-3xl rounded-xl border-2 bg-white p-4 text-lg leading-7 shadow-md transition hover:bg-gray-50">
<div
className="mx-auto mt-6 max-w-3xl cursor-copy rounded-xl border-2 bg-white p-4 text-lg leading-7 shadow-md transition hover:bg-gray-50"
onClick={handleCopy}
>
{summaryArray.map((sentence, index) => (
<div key={index}>
{sentence.length > 0 && (
Expand All @@ -266,19 +269,21 @@ export const Home: NextPage = () => {
</div>
<div className="mx-auto mt-7 flex max-w-3xl flex-row-reverse gap-x-4">
<a
className="min-w-fit cursor-pointer rounded-lg bg-pink-400 px-4 py-1 text-center font-medium text-white hover:bg-pink-400/80"
className="w-32 cursor-pointer rounded-lg bg-pink-400 px-2 py-1 text-center font-medium text-white hover:bg-pink-400/80"
href="https://space.bilibili.com/37648256"
target="_blank"
rel="noopener noreferrer"
>
一键(三连+关注)
(关注我 😛)
</a>
<button
className="w-24 cursor-pointer rounded-lg bg-sky-400 px-2 py-1 font-medium text-white hover:bg-sky-400/80"
onClick={handleCopy}
<a
href={curVideo}
className="w-24 cursor-pointer rounded-lg bg-sky-400 px-2 py-1 text-center font-medium text-white hover:bg-sky-400/80"
target="_blank"
rel="noreferrer"
>
一键复制
</button>
回到视频
</a>
</div>
</div>
)}
Expand Down
2 changes: 1 addition & 1 deletion pages/api/summarize.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ export default async function handler(
});
// console.log("========transcripts========", transcripts);
const text = getChunckedTranscripts(transcripts, transcripts);
const prompt = getSummaryPrompt(title, text, true);
const prompt = getSummaryPrompt(title, text);

try {
apiKey && console.log("========use user apiKey========");
Expand Down

1 comment on commit bacb1c3

@vercel
Copy link

@vercel vercel bot commented on bacb1c3 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.