Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions .vitepress/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -102,9 +102,6 @@ export default withMermaid(
themeConfig: {
// https://vitepress.dev/reference/default-theme-config
nav: [
{
component: 'HomeNavLinks',
},
{
text: 'Get Started',
link: '/get-started/welcome',
Expand Down Expand Up @@ -159,6 +156,8 @@ export default withMermaid(

siteTitle: false,

logoLink: '/get-started/welcome',

logo: {
light: '/Logo-RLC-Yellow.png',
dark: '/Logo-RLC-Yellow.png',
Expand Down
47 changes: 8 additions & 39 deletions .vitepress/theme/Layout.vue
Original file line number Diff line number Diff line change
@@ -1,17 +1,8 @@
<script setup>
import DefaultTheme from 'vitepress/theme';
import { useRoute } from 'vitepress';
import { computed } from 'vue';
import AskIaButton from '@/components/AskIaButton.vue';

const { Layout } = DefaultTheme;
const route = useRoute();

const isHome = computed(() => route.path === '/');

const siteTitle = computed(() =>
isHome.value ? 'iExec Documentation' : 'PoCo Documentation'
);
</script>

<template>
Expand All @@ -25,16 +16,14 @@ const siteTitle = computed(() =>
></iframe>
</noscript>
<!-- End Google Tag Manager (noscript) -->
<div :class="{ 'is-home-page': isHome }">
<Layout>
<template #nav-bar-title-after>
<span class="custom-site-title">{{ siteTitle }}</span>
</template>
<template #aside-outline-before>
<AskIaButton />
</template>
</Layout>
</div>
<Layout>
<template #nav-bar-title-after>
<span class="custom-site-title">PoCo Documentation</span>
</template>
<template #aside-outline-before>
<AskIaButton />
</template>
</Layout>
</template>

<style scoped>
Expand All @@ -45,23 +34,3 @@ const siteTitle = computed(() =>
white-space: nowrap;
}
</style>

<style>
/* On the landing page, keep the navbar neutral: hide the PoCo-specific menu
items (Get Started / Guides / References / Protocol) and the ChainSelector,
while keeping the HomeNavLinks component (Nox Protocol / iExec PoCo) visible
in the exact same menu slot. */
.is-home-page .VPNavBarMenu > *:not(.home-nav-links):not(.visually-hidden) {
display: none;
}

/* Same neutralization for the mobile screen menu. */
.is-home-page .VPNavScreenMenu > *:not(.home-nav-links) {
display: none;
}

/* Hide the search box on the landing page. */
.is-home-page .VPNavBarSearch {
display: none;
}
</style>
2 changes: 0 additions & 2 deletions .vitepress/theme/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ import { WagmiPlugin } from '@wagmi/vue';
import { createPinia } from 'pinia';
import { wagmiAdapter } from '@/utils/wagmiConfig';
import ChainSelector from '@/components/ChainSelector.vue';
import HomeNavLinks from '@/components/HomeNavLinks.vue';
import './style.css';

declare global {
Expand Down Expand Up @@ -39,7 +38,6 @@ export default {
app.use(WagmiPlugin, { config: wagmiAdapter.wagmiConfig });

app.component('ChainSelector', ChainSelector);
app.component('HomeNavLinks', HomeNavLinks);

if (typeof window !== 'undefined') {
// Ensure dataLayer exists
Expand Down
62 changes: 0 additions & 62 deletions .vitepress/theme/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -449,65 +449,3 @@ input {
.vp-doc .custom-block.details strong {
@apply text-[var(--vp-c-details-1)];
}

/**
* HomePage: rewrite
* -------------------------------------------------------------------------- */

:root {
--vp-home-hero-name-color: var(--vp-c-text-1);
}
.VPContent.is-home {
@apply overflow-x-hidden;
}

.VPHero.has-image.VPHomeHero {
@apply lg:pb-0;
}

.VPHero.has-image.VPHomeHero p {
@apply font-normal text-[var(--vp-home-hero-name-color)];
}

.VPLink.link.VPFeature {
@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;
}

.dark .VPLink.link.VPFeature {
@apply from-[var(--c-border)] to-transparent;
}

article.box .icon {
@apply size-14 rounded-[14px] bg-[var(--vp-c-bg-soft)] p-2;
box-shadow:
-12.835px -12.835px 21.392px 0 var(--vp-c-bg),
12.835px 12.835px 21.392px 0 var(--vp-c-bg);
}

article.box .icon ._stroke {
@apply stroke-[var(--vp-c-brand-1)];
}

article.box .icon ._fill {
@apply fill-[var(--vp-c-brand-1)];
}

/* Image */

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

.image .image-container {
@apply relative flex items-center justify-center;
}

.image .image-container::before {
@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];
content: '';
background-image: url('/bg-gradient.svg');
}

.image .image-container .VPImage.image-src {
@apply z-10 lg:relative;
}
9 changes: 0 additions & 9 deletions src/assets/icons/ctoken.svg

This file was deleted.

8 changes: 0 additions & 8 deletions src/assets/icons/gov.svg

This file was deleted.

4 changes: 0 additions & 4 deletions src/assets/icons/hello-world.svg

This file was deleted.

4 changes: 0 additions & 4 deletions src/assets/icons/nox.svg

This file was deleted.

7 changes: 0 additions & 7 deletions src/assets/icons/poco.svg

This file was deleted.

Loading
Loading