Spaces:
Paused
Paused
Update templates/index.html
Browse files- templates/index.html +472 -320
templates/index.html
CHANGED
|
@@ -2,360 +2,512 @@
|
|
| 2 |
<html lang="id">
|
| 3 |
<head>
|
| 4 |
<meta charset="UTF-8">
|
| 5 |
-
<
|
| 6 |
-
|
| 7 |
-
<link href="https://
|
| 8 |
-
<
|
| 9 |
-
<script src="https://d3js.org/d3.v7.min.js"></script>
|
| 10 |
-
|
| 11 |
<style>
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 20 |
}
|
| 21 |
-
|
| 22 |
-
|
| 23 |
-
|
| 24 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 25 |
}
|
| 26 |
|
| 27 |
-
.
|
| 28 |
-
|
| 29 |
-
|
| 30 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 31 |
}
|
| 32 |
|
| 33 |
-
|
| 34 |
-
|
| 35 |
-
|
| 36 |
-
|
| 37 |
-
|
| 38 |
-
|
| 39 |
-
|
| 40 |
-
|
| 41 |
-
|
| 42 |
-
|
| 43 |
-
<input id="keyword" class="form-control mt-3" placeholder="Masukkan keyword">
|
| 44 |
-
|
| 45 |
-
<div class="mt-3">
|
| 46 |
-
<input type="radio" name="source" value="all" checked> Semua<br>
|
| 47 |
-
<input type="radio" name="source" value="youtube"> YouTube<br>
|
| 48 |
-
<input type="radio" name="source" value="reddit"> Reddit
|
| 49 |
-
</div>
|
| 50 |
-
|
| 51 |
-
<button onclick="runAnalysis()" class="btn btn-primary mt-3 w-100">Analisis</button>
|
| 52 |
-
|
| 53 |
-
<hr>
|
| 54 |
-
|
| 55 |
-
<h6>Filter</h6>
|
| 56 |
-
<button onclick="filterData('All')" class="btn btn-dark btn-sm w-100 mt-1">All</button>
|
| 57 |
-
<button onclick="filterData('Positive')" class="btn btn-success btn-sm w-100 mt-1">Positive</button>
|
| 58 |
-
<button onclick="filterData('Neutral')" class="btn btn-secondary btn-sm w-100 mt-1">Neutral</button>
|
| 59 |
-
<button onclick="filterData('Negative')" class="btn btn-danger btn-sm w-100 mt-1">Negative</button>
|
| 60 |
-
|
| 61 |
-
<hr>
|
| 62 |
-
<a href="/download" class="btn btn-success w-100">⬇ Download CSV</a>
|
| 63 |
-
</div>
|
| 64 |
-
|
| 65 |
-
<!-- 🔥 MAIN -->
|
| 66 |
-
<div class="main">
|
| 67 |
-
|
| 68 |
-
<h3>📊 AI Social Media Intelligence</h3>
|
| 69 |
-
|
| 70 |
-
<div id="loading" style="display:none;">
|
| 71 |
-
<div class="spinner-border text-light"></div>
|
| 72 |
-
<p>Loading...</p>
|
| 73 |
-
</div>
|
| 74 |
-
|
| 75 |
-
<!-- CHART -->
|
| 76 |
-
<div class="row mt-3">
|
| 77 |
-
<div class="col-md-6">
|
| 78 |
-
<div class="card p-3">
|
| 79 |
-
<h5>Distribusi Sentimen</h5>
|
| 80 |
-
<canvas id="chart"></canvas>
|
| 81 |
-
</div>
|
| 82 |
-
</div>
|
| 83 |
-
|
| 84 |
-
<div class="col-md-6">
|
| 85 |
-
<div class="card p-3">
|
| 86 |
-
<h5>Top Words</h5>
|
| 87 |
-
<ul id="topWords"></ul>
|
| 88 |
-
</div>
|
| 89 |
-
</div>
|
| 90 |
-
</div>
|
| 91 |
-
|
| 92 |
-
<!-- IMAGE -->
|
| 93 |
-
<div class="row mt-3">
|
| 94 |
-
<div class="col-md-6">
|
| 95 |
-
<div class="card p-3">
|
| 96 |
-
<h5>Heatmap</h5>
|
| 97 |
-
<img id="heatmap" width="100%">
|
| 98 |
-
</div>
|
| 99 |
-
</div>
|
| 100 |
-
|
| 101 |
-
<div class="col-md-6">
|
| 102 |
-
<div class="card p-3">
|
| 103 |
-
<h5>Wordcloud</h5>
|
| 104 |
-
<img id="wordcloud" width="100%">
|
| 105 |
-
</div>
|
| 106 |
-
</div>
|
| 107 |
-
</div>
|
| 108 |
-
|
| 109 |
-
<div class="card mt-3 p-3">
|
| 110 |
-
<h5>Timeline</h5>
|
| 111 |
-
<img id="timeline" width="100%">
|
| 112 |
-
</div>
|
| 113 |
-
|
| 114 |
-
<!-- TOPIC -->
|
| 115 |
-
<div class="card mt-3 p-3">
|
| 116 |
-
<h5>Topic Modeling</h5>
|
| 117 |
-
<ul id="topics"></ul>
|
| 118 |
-
</div>
|
| 119 |
-
|
| 120 |
-
<!-- CLUSTER -->
|
| 121 |
-
<div class="card mt-3 p-3">
|
| 122 |
-
<h5>Clustering</h5>
|
| 123 |
-
<div id="clusters"></div>
|
| 124 |
-
</div>
|
| 125 |
-
|
| 126 |
-
<!-- HOAX -->
|
| 127 |
-
<div class="card mt-3 p-3">
|
| 128 |
-
<h5>Hoax Detection</h5>
|
| 129 |
-
<div id="hoax"></div>
|
| 130 |
-
</div>
|
| 131 |
-
|
| 132 |
-
<!-- NETWORK -->
|
| 133 |
-
<div class="card mt-3 p-3">
|
| 134 |
-
<h5>Network Graph</h5>
|
| 135 |
-
<div id="graph"></div>
|
| 136 |
-
</div>
|
| 137 |
-
|
| 138 |
-
<!-- BOT NETWORK -->
|
| 139 |
-
<div class="card mt-3 p-3">
|
| 140 |
-
<h5>Bot Network</h5>
|
| 141 |
-
<div id="botGraph"></div>
|
| 142 |
-
</div>
|
| 143 |
-
|
| 144 |
-
<div class="card mt-3 p-3">
|
| 145 |
-
<h5>Bot List</h5>
|
| 146 |
-
<div id="bots"></div>
|
| 147 |
-
</div>
|
| 148 |
-
|
| 149 |
-
<!-- GNN -->
|
| 150 |
-
<div class="card mt-3 p-3">
|
| 151 |
-
<h5>GNN Result</h5>
|
| 152 |
-
<div id="gnn"></div>
|
| 153 |
-
</div>
|
| 154 |
-
|
| 155 |
-
<!-- BERT BOT -->
|
| 156 |
-
<div class="card mt-3 p-3">
|
| 157 |
-
<h5>BERT Bot Detection</h5>
|
| 158 |
-
<div id="botBert"></div>
|
| 159 |
-
</div>
|
| 160 |
|
| 161 |
-
|
| 162 |
-
|
| 163 |
-
|
| 164 |
-
|
| 165 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 166 |
|
| 167 |
-
|
| 168 |
-
|
| 169 |
-
|
| 170 |
-
|
| 171 |
-
</div>
|
| 172 |
|
| 173 |
-
|
| 174 |
-
|
| 175 |
-
|
| 176 |
-
|
| 177 |
-
|
| 178 |
-
|
| 179 |
-
|
| 180 |
-
|
| 181 |
-
|
| 182 |
-
|
|
|
|
|
|
|
| 183 |
|
| 184 |
-
|
| 185 |
|
| 186 |
-
|
|
|
|
| 187 |
|
| 188 |
-
|
| 189 |
-
|
| 190 |
-
|
| 191 |
-
|
| 192 |
-
|
| 193 |
-
const keyword=document.getElementById("keyword").value;
|
| 194 |
-
const source=document.querySelector('input[name="source"]:checked').value;
|
| 195 |
-
|
| 196 |
-
document.getElementById("loading").style.display="block";
|
| 197 |
-
|
| 198 |
-
fetch("/analyze",{
|
| 199 |
-
method:"POST",
|
| 200 |
-
headers:{"Content-Type":"application/json"},
|
| 201 |
-
body:JSON.stringify({keyword,source})
|
| 202 |
-
})
|
| 203 |
-
.then(res=>res.json())
|
| 204 |
-
.then(res=>{
|
| 205 |
-
allData=res.data;
|
| 206 |
-
updateUI(res);
|
| 207 |
-
document.getElementById("loading").style.display="none";
|
| 208 |
-
});
|
| 209 |
}
|
| 210 |
-
|
| 211 |
-
|
| 212 |
-
|
| 213 |
-
|
| 214 |
-
|
| 215 |
-
|
| 216 |
-
|
| 217 |
-
renderClusters(res.clusters);
|
| 218 |
-
renderHoax(res.hoax);
|
| 219 |
-
renderGraph(res.network);
|
| 220 |
-
renderBotNetwork(res.bot_network);
|
| 221 |
-
renderBots(res.bot_network.bots);
|
| 222 |
-
renderGNN(res.gnn);
|
| 223 |
-
renderBotBert(res.bot_bert);
|
| 224 |
-
renderFakeNews(res.fake_news);
|
| 225 |
-
document.getElementById("trend").innerText=res.trend;
|
| 226 |
-
|
| 227 |
-
document.getElementById("wordcloud").src="/static/wordcloud.png?"+Math.random();
|
| 228 |
-
document.getElementById("heatmap").src="/static/heatmap.png?"+Math.random();
|
| 229 |
-
document.getElementById("timeline").src="/static/timeline.png?"+Math.random();
|
| 230 |
-
}
|
| 231 |
-
|
| 232 |
-
// 🔥 TABLE
|
| 233 |
-
function renderTable(data){
|
| 234 |
-
let html="";
|
| 235 |
-
data.forEach((d,i)=>{
|
| 236 |
-
html+=`<tr><td>${i+1}</td><td>${d.text}</td><td>${d.sentiment}</td></tr>`;
|
| 237 |
-
});
|
| 238 |
-
document.getElementById("table").innerHTML=html;
|
| 239 |
}
|
| 240 |
|
| 241 |
-
|
| 242 |
-
|
| 243 |
-
|
| 244 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 245 |
|
| 246 |
-
|
|
|
|
| 247 |
|
| 248 |
-
|
| 249 |
-
|
| 250 |
-
|
| 251 |
-
|
|
|
|
| 252 |
}
|
| 253 |
-
|
| 254 |
-
|
| 255 |
-
|
| 256 |
-
|
| 257 |
-
words.forEach(w=>html+=`<li>${w.word} (${w.count})</li>`);
|
| 258 |
-
document.getElementById("topWords").innerHTML=html;
|
| 259 |
}
|
| 260 |
-
|
| 261 |
-
|
| 262 |
-
|
| 263 |
-
|
| 264 |
-
|
| 265 |
-
|
| 266 |
}
|
|
|
|
| 267 |
|
| 268 |
-
/
|
| 269 |
-
|
| 270 |
-
|
| 271 |
-
|
| 272 |
-
|
| 273 |
-
c.samples.forEach(s=>html+=`<li>${s}</li>`);
|
| 274 |
-
html+="</ul>";
|
| 275 |
-
});
|
| 276 |
-
document.getElementById("clusters").innerHTML=html;
|
| 277 |
}
|
| 278 |
-
|
| 279 |
-
|
| 280 |
-
|
| 281 |
-
|
| 282 |
-
|
| 283 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 284 |
}
|
| 285 |
-
|
| 286 |
-
|
| 287 |
-
|
| 288 |
-
|
| 289 |
-
|
| 290 |
-
const svg=d3.select("#graph").append("svg").attr("width",width).attr("height",height);
|
| 291 |
-
|
| 292 |
-
const nodes={};
|
| 293 |
-
data.forEach(d=>{
|
| 294 |
-
nodes[d.source]={id:d.source};
|
| 295 |
-
nodes[d.target]={id:d.target};
|
| 296 |
-
});
|
| 297 |
-
|
| 298 |
-
const simulation=d3.forceSimulation(Object.values(nodes))
|
| 299 |
-
.force("link",d3.forceLink(data).id(d=>d.id))
|
| 300 |
-
.force("charge",d3.forceManyBody().strength(-100))
|
| 301 |
-
.force("center",d3.forceCenter(width/2,height/2));
|
| 302 |
-
|
| 303 |
-
const link=svg.selectAll("line").data(data).enter().append("line");
|
| 304 |
-
const node=svg.selectAll("circle").data(Object.values(nodes)).enter().append("circle").attr("r",5);
|
| 305 |
-
|
| 306 |
-
simulation.on("tick",()=>{
|
| 307 |
-
link.attr("x1",d=>d.source.x).attr("y1",d=>d.source.y)
|
| 308 |
-
.attr("x2",d=>d.target.x).attr("y2",d=>d.target.y);
|
| 309 |
-
node.attr("cx",d=>d.x).attr("cy",d=>d.y);
|
| 310 |
-
});
|
| 311 |
}
|
| 312 |
-
|
| 313 |
-
|
| 314 |
-
|
| 315 |
-
|
|
|
|
| 316 |
}
|
| 317 |
-
|
| 318 |
-
|
| 319 |
-
|
| 320 |
-
|
| 321 |
-
|
| 322 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 323 |
}
|
| 324 |
-
|
| 325 |
-
|
| 326 |
-
|
| 327 |
-
let html="";
|
| 328 |
-
data.forEach(d=>html+=`<p>Node ${d.node}: ${d.score}</p>`);
|
| 329 |
-
document.getElementById("gnn").innerHTML=html;
|
| 330 |
}
|
| 331 |
-
|
| 332 |
-
|
| 333 |
-
|
| 334 |
-
|
| 335 |
-
|
| 336 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 337 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 338 |
|
| 339 |
-
|
| 340 |
-
|
| 341 |
-
|
| 342 |
-
|
| 343 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 344 |
}
|
| 345 |
|
| 346 |
-
|
| 347 |
-
|
| 348 |
-
|
| 349 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 350 |
}
|
| 351 |
|
| 352 |
-
|
| 353 |
-
setInterval(()=>{
|
| 354 |
-
const k=document.getElementById("keyword").value;
|
| 355 |
-
if(k) runAnalysis();
|
| 356 |
-
},5000);
|
| 357 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 358 |
</script>
|
| 359 |
-
|
| 360 |
</body>
|
| 361 |
</html>
|
|
|
|
| 2 |
<html lang="id">
|
| 3 |
<head>
|
| 4 |
<meta charset="UTF-8">
|
| 5 |
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
| 6 |
+
<title>SentiScope — Social Media Intelligence</title>
|
| 7 |
+
<link rel="preconnect" href="https://fonts.googleapis.com">
|
| 8 |
+
<link href="https://fonts.googleapis.com/css2?family=Cabinet+Grotesk:wght@400;500;700;800&family=JetBrains+Mono:wght@300;400;500&display=swap" rel="stylesheet">
|
|
|
|
|
|
|
| 9 |
<style>
|
| 10 |
+
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
|
| 11 |
+
:root {
|
| 12 |
+
--bg: #080a0f;
|
| 13 |
+
--s1: #0e1117;
|
| 14 |
+
--s2: #141820;
|
| 15 |
+
--b1: rgba(255,255,255,0.06);
|
| 16 |
+
--b2: rgba(255,255,255,0.10);
|
| 17 |
+
--text: #e8eaf0;
|
| 18 |
+
--muted: #4a5568;
|
| 19 |
+
--muted2: #8892a4;
|
| 20 |
+
--accent: #4f9cf9;
|
| 21 |
+
--a2: #7b61ff;
|
| 22 |
+
--green: #22c55e;
|
| 23 |
+
--display: 'Cabinet Grotesk', sans-serif;
|
| 24 |
+
--mono: 'JetBrains Mono', monospace;
|
| 25 |
}
|
| 26 |
+
html { scroll-behavior: smooth; }
|
| 27 |
+
body { font-family: var(--display); background: var(--bg); color: var(--text); min-height: 100vh; overflow-x: hidden; }
|
| 28 |
+
|
| 29 |
+
body::before {
|
| 30 |
+
content: '';
|
| 31 |
+
position: fixed; inset: 0;
|
| 32 |
+
background-image: linear-gradient(rgba(79,156,249,0.025) 1px, transparent 1px), linear-gradient(90deg, rgba(79,156,249,0.025) 1px, transparent 1px);
|
| 33 |
+
background-size: 64px 64px;
|
| 34 |
+
pointer-events: none; z-index: 0;
|
| 35 |
}
|
| 36 |
|
| 37 |
+
.orb { position: fixed; border-radius: 50%; filter: blur(130px); pointer-events: none; z-index: 0; }
|
| 38 |
+
.orb-1 { width: 600px; height: 600px; background: rgba(79,156,249,0.07); top: -250px; right: -150px; }
|
| 39 |
+
.orb-2 { width: 500px; height: 500px; background: rgba(123,97,255,0.06); bottom: 100px; left: -200px; }
|
| 40 |
+
|
| 41 |
+
/* NAV */
|
| 42 |
+
nav {
|
| 43 |
+
position: fixed; top: 0; left: 0; right: 0; z-index: 100;
|
| 44 |
+
display: flex; align-items: center; justify-content: space-between;
|
| 45 |
+
padding: 1rem 3rem;
|
| 46 |
+
background: rgba(8,10,15,0.75);
|
| 47 |
+
backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
|
| 48 |
+
border-bottom: 1px solid var(--b1);
|
| 49 |
+
}
|
| 50 |
+
.nav-brand { display: flex; align-items: center; gap: 0.65rem; text-decoration: none; }
|
| 51 |
+
.brand-icon {
|
| 52 |
+
width: 30px; height: 30px; border-radius: 8px;
|
| 53 |
+
background: linear-gradient(135deg, var(--accent), var(--a2));
|
| 54 |
+
display: flex; align-items: center; justify-content: center;
|
| 55 |
+
font-weight: 800; font-size: 0.8rem; color: #fff;
|
| 56 |
+
}
|
| 57 |
+
.brand-name { font-size: 0.95rem; font-weight: 800; letter-spacing: -0.02em; color: var(--text); }
|
| 58 |
+
.brand-name b { color: var(--accent); font-weight: 800; }
|
| 59 |
+
nav ul { display: flex; gap: 2rem; list-style: none; }
|
| 60 |
+
nav ul a { font-family: var(--mono); font-size: 0.65rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted2); text-decoration: none; transition: color .2s; }
|
| 61 |
+
nav ul a:hover { color: var(--text); }
|
| 62 |
+
.nav-pill { font-family: var(--mono); font-size: 0.6rem; background: rgba(79,156,249,0.1); color: var(--accent); border: 1px solid rgba(79,156,249,0.22); padding: 0.25rem 0.65rem; border-radius: 20px; letter-spacing: 0.06em; }
|
| 63 |
+
|
| 64 |
+
/* HERO */
|
| 65 |
+
.hero {
|
| 66 |
+
position: relative; z-index: 1;
|
| 67 |
+
min-height: 100vh;
|
| 68 |
+
display: flex; flex-direction: column; align-items: center; justify-content: center;
|
| 69 |
+
padding: 8rem 2rem 5rem; text-align: center;
|
| 70 |
}
|
| 71 |
|
| 72 |
+
.eyebrow {
|
| 73 |
+
display: inline-flex; align-items: center; gap: 0.5rem;
|
| 74 |
+
font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.14em; text-transform: uppercase;
|
| 75 |
+
color: var(--accent); background: rgba(79,156,249,0.08); border: 1px solid rgba(79,156,249,0.18);
|
| 76 |
+
padding: 0.3rem 0.85rem; border-radius: 100px; margin-bottom: 2rem;
|
| 77 |
+
animation: fu 0.6s 0.1s both;
|
| 78 |
+
}
|
| 79 |
+
.eyebrow i { display: inline-block; width: 5px; height: 5px; background: var(--accent); border-radius: 50%; animation: blink 2s infinite; }
|
| 80 |
+
@keyframes blink { 0%,100%{opacity:1;} 50%{opacity:0.3;} }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 81 |
|
| 82 |
+
h1.ht {
|
| 83 |
+
font-size: clamp(3rem, 7.5vw, 6.5rem);
|
| 84 |
+
font-weight: 800; line-height: 0.98; letter-spacing: -0.04em;
|
| 85 |
+
margin-bottom: 1.5rem; animation: fu 0.7s 0.2s both;
|
| 86 |
+
}
|
| 87 |
+
h1.ht .l1 { display: block; color: var(--text); }
|
| 88 |
+
h1.ht .l2 {
|
| 89 |
+
display: block;
|
| 90 |
+
background: linear-gradient(135deg, var(--accent) 20%, var(--a2) 80%);
|
| 91 |
+
-webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
|
| 92 |
+
}
|
| 93 |
+
h1.ht .l3 { display: block; color: var(--muted2); }
|
| 94 |
|
| 95 |
+
.hero-sub {
|
| 96 |
+
max-width: 520px; font-size: 0.95rem; line-height: 1.75; color: var(--muted2);
|
| 97 |
+
margin: 0 auto 2.5rem; animation: fu 0.7s 0.3s both;
|
| 98 |
+
}
|
|
|
|
| 99 |
|
| 100 |
+
/* FORM */
|
| 101 |
+
.form-box {
|
| 102 |
+
width: 100%; max-width: 540px;
|
| 103 |
+
background: var(--s1); border: 1px solid var(--b2); border-radius: 14px;
|
| 104 |
+
padding: 1.75rem; animation: fu 0.7s 0.4s both;
|
| 105 |
+
box-shadow: 0 4px 6px -1px rgba(0,0,0,.3), 0 32px 80px -12px rgba(0,0,0,.5), 0 0 50px rgba(79,156,249,0.06);
|
| 106 |
+
position: relative; overflow: hidden;
|
| 107 |
+
}
|
| 108 |
+
.form-box::after {
|
| 109 |
+
content:''; position:absolute; top:0;left:0;right:0; height:1px;
|
| 110 |
+
background: linear-gradient(90deg, transparent 5%, rgba(79,156,249,0.5) 50%, transparent 95%);
|
| 111 |
+
}
|
| 112 |
|
| 113 |
+
.f-row { display: grid; grid-template-columns: 1fr auto; gap: 0.6rem; margin-bottom: 0.75rem; }
|
| 114 |
|
| 115 |
+
.f-group { display: flex; flex-direction: column; gap: 0.35rem; }
|
| 116 |
+
.f-group label { font-family: var(--mono); font-size: 0.58rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
|
| 117 |
|
| 118 |
+
.f-input {
|
| 119 |
+
font-family: var(--mono); font-size: 0.88rem;
|
| 120 |
+
background: var(--s2); border: 1px solid var(--b2); border-radius: 7px;
|
| 121 |
+
padding: 0.7rem 0.9rem; color: var(--text); outline: none; width: 100%;
|
| 122 |
+
transition: border-color .2s, box-shadow .2s;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 123 |
}
|
| 124 |
+
.f-input::placeholder { color: var(--muted); }
|
| 125 |
+
.f-input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(79,156,249,0.12); }
|
| 126 |
+
select.f-input {
|
| 127 |
+
appearance: none; cursor: pointer;
|
| 128 |
+
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%234a5568' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
|
| 129 |
+
background-repeat: no-repeat; background-position: right 0.8rem center; padding-right: 2.2rem;
|
| 130 |
+
background-color: var(--s2);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 131 |
}
|
| 132 |
|
| 133 |
+
.btn-go {
|
| 134 |
+
align-self: flex-end;
|
| 135 |
+
background: linear-gradient(135deg, var(--accent), var(--a2));
|
| 136 |
+
color: #fff; border: none; border-radius: 7px;
|
| 137 |
+
padding: 0.7rem 1.3rem;
|
| 138 |
+
font-family: var(--display); font-size: 0.85rem; font-weight: 700;
|
| 139 |
+
cursor: pointer; display: flex; align-items: center; gap: 0.35rem;
|
| 140 |
+
transition: opacity .2s, transform .15s, box-shadow .2s;
|
| 141 |
+
white-space: nowrap;
|
| 142 |
+
box-shadow: 0 4px 20px rgba(79,156,249,0.28);
|
| 143 |
+
}
|
| 144 |
+
.btn-go:hover { opacity: 0.88; transform: translateY(-1px); box-shadow: 0 8px 28px rgba(79,156,249,0.38); }
|
| 145 |
+
.btn-go:active { transform: translateY(0); }
|
| 146 |
|
| 147 |
+
.f-hint { font-family: var(--mono); font-size: 0.58rem; color: var(--muted); margin-top: 0.65rem; }
|
| 148 |
+
.f-hint b { color: var(--muted2); }
|
| 149 |
|
| 150 |
+
/* STATS */
|
| 151 |
+
.stats {
|
| 152 |
+
display: flex; gap: 0; margin-top: 2.5rem;
|
| 153 |
+
background: var(--s1); border: 1px solid var(--b2); border-radius: 10px; overflow: hidden;
|
| 154 |
+
animation: fu 0.7s 0.5s both;
|
| 155 |
}
|
| 156 |
+
.stat {
|
| 157 |
+
flex: 1; padding: 1rem 1.5rem;
|
| 158 |
+
display: flex; flex-direction: column; gap: 0.2rem; align-items: center;
|
| 159 |
+
border-right: 1px solid var(--b1); transition: background .2s;
|
|
|
|
|
|
|
| 160 |
}
|
| 161 |
+
.stat:last-child { border-right: none; }
|
| 162 |
+
.stat:hover { background: var(--s2); }
|
| 163 |
+
.stat-n {
|
| 164 |
+
font-size: 1.4rem; font-weight: 800; letter-spacing: -0.03em;
|
| 165 |
+
background: linear-gradient(135deg, var(--text), var(--muted2));
|
| 166 |
+
-webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
|
| 167 |
}
|
| 168 |
+
.stat-l { font-family: var(--mono); font-size: 0.55rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
|
| 169 |
|
| 170 |
+
/* SCROLL */
|
| 171 |
+
.scroll-down {
|
| 172 |
+
position: absolute; bottom: 2.5rem; left: 50%; transform: translateX(-50%);
|
| 173 |
+
display: flex; flex-direction: column; align-items: center; gap: 0.4rem;
|
| 174 |
+
animation: fu 1s 0.8s both;
|
|
|
|
|
|
|
|
|
|
|
|
|
| 175 |
}
|
| 176 |
+
.scroll-down span { font-family: var(--mono); font-size: 0.5rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
|
| 177 |
+
.scroll-mouse { width: 18px; height: 26px; border: 1.5px solid var(--b2); border-radius: 9px; display: flex; align-items: flex-start; justify-content: center; padding-top: 4px; }
|
| 178 |
+
.scroll-dot { width: 2px; height: 5px; background: var(--accent); border-radius: 1px; animation: sd 1.5s infinite; }
|
| 179 |
+
@keyframes sd { 0%{opacity:1;transform:translateY(0)} 100%{opacity:0;transform:translateY(7px)} }
|
| 180 |
+
|
| 181 |
+
/* FEATURES */
|
| 182 |
+
.sec { position: relative; z-index: 1; max-width: 1200px; margin: 0 auto; padding: 5rem 3rem; }
|
| 183 |
+
.sec-tag { font-family: var(--mono); font-size: 0.58rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent); margin-bottom: 0.75rem; }
|
| 184 |
+
.sec-h { font-size: 2.4rem; font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; margin-bottom: 3rem; }
|
| 185 |
+
.sec-h em { font-style: normal; color: var(--muted2); }
|
| 186 |
+
|
| 187 |
+
.feat-grid {
|
| 188 |
+
display: grid; grid-template-columns: repeat(4, 1fr);
|
| 189 |
+
gap: 1px; background: var(--b1); border: 1px solid var(--b1); border-radius: 12px; overflow: hidden;
|
| 190 |
}
|
| 191 |
+
.feat {
|
| 192 |
+
background: var(--s1); padding: 1.75rem 1.5rem;
|
| 193 |
+
display: flex; flex-direction: column; gap: 0.9rem;
|
| 194 |
+
transition: background .2s;
|
| 195 |
+
opacity: 0; transform: translateY(16px); transition: opacity .45s, transform .45s, background .2s;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 196 |
}
|
| 197 |
+
.feat.vis { opacity: 1; transform: translateY(0); }
|
| 198 |
+
.feat:hover { background: var(--s2); }
|
| 199 |
+
.feat-ico {
|
| 200 |
+
width: 38px; height: 38px; border-radius: 9px;
|
| 201 |
+
display: flex; align-items: center; justify-content: center; font-size: 1rem;
|
| 202 |
}
|
| 203 |
+
.ic-b { background: rgba(79,156,249,0.1); }
|
| 204 |
+
.ic-p { background: rgba(123,97,255,0.1); }
|
| 205 |
+
.ic-g { background: rgba(34,197,94,0.1); }
|
| 206 |
+
.ic-a { background: rgba(245,158,11,0.1); }
|
| 207 |
+
.feat-name { font-size: 0.88rem; font-weight: 700; }
|
| 208 |
+
.feat-desc { font-family: var(--mono); font-size: 0.65rem; line-height: 1.7; color: var(--muted2); }
|
| 209 |
+
|
| 210 |
+
/* PIPELINE */
|
| 211 |
+
.pipe-wrap {
|
| 212 |
+
display: grid; grid-template-columns: repeat(5, 1fr);
|
| 213 |
+
position: relative; gap: 0;
|
| 214 |
}
|
| 215 |
+
.pipe-wrap::before {
|
| 216 |
+
content: ''; position: absolute; top: 27px; left: 9%; right: 9%; height: 1px;
|
| 217 |
+
background: linear-gradient(90deg, transparent, var(--b2), rgba(79,156,249,0.4), var(--b2), transparent);
|
|
|
|
|
|
|
|
|
|
| 218 |
}
|
| 219 |
+
.pipe {
|
| 220 |
+
display: flex; flex-direction: column; align-items: center; gap: 0.9rem;
|
| 221 |
+
padding: 0 0.75rem; text-align: center;
|
| 222 |
+
}
|
| 223 |
+
.pipe-circle {
|
| 224 |
+
width: 54px; height: 54px; border-radius: 50%;
|
| 225 |
+
background: var(--s2); border: 1px solid var(--b2);
|
| 226 |
+
display: flex; align-items: center; justify-content: center;
|
| 227 |
+
font-family: var(--mono); font-size: 0.7rem; color: var(--accent);
|
| 228 |
+
position: relative; z-index: 1; transition: background .2s, border-color .2s;
|
| 229 |
+
}
|
| 230 |
+
.pipe:hover .pipe-circle { background: rgba(79,156,249,0.1); border-color: var(--accent); }
|
| 231 |
+
.pipe-name { font-size: 0.8rem; font-weight: 700; }
|
| 232 |
+
.pipe-info { font-family: var(--mono); font-size: 0.6rem; color: var(--muted2); line-height: 1.5; }
|
| 233 |
+
|
| 234 |
+
/* TECH */
|
| 235 |
+
.tech-band {
|
| 236 |
+
position: relative; z-index: 1;
|
| 237 |
+
border-top: 1px solid var(--b1); border-bottom: 1px solid var(--b1);
|
| 238 |
+
padding: 1.5rem 3rem; display: flex; align-items: center; gap: 2rem; flex-wrap: wrap;
|
| 239 |
+
}
|
| 240 |
+
.tech-lbl { font-family: var(--mono); font-size: 0.58rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
|
| 241 |
+
.tech-chips { display: flex; gap: 0.5rem; flex-wrap: wrap; }
|
| 242 |
+
.chip {
|
| 243 |
+
font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.04em;
|
| 244 |
+
padding: 0.25rem 0.65rem; border-radius: 5px; border: 1px solid var(--b2);
|
| 245 |
+
color: var(--muted2); background: var(--s1); transition: border-color .2s, color .2s;
|
| 246 |
+
white-space: nowrap;
|
| 247 |
+
}
|
| 248 |
+
.chip:hover { border-color: var(--accent); color: var(--accent); }
|
| 249 |
+
.chip.hi { border-color: rgba(79,156,249,0.28); color: var(--accent); background: rgba(79,156,249,0.06); }
|
| 250 |
+
|
| 251 |
+
/* FOOTER */
|
| 252 |
+
footer {
|
| 253 |
+
position: relative; z-index: 1;
|
| 254 |
+
padding: 1.75rem 3rem;
|
| 255 |
+
display: flex; align-items: center; justify-content: space-between;
|
| 256 |
+
border-top: 1px solid var(--b1);
|
| 257 |
+
}
|
| 258 |
+
.footer-l { display: flex; align-items: center; gap: 0.6rem; }
|
| 259 |
+
.footer-copy { font-family: var(--mono); font-size: 0.6rem; color: var(--muted); letter-spacing: 0.04em; }
|
| 260 |
+
.footer-links { display: flex; gap: 1.5rem; }
|
| 261 |
+
.footer-links a { font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); text-decoration: none; transition: color .2s; }
|
| 262 |
+
.footer-links a:hover { color: var(--text); }
|
| 263 |
+
|
| 264 |
+
/* LOADING */
|
| 265 |
+
#loading {
|
| 266 |
+
display: none; position: fixed; inset: 0;
|
| 267 |
+
background: rgba(8,10,15,0.94); z-index: 500;
|
| 268 |
+
flex-direction: column; align-items: center; justify-content: center; gap: 1.75rem;
|
| 269 |
+
backdrop-filter: blur(12px);
|
| 270 |
}
|
| 271 |
+
#loading.on { display: flex; }
|
| 272 |
+
.ld-icon {
|
| 273 |
+
width: 54px; height: 54px; border-radius: 13px;
|
| 274 |
+
background: linear-gradient(135deg, var(--accent), var(--a2));
|
| 275 |
+
display: flex; align-items: center; justify-content: center;
|
| 276 |
+
font-weight: 800; font-size: 1.4rem; color: #fff;
|
| 277 |
+
animation: breathe 2s ease-in-out infinite;
|
| 278 |
+
}
|
| 279 |
+
@keyframes breathe { 0%,100%{transform:scale(1)} 50%{transform:scale(1.06)} }
|
| 280 |
+
.ld-title { font-size: 1rem; font-weight: 700; color: var(--text); letter-spacing: -0.02em; }
|
| 281 |
+
.ld-step { font-family: var(--mono); font-size: 0.68rem; color: var(--muted2); transition: opacity .3s; }
|
| 282 |
+
.ld-bar { width: 260px; height: 2px; background: var(--s2); border-radius: 1px; overflow: hidden; }
|
| 283 |
+
.ld-fill { height: 100%; background: linear-gradient(90deg, var(--accent), var(--a2)); animation: sweep 1.8s ease-in-out infinite; border-radius: 1px; }
|
| 284 |
+
@keyframes sweep { 0%{transform:translateX(-100%);width:35%} 50%{width:55%} 100%{transform:translateX(280%);width:35%} }
|
| 285 |
+
|
| 286 |
+
/* ANIM */
|
| 287 |
+
@keyframes fu { from{opacity:0;transform:translateY(18px)} to{opacity:1;transform:translateY(0)} }
|
| 288 |
+
|
| 289 |
+
/* RESPONSIVE */
|
| 290 |
+
@media(max-width:900px){
|
| 291 |
+
nav { padding: 1rem 1.5rem; }
|
| 292 |
+
nav ul { display: none; }
|
| 293 |
+
.hero { padding: 6rem 1.5rem 4rem; }
|
| 294 |
+
h1.ht { font-size: 2.8rem; }
|
| 295 |
+
.f-row { grid-template-columns: 1fr; }
|
| 296 |
+
.btn-go { width: 100%; justify-content: center; }
|
| 297 |
+
.sec { padding: 3.5rem 1.5rem; }
|
| 298 |
+
.feat-grid { grid-template-columns: 1fr 1fr; }
|
| 299 |
+
.pipe-wrap { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
|
| 300 |
+
.pipe-wrap::before { display: none; }
|
| 301 |
+
.tech-band { padding: 1.2rem 1.5rem; }
|
| 302 |
+
footer { padding: 1.5rem; flex-direction: column; gap: 1rem; align-items: flex-start; }
|
| 303 |
+
}
|
| 304 |
+
</style>
|
| 305 |
+
</head>
|
| 306 |
+
<body>
|
| 307 |
+
|
| 308 |
+
<div class="orb orb-1"></div>
|
| 309 |
+
<div class="orb orb-2"></div>
|
| 310 |
|
| 311 |
+
<!-- LOADING -->
|
| 312 |
+
<div id="loading">
|
| 313 |
+
<div class="ld-icon">S</div>
|
| 314 |
+
<div class="ld-title">Sedang menganalisis…</div>
|
| 315 |
+
<div class="ld-step" id="ld-step">Menghubungkan ke sumber data</div>
|
| 316 |
+
<div class="ld-bar"><div class="ld-fill"></div></div>
|
| 317 |
+
</div>
|
| 318 |
+
|
| 319 |
+
<!-- NAV -->
|
| 320 |
+
<nav>
|
| 321 |
+
<a href="/" class="nav-brand">
|
| 322 |
+
<div class="brand-icon">S</div>
|
| 323 |
+
<span class="brand-name">Senti<b>Scope</b></span>
|
| 324 |
+
</a>
|
| 325 |
+
<ul>
|
| 326 |
+
<li><a href="#fitur">Fitur</a></li>
|
| 327 |
+
<li><a href="#pipeline">Pipeline</a></li>
|
| 328 |
+
<li><a href="#stack">Stack</a></li>
|
| 329 |
+
</ul>
|
| 330 |
+
<span class="nav-pill">v2.0 · IndoBERT</span>
|
| 331 |
+
</nav>
|
| 332 |
+
|
| 333 |
+
<!-- HERO -->
|
| 334 |
+
<section class="hero">
|
| 335 |
+
<div class="eyebrow"><i></i> Platform Analisis Sentimen Media Sosial</div>
|
| 336 |
+
|
| 337 |
+
<h1 class="ht">
|
| 338 |
+
<span class="l1">Petakan Opini</span>
|
| 339 |
+
<span class="l2">Publik Digital</span>
|
| 340 |
+
<span class="l3">Secara Real-time</span>
|
| 341 |
+
</h1>
|
| 342 |
+
|
| 343 |
+
<p class="hero-sub">
|
| 344 |
+
Analisis sentimen berbasis IndoBERT & RoBERTa untuk YouTube dan Reddit —
|
| 345 |
+
dilengkapi deteksi bot, topic modeling LDA, dan visualisasi jaringan GNN.
|
| 346 |
+
</p>
|
| 347 |
+
|
| 348 |
+
<div class="form-box">
|
| 349 |
+
<div class="f-row">
|
| 350 |
+
<div class="f-group">
|
| 351 |
+
<label for="keyword">Kata Kunci / Topik</label>
|
| 352 |
+
<input type="text" id="keyword" class="f-input" placeholder="IKN, pemilu, BBM subsidi…" autocomplete="off">
|
| 353 |
+
</div>
|
| 354 |
+
<button class="btn-go" onclick="go()">Analisis →</button>
|
| 355 |
+
</div>
|
| 356 |
+
<div class="f-group">
|
| 357 |
+
<label for="source">Sumber Data</label>
|
| 358 |
+
<select id="source" class="f-input">
|
| 359 |
+
<option value="all">Semua Platform (YouTube + Reddit)</option>
|
| 360 |
+
<option value="youtube">YouTube saja</option>
|
| 361 |
+
<option value="reddit">Reddit saja</option>
|
| 362 |
+
</select>
|
| 363 |
+
</div>
|
| 364 |
+
<p class="f-hint">Tekan <b>Enter</b> untuk mulai · Maks. <b>100 komentar</b> per sumber</p>
|
| 365 |
+
</div>
|
| 366 |
+
|
| 367 |
+
<div class="stats">
|
| 368 |
+
<div class="stat"><span class="stat-n">9+</span><span class="stat-l">Analisis</span></div>
|
| 369 |
+
<div class="stat"><span class="stat-n">2</span><span class="stat-l">Sumber</span></div>
|
| 370 |
+
<div class="stat"><span class="stat-n">3</span><span class="stat-l">Model AI</span></div>
|
| 371 |
+
<div class="stat"><span class="stat-n">ID</span><span class="stat-l">Bahasa</span></div>
|
| 372 |
+
</div>
|
| 373 |
+
|
| 374 |
+
<div class="scroll-down">
|
| 375 |
+
<span>Scroll</span>
|
| 376 |
+
<div class="scroll-mouse"><div class="scroll-dot"></div></div>
|
| 377 |
+
</div>
|
| 378 |
+
</section>
|
| 379 |
+
|
| 380 |
+
<!-- FEATURES -->
|
| 381 |
+
<section class="sec" id="fitur">
|
| 382 |
+
<p class="sec-tag">Kapabilitas</p>
|
| 383 |
+
<h2 class="sec-h">Analisis multidimensional <em>dalam satu platform</em></h2>
|
| 384 |
+
<div class="feat-grid">
|
| 385 |
+
<div class="feat">
|
| 386 |
+
<div class="feat-ico ic-b">🧠</div>
|
| 387 |
+
<div class="feat-name">Sentimen NLP</div>
|
| 388 |
+
<p class="feat-desc">Klasifikasi positif / negatif / netral menggunakan transformer IndoBERT fine-tuned pada data bahasa Indonesia.</p>
|
| 389 |
+
</div>
|
| 390 |
+
<div class="feat">
|
| 391 |
+
<div class="feat-ico ic-p">🕸</div>
|
| 392 |
+
<div class="feat-name">Deteksi Bot</div>
|
| 393 |
+
<p class="feat-desc">Identifikasi akun tidak otentik via cosine similarity dan graph centrality dengan threshold adaptif berbasis GNN.</p>
|
| 394 |
+
</div>
|
| 395 |
+
<div class="feat">
|
| 396 |
+
<div class="feat-ico ic-g">📐</div>
|
| 397 |
+
<div class="feat-name">Topic Modeling</div>
|
| 398 |
+
<p class="feat-desc">Ekstraksi topik laten dari komentar menggunakan LDA dengan 3 komponen, disajikan sebagai word cluster.</p>
|
| 399 |
+
</div>
|
| 400 |
+
<div class="feat">
|
| 401 |
+
<div class="feat-ico ic-a">📈</div>
|
| 402 |
+
<div class="feat-name">Prediksi Tren</div>
|
| 403 |
+
<p class="feat-desc">Proyeksi arah sentimen menggunakan regresi linier pada urutan data masuk untuk melihat tren publik.</p>
|
| 404 |
+
</div>
|
| 405 |
+
</div>
|
| 406 |
+
</section>
|
| 407 |
+
|
| 408 |
+
<!-- PIPELINE -->
|
| 409 |
+
<section class="sec" id="pipeline" style="padding-top:0">
|
| 410 |
+
<p class="sec-tag">Cara Kerja</p>
|
| 411 |
+
<h2 class="sec-h">Pipeline <em>end-to-end</em> otomatis</h2>
|
| 412 |
+
<div class="pipe-wrap">
|
| 413 |
+
<div class="pipe"><div class="pipe-circle">01</div><div class="pipe-name">Input</div><div class="pipe-info">Kata kunci & pilih sumber data</div></div>
|
| 414 |
+
<div class="pipe"><div class="pipe-circle">02</div><div class="pipe-name">Scraping</div><div class="pipe-info">Ambil komentar via YouTube & Reddit API</div></div>
|
| 415 |
+
<div class="pipe"><div class="pipe-circle">03</div><div class="pipe-name">Preprocessing</div><div class="pipe-info">Cleaning, normalisasi, stopword removal</div></div>
|
| 416 |
+
<div class="pipe"><div class="pipe-circle">04</div><div class="pipe-name">Inference</div><div class="pipe-info">IndoBERT + GNN + LDA secara paralel</div></div>
|
| 417 |
+
<div class="pipe"><div class="pipe-circle">05</div><div class="pipe-name">Dashboard</div><div class="pipe-info">Visualisasi interaktif + ekspor CSV</div></div>
|
| 418 |
+
</div>
|
| 419 |
+
</section>
|
| 420 |
+
|
| 421 |
+
<!-- TECH -->
|
| 422 |
+
<div class="tech-band" id="stack">
|
| 423 |
+
<span class="tech-lbl">Tech Stack</span>
|
| 424 |
+
<div class="tech-chips">
|
| 425 |
+
<span class="chip hi">IndoBERT</span>
|
| 426 |
+
<span class="chip hi">RoBERTa-ID</span>
|
| 427 |
+
<span class="chip hi">GNN</span>
|
| 428 |
+
<span class="chip">Flask</span>
|
| 429 |
+
<span class="chip">PyTorch</span>
|
| 430 |
+
<span class="chip">scikit-learn</span>
|
| 431 |
+
<span class="chip">NetworkX</span>
|
| 432 |
+
<span class="chip">LDA</span>
|
| 433 |
+
<span class="chip">YouTube API</span>
|
| 434 |
+
<span class="chip">Reddit PRAW</span>
|
| 435 |
+
<span class="chip">HuggingFace Spaces</span>
|
| 436 |
+
<span class="chip">Docker</span>
|
| 437 |
+
</div>
|
| 438 |
+
</div>
|
| 439 |
+
|
| 440 |
+
<!-- FOOTER -->
|
| 441 |
+
<footer>
|
| 442 |
+
<div class="footer-l">
|
| 443 |
+
<div class="brand-icon" style="width:22px;height:22px;font-size:0.65rem;border-radius:5px">S</div>
|
| 444 |
+
<span class="footer-copy">SentiScope © 2025 — Social Media Intelligence Platform</span>
|
| 445 |
+
</div>
|
| 446 |
+
<div class="footer-links">
|
| 447 |
+
<a href="/">Home</a>
|
| 448 |
+
<a href="/download">Download CSV</a>
|
| 449 |
+
</div>
|
| 450 |
+
</footer>
|
| 451 |
+
|
| 452 |
+
<script>
|
| 453 |
+
const STEPS = [
|
| 454 |
+
'Menghubungkan ke sumber data…',
|
| 455 |
+
'Mengambil komentar YouTube…',
|
| 456 |
+
'Mengambil thread Reddit…',
|
| 457 |
+
'Menjalankan model IndoBERT…',
|
| 458 |
+
'Menghitung topic modeling LDA…',
|
| 459 |
+
'Menganalisis jaringan bot…',
|
| 460 |
+
'Menyusun hasil visualisasi…',
|
| 461 |
+
];
|
| 462 |
+
let si = 0, st;
|
| 463 |
+
|
| 464 |
+
function tick() {
|
| 465 |
+
si = (si + 1) % STEPS.length;
|
| 466 |
+
const el = document.getElementById('ld-step');
|
| 467 |
+
el.style.opacity = 0;
|
| 468 |
+
setTimeout(() => { el.textContent = STEPS[si]; el.style.opacity = 1; }, 250);
|
| 469 |
+
st = setTimeout(tick, 2000);
|
| 470 |
}
|
| 471 |
|
| 472 |
+
async function go() {
|
| 473 |
+
const kw = document.getElementById('keyword').value.trim();
|
| 474 |
+
const src = document.getElementById('source').value;
|
| 475 |
+
if (!kw) {
|
| 476 |
+
const inp = document.getElementById('keyword');
|
| 477 |
+
inp.style.borderColor = '#ef4444';
|
| 478 |
+
inp.focus();
|
| 479 |
+
setTimeout(() => inp.style.borderColor = '', 1500);
|
| 480 |
+
return;
|
| 481 |
+
}
|
| 482 |
+
document.getElementById('loading').classList.add('on');
|
| 483 |
+
document.getElementById('ld-step').textContent = STEPS[0];
|
| 484 |
+
st = setTimeout(tick, 2000);
|
| 485 |
+
try {
|
| 486 |
+
const r = await fetch('/analyze', {
|
| 487 |
+
method: 'POST',
|
| 488 |
+
headers: { 'Content-Type': 'application/json' },
|
| 489 |
+
body: JSON.stringify({ keyword: kw, source: src })
|
| 490 |
+
});
|
| 491 |
+
const d = await r.json();
|
| 492 |
+
clearTimeout(st);
|
| 493 |
+
document.getElementById('loading').classList.remove('on');
|
| 494 |
+
sessionStorage.setItem('analysisResult', JSON.stringify({ keyword: kw, source: src, ...d }));
|
| 495 |
+
window.location.href = '/result';
|
| 496 |
+
} catch(e) {
|
| 497 |
+
clearTimeout(st);
|
| 498 |
+
document.getElementById('loading').classList.remove('on');
|
| 499 |
+
alert('Terjadi kesalahan. Periksa koneksi dan konfigurasi API key.');
|
| 500 |
+
}
|
| 501 |
}
|
| 502 |
|
| 503 |
+
document.getElementById('keyword').addEventListener('keydown', e => { if (e.key === 'Enter') go(); });
|
|
|
|
|
|
|
|
|
|
|
|
|
| 504 |
|
| 505 |
+
// Feature reveal
|
| 506 |
+
const feats = document.querySelectorAll('.feat');
|
| 507 |
+
const io = new IntersectionObserver(entries => {
|
| 508 |
+
entries.forEach((e, i) => { if (e.isIntersecting) setTimeout(() => e.target.classList.add('vis'), i * 80); });
|
| 509 |
+
}, { threshold: 0.1 });
|
| 510 |
+
feats.forEach(f => io.observe(f));
|
| 511 |
</script>
|
|
|
|
| 512 |
</body>
|
| 513 |
</html>
|