feat: popup with locales and tailwind

This commit is contained in:
DIYgod
2023-12-08 05:50:00 +00:00
parent d60aad7d12
commit 8dfd2bdd2a
7 changed files with 358 additions and 17 deletions
+15 -14
View File
@@ -5,25 +5,26 @@ function IndexPopup() {
const [data, setData] = useState("")
return (
<div className="min-w-[350px]">
<div className="icons">
<a className="icons-item icons-about" href="/options.html#/about"></a>
<a className="icons-item icons-setting" href="/options.html#/setting"></a>
<div className="min-w-[350px] p-5">
<a className="absolute right-4" href="/options.html">
<i className="icon-[mingcute--settings-3-fill] w-5 h-5 text-slate-600 hover:text-black transition-colors"></i>
</a>
<div className="space-y-4">
<h2 className="text-base font-bold">( ´・・)ノ(._.`) <span>{chrome.i18n.getMessage("RSSNotFound")}</span></h2>
<p dangerouslySetInnerHTML={{
__html: chrome.i18n.getMessage("joinRSSHub")
}}></p>
</div>
<div className="no-rss">
<h2>( ´・・)ノ(._.`) <span data-i18n>rss not found</span></h2>
<p data-i18n>join rsshub</p>
</div>
<div className="page-rss">
<h2 data-i18n>current page rss</h2>
<div className="space-y-4 hidden">
<h2 className="text-base font-bold">{chrome.i18n.getMessage("currentPageRSS")}</h2>
<ul></ul>
</div>
<div className="page-rsshub">
<h2 data-i18n>current page RSSHub</h2>
<div className="space-y-4 hidden">
<h2 className="text-base font-bold">{chrome.i18n.getMessage("currentPageRSSHub")}</h2>
<ul></ul>
</div>
<div className="website-rsshub">
<h2 data-i18n>current site RSSHub</h2>
<div className="space-y-4 hidden">
<h2 className="text-base font-bold">{chrome.i18n.getMessage("currentSiteRSSHub")}</h2>
<ul></ul>
</div>
</div>
+9 -1
View File
@@ -1,3 +1,11 @@
@tailwind base;
@tailwind components;
@tailwind utilities;
@tailwind utilities;
body {
font-size: 14px;
}
a {
color: #f5712c;
}