Skip to content

Commit

Permalink
feat: add new branding
Browse files Browse the repository at this point in the history
  • Loading branch information
lcandy2 committed Jul 23, 2024
1 parent 6196a51 commit 00da2d5
Show file tree
Hide file tree
Showing 11 changed files with 40 additions and 8 deletions.
1 change: 1 addition & 0 deletions entrypoints/content/components/tweet-card.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@ export function TweetCard({ element }: TweetCardProps) {
/>
</>
))}
<p className="text-sm w-full font-light text-gray-400 text-end">presented by <a href="https://github.com/lcandy2/tweet-talk" target="_blank">AI Tweet</a></p>
</ShineBorder>
) : (
<section className="flex flex-row items-start p-3 gap-2 w-full">
Expand Down
29 changes: 24 additions & 5 deletions entrypoints/popup/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -53,13 +53,16 @@ function App() {
if (res && JSON.stringify(res).includes("reply")) {
setRepliedMessage(res.results);
setIsFinished(true);
setIsFetching(false);
} else {
setIsFinished(true);
setIsFetching(false);
setNoReplies(true);
}
} catch (e) {
console.error(e);
setIsFinished(true);
setIsFetching(false);
setNoReplies(true);
}
};
Expand All @@ -70,20 +73,34 @@ function App() {

return (
<>
<Card className="min-w-[320px]">
<Card className="min-w-[400px]">
<CardHeader>
<CardTitle>Tweet Talk</CardTitle>
<CardTitle className="flex flex-row gap-2 items-center">
<div className="flex flex-row gap-2 grow items-center">
<img src="./icon/128.png" className="w-12 h-12" />
AI Tweet
</div>
<div className="flex flex-row gap-2 items-center">
<a href="https://x.com/AITweet_app" target="_blank" className="text-xs flex flex-row gap-0.5 items-center font-normal"><img src="./icon/twitter.svg" className="w-4 h-4" />@AITweet_app</a>
<a href="https://github.com/lcandy2/tweet-talk" target="_blank"><img src="./icon/github-light.svg" className="w-4 h-4" /></a>
</div>
</CardTitle>
<CardDescription>输入内容,获得知名人士的锐评。</CardDescription>
</CardHeader>
<CardContent>
<Textarea value={inputValue} onChange={(e) => setInputValue(e.target.value)} placeholder="在这里输入内容..." />
<Textarea value={inputValue} onChange={(e) => setInputValue(e.target.value)}
placeholder="在这里输入内容..." />
</CardContent>
<CardFooter>
<Button disabled={!inputValue} onClick={handleActionButtonClick}>获得锐评!</Button>
<Button disabled={!inputValue || isFetching} onClick={handleActionButtonClick}>
{isFetching ?
"锐评中..."
: "获得锐评!"}
</Button>
</CardFooter>
</Card>

{isFetching && <Card className="flex flex-col items-start w-full">
{(isFetching || isFinished) && <Card className="flex flex-col items-start w-full text-base">
{!noReplies ? (
<ShineBorder
color={["#A07CFE", "#FE8FB5", "#FFBE7B"]}
Expand All @@ -105,6 +122,8 @@ function App() {
/>
</>
))}
<p className="text-sm w-full font-light text-gray-400 text-end">presented by <a
href="https://github.com/lcandy2/tweet-talk" target="_blank">AI Tweet</a></p>
</ShineBorder>
) : (
<section className="flex flex-row items-start p-3 gap-2 w-full">
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"name": "tweet-talk",
"description": "A browser extension that reviews tweets for you.",
"description": "Creative replies by AI celebrities, make twitter fun again.",
"private": true,
"version": "1.2.2",
"version": "1.3",
"type": "module",
"scripts": {
"dev": "wxt",
Expand Down
Binary file modified public/icon/128.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified public/icon/16.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified public/icon/32.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified public/icon/48.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified public/icon/96.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
11 changes: 11 additions & 0 deletions public/icon/github-light.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions public/icon/twitter.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion wxt.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import react from "@vitejs/plugin-react";
export default defineConfig({
modules: ["@wxt-dev/module-react"],
manifest: {
name: "Tweet Talk",
name: "AI Tweet",
web_accessible_resources: [
{
resources: ["*.png"],
Expand Down

0 comments on commit 00da2d5

Please sign in to comment.