docs: update theme

This commit is contained in:
braks
2023-10-06 23:39:02 +02:00
committed by Braks
parent be70047e48
commit 28fd4955f4
11 changed files with 260 additions and 134 deletions
+1 -1
View File
@@ -27,7 +27,7 @@ onBeforeUnmount(stop)
<template>
<div ref="el" class="w-full">
<div
class="flex flex-col divide-y divide-gray-500 md:divide-y-0 gap-12 md:gap-24 lg:gap-36 max-w-9/12 md:max-w-11/12 lg:max-w-9/12 m-auto py-12 md:py-24 text-center md:text-left"
class="flex flex-col divide-y divide-gray-500 md:divide-y-0 gap-12 md:gap-24 lg:gap-36 max-w-5/6 xl:max-w-7xl m-auto py-12 md:py-24 text-center md:text-left"
>
<div class="flex flex-col md:flex-row gap-12 md:gap-24">
<Basic @pane="onLoad" />
+3 -3
View File
@@ -2,13 +2,13 @@
<template>
<div class="w-full">
<div class="max-w-3/4 md:max-w-5xl mx-auto py-4 md:py-12 lg:py-12 text-center">
<div class="max-w-5/6 lg:max-w-7xl mx-auto py-4 md:py-12 lg:py-12 text-center">
<div class="flex flex-col items-center justify-center gap-2">
<h1>Showcase</h1>
<p class="text-lg">Vue Flow is used in a variety of projects and applications. Here are some of them:</p>
<div class="flex flex-col md:flex-row justify-between gap-12 mt-8">
<div class="flex flex-col md:flex-row justify-between items-center gap-12 mt-8">
<div class="flex-1 flex flex-col justify-center">
<div
class="h-[200px] md:min-h-[300px] w-full shadow-xl rounded-xl font-mono uppercase border-1 border-gray overflow-hidden"
@@ -20,7 +20,7 @@
<h2 class="text-3xl mt-6 font-semibold text-[#2196f3]">Octai</h2>
</a>
<h3 class="text-lg">Machine Learning NoCode Platform for Data Scientists and Developers.</h3>
<h3 class="text-lg">A Machine-Learning NoCode platform using a node-based UI for Data Scientists and Developers.</h3>
</div>
<div class="flex-1 flex flex-col justify-center">
-19
View File
@@ -1,19 +0,0 @@
<script setup>
import { VPTeamMembers } from 'vitepress/theme'
const members = [
{
avatar: 'https://avatars.githubusercontent.com/u/78412429?v=4',
name: 'Burak Cakmakoglu',
title: 'Creator',
links: [{ icon: 'github', link: 'https://github.com/bcakmakoglu' }],
},
]
</script>
<template>
<div class="w-full flex flex-col gap-4">
<h1 class="md:mb-8 flex justify-center items-center">Meet the Team</h1>
<VPTeamMembers size="small" :members="members" />
</div>
</template>
+4 -1
View File
@@ -101,16 +101,19 @@ onPaneReady((i) => emit('pane', i))
<Background variant="lines" pattern-color="#aaa" :gap="46" />
</VueFlow>
</div>
<div class="md:max-w-1/3 flex flex-col gap-12 justify-center <md:pt-12">
<div class="flex flex-col gap-2 items-center md:items-start">
<h1>Additional Features</h1>
<p>
On top of all the features Vue Flow comes with several components like a Background, Minimap or Controls.
<br />
Plus it's built for composition, making the access of the internal state easy as can be!
</p>
<a class="docs-button max-w-max" href="/guide/"> Documentation </a>
<a class="docs-button" href="/guide/"> Documentation </a>
</div>
</div>
</template>
+8 -7
View File
@@ -11,9 +11,7 @@ const emit = defineEmits(['pane'])
const getNodeClass: ClassFunc<GraphNode> = (el) => {
const classes = ['font-semibold', '!border-2', 'transition-colors', 'duration-300', 'ease-in-out']
if (el.selected) {
classes.push(
...['!border-green-500/80', '!shadow-md', '!shadow-green-500/50', '!bg-green-100/80 dark:(!bg-white)', '!text-gray-700'],
)
classes.push(...['!border-primary/80', '!shadow-md', '!shadow-primary/50', '!bg-primary-100/50', '!text-gray-700'])
}
return classes.join(' ')
@@ -111,13 +109,16 @@ onConnect((param) => {
<div class="md:max-w-1/3 flex flex-col justify-center">
<div class="flex flex-col items-center md:items-start">
<h1>Interactive Graphs</h1>
<p>
Vue Flow comes with built-in features like zoom & pan and dedicated controls, single & multi-selections, draggable
elements, customizable nodes and edges and a bunch of event handlers.
</p>
<a class="docs-button max-w-max" href="/guide/"> Documentation </a>
<a class="docs-button" href="/guide/"> Documentation </a>
</div>
</div>
<div
class="w-full h-[300px] md:min-h-[400px] shadow-xl rounded-xl font-mono uppercase border-1 border-secondary overflow-hidden"
>
@@ -134,14 +135,14 @@ onConnect((param) => {
<style>
.basic .vue-flow__node-input.selected .vue-flow__handle {
@apply bg-green-500;
@apply bg-primary;
}
.basic .vue-flow__node-default.selected .vue-flow__handle {
@apply bg-green-500;
@apply bg-primary;
}
.basic .vue-flow__node-output.selected .vue-flow__handle {
@apply bg-green-500;
@apply bg-primary;
}
</style>
+2 -2
View File
@@ -243,7 +243,7 @@ function scrollTo() {
<template v-else-if="props.id === 'examples'">
<div class="flex">
<a class="intro-link group bg-[#ef467e]" href="/examples/"> Check The Examples </a>
<a class="intro-link group bg-pink-500" href="/examples/"> Check The Examples </a>
</div>
<Handle
@@ -278,7 +278,7 @@ function scrollTo() {
<style>
.intro {
@apply cursor-pointer
bg-green-500
bg-primary
text-white
transform
transition-transform
+3 -3
View File
@@ -9,7 +9,7 @@ const emit = defineEmits(['pane'])
const breakpoints = useBreakpoints(breakpointsTailwind)
const nodeClasses = ['!normal-case font-semibold !text-white', '!border-1', 'shadow-md'].join(' ')
const childClasses = `${nodeClasses} !bg-green-500/70 !border-white`
const childClasses = `${nodeClasses} !bg-primary-500/70 !border-white`
const { onPaneReady, panOnDrag } = useVueFlow({
fitViewOnInit: true,
@@ -27,7 +27,7 @@ const { onPaneReady, panOnDrag } = useVueFlow({
id: '2',
label: 'Parent Node',
position: { x: -125, y: 100 },
class: `${nodeClasses} !bg-green-500/30 !border-green-500`,
class: `${nodeClasses} !bg-primary-500/30 !border-primary-500`,
style: { width: '400px', height: '160px' },
},
{
@@ -72,7 +72,7 @@ onPaneReady((i) => emit('pane', i))
</div>
</div>
<div
class="w-full h-[300px] md:min-h-[400px] shadow-xl rounded-xl font-mono uppercase border-1 border-green-500 overflow-hidden"
class="w-full h-[300px] md:min-h-[400px] shadow-xl rounded-xl font-mono uppercase border-1 border-primary-500 overflow-hidden"
>
<VueFlow class="nested">
<Controls class="md:(!left-auto !right-[10px])" />