Skip to content

Commit

Permalink
add blank background
Browse files Browse the repository at this point in the history
  • Loading branch information
georg-stone committed Nov 27, 2024
1 parent 4e76ced commit 1c0b7c9
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 45 deletions.
63 changes: 18 additions & 45 deletions public/_locales/en/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -245,51 +245,21 @@
"show_completed": {
"message": "Show completed"
},
"mantra_1": {
"message": "Every day is a chance to grow."
},
"mantra_2": {
"message": "Progress, not perfection."
},
"mantra_3": {
"message": "Small steps lead to big changes."
},
"mantra_4": {
"message": "Setbacks are setups for comebacks."
},
"mantra_5": {
"message": "You are stronger than you think."
},
"mantra_6": {
"message": "Challenges build your strength."
},
"mantra_7": {
"message": "Good things are coming your way."
},
"mantra_8": {
"message": "See the good in every situation."
},
"mantra_9": {
"message": "A hopeful heart sees endless possibilities."
},
"mantra_10": {
"message": "Be here, in this moment."
},
"mantra_11": {
"message": "Each breath is a fresh start."
},
"mantra_12": {
"message": "The now is all we truly have."
},
"mantra_13": {
"message": "Dream big, start small."
},
"mantra_14": {
"message": "Focus on what you can control."
},
"mantra_15": {
"message": "Greatness begins with the first step."
},
"mantra_1": { "message": "Every day is a chance to grow." },
"mantra_2": { "message": "Progress, not perfection." },
"mantra_3": { "message": "Small steps lead to big changes." },
"mantra_4": { "message": "Setbacks are setups for comebacks." },
"mantra_5": { "message": "You are stronger than you think." },
"mantra_6": { "message": "Challenges build your strength." },
"mantra_7": { "message": "Good things are coming your way." },
"mantra_8": { "message": "See the good in every situation." },
"mantra_9": { "message": "A hopeful heart sees endless possibilities." },
"mantra_10": { "message": "Be here, in this moment." },
"mantra_11": { "message": "Each breath is a fresh start." },
"mantra_12": { "message": "The now is all we truly have." },
"mantra_13": { "message": "Dream big, start small." },
"mantra_14": { "message": "Focus on what you can control." },
"mantra_15": { "message": "Greatness begins with the first step." },
"features": {
"message": "Features"
},
Expand All @@ -301,5 +271,8 @@
},
"documentation": {
"message": "Documentation"
},
"blank": {
"message": "Blank"
}
}
3 changes: 3 additions & 0 deletions public/_locales/english_base.json
Original file line number Diff line number Diff line change
Expand Up @@ -271,5 +271,8 @@
},
"documentation": {
"message": "Documentation"
},
"blank": {
"message": "Blank"
}
}
14 changes: 14 additions & 0 deletions src/App.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -1043,6 +1043,20 @@ function App() {
<span>{chrome.i18n.getMessage("gradient")}</span>
{background === "gradient" && <Check className="h-4 w-4" />}
</button>
<button
className={cn(
"flex w-full items-center justify-between rounded-md px-3 py-2",
background === "gradient" && "bg-accent"
)}
onClick={() => {
setBackground("null");
localStorage.setItem("background", "null");
window.location.reload();
}}
>
<span>{chrome.i18n.getMessage("blank")}</span>
{background === "null" && <Check className="h-4 w-4" />}
</button>
</div>
</div>

Expand Down

0 comments on commit 1c0b7c9

Please sign in to comment.