File size: 2,113 Bytes
27d39ac |
1 2 3 4 5 6 7 8 9 10 11 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 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 |
class BinanceTools extends HTMLElement {
connectedCallback() {
this.attachShadow({ mode: 'open' });
this.shadowRoot.innerHTML = `
<style>
.tools-container {
background: white;
border-radius: 12px;
padding: 2rem;
box-shadow: 0 4px 6px rgba(0,0,0,0.1);
margin-top: 2rem;
}
.tool-card {
border: 1px solid #e5e7eb;
border-radius: 8px;
padding: 1.5rem;
margin-bottom: 1rem;
transition: all 0.2s ease;
}
.tool-card:hover {
transform: translateY(-2px);
box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.tool-title {
font-weight: 600;
color: #065f46;
margin-bottom: 0.5rem;
}
.tool-desc {
color: #4b5563;
font-size: 0.9rem;
margin-bottom: 1rem;
}
.btn {
background: #065f46;
color: white;
padding: 0.5rem 1rem;
border-radius: 6px;
font-size: 0.9rem;
display: inline-block;
text-decoration: none;
}
.btn:hover {
background: #047857;
}
</style>
<div class="tools-container">
<div class="tool-card">
<div class="tool-title">Arbitrage Scanner</div>
<div class="tool-desc">Detect price differences across Binance markets for arbitrage opportunities</div>
<a href="#" class="btn">View Tool</a>
</div>
<div class="tool-card">
<div class="tool-title">Hedge Position Manager</div>
<div class="tool-desc">Automate your hedge positions with dynamic rebalancing</div>
<a href="#" class="btn">View Tool</a>
</div>
<div class="tool-card">
<div class="tool-title">Market Maker Bot</div>
<div class="tool-desc">Python-based market making strategy with customizable parameters</div>
<a href="#" class="btn">View Tool</a>
</div>
</div>
`;
}
}
customElements.define('binance-tools', BinanceTools); |