Skip to content

Commit d06df42

Browse files
committed
feat: enhance HomePage styling and add background SVG for improved visuals
1 parent 65c0a46 commit d06df42

File tree

4 files changed

+68
-1
lines changed

4 files changed

+68
-1
lines changed

.vitepress/theme/style.css

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -346,12 +346,28 @@ input {
346346
:root {
347347
--vp-home-hero-name-color: var(--vp-c-text-1);
348348
--vp-button-brand-bg: #fcd15a;
349+
--vp-button-brand-hover-bg: #fcd15a;
350+
}
351+
352+
.VPHero .VPButton {
353+
@apply font-medium transition hover:-translate-y-0.5 hover:shadow-md;
354+
}
355+
356+
.VPHero .VPButton.brand {
357+
@apply text-[var(--vp-c-black)]!;
349358
}
350359

351360
.VPImage.image-src {
352361
@apply max-h-none max-w-none lg:size-[448px]!;
353362
}
354363

364+
article.box .icon {
365+
@apply size-14 rounded-[14px] bg-[var(--vp-c-bg-soft)] p-2;
366+
box-shadow:
367+
-12.835px -12.835px 21.392px 0 var(--vp-c-bg),
368+
12.835px 12.835px 21.392px 0 var(--vp-c-bg);
369+
}
370+
355371
/**
356372
* Background SVG for VitePress image
357373
* -------------------------------------------------------------------------- */
@@ -369,3 +385,19 @@ input {
369385
.image .image-container .VPImage.image-src {
370386
@apply relative z-10;
371387
}
388+
389+
.VPHero.has-image.VPHomeHero {
390+
@apply pb-0;
391+
}
392+
393+
/**
394+
* Component: VPFeature styling
395+
* -------------------------------------------------------------------------- */
396+
397+
.VPLink.link.VPFeature {
398+
@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;
399+
}
400+
401+
.dark .VPLink.link.VPFeature {
402+
@apply from-[var(--c-border)] to-transparent;
403+
}

public/bg-gradient.svg

Lines changed: 28 additions & 0 deletions
Loading

src/index.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@ hero:
1919
link: /get-started/helloWorld
2020

2121
features:
22-
- icon: 🚀
22+
- icon: <img src="/icon_build_app.svg" />
23+
src:
2324
title: Quick Start
2425
details: Jump in and start building on iExec in minutes.
2526
link: /get-started/helloWorld

src/public/icon_build_app.svg

Lines changed: 6 additions & 0 deletions
Loading

0 commit comments

Comments
 (0)