Skip to content

Commit 8ae2092

Browse files
committed
Merge branch 'v3-hello-world' of github.com:iExecBlockchainComputing/documentation-tools into v3-hello-world
2 parents 11c57d3 + 1cb02ad commit 8ae2092

File tree

11 files changed

+77
-124
lines changed

11 files changed

+77
-124
lines changed

.vitepress/theme/hello-world-style.css

Lines changed: 22 additions & 65 deletions
Original file line numberDiff line numberDiff line change
@@ -281,96 +281,53 @@
281281

282282
/* Solution note */
283283

284-
.solution-note-purple {
285-
background: linear-gradient(
286-
135deg,
287-
rgba(156, 39, 176, 0.1),
288-
rgba(156, 39, 176, 0.05)
289-
);
284+
.solution-note {
285+
background: linear-gradient(135deg, #ce2c681a, #ce2c680d);
290286
border-radius: var(--border-radius);
291287
padding: 1.5rem;
292288
margin: 1.5rem 0;
293-
border-left: 4px solid #9c27b0;
289+
border-left: 4px solid #ce2c68;
294290
}
295291

296-
.solution-note-purple p {
292+
.solution-note p {
297293
margin: 0;
298294
color: var(--vp-c-text-1);
299295
font-weight: 500;
300296
}
297+
.solution-note .highlight {
298+
color: #ce2c68;
299+
font-weight: 600;
300+
}
301301

302-
.solution-note-purple .highlight {
302+
.solution-note.purple .highlight {
303303
color: #9c27b0;
304304
font-weight: 600;
305305
}
306306

307-
.solution-note-blue {
308-
background: linear-gradient(
309-
135deg,
310-
rgba(66, 165, 245, 0.1),
311-
rgba(66, 165, 245, 0.05)
312-
);
313-
border-radius: var(--border-radius);
314-
padding: 1.5rem;
315-
margin: 1.5rem 0;
316-
border-left: 4px solid #42a5f5;
307+
.solution-note.purple {
308+
background: linear-gradient(135deg, #9c27b01a, #9c27b00d);
309+
border-left: 4px solid #9c27b0;
317310
}
318311

319-
.solution-note-blue p {
320-
margin: 0;
321-
color: var(--vp-c-text-1);
322-
font-weight: 500;
312+
.solution-note.purple .highlight {
313+
color: #9c27b0;
314+
}
315+
316+
/* .solution-note-blue {
317+
background: linear-gradient(135deg, #42a5f51a, #42a5f50d);
323318
}
324319
325320
.solution-note-blue .highlight {
326321
color: #42a5f5;
327-
font-weight: 600;
328-
}
322+
} */
329323

330-
.solution-note-green {
331-
background: linear-gradient(
332-
135deg,
333-
rgba(76, 175, 80, 0.1),
334-
rgba(76, 175, 80, 0.05)
335-
);
336-
border-radius: var(--border-radius);
337-
padding: 1.5rem;
338-
margin: 1.5rem 0;
324+
.solution-note.green {
325+
background: linear-gradient(135deg, #4caf501a, #4caf500d);
339326
border-left: 4px solid #4caf50;
340327
}
341328

342-
.solution-note-green p {
343-
margin: 0;
344-
color: var(--vp-c-text-1);
345-
font-weight: 500;
346-
}
347-
348-
.solution-note-green .highlight {
329+
.solution-note.green .highlight {
349330
color: #4caf50;
350-
font-weight: 600;
351-
}
352-
353-
.solution-note {
354-
background: linear-gradient(
355-
135deg,
356-
rgba(206, 44, 104, 0.1),
357-
rgba(206, 44, 104, 0.05)
358-
);
359-
border-radius: var(--border-radius);
360-
padding: 1.5rem;
361-
margin: 1.5rem 0;
362-
border-left: 4px solid #ce2c68;
363-
}
364-
365-
.solution-note p {
366-
margin: 0;
367-
color: var(--vp-c-text-1);
368-
font-weight: 500;
369-
}
370-
371-
.solution-note .highlight {
372-
color: #ce2c68;
373-
font-weight: 600;
374331
}
375332

376333
/* Features grid */

components/CouponCode.vue

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33
<div v-if="!walletAddress" class="connect-section">
44
<div class="connect-message">
55
<p>
6-
<b
7-
>🔑 Get your unique coupon code (it will be asked during the voucher
8-
claim process)</b
9-
>
6+
<b>
7+
🔑 Get your unique coupon code (it will be asked during the voucher
8+
claim process)
9+
</b>
1010
</p>
1111
</div>
1212
<MetamaskButton />

components/GrantAccess.vue

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -50,21 +50,23 @@
5050

5151
<p class="address-label">
5252
Authorized user
53-
<span class="note-text"
54-
>(As we don't have Bob wallet we use the Zero address to grant access
55-
to all users for the demo)</span
56-
>:
53+
<span class="note-text">
54+
(As we don't have Bob wallet we use the Zero address to grant access
55+
to all users for the demo)
56+
</span>
57+
:
5758
</p>
5859
<div class="address-container">
5960
{{ '0x0000000000000000000000000000000000000000' }}
6061
</div>
6162

6263
<p class="address-label">
6364
Dataset Price
64-
<span class="note-text"
65-
>(oohh interesting it means that we could set a price to the protected
66-
data)</span
67-
>:
65+
<span class="note-text">
66+
(oohh interesting it means that we could set a price to the protected
67+
data)
68+
</span>
69+
:
6870
</p>
6971
<div class="address-container">{{ grantedAccess.datasetprice }}</div>
7072
</div>

components/ProtectData.vue

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,10 @@
22
<div class="protect-data-container">
33
<div class="wallet-section">
44
Connect Your Wallet
5-
<a href="https://chainlist.org/?search=bellecour" target="_blank"
6-
>(iExec network)</a
7-
>:
5+
<a href="https://chainlist.org/?search=bellecour" target="_blank">
6+
(iExec network)
7+
</a>
8+
:
89
<div class="ml-2 inline-block">
910
<MetamaskButton @connected="onWalletConnected" />
1011
</div>
@@ -46,9 +47,7 @@
4647
<p class="explorer-link">
4748
You can check it on
4849
<a
49-
:href="
50-
'https://explorer.iex.ec/bellecour/dataset/' + protectedDataAddress
51-
"
50+
:href="`https://explorer.iex.ec/bellecour/dataset/${protectedDataAddress}`"
5251
target="_blank"
5352
rel="noopener noreferrer"
5453
>

overview/helloWorld/0-hello.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@
33
> Reading time 🕒 2 mins
44
55
<div class="hero">
6-
<div >
6+
<div>
77
<h2>Start Your Web3 Privacy Journey</h2>
88
<p>And learn how to build Privacy-preserving decentralized applications (dApps) with iExec in this interactive guide.</p>
99
<div class="hero-time">
10-
<span class="hero-time-badge ">☕ 30 minutes journey</span>
10+
<span class="hero-time-badge">☕ 30 minutes journey</span>
1111
<p>Perfect for hackathon 😊</p>
1212
</div>
1313
</div>
@@ -84,7 +84,7 @@ Before you begin, make sure you have:
8484

8585
<div class="requirement-item">
8686
<div class="req-title">💻 Code Editor <div class="tooltip-container"><svg class="info-icon" viewBox="0 0 24 24" width="14" height="14"><path fill="currentColor" d="M13 7.5a1 1 0 11-2 0 1 1 0 012 0zm-3 3.75a.75.75 0 01.75-.75h1.5a.75.75 0 01.75.75v4.25h.75a.75.75 0 010 1.5h-3a.75.75 0 010-1.5h.75V12h-.75a.75.75 0 01-.75-.75z"/><path fill="currentColor" fill-rule="evenodd" d="M12 1C5.925 1 1 5.925 1 12s4.925 11 11 11 11-4.925 11-11S18.075 1 12 1zM2.5 12a9.5 9.5 0 1119 0 9.5 9.5 0 01-19 0z"/></svg><span class="tooltip-text">If you want to have a more detailed look at the iAppcode, you can use this editor</span></div></div>
87-
<a target="_blank" href="https://code.visualstudio.com/"> Download →</a>
87+
<a target="_blank" href="https://code.visualstudio.com/">Download →</a>
8888
</div>
8989

9090
<div class="requirement-item">
@@ -103,7 +103,7 @@ Before you begin, make sure you have:
103103

104104
</div>
105105

106-
<div class="solution-note-green">
106+
<div class="solution-note green">
107107
<p>Need help setting up or got some questions? Join our <a target="_blank" href="https://discord.gg/tJH8YfSB">Discord Community</a> for support!</p>
108108
</div>
109109

overview/helloWorld/1-overview.md

Lines changed: 7 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<div class="hero">
66
<div class="hero-content">
77
<h2>Let's start with the basics</h2>
8-
<p>and explore how iExec can help you build Privacy-preserving applications and securely manage sensitive data.</p>
8+
<p>and explore how iExec can help you build Privacy-preserving applications and securely manage sensitive data.</p>
99
</div>
1010

1111
</div>
@@ -54,7 +54,7 @@
5454
</div>
5555
</div>
5656

57-
<div class="solution-note-purple">
57+
<div class="solution-note purple">
5858
<p>This is where <span class="highlight">iExec</span> comes in! We provide tools to easily add <span class="highlight">privacy</span> and <span class="highlight">monetization</span> features into your dApp.</p>
5959
</div>
6060

@@ -70,9 +70,9 @@ Execution Environment (TEE)</a></span> and
7070
<span class="highlight"><a target="_blank" href="https://www.iex.ec/academy/iexec-decentralized-confidential-computing">Confidential
7171
Computing</a></span> technologies.
7272

73-
<div class="solution-note-purple">
73+
<div class="solution-note purple">
7474
<p>Our technology allows users to control the <span class="highlight">ownership</span>,
75-
<span class="highlight">confidentiality</span>, and <span class="highlight">monetization</span> of their data and digital assets within the <span class="highlight">Web3</span> ecosystem.</p>
75+
<span class="highlight">confidentiality</span>, and <span class="highlight">monetization</span> of their data and digital assets within the <span class="highlight">Web3</span> ecosystem.</p>
7676
</div>
7777

7878
## 🔒 What are the three key elements?
@@ -98,7 +98,7 @@ iExec combines three fundamental elements that work together seamlessly:
9898
- Regain ownership of your data
9999
- Provides transparent governance rules for data access
100100

101-
<div class="solution-note-purple">
101+
<div class="solution-note purple">
102102
<p>By merging <span class="highlight">blockchain technology</span> with <span class="highlight">confidential computing</span>, we've pioneered <span class="highlight"><a target="_blank" href="https://www.iex.ec/academy/iexec-decentralized-confidential-computing">DeCC</a></span> (Decentralized Confidential Computing) to take <span class="highlight">privacy</span> and <span class="highlight">security</span> to the next level in <span class="highlight">Web3</span> ecosystems.</p>
103103
</div>
104104

@@ -217,7 +217,7 @@ And many other use cases...
217217
</div>
218218
</div>
219219

220-
<div class="solution-note-purple">
220+
<div class="solution-note purple">
221221
<p>In the next chapters, we'll follow Alice and Bob's journey step by step, starting with how Alice can <span class="highlight">protect her sensitive data</span> and then how Bob can <span class="highlight">build and deploy a confidential app</span> to process it.</p>
222222
</div>
223223

@@ -248,11 +248,6 @@ And many other use cases...
248248

249249
</div>
250250

251-
<div class="solution-note-green">
251+
<div class="solution-note green">
252252
<p>Now that you understand the fundamentals, let's dive into protecting your first piece of data! with Alice!</p>
253253
</div>
254-
255-
<style>
256-
257-
258-
</style>

overview/helloWorld/2-protectData.md

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import ProtectData from '../../components/ProtectData.vue';
1313
</div>
1414
</div>
1515

16-
<div class="solution-note-purple">
16+
<div class="solution-note purple">
1717
<p><strong>Protected Data</strong> is encrypted data that remains confidential throughout its entire lifecycle - during storage, transfer and processing.</p>
1818
</div>
1919

@@ -23,7 +23,7 @@ DataProtector is a developer tool built on top of our technology. It helps
2323
developers easily add data protection, management, and monetization features to
2424
their dApps with these key features:
2525

26-
<div >
26+
<div>
2727
<p>🔐 <strong>Data Privacy and Security</strong></p>
2828
<p>Utilizes end-to-end encryption and decentralized storage (<a href="https://ipfs.tech/" target="_blank">IPFS</a>) to ensure protection and confidentiality, leveraging advanced confidential computing technology.</p>
2929
</div>
@@ -38,7 +38,7 @@ their dApps with these key features:
3838
<p>Features an SDK for easy integration into your DApp, enhancing functionality and user experience.</p>
3939
</div>
4040

41-
<div class="solution-note-purple">
41+
<div class="solution-note purple">
4242
<p> DataProtector interacts with iExec's <a href="https://chainlist.org/?search=bellecour" target="_blank">Bellecour sidechain</a>, which is gasless, meaning you can use it completely free without needing any tokens!</p>
4343
</div>
4444

@@ -50,7 +50,7 @@ their dApps with these key features:
5050

5151
## 🧩 What happened under the hood
5252

53-
<div class="solution-note-purple">
53+
<div class="solution-note purple">
5454
<p>You won't believe how easy it is to protect your data with DataProtector. Just a few lines of code, and you're done!</p>
5555
</div>
5656

@@ -110,7 +110,7 @@ Decentralized confidential computing might sound complex, but we've made it
110110
simple through our developer tools.
111111

112112
<div>
113-
<div >
113+
<div>
114114
<p><strong>1. Install the Developer Tool</strong></p>
115115
<p>Run the install command:</p>
116116

@@ -119,14 +119,16 @@ npm install @iexec/dataprotector
119119
```
120120

121121
</div>
122-
<div >
122+
<div>
123123
<p><strong>2. Import and Initialize it in your project</strong></p>
124-
Import the tool
124+
Import the tool
125125

126126
```typescript
127127
import { Address, IExecDataProtector } from '@iexec/dataprotector';
128128
```
129-
create a new instance and call the methods you need
129+
130+
Create a new instance and call the methods you need
131+
130132
</div>
131133
</div>
132134

@@ -139,7 +141,7 @@ const { address: protectedDataAddress } = await dataProtector.protectData({
139141
});
140142
```
141143

142-
<div class="solution-note-purple">
144+
<div class="solution-note purple">
143145
<p>Check out our <a target="_blank" href="https://codesandbox.io/p/github/iExecBlockchainComputing/dataprotector-sandbox/main?file=%2Fsrc%2Fmain.tsx%3A18%2C7">code sandbox</a> for ready-to-use examples!</p>
144146
</div>
145147

@@ -164,6 +166,6 @@ const { address: protectedDataAddress } = await dataProtector.protectData({
164166
</div>
165167
</div>
166168

167-
<div class="solution-note-green">
169+
<div class="solution-note green">
168170
<p>In the next chapter, we'll show you how to build, deploy, and run an iApp to process your protected data. Let's go! 🚀</p>
169171
</div>

0 commit comments

Comments
 (0)