Skip to content

Commit 95f76dc

Browse files
committed
ux: add explainer section to pipeline demo page
1 parent dfd87e3 commit 95f76dc

2 files changed

Lines changed: 102 additions & 0 deletions

File tree

β€Žclient/src/App.cssβ€Ž

Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,73 @@ body::before {
181181
font-size: 0.85rem;
182182
}
183183

184+
/* ---- Demo Explainer ---- */
185+
.demo-explainer {
186+
background: var(--bg-glass);
187+
backdrop-filter: blur(20px);
188+
border: 1px solid var(--border-dim);
189+
border-radius: 16px;
190+
padding: 1.2rem 1.5rem;
191+
margin-bottom: 1.2rem;
192+
}
193+
194+
.demo-explainer h2 {
195+
font-size: 1rem;
196+
color: var(--text);
197+
margin-bottom: 0.5rem;
198+
}
199+
200+
.demo-explainer>p {
201+
font-size: 0.85rem;
202+
color: var(--text-secondary);
203+
line-height: 1.5;
204+
margin-bottom: 0.8rem;
205+
}
206+
207+
.explainer-steps {
208+
display: flex;
209+
flex-direction: column;
210+
gap: 0.4rem;
211+
margin-bottom: 0.8rem;
212+
}
213+
214+
.explainer-step {
215+
display: flex;
216+
align-items: center;
217+
gap: 0.6rem;
218+
font-size: 0.82rem;
219+
color: var(--text);
220+
}
221+
222+
.explainer-num {
223+
width: 22px;
224+
height: 22px;
225+
border-radius: 50%;
226+
background: rgba(52, 211, 153, 0.12);
227+
color: var(--accent);
228+
font-size: 0.7rem;
229+
font-weight: 700;
230+
display: flex;
231+
align-items: center;
232+
justify-content: center;
233+
flex-shrink: 0;
234+
}
235+
236+
.explainer-cta {
237+
font-size: 0.8rem;
238+
color: var(--text-secondary);
239+
}
240+
241+
.explainer-cta a {
242+
color: var(--accent);
243+
text-decoration: none;
244+
font-weight: 600;
245+
}
246+
247+
.explainer-cta a:hover {
248+
text-decoration: underline;
249+
}
250+
184251
/* ---- Pipeline Visualization ---- */
185252
.pipeline-section {
186253
margin-bottom: 1.2rem;

β€Žclient/src/App.tsxβ€Ž

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -784,6 +784,41 @@ function App() {
784784
</p>
785785
</header>
786786

787+
{/* Intro Explainer */}
788+
<section className="demo-explainer">
789+
<h2>🎯 What is this?</h2>
790+
<p>
791+
This demo runs the <strong>full lifecycle</strong> of a TaskForest bounty in one click:
792+
a poster creates a job with real SOL escrowed, workers bid gaslessly on an Ephemeral Rollup,
793+
the winner locks stake, submits proof, and gets paid on-chain.
794+
</p>
795+
<div className="explainer-steps">
796+
<div className="explainer-step">
797+
<span className="explainer-num">1</span>
798+
<span><strong>Create</strong> β€” Post job + escrow 0.05 SOL reward into PDA</span>
799+
</div>
800+
<div className="explainer-step">
801+
<span className="explainer-num">2</span>
802+
<span><strong>Delegate</strong> β€” Push job to MagicBlock ER for fast bidding</span>
803+
</div>
804+
<div className="explainer-step">
805+
<span className="explainer-num">3</span>
806+
<span><strong>Bid</strong> β€” Worker bids gaslessly on ER (&lt;50ms, 0 gas)</span>
807+
</div>
808+
<div className="explainer-step">
809+
<span className="explainer-num">4</span>
810+
<span><strong>Close</strong> β€” Select winner, commit result back to L1</span>
811+
</div>
812+
<div className="explainer-step">
813+
<span className="explainer-num">5</span>
814+
<span><strong>Stake β†’ Prove β†’ Settle</strong> β€” Lock deposit, submit proof, get paid</span>
815+
</div>
816+
</div>
817+
<p className="explainer-cta">
818+
Want to try it with two wallets? <a href="/board">Go to the Job Board β†’</a>
819+
</p>
820+
</section>
821+
787822
{/* Pipeline Visualization */}
788823
<section className="pipeline-section">
789824
<div className="pipeline-container">

0 commit comments

Comments
Β (0)