Update screenshot, remove duplicate from repo root
Single screenshot lives in packages/docs/public/. README references it from there. Custom VitePress layout places it between hero and features.
This commit is contained in:
parent
503a561753
commit
0f0ca8db4b
|
|
@ -4,7 +4,7 @@ Open-source, AI-native design editor. Figma-compatible, AI-first, fully local.
|
|||
|
||||
> **Status:** Active development. Not ready for production use.
|
||||
|
||||

|
||||

|
||||
|
||||
## Why
|
||||
|
||||
|
|
|
|||
33
packages/docs/.vitepress/theme/HomeLayout.vue
Normal file
33
packages/docs/.vitepress/theme/HomeLayout.vue
Normal file
|
|
@ -0,0 +1,33 @@
|
|||
<script setup lang="ts">
|
||||
import DefaultTheme from 'vitepress/theme'
|
||||
import { useData } from 'vitepress'
|
||||
|
||||
const { Layout } = DefaultTheme
|
||||
const { frontmatter } = useData()
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<Layout>
|
||||
<template #home-hero-after>
|
||||
<div v-if="frontmatter.layout === 'home'" class="screenshot">
|
||||
<img
|
||||
src="/screenshot.png"
|
||||
alt="OpenPencil editor with a Material 3 design file open"
|
||||
/>
|
||||
</div>
|
||||
</template>
|
||||
</Layout>
|
||||
</template>
|
||||
|
||||
<style scoped>
|
||||
.screenshot {
|
||||
max-width: 1152px;
|
||||
margin: 0 auto;
|
||||
padding: 0 24px;
|
||||
}
|
||||
|
||||
.screenshot img {
|
||||
width: 100%;
|
||||
border-radius: 12px;
|
||||
}
|
||||
</style>
|
||||
7
packages/docs/.vitepress/theme/index.ts
Normal file
7
packages/docs/.vitepress/theme/index.ts
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
import DefaultTheme from 'vitepress/theme'
|
||||
import HomeLayout from './HomeLayout.vue'
|
||||
|
||||
export default {
|
||||
extends: DefaultTheme,
|
||||
Layout: HomeLayout,
|
||||
}
|
||||
|
|
@ -6,9 +6,6 @@ hero:
|
|||
name: OpenPencil
|
||||
text: AI-Native Design Editor
|
||||
tagline: Open-source Figma alternative. Fully local, AI-native, programmable.
|
||||
image:
|
||||
src: /screenshot.png
|
||||
alt: OpenPencil editor with a Material 3 design file open
|
||||
actions:
|
||||
- theme: brand
|
||||
text: Get Started
|
||||
|
|
|
|||
Binary file not shown.
|
Before Width: | Height: | Size: 878 KiB After Width: | Height: | Size: 941 KiB |
BIN
screenshot.png
BIN
screenshot.png
Binary file not shown.
|
Before Width: | Height: | Size: 878 KiB |
Loading…
Reference in a new issue