diff --git a/apps/website/public/images/test-image.png b/apps/website/public/images/test-image.png new file mode 100644 index 000000000..9b3a6fd55 Binary files /dev/null and b/apps/website/public/images/test-image.png differ diff --git a/apps/website/src/_state/component-statuses.ts b/apps/website/src/_state/component-statuses.ts index 721574630..3b3d0bb2a 100644 --- a/apps/website/src/_state/component-statuses.ts +++ b/apps/website/src/_state/component-statuses.ts @@ -25,6 +25,7 @@ export const statusByComponent: ComponentKitsStatuses = { Input: ComponentStatus.Planned, 'Input Phone': ComponentStatus.Planned, 'Navigation Bar': ComponentStatus.Planned, + Modal: ComponentStatus.Planned, Pagination: ComponentStatus.Planned, Popover: ComponentStatus.Planned, Progress: ComponentStatus.Planned, @@ -43,6 +44,7 @@ export const statusByComponent: ComponentKitsStatuses = { Carousel: ComponentStatus.Planned, Combobox: ComponentStatus.Beta, Popover: ComponentStatus.Draft, + Modal: ComponentStatus.Beta, Select: ComponentStatus.Draft, Separator: ComponentStatus.Beta, Tabs: ComponentStatus.Beta, diff --git a/apps/website/src/global.css b/apps/website/src/global.css index d34bb63aa..e820994e2 100644 --- a/apps/website/src/global.css +++ b/apps/website/src/global.css @@ -36,15 +36,15 @@ --border-radius: 0.375rem; - --shiki-color-text: theme('colors.black'); - --shiki-token-constant: theme('colors.emerald.800'); - --shiki-token-string: theme('colors.emerald.700'); - --shiki-token-comment: theme('colors.zinc.700'); - --shiki-token-keyword: theme('colors.sky.600'); - --shiki-token-parameter: theme('colors.pink.700'); - --shiki-token-function: theme('colors.purple.700'); - --shiki-token-string-expression: theme('colors.emerald.700'); - --shiki-token-punctuation: theme('colors.zinc.700'); + --shiki-color-text: theme('colors.white'); + --shiki-token-constant: theme('colors.emerald.300'); + --shiki-token-string: theme('colors.emerald.300'); + --shiki-token-comment: theme('colors.zinc.500'); + --shiki-token-keyword: theme('colors.sky.300'); + --shiki-token-parameter: theme('colors.pink.300'); + --shiki-token-function: theme('colors.violet.300'); + --shiki-token-string-expression: theme('colors.emerald.300'); + --shiki-token-punctuation: theme('colors.zinc.200'); } .dark { @@ -78,16 +78,6 @@ --color-input: 263 32.6% 17.5%; --color-ring: 263 26.8% 83.9%; - - --shiki-color-text: theme('colors.white'); - --shiki-token-constant: theme('colors.emerald.300'); - --shiki-token-string: theme('colors.emerald.300'); - --shiki-token-comment: theme('colors.zinc.500'); - --shiki-token-keyword: theme('colors.sky.300'); - --shiki-token-parameter: theme('colors.pink.300'); - --shiki-token-function: theme('colors.violet.300'); - --shiki-token-string-expression: theme('colors.emerald.300'); - --shiki-token-punctuation: theme('colors.zinc.200'); } } @@ -98,6 +88,77 @@ body { @apply bg-background text-foreground; } + + *::-webkit-scrollbar { + background-color: transparent; + width: 1rem; + height: 1rem; + } + + *::-webkit-scrollbar-thumb { + /* Thumb color */ + background-color: var(--qwikui-slate-500); + border-radius: 0.5rem; + background-clip: padding-box; + border: 0.3rem solid transparent; + } + + *::-webkit-scrollbar-corner { + background: transparent; + } + + *::-webkit-scrollbar-track { + background: #f1f1f1; + border-left: 1px solid var(--qwikui-slate-300); + } + + .dark *::-webkit-scrollbar-thumb { + background-color: var(--qwikui-slate-500); + } + + .dark *::-webkit-scrollbar-track { + background: var(--qwikui-slate-950); + border-left: 1px solid var(--qwikui-slate-800); + } + + .code-example *::-webkit-scrollbar-track { + background: transparent; + border-left: 0px; + } + + .code-example *::-webkit-scrollbar-thumb { + background: var(--qwikui-slate-400); + border-radius: 0.5rem; + background-clip: padding-box; + border: 0.35rem solid transparent; + } + + .code-example *::-webkit-scrollbar-thumb:hover { + background: var(--qwikui-slate-500); + border-radius: 0.5rem; + background-clip: padding-box; + border: 0.35rem solid transparent; + } + + .code-example-gradient { + background: linear-gradient( + to bottom, + var(--qwikui-slate-900), + var(--qwikui-slate-800) + ); + } + .dark .code-example-gradient { + background: linear-gradient( + to bottom, + var(--qwikui-slate-800), + var(--qwikui-slate-900) + ); + } + + /* no horizontal overflow on code examples */ + .tab-size pre { + white-space: pre-wrap; + } } :root { @@ -227,11 +288,6 @@ ol { line-height: 1.75; } -.layout { - grid-template-columns: 25% 70%; - grid-template-areas: 'sidebar content'; -} - /* Utilities layer for animations. The current arbitrary & docs tailwind animation guidelines are not maintainable long term. It would make more sense to supply the user with the animation declaration in the docs. */ @@ -314,4 +370,16 @@ ol { -0.8px -0.8px 0 var(--qwikui-purple-700), 0.8px -0.8px 0 var(--qwikui-purple-700), -0.8px 0.8px 0 var(--qwikui-purple-700), 0.8px 0.8px 0 var(--qwikui-purple-700); } + + .setup-grid-areas { + grid-template-areas: 'nav main toc'; + } + + .copy-btn-bg-dark { + background: hsla(215, 25%, 27%, 0.9); + } + + .copy-btn-bg-light { + background: hsla(214, 32%, 91%, 0.9); + } } diff --git a/apps/website/src/routes/_components/header/header.tsx b/apps/website/src/routes/_components/header/header.tsx index 6cd7cd778..096c06719 100644 --- a/apps/website/src/routes/_components/header/header.tsx +++ b/apps/website/src/routes/_components/header/header.tsx @@ -64,7 +64,7 @@ export default component$( return (
{ {propDescriptors?.map((propDescriptor) => { return ( - + {propDescriptor.name} - + {propDescriptor.type} diff --git a/apps/website/src/routes/docs/_components/code-copy/code-copy.tsx b/apps/website/src/routes/docs/_components/code-copy/code-copy.tsx index 79205ffc5..8493db411 100644 --- a/apps/website/src/routes/docs/_components/code-copy/code-copy.tsx +++ b/apps/website/src/routes/docs/_components/code-copy/code-copy.tsx @@ -24,6 +24,10 @@ export const CodeCopy = component$( onClick$={async () => { await copy(code); copied.value = true; + + setTimeout(() => { + copied.value = false; + }, 4000); }} > {!copied.value ? 'Copy' : 'Copied!'} diff --git a/apps/website/src/routes/docs/_components/highlight/highlight.tsx b/apps/website/src/routes/docs/_components/highlight/highlight.tsx index ad4ffeb9f..c1d6002ee 100644 --- a/apps/website/src/routes/docs/_components/highlight/highlight.tsx +++ b/apps/website/src/routes/docs/_components/highlight/highlight.tsx @@ -47,15 +47,23 @@ export const Highlight = component$( }); return ( -
-
- +
+ +
+
+
); }, diff --git a/apps/website/src/routes/docs/_components/navigation-docs/navigation-docs.tsx b/apps/website/src/routes/docs/_components/navigation-docs/navigation-docs.tsx index a805c5744..5a965184e 100644 --- a/apps/website/src/routes/docs/_components/navigation-docs/navigation-docs.tsx +++ b/apps/website/src/routes/docs/_components/navigation-docs/navigation-docs.tsx @@ -30,8 +30,8 @@ export const DocsNavigation = component$(({ linksGroups }: DocsNavigationProps) rounded-lg hover:bg-[var(--qwik-light-blue)] dark:hover:bg-[var(--qwik-dark-purple)]`; return (