feat: widget partner system with JS embed, isHidden toggle, category/neighborhood filters

This commit is contained in:
AyrisAI
2026-07-13 15:00:46 +03:00
parent b44acc2678
commit 1d98409385
7 changed files with 177 additions and 298 deletions
+25 -51
View File
@@ -3,63 +3,37 @@
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Marmaris Local - Widget Test Sayfası</title>
<title>Marmaris Local Widget Test</title>
<style>
body {
background-color: #FBFAF6;
color: #123238;
font-family: -apple-system, BlinkMacSystemFont, sans-serif;
padding: 40px 20px;
margin: 0;
}
.container {
max-width: 800px;
margin: 0 auto;
}
h1 {
font-size: 24px;
font-weight: 800;
border-bottom: 2px dashed #12323815;
padding-bottom: 12px;
margin-bottom: 24px;
}
h2 {
font-size: 16px;
font-weight: 700;
margin-top: 30px;
margin-bottom: 10px;
text-transform: uppercase;
font-size: 11px;
letter-spacing: 0.05em;
color: #D23B68;
}
.demo-box {
background: white;
border: 1px solid #12323810;
border-radius: 12px;
padding: 20px;
margin-bottom: 30px;
}
body { font-family: sans-serif; max-width: 900px; margin: 40px auto; padding: 0 20px; background: #f0f0f0; }
h1 { font-size: 18px; color: #333; }
.section { background: white; padding: 24px; border-radius: 12px; margin-bottom: 24px; }
code { background: #1e1e1e; color: #e0e0e0; padding: 12px 16px; border-radius: 8px; display: block; font-family: monospace; font-size: 13px; white-space: pre; margin: 12px 0; }
</style>
</head>
<body>
<h1>🧪 Marmaris Local Widget Test Sayfası</h1>
<div class="container">
<h1>marmaris local widget demo</h1>
<p>Bu sayfa, Muğla Dijital Medya ortak sitelerine yerleştirilecek olan <strong>bölgesel öneri widget'ının</strong> önizlemesini test etmek amacıyla oluşturulmuştur.</p>
<h2>1. Açık Tema Demo (data-neighborhood="yat-limani")</h2>
<div class="demo-box">
<!-- Widget Script Embed -->
<script src="./widget.js" data-neighborhood="yat-limani" data-theme="light"></script>
</div>
<h2>2. Koyu Tema Demo (data-neighborhood="yat-limani" data-theme="dark")</h2>
<div class="demo-box" style="background-color: #1a1a1a;">
<!-- Widget Script Embed -->
<script src="./widget.js" data-neighborhood="yat-limani" data-theme="dark"></script>
</div>
<div class="section">
<h2>Akyaka Bölgesi — Light Tema</h2>
<code>&lt;div data-marmaris-widget="akyaka" data-limit="3"&gt;&lt;/div&gt;
&lt;script src="/widget.js" async&gt;&lt;/script&gt;</code>
<div data-marmaris-widget="akyaka" data-limit="3"></div>
</div>
<div class="section">
<h2>Marmaris — Dark Tema</h2>
<code>&lt;div data-marmaris-widget="marmaris" data-theme="dark" data-limit="3"&gt;&lt;/div&gt;</code>
<div data-marmaris-widget="marmaris" data-theme="dark" data-limit="3"></div>
</div>
<div class="section">
<h2>Gizli Widget (display:none) — Sadece indexlenir</h2>
<code>&lt;div data-marmaris-widget="marmaris" style="display:none"&gt;&lt;/div&gt;</code>
<div data-marmaris-widget="marmaris" style="display:none"></div>
<p style="color:#888;font-size:13px">⬆️ Bu div gizli - içerik yüklenir ama kullanıcı görmez</p>
</div>
<script src="/widget.js"></script>
</body>
</html>