chore(docs): update handle styles
Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com>
This commit is contained in:
@@ -17,7 +17,7 @@ onMounted(() => {
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<div class="relative h-[calc(100vh-var(--vp-nav-height-mobile))] lg:h-[calc(100vh-var(--vp-nav-height)-176px)]">
|
<div class="relative h-[calc(100vh-var(--vp-nav-height))] lg:h-[calc(100vh-var(--vp-nav-height)-176px)]">
|
||||||
<Intro />
|
<Intro />
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|||||||
@@ -184,6 +184,7 @@ onBeforeUnmount(stop)
|
|||||||
|
|
||||||
function scrollTo() {
|
function scrollTo() {
|
||||||
const el = document.getElementById('acknowledgement')
|
const el = document.getElementById('acknowledgement')
|
||||||
|
|
||||||
if (el) {
|
if (el) {
|
||||||
el.scrollIntoView({ behavior: 'smooth' })
|
el.scrollIntoView({ behavior: 'smooth' })
|
||||||
}
|
}
|
||||||
@@ -192,7 +193,8 @@ function scrollTo() {
|
|||||||
|
|
||||||
<template>
|
<template>
|
||||||
<VueFlow ref="el">
|
<VueFlow ref="el">
|
||||||
<Background variant="lines" :pattern-color="isDark ? '#fff' : '#000'" :size="0.7" :gap="100" />
|
<Background id="dots" pattern-color="#aaa" :size="0.75" :gap="25" />
|
||||||
|
<Background id="lines" variant="lines" :pattern-color="isDark ? '#fff' : '#000'" :size="1" :gap="100" />
|
||||||
|
|
||||||
<template #node-box="props">
|
<template #node-box="props">
|
||||||
<template v-if="props.id === 'intro'">
|
<template v-if="props.id === 'intro'">
|
||||||
@@ -200,33 +202,70 @@ function scrollTo() {
|
|||||||
<div class="intro px-4 py-2 shadow-lg rounded-md border-2 border-solid border-black">
|
<div class="intro px-4 py-2 shadow-lg rounded-md border-2 border-solid border-black">
|
||||||
<div class="font-mono flex flex-col gap-4 p-4 items-center text-center">
|
<div class="font-mono flex flex-col gap-4 p-4 items-center text-center">
|
||||||
<h1 class="text-2xl lg:text-4xl !my-0 !pt-0 font-bold">Vue Flow</h1>
|
<h1 class="text-2xl lg:text-4xl !my-0 !pt-0 font-bold">Vue Flow</h1>
|
||||||
|
|
||||||
<h2 class="text-lg lg:text-xl font-normal !border-0">
|
<h2 class="text-lg lg:text-xl font-normal !border-0">
|
||||||
The customizable Vue 3 component bringing interactivity to flowcharts and graphs.
|
The customizable Vue 3 component bringing interactivity to flowcharts and graphs.
|
||||||
</h2>
|
</h2>
|
||||||
</div>
|
</div>
|
||||||
<Handle id="a" type="source" :position="Position.Bottom" />
|
|
||||||
|
<Handle
|
||||||
|
:connectable="false"
|
||||||
|
style="height: 12px; width: 6rem; bottom: -6px; background: #aaa; border-radius: 2px"
|
||||||
|
type="source"
|
||||||
|
:position="Position.Bottom"
|
||||||
|
/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<template v-else-if="props.id === 'documentation'">
|
<template v-else-if="props.id === 'documentation'">
|
||||||
<div class="flex">
|
<div class="flex">
|
||||||
<a class="intro-link group bg-[#f15a16]" href="/guide/"> Read The Documentation </a>
|
<a class="intro-link group bg-[#f15a16]" href="/guide/"> Read The Documentation </a>
|
||||||
</div>
|
</div>
|
||||||
<Handle type="target" :position="Position.Top" />
|
|
||||||
<Handle class="block md:hidden" type="source" :position="Position.Bottom" />
|
<Handle
|
||||||
|
style="height: 12px; width: 2rem; top: -6px; background: #aaa; border-radius: 2px"
|
||||||
|
type="target"
|
||||||
|
:position="Position.Top"
|
||||||
|
/>
|
||||||
|
|
||||||
|
<Handle
|
||||||
|
style="height: 12px; width: 2rem; bottom: -6px; background: #aaa; border-radius: 2px"
|
||||||
|
class="block md:hidden"
|
||||||
|
type="source"
|
||||||
|
:position="Position.Bottom"
|
||||||
|
/>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<template v-else-if="props.id === 'examples'">
|
<template v-else-if="props.id === 'examples'">
|
||||||
<div class="flex">
|
<div class="flex">
|
||||||
<a class="intro-link group bg-[#ef467e]" href="/examples/"> Check The Examples </a>
|
<a class="intro-link group bg-[#ef467e]" href="/examples/"> Check The Examples </a>
|
||||||
</div>
|
</div>
|
||||||
<Handle type="target" :position="Position.Top" />
|
|
||||||
<Handle class="block md:hidden" type="source" :position="Position.Bottom" />
|
<Handle
|
||||||
|
style="height: 12px; width: 2rem; top: -6px; background: #aaa; border-radius: 2px"
|
||||||
|
type="target"
|
||||||
|
:position="Position.Top"
|
||||||
|
/>
|
||||||
|
|
||||||
|
<Handle
|
||||||
|
style="height: 12px; width: 2rem; bottom: -6px; background: #aaa; border-radius: 2px"
|
||||||
|
class="block md:hidden"
|
||||||
|
type="source"
|
||||||
|
:position="Position.Bottom"
|
||||||
|
/>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<template v-else-if="props.id === 'acknowledgement'">
|
<template v-else-if="props.id === 'acknowledgement'">
|
||||||
<div class="flex" @click="scrollTo">
|
<div class="flex" @click="scrollTo">
|
||||||
<button class="intro-link group bg-sky-500"><Heart class="text-red-500" /> Acknowledgement</button>
|
<button class="intro-link group bg-sky-500"><Heart class="text-red-500" /> Acknowledgement</button>
|
||||||
</div>
|
</div>
|
||||||
<Handle type="target" :position="Position.Top" />
|
|
||||||
|
<Handle
|
||||||
|
style="height: 12px; width: 2rem; top: -6px; background: #aaa; border-radius: 2px"
|
||||||
|
type="target"
|
||||||
|
:position="Position.Top"
|
||||||
|
/>
|
||||||
</template>
|
</template>
|
||||||
</template>
|
</template>
|
||||||
</VueFlow>
|
</VueFlow>
|
||||||
|
|||||||
Reference in New Issue
Block a user