-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: RFC Documents * feat: RFC doc page * chore: refactoring RFC Document * chore: refactoring RFC tabs * feat: dark mode and various responsive fixes * chore: removing rfcsidebar unused --------- Co-authored-by: Matthew Holloway <Matthew Holloway>
- Loading branch information
Showing
28 changed files
with
781 additions
and
83 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
<template> | ||
<div | ||
:class="[ | ||
'rounded border border-l-4 px-3 py-2 my-5 ', | ||
props.variant === 'warning' && | ||
'bg-pink-100 dark:bg-red-950 border-red-600', | ||
props.variant === 'info' && | ||
'bg-white dark:bg-yellow-950 border-yellow-400' | ||
]" | ||
> | ||
<Heading | ||
level="2" | ||
style-level="4" | ||
:class="[ | ||
props.variant === 'warning' && 'text-red-700 dark:text-red-200', | ||
props.variant === 'info' && 'text-yellow-750 dark:text-yellow-300' | ||
]" | ||
> | ||
{{ props.heading }} | ||
</Heading> | ||
<slot /> | ||
</div> | ||
</template> | ||
|
||
<script setup lang="ts"> | ||
type Props = { | ||
variant: 'warning' | 'info' | ||
heading: string | ||
} | ||
const props = defineProps<Props>() | ||
</script> |
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 |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<template> | ||
<div | ||
class="w-full container m-auto flex flex-row-reverse justify-between lg:gap-5" | ||
> | ||
<div class="flex-1 p-3 bg-white dark:bg-black hidden lg:block"> | ||
<slot name="sidebar" /> | ||
</div> | ||
<div class="flex-auto"> | ||
<slot /> | ||
</div> | ||
</div> | ||
</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
<template> | ||
<ul class="block mt-1 -ml-2 mb-3 px-1 xs:px-0"> | ||
<li | ||
v-for="(path, index) in props.breadcrumbItems" | ||
:key="index" | ||
class="inline-block" | ||
> | ||
<a | ||
class="inline-block px-2 py-2 rounded hover:bg-gray-200 hover:text-blue-800" | ||
:href="path.url" | ||
> | ||
{{ path.label }} | ||
</a> | ||
<template v-if="index >= 0 && index < props.breadcrumbItems.length - 1"> | ||
<GraphicsChevron | ||
class="inline-block -rotate-90 text-gray-300" | ||
width="14" | ||
height="18" | ||
/> | ||
</template> | ||
</li> | ||
</ul> | ||
</template> | ||
|
||
<script setup lang="ts"> | ||
import type { BreadcrumbItem } from './BreadcrumbsTypes' | ||
type Props = { | ||
breadcrumbItems: BreadcrumbItem[] | ||
} | ||
const props = defineProps<Props>() | ||
</script> |
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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
export type BreadcrumbItem = { | ||
url: string | ||
label: string | ||
} |
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 |
---|---|---|
@@ -0,0 +1,28 @@ | ||
<template> | ||
<div | ||
:class="[ | ||
'inline-flex flex-col justify-center items-center bg-yellow-400 dark:bg-yellow-800 text-black dark:text-white text-xs uppercase font-semibold', | ||
{ | ||
'w-[20px] h-[20px] [clip-path:polygon(0%_50%,_50%_0%,_50%_0%,100%_50%,50%_100%,50%_100%)]': | ||
props.text.length === 1, | ||
'w-[25px] h-[20px] [clip-path:polygon(0%_50%,_25%_0%,_75%_0%,100%_50%,75%_100%,25%_100%)]': | ||
props.text.length === 2, | ||
'w-[30px] h-[20px] [clip-path:polygon(0%_50%,_10%_0%,_90%_0%,100%_50%,90%_100%,10%_100%)]': | ||
props.text.length === 3 | ||
// longer lengths aren't specially styled | ||
}, | ||
props.class | ||
]" | ||
> | ||
{{ props.text }} | ||
</div> | ||
</template> | ||
|
||
<script setup lang="ts"> | ||
type Props = { | ||
text: string | ||
class?: string | ||
} | ||
const props = defineProps<Props>() | ||
</script> |
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
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 |
---|---|---|
@@ -0,0 +1,25 @@ | ||
<template> | ||
<svg | ||
width="16" | ||
height="16" | ||
viewBox="0 0 16 16" | ||
fill="currentColor" | ||
role="img" | ||
aria-hidden="true" | ||
:class="props.class" | ||
> | ||
<title>Expand sidebar</title> | ||
<path | ||
d="M4.94598 8.47687L8.16206 11.8124C8.28266 11.9375 8.44347 12 8.60427 12C8.78518 12 8.94598 11.9375 9.06658 11.8124C9.32789 11.5622 9.32789 11.1244 9.06658 10.8743L6.95603 8.66449H13.1068C13.4686 8.66449 13.75 8.37264 13.75 7.99739C13.75 7.643 13.4686 7.33029 13.1068 7.33029H6.95603L9.06658 5.14137C9.32789 4.89121 9.32789 4.45342 9.06658 4.20326C8.82538 3.93225 8.40327 3.93225 8.16206 4.20326L4.94598 7.53876C4.68467 7.78892 4.68467 8.22671 4.94598 8.47687Z" | ||
/> | ||
<rect width="1.5" height="10" transform="matrix(-1 0 0 1 3.75 3)" /> | ||
</svg> | ||
</template> | ||
|
||
<script setup lang="ts"> | ||
type Props = { | ||
class?: string | ||
} | ||
const props = defineProps<Props>() | ||
</script> |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<template> | ||
<svg | ||
width="21" | ||
height="21" | ||
viewBox="0 0 21 21" | ||
fill="currentColor" | ||
xmlns="http://www.w3.org/2000/svg" | ||
> | ||
<path | ||
d="M9.69278 15.4998H11.3594V13.8332H9.69278V15.4998ZM10.5261 2.1665C9.43176 2.1665 8.34813 2.38205 7.33708 2.80084C6.32604 3.21963 5.40738 3.83346 4.63356 4.60728C3.07075 6.17008 2.19278 8.2897 2.19278 10.4998C2.19278 12.71 3.07075 14.8296 4.63356 16.3924C5.40738 17.1662 6.32604 17.78 7.33708 18.1988C8.34813 18.6176 9.43176 18.8332 10.5261 18.8332C12.7362 18.8332 14.8559 17.9552 16.4187 16.3924C17.9815 14.8296 18.8594 12.71 18.8594 10.4998C18.8594 9.40549 18.6439 8.32185 18.2251 7.31081C17.8063 6.29976 17.1925 5.3811 16.4187 4.60728C15.6448 3.83346 14.7262 3.21963 13.7151 2.80084C12.7041 2.38205 11.6205 2.1665 10.5261 2.1665ZM10.5261 17.1665C6.85111 17.1665 3.85945 14.1748 3.85945 10.4998C3.85945 6.82484 6.85111 3.83317 10.5261 3.83317C14.2011 3.83317 17.1928 6.82484 17.1928 10.4998C17.1928 14.1748 14.2011 17.1665 10.5261 17.1665ZM10.5261 5.49984C9.64206 5.49984 8.79421 5.85103 8.16909 6.47615C7.54397 7.10127 7.19278 7.94911 7.19278 8.83317H8.85945C8.85945 8.39114 9.03504 7.96722 9.3476 7.65466C9.66016 7.3421 10.0841 7.1665 10.5261 7.1665C10.9681 7.1665 11.3921 7.3421 11.7046 7.65466C12.0172 7.96722 12.1928 8.39114 12.1928 8.83317C12.1928 10.4998 9.69278 10.2915 9.69278 12.9998H11.3594C11.3594 11.1248 13.8594 10.9165 13.8594 8.83317C13.8594 7.94911 13.5083 7.10127 12.8831 6.47615C12.258 5.85103 11.4102 5.49984 10.5261 5.49984Z" | ||
/> | ||
</svg> | ||
</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
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
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,5 +1,5 @@ | ||
<template> | ||
<main id="main" tabindex="0" class="flex-1 container mx-auto mb-10 visible"> | ||
<main id="main" tabindex="0" class="flex-1 w-full mx-auto mb-10 visible"> | ||
<slot /> | ||
</main> | ||
</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
Oops, something went wrong.