Skip to content

Commit 2830e64

Browse files
authored
Merge branch 'main' into copy-review
2 parents 4768aa2 + 6e65dbc commit 2830e64

25 files changed

+461
-166
lines changed

.vitepress/config.ts

Lines changed: 23 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -100,10 +100,26 @@ export default withMermaid(
100100
themeConfig: {
101101
// https://vitepress.dev/reference/default-theme-config
102102
nav: [
103-
{ text: 'Get Started', link: '/get-started/welcome' },
104-
{ text: 'Guides', link: '/guides/build-iapp/build-&-test' },
105-
{ text: 'References', link: '/references/dataProtector' },
106-
{ text: 'Protocol', link: '/protocol/proof-of-contribution' },
103+
{
104+
text: 'Get Started',
105+
link: '/get-started/welcome',
106+
activeMatch: '^/get-started/',
107+
},
108+
{
109+
text: 'Guides',
110+
link: '/guides/build-iapp/build-&-test',
111+
activeMatch: '^/guides/',
112+
},
113+
{
114+
text: 'References',
115+
link: '/references/dataProtector',
116+
activeMatch: '^/references/',
117+
},
118+
{
119+
text: 'Protocol',
120+
link: '/protocol/proof-of-contribution',
121+
activeMatch: '^/protocol/',
122+
},
107123
{
108124
component: 'ChainSelector',
109125
props: {
@@ -114,6 +130,9 @@ export default withMermaid(
114130
outline: {
115131
level: [2, 4],
116132
},
133+
footer: {
134+
copyright: '© All Rights Reserved iExec 2018-present',
135+
},
117136

118137
sidebar: getSidebar(),
119138

.vitepress/sidebar.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -551,6 +551,7 @@ export function getSidebar() {
551551
},
552552
{
553553
text: 'Workers & Workerpools',
554+
collapsed: false,
554555
items: [
555556
{
556557
text: 'Worker Quick Start',
@@ -564,6 +565,7 @@ export function getSidebar() {
564565
},
565566
{
566567
text: '🔒 TEE Technology',
568+
collapsed: false,
567569
items: [
568570
{
569571
text: 'Introduction to TEE Technologies',

.vitepress/theme/style.css

Lines changed: 143 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -105,18 +105,14 @@
105105
* -------------------------------------------------------------------------- */
106106

107107
:root {
108-
/* --vp-c-text-1: #3c3c43; */
109108
--vp-c-text-1: #1d1d24;
110-
/* --vp-c-text-2: #67676c; */
111109
--vp-c-text-2: #5d5d69;
112110
--vp-c-text-3: #929295;
113111
}
114112

115113
.dark {
116-
/* --vp-c-text-1: #dfdfd6; */
117114
--vp-c-text-1: #fff;
118-
/* --vp-c-text-2: #98989f; */
119-
--vp-c-text-2: #a3a3a8;
115+
--vp-c-text-2: #d3d3d8;
120116
--vp-c-text-3: #6a6a71;
121117
}
122118

@@ -147,6 +143,11 @@
147143
--vp-c-default-3: var(--vp-c-gray-3);
148144
--vp-c-default-soft: var(--vp-c-gray-soft);
149145

146+
--vp-c-info-1: #0067a8;
147+
--vp-c-info-2: var(--vp-c-gray-2);
148+
--vp-c-info-3: var(--vp-c-gray-3);
149+
--vp-c-info-soft: #e9f7ff;
150+
150151
--vp-c-brand-1: #183ee9;
151152
--vp-c-brand-2: var(--vp-c-indigo-2);
152153
--vp-c-brand-3: var(--vp-c-indigo-3);
@@ -172,10 +173,10 @@
172173
--vp-c-important-3: var(--vp-c-purple-3);
173174
--vp-c-important-soft: var(--vp-c-purple-soft);
174175

175-
--vp-c-warning-1: #da7b0b;
176+
--vp-c-warning-1: #a85b00;
176177
--vp-c-warning-2: var(--vp-c-yellow-2);
177178
--vp-c-warning-3: var(--vp-c-yellow-3);
178-
--vp-c-warning-soft: #fdefde;
179+
--vp-c-warning-soft: #fff8ef;
179180

180181
--vp-c-danger-1: #bf3131;
181182
--vp-c-danger-2: var(--vp-c-red-2);
@@ -189,6 +190,9 @@
189190
}
190191

191192
.dark {
193+
--vp-c-info-1: #9edaff;
194+
--vp-c-info-soft: #2b3d4c;
195+
192196
--vp-c-brand-1: #a2b3ff;
193197
--vp-c-brand-soft: #1d2032;
194198

@@ -202,32 +206,98 @@
202206
--vp-c-warning-soft: #312720;
203207
}
204208

209+
/**
210+
* Colors: Background
211+
*
212+
* - `bg`: The bg color used for main screen.
213+
*
214+
* - `bg-alt`: The alternative bg color used in places such as "sidebar",
215+
* or "code block".
216+
*
217+
* - `bg-elv`: The elevated bg color. This is used at parts where it "floats",
218+
* such as "dialog".
219+
*
220+
* - `bg-soft`: The bg color to slightly distinguish some components from
221+
* the page. Used for things like "carbon ads" or "table".
222+
* -------------------------------------------------------------------------- */
223+
224+
:root {
225+
--vp-c-bg: #ffffff;
226+
--vp-c-bg-alt: #f7f9fd;
227+
--vp-c-bg-elv: #ffffff;
228+
--vp-c-bg-soft: #f7f9fd;
229+
}
230+
231+
.dark {
232+
--vp-c-bg: #14141b;
233+
--vp-c-bg-alt: #17171e;
234+
--vp-c-bg-elv: #202127;
235+
--vp-c-bg-soft: #17171e;
236+
}
237+
205238
/**
206239
* Component: Button
207240
* -------------------------------------------------------------------------- */
208241

209242
:root {
210243
--vp-button-brand-border: transparent;
211-
--vp-button-brand-text: var(--vp-c-white);
212-
--vp-button-brand-bg: var(--vp-c-brand-3);
244+
--vp-button-brand-text: #1b1b1f;
245+
--vp-button-brand-bg: #fcd15a;
213246
--vp-button-brand-hover-border: transparent;
214-
--vp-button-brand-hover-text: var(--vp-c-white);
215-
--vp-button-brand-hover-bg: var(--vp-c-brand-2);
247+
--vp-button-brand-hover-text: #1b1b1f;
248+
--vp-button-brand-hover-bg: #f9dd90;
216249
--vp-button-brand-active-border: transparent;
217-
--vp-button-brand-active-text: var(--vp-c-white);
218-
--vp-button-brand-active-bg: var(--vp-c-brand-1);
250+
--vp-button-brand-active-text: #1b1b1f;
251+
--vp-button-brand-active-bg: #f9dd90;
252+
253+
--vp-button-alt-border: var(--vp-c-border);
254+
--vp-button-alt-text: var(--vp-c-text-1);
255+
--vp-button-alt-bg: transparent;
256+
--vp-button-alt-hover-border: var(--vp-c-border);
257+
--vp-button-alt-hover-text: var(--vp-c-text-1);
258+
--vp-button-alt-hover-bg: #ffffff10;
259+
--vp-button-alt-active-border: var(--vp-c-border);
260+
--vp-button-alt-active-text: var(--vp-c-text-1);
261+
--vp-button-alt-active-bg: var(--vp-c-default-1);
219262
}
220263

221264
.dark {
222265
--vp-button-brand-border: transparent;
223266
--vp-button-brand-text: #1b1b1f;
224-
--vp-button-brand-bg: var(--vp-c-brand-3);
267+
--vp-button-brand-bg: #fcd15a;
225268
--vp-button-brand-hover-border: transparent;
226-
--vp-button-brand-hover-text: var(--vp-c-white);
227-
--vp-button-brand-hover-bg: var(--vp-c-brand-2);
269+
--vp-button-brand-hover-text: #1b1b1f;
270+
--vp-button-brand-hover-bg: #f9dd90;
228271
--vp-button-brand-active-border: transparent;
229-
--vp-button-brand-active-text: var(--vp-c-white);
230-
--vp-button-brand-active-bg: var(--vp-c-brand-1);
272+
--vp-button-brand-active-text: #1b1b1f;
273+
--vp-button-brand-active-bg: #f9dd90;
274+
275+
--vp-button-alt-hover-bg: #00000020;
276+
}
277+
278+
/**
279+
* Colors: Borders
280+
*
281+
* - `divider`: This is used for separators. This is used to divide sections
282+
* within the same components, such as having separator on "h2" heading.
283+
*
284+
* - `border`: This is designed for borders on interactive components.
285+
* For example this should be used for a button outline.
286+
*
287+
* - `gutter`: This is used to divide components in the page. For example
288+
* the header and the lest of the page.
289+
* -------------------------------------------------------------------------- */
290+
291+
:root {
292+
--vp-c-border: #c2c2c4;
293+
--vp-c-divider: #d3d3d8;
294+
--vp-c-gutter: #e2e2e3;
295+
}
296+
297+
.dark {
298+
--vp-c-border: #3c3f44;
299+
--vp-c-divider: #5d5d69;
300+
--vp-c-gutter: #000000;
231301
}
232302

233303
/**
@@ -239,6 +309,11 @@
239309
--vp-custom-block-tip-text: var(--vp-c-text-1);
240310
--vp-custom-block-tip-bg: var(--vp-c-brand-soft);
241311
--vp-custom-block-tip-code-bg: var(--vp-c-brand-soft);
312+
313+
--vp-custom-block-info-border: transparent;
314+
--vp-custom-block-info-text: var(--vp-c-text-1);
315+
--vp-custom-block-info-bg: var(--vp-c-info-soft);
316+
--vp-custom-block-info-code-bg: var(--vp-c-info-soft);
242317
}
243318

244319
/**
@@ -273,6 +348,22 @@ input {
273348
@apply w-full rounded-md border border-[var(--vp-c-divider)] bg-[var(--vp-c-bg-soft)] px-4 py-3 text-base text-[var(--vp-c-text-1)] transition focus:border-[var(--vp-c-brand-2)] focus:outline-none disabled:cursor-not-allowed disabled:opacity-70;
274349
}
275350

351+
/**
352+
* Component: AskIaButton
353+
* -------------------------------------------------------------------------- */
354+
355+
:root {
356+
--c-askIa-bg: #f4f7fc;
357+
--c-askIa-bg-hover: #e3e7f7;
358+
--c-askIa-bg-active: #d1d5db;
359+
}
360+
361+
.dark {
362+
--c-askIa-bg: #1d1d24;
363+
--c-askIa-bg-hover: #2b304b;
364+
--c-askIa-bg-active: #3b426e;
365+
}
366+
276367
/**
277368
* Component: Banner
278369
* -------------------------------------------------------------------------- */
@@ -307,6 +398,14 @@ input {
307398
@apply bg-[var(--vp-code-bg)];
308399
}
309400

401+
.vp-doc .custom-block.info {
402+
@apply border-l-4 border-l-[var(--vp-c-info-1)];
403+
}
404+
405+
.vp-doc .custom-block.info strong {
406+
@apply text-[var(--vp-c-info-1)];
407+
}
408+
310409
.vp-doc .custom-block.warning {
311410
@apply border-l-4 border-l-[var(--vp-c-warning-1)];
312411
}
@@ -345,20 +444,22 @@ input {
345444

346445
:root {
347446
--vp-home-hero-name-color: var(--vp-c-text-1);
348-
--vp-button-brand-bg: #fcd15a;
349-
--vp-button-brand-hover-bg: #fcd15a;
350447
}
351448

352-
.VPHero .VPButton {
353-
@apply font-medium transition hover:-translate-y-0.5 hover:shadow-md;
449+
.VPHero.has-image.VPHomeHero {
450+
@apply lg:pb-0;
354451
}
355452

356-
.VPHero .VPButton.brand {
357-
@apply text-[var(--vp-c-black)]!;
453+
.VPHero.has-image.VPHomeHero p {
454+
@apply font-normal text-[var(--vp-home-hero-name-color)];
358455
}
359456

360-
.VPImage.image-src {
361-
@apply max-h-none max-w-none lg:size-[448px]!;
457+
.VPLink.link.VPFeature {
458+
@apply relative rounded-[32px] border bg-gradient-to-b from-[var(--vp-c-white)] to-[var(--vp-c-white)] transition-all duration-300 *:relative *:z-20 after:absolute after:inset-px after:z-10 after:rounded-[31px] after:bg-[var(--vp-c-bg-soft)] hover:shadow-lg;
459+
}
460+
461+
.dark .VPLink.link.VPFeature {
462+
@apply from-[var(--c-border)] to-transparent;
362463
}
363464

364465
article.box .icon {
@@ -368,28 +469,30 @@ article.box .icon {
368469
12.835px 12.835px 21.392px 0 var(--vp-c-bg);
369470
}
370471

371-
.image .image-container {
372-
@apply relative flex items-center justify-center;
472+
article.box .icon ._stroke {
473+
@apply stroke-[var(--vp-c-brand-1)];
373474
}
374475

375-
.image .image-container::before {
376-
@apply pointer-events-none absolute top-[60%] left-1/2 -z-10 h-[929px] w-[995px] -translate-x-1/2 -translate-y-1/2 bg-contain bg-center bg-no-repeat;
377-
content: '';
378-
background-image: url('/bg-gradient.svg');
476+
article.box .icon ._fill {
477+
@apply fill-[var(--vp-c-brand-1)];
379478
}
380479

381-
.image .image-container .VPImage.image-src {
382-
@apply relative z-10;
480+
/* Image */
481+
482+
.VPImage.image-src {
483+
@apply lg:size-[448px]! lg:max-h-none lg:max-w-none;
383484
}
384485

385-
.VPHero.has-image.VPHomeHero {
386-
@apply pb-0;
486+
.image .image-container {
487+
@apply relative flex items-center justify-center;
387488
}
388489

389-
.VPLink.link.VPFeature {
390-
@apply relative rounded-[32px] border bg-gradient-to-b from-[var(--vp-c-white)] to-[var(--vp-c-white)] transition-all duration-300 *:relative *:z-20 after:absolute after:inset-px after:z-10 after:rounded-[31px] after:bg-[var(--vp-c-bg-soft)] hover:shadow-lg;
490+
.image .image-container::before {
491+
@apply pointer-events-none absolute top-[60%] left-1/2 -z-10 size-[724px] -translate-x-1/2 -translate-y-1/2 bg-contain bg-center bg-no-repeat lg:h-[929px] lg:w-[995px];
492+
content: '';
493+
background-image: url('/bg-gradient.svg');
391494
}
392495

393-
.dark .VPLink.link.VPFeature {
394-
@apply from-[var(--c-border)] to-transparent;
496+
.image .image-container .VPImage.image-src {
497+
@apply z-10 lg:relative;
395498
}

src/assets/icons/anthropic.svg

Lines changed: 0 additions & 7 deletions
This file was deleted.

src/assets/icons/chatgpt.svg

Lines changed: 0 additions & 6 deletions
This file was deleted.

0 commit comments

Comments
 (0)