광고추가
This commit is contained in:
31
App.tsx
31
App.tsx
@@ -11,6 +11,28 @@ import { CreateFolderModal, RenameModal, DeleteModal } from './components/FileAc
|
|||||||
import ConflictModal from './components/ConflictModal';
|
import ConflictModal from './components/ConflictModal';
|
||||||
import { formatBytes } from './utils/formatters';
|
import { formatBytes } from './utils/formatters';
|
||||||
|
|
||||||
|
const AdSenseBanner: React.FC = () => {
|
||||||
|
useEffect(() => {
|
||||||
|
try {
|
||||||
|
// @ts-ignore
|
||||||
|
(window.adsbygoogle = window.adsbygoogle || []).push({});
|
||||||
|
} catch (e) {
|
||||||
|
console.error("AdSense error", e);
|
||||||
|
}
|
||||||
|
}, []);
|
||||||
|
|
||||||
|
return (
|
||||||
|
<div className="w-full h-full flex items-center justify-center overflow-hidden">
|
||||||
|
<ins className="adsbygoogle"
|
||||||
|
style={{ display: "block", width: "100%", height: "100%" }}
|
||||||
|
data-ad-client="ca-pub-4444852135420953"
|
||||||
|
data-ad-slot="7799405796"
|
||||||
|
data-ad-format="auto"
|
||||||
|
data-full-width-responsive="true"></ins>
|
||||||
|
</div>
|
||||||
|
);
|
||||||
|
};
|
||||||
|
|
||||||
const App: React.FC = () => {
|
const App: React.FC = () => {
|
||||||
// --- State ---
|
// --- State ---
|
||||||
const savedPref = localStorage.getItem('save_connection_info') !== 'false';
|
const savedPref = localStorage.getItem('save_connection_info') !== 'false';
|
||||||
@@ -1035,13 +1057,10 @@ const App: React.FC = () => {
|
|||||||
<div className="w-1/2 min-w-0 h-full">
|
<div className="w-1/2 min-w-0 h-full">
|
||||||
<LogConsole logs={logs} />
|
<LogConsole logs={logs} />
|
||||||
</div>
|
</div>
|
||||||
<div className="w-1/2 min-w-0 h-full bg-white border border-slate-300 rounded-lg shadow-sm flex flex-col items-center justify-center relative overflow-hidden group cursor-pointer">
|
<div className="w-1/2 min-w-0 h-full bg-white border border-slate-300 rounded-lg shadow-sm flex flex-col items-center justify-center relative overflow-hidden">
|
||||||
|
{/* Placeholder for Sponsored tag if needed, or remove it */}
|
||||||
<div className="absolute top-0 right-0 bg-slate-100 text-[9px] text-slate-500 px-1.5 py-0.5 rounded-bl border-b border-l border-slate-200 z-10">SPONSORED</div>
|
<div className="absolute top-0 right-0 bg-slate-100 text-[9px] text-slate-500 px-1.5 py-0.5 rounded-bl border-b border-l border-slate-200 z-10">SPONSORED</div>
|
||||||
<div className="text-slate-300 flex flex-col items-center gap-1 group-hover:text-slate-400 transition-colors">
|
<AdSenseBanner />
|
||||||
<div className="font-bold text-lg tracking-widest flex items-center gap-2"><MousePointerClick size={20} /> GOOGLE ADSENSE</div>
|
|
||||||
<div className="text-xs">Premium Ad Space Available</div>
|
|
||||||
</div>
|
|
||||||
<div className="absolute inset-0 -z-0 opacity-30" style={{ backgroundImage: 'radial-gradient(#cbd5e1 1px, transparent 1px)', backgroundSize: '10px 10px' }}></div>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
@@ -5,6 +5,8 @@
|
|||||||
<meta charset="UTF-8" />
|
<meta charset="UTF-8" />
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||||
<title>WebFTP by SIMP</title>
|
<title>WebFTP by SIMP</title>
|
||||||
|
<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-4444852135420953"
|
||||||
|
crossorigin="anonymous"></script>
|
||||||
<script src="https://cdn.tailwindcss.com"></script>
|
<script src="https://cdn.tailwindcss.com"></script>
|
||||||
<style>
|
<style>
|
||||||
/* Custom scrollbar for a more native app feel - Light Theme */
|
/* Custom scrollbar for a more native app feel - Light Theme */
|
||||||
|
|||||||
Reference in New Issue
Block a user