-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
more WIP, remove what is and merge with docs home
- Loading branch information
1 parent
56037d6
commit 7e5485e
Showing
8 changed files
with
597 additions
and
380 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 14 additions & 10 deletions
24
packages/docs-site/src/components/IconGraph/ConnectionLine.vue
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,36 +1,40 @@ | ||
<script setup lang="ts"> | ||
import AnimatedDot from './AnimatedDot.vue' | ||
import { computed } from 'vue' | ||
const activeColor = 'rgb(155 86 245)'; // BRAND PURPLE | ||
const inactiveColor = 'rgb(209 213 219)'; | ||
defineProps<{ | ||
const props = defineProps<{ | ||
x1: number | ||
y1: number | ||
x2: number | ||
y2: number | ||
active?: boolean | ||
}>() | ||
const coordinates = computed(() => ({ | ||
x1: props.x1, | ||
y1: props.y1, | ||
x2: props.x2, | ||
y2: props.y2 | ||
})) | ||
</script> | ||
|
||
<template> | ||
<g> | ||
<line | ||
:x1="x1" | ||
:y1="y1" | ||
:x2="x2" | ||
:y2="y2" | ||
:x1="coordinates.x1" | ||
:y1="coordinates.y1" | ||
:x2="coordinates.x2" | ||
:y2="coordinates.y2" | ||
:stroke="active ? activeColor : inactiveColor" | ||
stroke-width="2" | ||
:class="{ 'transition-colors duration-300': true }" | ||
/> | ||
<AnimatedDot | ||
v-if="active" | ||
:x1="x1" | ||
:y1="y1" | ||
:x2="x2" | ||
:y2="y2" | ||
v-bind="coordinates" | ||
/> | ||
</g> | ||
</template> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
60 changes: 32 additions & 28 deletions
60
packages/docs-site/src/components/LandingPageSection.astro
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,41 +1,45 @@ | ||
--- | ||
import CTABlock from './CTABlock.astro'; | ||
import CTABlock from "./CTABlock.astro"; | ||
interface Props { | ||
title?: string, | ||
imgPath?: string, | ||
imgAlt?: string, | ||
imgDescription?: string, | ||
ctaLink?: string, | ||
ctaText?: string, | ||
title?: string; | ||
imgPath?: string; | ||
imgAlt?: string; | ||
imgDescription?: string; | ||
ctaLink?: string; | ||
ctaText?: string; | ||
subheader?: string; | ||
} | ||
const { title, imgPath, imgAlt, imgDescription, ctaLink } = Astro.props as Props; | ||
const { title, imgPath, imgAlt, imgDescription, ctaLink, subheader } = | ||
Astro.props as Props; | ||
--- | ||
|
||
<section class="feature-block"> | ||
{ title && <h2>{title}</h2> } | ||
{ imgPath && <figure> | ||
<img src={imgPath} alt={imgAlt}> | ||
<figcaption class="description">{imgDescription}</figcaption> | ||
</figure>} | ||
|
||
{title && <h2>{title}</h2>} | ||
{subheader && <h3>{subheader}</h3>} | ||
{ | ||
imgPath && ( | ||
<figure> | ||
<img src={imgPath} alt={imgAlt} /> | ||
<figcaption class="description">{imgDescription}</figcaption> | ||
</figure> | ||
) | ||
} | ||
|
||
<slot /> | ||
|
||
{ ctaLink && <CTABlock | ||
text="Read more ->" | ||
href={ctaLink} | ||
/>} | ||
|
||
{ctaLink && <CTABlock text="Read more ->" href={ctaLink} />} | ||
</section> | ||
|
||
<style> | ||
.feature-block { | ||
padding: 3rem 2rem; | ||
display: flex; | ||
flex-direction: column; | ||
gap: 1rem; | ||
|
||
@container (max-width: 800px) { | ||
padding: 2rem 0rem; | ||
.feature-block { | ||
padding: 3rem 2rem; | ||
display: flex; | ||
flex-direction: column; | ||
gap: 1rem; | ||
|
||
@container (max-width: 800px) { | ||
padding: 2rem 0rem; | ||
} | ||
} | ||
} | ||
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.