Skip to content

Commit 65c0a46

Browse files
committed
feat: update homepage layout and add background SVG for improved visuals
1 parent 571ab1d commit 65c0a46

File tree

4 files changed

+63
-1
lines changed

4 files changed

+63
-1
lines changed

.vitepress/theme/style.css

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -338,3 +338,34 @@ input {
338338
.vp-doc .custom-block.details strong {
339339
@apply text-[var(--vp-c-details-1)];
340340
}
341+
342+
/**
343+
* HomePage: rewrite
344+
* -------------------------------------------------------------------------- */
345+
346+
:root {
347+
--vp-home-hero-name-color: var(--vp-c-text-1);
348+
--vp-button-brand-bg: #fcd15a;
349+
}
350+
351+
.VPImage.image-src {
352+
@apply max-h-none max-w-none lg:size-[448px]!;
353+
}
354+
355+
/**
356+
* Background SVG for VitePress image
357+
* -------------------------------------------------------------------------- */
358+
359+
.image .image-container {
360+
@apply relative flex items-center justify-center;
361+
}
362+
363+
.image .image-container::before {
364+
@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;
365+
content: '';
366+
background-image: url('/bg-gradient.svg');
367+
}
368+
369+
.image .image-container .VPImage.image-src {
370+
@apply relative z-10;
371+
}

src/index.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,13 @@
33
layout: home
44

55
hero:
6-
name: 'Privacy Made Easy'
6+
name: 'Build on iExec Privacy Layer '
77
tagline:
88
'Build decentralized applications that combine governance, privacy, and
99
monetization.'
10+
image:
11+
src: /iexec-illustration-large.webp
12+
alt: VitePress
1013
actions:
1114
- theme: brand
1215
text: Get Started

src/public/bg-gradient.svg

Lines changed: 28 additions & 0 deletions
Loading
56 KB
Loading

0 commit comments

Comments
 (0)