fulldev-ui 0.3.35 → 0.4.0-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.github/ISSUE_TEMPLATE/bug_report.yml +57 -0
- package/.github/ISSUE_TEMPLATE/config.yml +5 -0
- package/.github/ISSUE_TEMPLATE/feature_request.yml +39 -0
- package/.github/pull_request_template.md +23 -0
- package/.github/workflows/github-releases-to-discord.yml +21 -0
- package/.prettierignore +15 -0
- package/.prettierrc.yaml +34 -0
- package/.vscode/extensions.json +4 -0
- package/.vscode/launch.json +11 -0
- package/.vscode/settings.json +23 -0
- package/CHANGELOG.md +100 -0
- package/CONTRIBUTING.md +102 -0
- package/LICENCE +21 -0
- package/README.md +9 -6
- package/astro.config.ts +44 -0
- package/package.json +41 -27
- package/pnpm-lock.yaml +6229 -0
- package/public/favicon/android-chrome-192x192.png +0 -0
- package/public/favicon/android-chrome-512x512.png +0 -0
- package/public/favicon/apple-touch-icon.png +0 -0
- package/public/favicon/browserconfig.xml +9 -0
- package/public/favicon/favicon-16x16.png +0 -0
- package/public/favicon/favicon-32x32.png +0 -0
- package/public/favicon/favicon.ico +0 -0
- package/public/favicon/mstile-150x150.png +0 -0
- package/public/favicon/safari-pinned-tab.svg +17 -0
- package/public/favicon/site.webmanifest +19 -0
- package/public/images/avatar-placeholder.jpg +0 -0
- package/public/images/avatars/1.jpeg +0 -0
- package/public/images/avatars/2.jpeg +0 -0
- package/public/images/avatars/3.jpeg +0 -0
- package/public/images/avatars/300/1.jpeg +0 -0
- package/public/images/avatars/300/2.jpeg +0 -0
- package/public/images/avatars/300/3.jpeg +0 -0
- package/public/images/avatars/300/4.jpeg +0 -0
- package/public/images/avatars/4.jpeg +0 -0
- package/public/images/avatars/5.jpeg +0 -0
- package/public/images/avatars/500/1.jpeg +0 -0
- package/public/images/avatars/500/2.jpeg +0 -0
- package/public/images/avatars/500/3.jpeg +0 -0
- package/public/images/avatars/500/4.jpeg +0 -0
- package/public/images/avatars/6.jpeg +0 -0
- package/public/images/avatars/7.jpeg +0 -0
- package/public/images/avatars/8.jpeg +0 -0
- package/public/images/block-code.png +0 -0
- package/public/images/blocks/colleagues.png +0 -0
- package/public/images/blocks/content.png +0 -0
- package/public/images/blocks/cta.png +0 -0
- package/public/images/blocks/features.png +0 -0
- package/public/images/blocks/footer.png +0 -0
- package/public/images/blocks/header.png +0 -0
- package/public/images/blocks/hero.png +0 -0
- package/public/images/blocks/intro.png +0 -0
- package/public/images/blocks/posts.png +0 -0
- package/public/images/blocks/prices.png +0 -0
- package/public/images/blocks/reviews.png +0 -0
- package/public/images/component-code.png +0 -0
- package/public/images/logo-placeholder.svg +1 -0
- package/public/images/placeholder-center.webp +0 -0
- package/public/images/placeholder-landscape-dark.png +0 -0
- package/public/images/placeholder-landscape.webp +0 -0
- package/public/images/placeholder-portrait.webp +0 -0
- package/public/images/placeholder-right.webp +0 -0
- package/public/images/placeholder.webp +0 -0
- package/siteicon.png +0 -0
- package/src/blocks/Categories.astro +12 -0
- package/src/blocks/Colleagues.astro +12 -0
- package/src/blocks/Contact.astro +152 -0
- package/src/blocks/Content.astro +12 -0
- package/src/blocks/Cta.astro +14 -0
- package/src/blocks/Features.astro +11 -0
- package/src/blocks/Footer.astro +7 -0
- package/src/blocks/Header.astro +7 -0
- package/src/blocks/Hero.astro +16 -0
- package/src/blocks/Intro.astro +19 -0
- package/src/blocks/Jobs.astro +12 -0
- package/src/blocks/Posts.astro +11 -0
- package/src/blocks/Prices.astro +22 -0
- package/src/blocks/Product.astro +64 -0
- package/src/blocks/Products.astro +11 -0
- package/src/blocks/Reviews.astro +13 -0
- package/src/components/{base/Avatar.astro → Avatar.astro} +7 -11
- package/src/components/{base/Badge.astro → Badge.astro} +36 -22
- package/src/components/{structure/Bento.astro → Bento.astro} +6 -9
- package/src/components/Block.astro +157 -0
- package/src/components/Blocks.astro +5 -0
- package/src/components/Box.astro +60 -0
- package/src/components/Button.astro +140 -0
- package/src/components/Card.astro +212 -0
- package/src/components/{structure/Carousel.astro → Carousel.astro} +13 -16
- package/src/components/Checkbox.astro +63 -0
- package/src/components/{structure/Column.astro → Column.astro} +18 -9
- package/src/components/Dialog.astro +65 -0
- package/src/components/Drawer.astro +99 -0
- package/src/components/Footer.astro +144 -0
- package/src/components/{structure/Grid.astro → Grid.astro} +7 -10
- package/src/components/Head.astro +85 -0
- package/src/components/Header.astro +204 -0
- package/src/components/Heading.astro +79 -0
- package/src/components/{base/Icon.astro → Icon.astro} +7 -9
- package/src/components/{base/Image.astro → Image.astro} +32 -30
- package/src/components/Input.astro +119 -0
- package/src/components/{typography/Label.astro → Label.astro} +12 -12
- package/src/components/{typography/Link.astro → Link.astro} +15 -13
- package/src/components/List.astro +41 -0
- package/src/components/{structure/Masonry.astro → Masonry.astro} +9 -11
- package/src/components/Rating.astro +82 -0
- package/src/components/{_Component.astro → Root.astro} +9 -11
- package/src/components/{structure/Row.astro → Row.astro} +6 -9
- package/src/components/Search.astro +62 -0
- package/src/components/Section.astro +274 -0
- package/src/components/Select.astro +144 -0
- package/src/components/Sidebar.astro +71 -0
- package/src/components/{structure/Split.astro → Split.astro} +6 -9
- package/src/components/{structure/Spread.astro → Spread.astro} +6 -9
- package/src/components/Switch.astro +114 -0
- package/src/components/Table.astro +121 -0
- package/src/components/Tagline.astro +35 -0
- package/src/components/Text.astro +43 -0
- package/src/components/Textarea.astro +105 -0
- package/src/components/Toc.astro +52 -0
- package/src/components/{structure/Wrap.astro → Wrap.astro} +5 -10
- package/src/components/docs/DecorativeBox.astro +15 -0
- package/src/components/docs/PropsTable.astro +95 -0
- package/src/components/experimental/Channel.astro +15 -10
- package/src/components/experimental/Form.astro +34 -0
- package/src/components/experimental/Gallery.astro +180 -0
- package/src/components/experimental/GalleryVertical.astro +161 -0
- package/src/components/{base → experimental}/Logo.astro +3 -5
- package/src/components/experimental/Price.astro +17 -15
- package/src/components/experimental/Prose.astro +154 -0
- package/src/components/{base → experimental}/Video.astro +1 -1
- package/src/components/experimental/Window.astro +173 -0
- package/src/content/config.ts +16 -13
- package/src/content/pages/_changelog.mdx +10 -0
- package/src/content/pages/_segment/footer.mdx +244 -0
- package/src/content/pages/_segment/header.mdx +210 -0
- package/src/content/pages/base/_dialog.mdx +17 -0
- package/src/content/pages/base/_drawer.mdx +17 -0
- package/src/content/pages/base/_image.mdx +14 -0
- package/src/content/pages/base/_switch.mdx +33 -0
- package/src/content/pages/base/badge.mdx +70 -0
- package/src/content/pages/base/button.mdx +71 -0
- package/src/content/pages/base/card.mdx +114 -0
- package/src/content/pages/base/checkbox.mdx +43 -0
- package/src/content/pages/base/icon.mdx +54 -0
- package/src/content/pages/base/input.mdx +67 -0
- package/src/content/pages/base/rating.mdx +66 -0
- package/src/content/pages/base/section.mdx +79 -0
- package/src/content/pages/base/select.mdx +77 -0
- package/src/content/pages/base/table.mdx +133 -0
- package/src/content/pages/base/textarea.mdx +73 -0
- package/src/content/pages/blocks/_banner.mdx +13 -0
- package/src/content/pages/blocks/_categories.mdx +149 -0
- package/src/content/pages/blocks/_jobs.mdx +37 -0
- package/src/content/pages/blocks/_product.mdx +29 -0
- package/src/content/pages/blocks/_products.mdx +55 -0
- package/src/content/pages/blocks/_stats.mdx +34 -0
- package/src/content/pages/blocks/colleagues.mdx +42 -0
- package/src/content/pages/blocks/content.mdx +101 -0
- package/src/content/pages/blocks/cta.mdx +192 -0
- package/src/content/pages/blocks/features.mdx +134 -0
- package/src/content/pages/blocks/footer.mdx +71 -0
- package/src/content/pages/blocks/header.mdx +192 -0
- package/src/content/pages/blocks/hero.mdx +97 -0
- package/src/content/pages/blocks/intro.mdx +132 -0
- package/src/content/pages/blocks/posts.mdx +40 -0
- package/src/content/pages/blocks/prices.mdx +126 -0
- package/src/content/pages/blocks/reviews.mdx +249 -0
- package/src/content/pages/blocks.mdx +10 -0
- package/src/content/pages/index.mdx +65 -0
- package/src/content/pages/overview/frameworks.mdx +180 -0
- package/src/content/pages/overview/installation.mdx +20 -0
- package/src/content/pages/overview/integration.mdx +37 -0
- package/src/content/pages/overview/introduction.mdx +20 -0
- package/src/content/pages/overview/theming.mdx +83 -0
- package/src/content/pages/structure/_row.mdx +23 -0
- package/src/content/pages/structure/_wrap.mdx +25 -0
- package/src/content/pages/structure/carousel.mdx +31 -0
- package/src/content/pages/structure/column.mdx +21 -0
- package/src/content/pages/structure/grid.mdx +26 -0
- package/src/content/pages/structure/masonry.mdx +32 -0
- package/src/content/pages/structure/split.mdx +21 -0
- package/src/content/pages/structure/spread.mdx +21 -0
- package/src/content/pages/typography/_tagline.mdx +36 -0
- package/src/content/pages/typography/heading.mdx +74 -0
- package/src/content/pages/typography/label.mdx +42 -0
- package/src/content/pages/typography/link.mdx +63 -0
- package/src/content/pages/typography/list.mdx +52 -0
- package/src/content/pages/typography/text.mdx +62 -0
- package/src/content/records/record.yml +1 -0
- package/src/content/settings/base.yml +48 -0
- package/src/content/settings/components.yml +27 -0
- package/src/css/color.css +6 -67
- package/src/css/custom.css +59 -0
- package/src/css/size.css +130 -0
- package/src/css/space.css +47 -26
- package/src/css/styles.css +4 -2
- package/src/env.d.ts +1 -1
- package/src/integration/generate-colors.ts +637 -0
- package/src/integration/index.ts +158 -0
- package/src/integration/tailwind-plugin.ts +80 -0
- package/src/integration/unocss-preset.ts +84 -0
- package/src/layouts/BlockLayout.astro +24 -0
- package/src/layouts/BlockOverviewLayout.astro +39 -0
- package/src/layouts/ComponentLayout.astro +23 -0
- package/src/layouts/JobsLayout.astro +40 -0
- package/src/layouts/Layout.astro +168 -0
- package/src/layouts/OverviewLayout.astro +45 -0
- package/src/layouts/PageLayout.astro +32 -0
- package/src/layouts/PostLayout.astro +32 -0
- package/src/layouts/ProductLayout.astro +31 -0
- package/src/pages/[...page].astro +41 -0
- package/src/schemas/base.ts +81 -0
- package/src/schemas/block.ts +15 -0
- package/src/schemas/card.ts +3 -0
- package/src/schemas/page.ts +43 -0
- package/src/schemas/utils.ts +22 -0
- package/src/utils/mergeEntries.ts +28 -0
- package/tsconfig.json +10 -1
- package/.astro/settings.json +0 -5
- package/.astro/types.d.ts +0 -147
- package/.env +0 -1
- package/astro.config.mjs +0 -6
- package/src/components/_Block.astro +0 -20
- package/src/components/_Blocks.astro +0 -11
- package/src/components/_Children.astro +0 -31
- package/src/components/_archive/Body.astro +0 -37
- package/src/components/_archive/Main.astro +0 -28
- package/src/components/_archive/Nav.astro +0 -50
- package/src/components/_todo/Form.astro +0 -36
- package/src/components/_todo/Prose.astro +0 -139
- package/src/components/_todo/Writeup.astro +0 -24
- package/src/components/base/Button.astro +0 -123
- package/src/components/base/Rating.astro +0 -47
- package/src/components/base/checkbox/Checkbox.astro +0 -52
- package/src/components/base/checkbox/CheckboxElement.astro +0 -31
- package/src/components/base/input/Input.astro +0 -79
- package/src/components/base/input/InputElement.astro +0 -69
- package/src/components/base/radio/Radio.astro +0 -66
- package/src/components/base/radio/RadioElement.astro +0 -34
- package/src/components/base/select/Select.astro +0 -90
- package/src/components/base/select/SelectElement.astro +0 -56
- package/src/components/base/select/SelectOption.astro +0 -32
- package/src/components/base/switch/Switch.astro +0 -55
- package/src/components/base/switch/SwitchElement.astro +0 -84
- package/src/components/base/table/Table.astro +0 -57
- package/src/components/base/table/TableBody.astro +0 -38
- package/src/components/base/table/TableCell.astro +0 -30
- package/src/components/base/table/TableFooter.astro +0 -48
- package/src/components/base/table/TableHead.astro +0 -31
- package/src/components/base/table/TableHeader.astro +0 -44
- package/src/components/base/table/TableRow.astro +0 -46
- package/src/components/base/textarea/Textarea.astro +0 -79
- package/src/components/base/textarea/TextareaElement.astro +0 -68
- package/src/components/segment/Box.astro +0 -46
- package/src/components/segment/Card.astro +0 -114
- package/src/components/segment/Footer.astro +0 -94
- package/src/components/segment/Header.astro +0 -100
- package/src/components/segment/Section.astro +0 -103
- package/src/components/segment/_regels.md +0 -32
- package/src/components/typography/Heading.astro +0 -66
- package/src/components/typography/List.astro +0 -47
- package/src/components/typography/ListItem.astro +0 -36
- package/src/components/typography/Paragraph.astro +0 -36
- package/src/components/typography/Tagline.astro +0 -36
- package/src/components/typography/Text.astro +0 -37
- package/src/components/utility/Head.astro +0 -83
- package/src/components/utility/Layout.astro +0 -46
- package/src/content/pages/index.md +0 -2
- package/src/css/color.scss +0 -289
- package/src/css/size.scss +0 -296
- package/src/css/utils.scss +0 -16
- package/src/index.ts +0 -71
- package/src/integration/integration.ts +0 -88
- package/src/integration/tailwind.ts +0 -34
- package/src/integration/unocss.ts +0 -38
- /package/src/{_archive → utils/_archive}/Childmorphic.ts +0 -0
- /package/src/{_archive → utils/_archive}/getAllCollections.ts +0 -0
- /package/src/{_archive → utils/_archive}/getCollectionCascade.ts +0 -0
- /package/src/{_archive → utils/_archive}/getPathname.ts +0 -0
- /package/src/{_archive → utils/_archive}/staticPageSchema.ts +0 -0
- /package/src/{_archive → utils/_archive}/transform/transform.ts +0 -0
- /package/src/{_archive → utils/_archive}/transform/transformCasing.ts +0 -0
- /package/src/{_archive → utils/_archive}/transform/transformReferences.ts +0 -0
- /package/src/{_archive → utils/_archive}/transform/transformSelfs.ts +0 -0
- /package/src/{_archive → utils/_archive}/transform/transformUnderscores.ts +0 -0
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
import type { HTMLAttributes } from 'astro/types'
|
|
3
|
-
import Component from '../../_Component.astro'
|
|
4
|
-
|
|
5
|
-
type Props = HTMLAttributes<'textarea'> & {
|
|
6
|
-
variant?: 'outline'
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
const {
|
|
10
|
-
placeholder,
|
|
11
|
-
name = placeholder,
|
|
12
|
-
variant = 'outline',
|
|
13
|
-
...rest
|
|
14
|
-
} = Astro.props
|
|
15
|
-
---
|
|
16
|
-
|
|
17
|
-
<Component
|
|
18
|
-
if={name}
|
|
19
|
-
as="textarea"
|
|
20
|
-
class="textarea-element"
|
|
21
|
-
{variant}
|
|
22
|
-
{placeholder}
|
|
23
|
-
{name}
|
|
24
|
-
{...rest}
|
|
25
|
-
/>
|
|
26
|
-
|
|
27
|
-
<style is:global lang="scss">
|
|
28
|
-
@import '../../../css/utils.scss';
|
|
29
|
-
|
|
30
|
-
@include component('textarea-element') {
|
|
31
|
-
display: flex;
|
|
32
|
-
position: relative;
|
|
33
|
-
align-items: center;
|
|
34
|
-
outline: none;
|
|
35
|
-
border: 1px solid var(--border);
|
|
36
|
-
border-radius: var(--radius-1);
|
|
37
|
-
background-color: var(--background);
|
|
38
|
-
padding: var(--space-3);
|
|
39
|
-
width: 100%;
|
|
40
|
-
height: calc((var(--text-1) + 2 * var(--space-4)) * 2);
|
|
41
|
-
min-height: calc((var(--text-1) + 2 * var(--space-4)) * 2);
|
|
42
|
-
resize: vertical;
|
|
43
|
-
color: var(--text);
|
|
44
|
-
font-weight: var(--font-weight);
|
|
45
|
-
font-size: var(--text-1);
|
|
46
|
-
line-height: 1.25;
|
|
47
|
-
font-family: var(--font-family);
|
|
48
|
-
|
|
49
|
-
&::placeholder {
|
|
50
|
-
color: var(--text);
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
&:hover {
|
|
54
|
-
outline: none;
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
&:focus {
|
|
58
|
-
outline: none;
|
|
59
|
-
box-shadow: inset 0 0 0 2px var(--border);
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
&:disabled {
|
|
63
|
-
opacity: 50%;
|
|
64
|
-
cursor: not-allowed;
|
|
65
|
-
pointer-events: none;
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
</style>
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
import type { HTMLTag, Polymorphic } from 'astro/types'
|
|
3
|
-
import Component from '../_Component.astro'
|
|
4
|
-
|
|
5
|
-
type Props<As extends HTMLTag = 'div'> = Polymorphic<{ as: As }> & {
|
|
6
|
-
align?: 'start' | 'center' | 'end'
|
|
7
|
-
position?: 'inset'
|
|
8
|
-
space?: 'none' | 'auto'
|
|
9
|
-
structure?:
|
|
10
|
-
| 'bento'
|
|
11
|
-
| 'carousel'
|
|
12
|
-
| 'column'
|
|
13
|
-
| 'grid'
|
|
14
|
-
| 'masonry'
|
|
15
|
-
| 'row'
|
|
16
|
-
| 'split'
|
|
17
|
-
| 'spread'
|
|
18
|
-
| 'wrap'
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
const {
|
|
22
|
-
as = 'div',
|
|
23
|
-
space = 'auto',
|
|
24
|
-
structure = 'column',
|
|
25
|
-
align = 'start',
|
|
26
|
-
...rest
|
|
27
|
-
} = Astro.props
|
|
28
|
-
---
|
|
29
|
-
|
|
30
|
-
<Component
|
|
31
|
-
class:list={['box']}
|
|
32
|
-
{as}
|
|
33
|
-
{structure}
|
|
34
|
-
{align}
|
|
35
|
-
{space}
|
|
36
|
-
{...rest}
|
|
37
|
-
>
|
|
38
|
-
<slot />
|
|
39
|
-
</Component>
|
|
40
|
-
|
|
41
|
-
<style is:global lang="scss">
|
|
42
|
-
@import '../../css/utils.scss';
|
|
43
|
-
|
|
44
|
-
@include component('box') {
|
|
45
|
-
}
|
|
46
|
-
</style>
|
|
@@ -1,114 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
import type { HTMLTag, Polymorphic } from 'astro/types'
|
|
3
|
-
import Component from '../_Component.astro'
|
|
4
|
-
|
|
5
|
-
type Props<As extends HTMLTag = 'a'> = Polymorphic<{ as: As }> & {
|
|
6
|
-
structure?: 'column' | 'group' | 'split' | 'spread' | 'row'
|
|
7
|
-
size?: 'xs' | 'sm' | 'md' | 'lg' | 'xl'
|
|
8
|
-
align?: 'start' | 'center' | 'end' | 'stretch'
|
|
9
|
-
radius?: 'none' | 'auto'
|
|
10
|
-
frame?: 'panel' | 'none'
|
|
11
|
-
color?: 'base' | 'brand'
|
|
12
|
-
contrast?: boolean
|
|
13
|
-
compact?: boolean
|
|
14
|
-
ratio?: 'landscape' | 'portrait' | 'square' | number
|
|
15
|
-
space?: 'auto' | 'none'
|
|
16
|
-
variant?:
|
|
17
|
-
| 'base'
|
|
18
|
-
| 'ghost'
|
|
19
|
-
| 'subtle'
|
|
20
|
-
| 'surface'
|
|
21
|
-
| 'outline'
|
|
22
|
-
| 'soft'
|
|
23
|
-
| 'surface'
|
|
24
|
-
| 'solid'
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
const {
|
|
28
|
-
href,
|
|
29
|
-
as = href ? 'a' : 'div',
|
|
30
|
-
space = 'auto',
|
|
31
|
-
frame = 'panel',
|
|
32
|
-
structure = 'column',
|
|
33
|
-
compact = true,
|
|
34
|
-
radius = 'auto',
|
|
35
|
-
variant = 'subtle',
|
|
36
|
-
...rest
|
|
37
|
-
} = Astro.props
|
|
38
|
-
---
|
|
39
|
-
|
|
40
|
-
<Component
|
|
41
|
-
class:list={['card']}
|
|
42
|
-
{compact}
|
|
43
|
-
{href}
|
|
44
|
-
{radius}
|
|
45
|
-
{structure}
|
|
46
|
-
{variant}
|
|
47
|
-
{space}
|
|
48
|
-
{frame}
|
|
49
|
-
{as}
|
|
50
|
-
{...rest}
|
|
51
|
-
>
|
|
52
|
-
<slot />
|
|
53
|
-
</Component>
|
|
54
|
-
|
|
55
|
-
<style is:global lang="scss">
|
|
56
|
-
@import '../../css/utils.scss';
|
|
57
|
-
|
|
58
|
-
@include component('card') {
|
|
59
|
-
position: relative;
|
|
60
|
-
text-decoration: none;
|
|
61
|
-
|
|
62
|
-
&[href] {
|
|
63
|
-
cursor: pointer;
|
|
64
|
-
|
|
65
|
-
> .full.image {
|
|
66
|
-
transition: var(--transition);
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
&:hover {
|
|
70
|
-
> .full.image {
|
|
71
|
-
opacity: 0.85;
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
&.ratio-landscape {
|
|
77
|
-
aspect-ratio: 4/3;
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
&.ratio-square {
|
|
81
|
-
aspect-ratio: 1/1;
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
&.ratio-portrait {
|
|
85
|
-
aspect-ratio: 3/4;
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
&.frame-fill {
|
|
89
|
-
border-radius: 0 !important;
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
&.frame-panel {
|
|
93
|
-
--inner-x: var(--space-7);
|
|
94
|
-
--inner-y: var(--space-7);
|
|
95
|
-
|
|
96
|
-
border: 1px solid var(--border);
|
|
97
|
-
background-color: var(--background);
|
|
98
|
-
padding: var(--inner-y) var(--inner-x);
|
|
99
|
-
overflow: hidden;
|
|
100
|
-
|
|
101
|
-
&[href]:hover {
|
|
102
|
-
border: 1px solid var(--border-hover);
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
&.radius-none {
|
|
106
|
-
border-radius: 0;
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
&.radius-auto {
|
|
110
|
-
border-radius: var(--radius-2);
|
|
111
|
-
}
|
|
112
|
-
}
|
|
113
|
-
}
|
|
114
|
-
</style>
|
|
@@ -1,94 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
import type { HTMLTag, Polymorphic } from 'astro/types'
|
|
3
|
-
import Component from '../_Component.astro'
|
|
4
|
-
|
|
5
|
-
type Props<As extends HTMLTag = 'footer'> = Polymorphic<{ as: As }> & {
|
|
6
|
-
structure?: 'spread' | 'row' | 'split' | 'column'
|
|
7
|
-
variant?: 'base' | 'ghost' | 'subtle' | 'soft' | 'surface' | 'outline'
|
|
8
|
-
frame?: 'fill' | 'panel' | 'contain'
|
|
9
|
-
align?: 'start' | 'center' | 'end'
|
|
10
|
-
size?: 'xs' | 'sm' | 'md' | 'lg' | 'xl'
|
|
11
|
-
scheme?: 'light' | 'dark'
|
|
12
|
-
color?: 'base' | 'brand'
|
|
13
|
-
space?: 'none' | 'auto'
|
|
14
|
-
|
|
15
|
-
compact?: boolean
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
const {
|
|
19
|
-
as = 'footer',
|
|
20
|
-
space = 'auto',
|
|
21
|
-
structure = 'spread',
|
|
22
|
-
variant = 'subtle',
|
|
23
|
-
frame = 'fill',
|
|
24
|
-
...rest
|
|
25
|
-
} = Astro.props
|
|
26
|
-
---
|
|
27
|
-
|
|
28
|
-
<Component
|
|
29
|
-
class:list={['footer']}
|
|
30
|
-
{structure}
|
|
31
|
-
{as}
|
|
32
|
-
{variant}
|
|
33
|
-
{frame}
|
|
34
|
-
{space}
|
|
35
|
-
{...rest}
|
|
36
|
-
>
|
|
37
|
-
<slot />
|
|
38
|
-
</Component>
|
|
39
|
-
|
|
40
|
-
<style is:global lang="scss">
|
|
41
|
-
@import '../../css/utils.scss';
|
|
42
|
-
|
|
43
|
-
@include component('footer') {
|
|
44
|
-
--screen: 1536px;
|
|
45
|
-
--gutter: max(4vw, calc(100vw - var(--screen)) / 2);
|
|
46
|
-
|
|
47
|
-
margin: var(--outer-y) var(--outer-x);
|
|
48
|
-
background: var(--background);
|
|
49
|
-
padding: var(--inner-y) var(--inner-x);
|
|
50
|
-
width: 100%;
|
|
51
|
-
max-width: calc(100% - (2 * var(--outer-x)));
|
|
52
|
-
|
|
53
|
-
&.frame-fill {
|
|
54
|
-
border-top: 1px solid var(--border);
|
|
55
|
-
--inner-x: var(--gutter);
|
|
56
|
-
--outer-x: 0;
|
|
57
|
-
--inner-y: var(--space-7);
|
|
58
|
-
--outer-y: 0;
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
&.frame-panel {
|
|
62
|
-
margin-top: var(--space-2);
|
|
63
|
-
margin-right: var(--gutter);
|
|
64
|
-
margin-left: var(--gutter);
|
|
65
|
-
border: 1px solid var(--border);
|
|
66
|
-
border-radius: var(--radius-3);
|
|
67
|
-
|
|
68
|
-
--inner-x: var(--gutter);
|
|
69
|
-
--outer-x: 0;
|
|
70
|
-
--inner-y: var(--space-7);
|
|
71
|
-
--outer-y: 0;
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
&.frame-contain {
|
|
75
|
-
--inner-x: max(4vw, var(--space-7));
|
|
76
|
-
--outer-x: max(0px, calc(var(--gutter) - var(--inner-x)));
|
|
77
|
-
--inner-y: var(--space-7);
|
|
78
|
-
--outer-y: 0;
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
&.align-start {
|
|
82
|
-
align-items: flex-start;
|
|
83
|
-
text-align: left;
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
&.align-center {
|
|
87
|
-
align-items: center;
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
&.align-end {
|
|
91
|
-
align-items: flex-end;
|
|
92
|
-
}
|
|
93
|
-
}
|
|
94
|
-
</style>
|
|
@@ -1,100 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
import type { HTMLTag, Polymorphic } from 'astro/types'
|
|
3
|
-
import Component from '../_Component.astro'
|
|
4
|
-
|
|
5
|
-
type Props<As extends HTMLTag = 'header'> = Polymorphic<{ as: As }> & {
|
|
6
|
-
structure?: 'spread' | 'row' | 'column'
|
|
7
|
-
position?: 'relative' | 'sticky' | 'fixed' | 'absolute'
|
|
8
|
-
variant?: 'ghost' | 'subtle' | 'soft' | 'surface' | 'outline'
|
|
9
|
-
size?: 'xs' | 'sm' | 'md' | 'lg' | 'xl'
|
|
10
|
-
frame?: 'fill' | 'panel'
|
|
11
|
-
align?: 'start' | 'center' | 'end'
|
|
12
|
-
space?: 'none' | 'auto'
|
|
13
|
-
compact?: boolean
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
const {
|
|
17
|
-
as = 'header',
|
|
18
|
-
space = 'auto',
|
|
19
|
-
structure = 'spread',
|
|
20
|
-
frame = 'fill',
|
|
21
|
-
variant = 'subtle',
|
|
22
|
-
compact = true,
|
|
23
|
-
...rest
|
|
24
|
-
} = Astro.props
|
|
25
|
-
---
|
|
26
|
-
|
|
27
|
-
<Component
|
|
28
|
-
class:list={['header']}
|
|
29
|
-
{as}
|
|
30
|
-
{frame}
|
|
31
|
-
{compact}
|
|
32
|
-
{structure}
|
|
33
|
-
{variant}
|
|
34
|
-
{space}
|
|
35
|
-
{...rest}
|
|
36
|
-
>
|
|
37
|
-
<slot />
|
|
38
|
-
</Component>
|
|
39
|
-
|
|
40
|
-
<style is:global lang="scss">
|
|
41
|
-
@import '../../css/utils.scss';
|
|
42
|
-
|
|
43
|
-
:root {
|
|
44
|
-
--header-height: calc(
|
|
45
|
-
var(--text-1) + 2 * var(--space-4) + 2 * var(--space-3)
|
|
46
|
-
);
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
@include component('header') {
|
|
50
|
-
--screen: 1536px;
|
|
51
|
-
--gutter: max(4vw, calc(100vw - var(--screen)) / 2);
|
|
52
|
-
|
|
53
|
-
display: flex;
|
|
54
|
-
position: relative;
|
|
55
|
-
top: 0;
|
|
56
|
-
right: 0;
|
|
57
|
-
left: 0;
|
|
58
|
-
z-index: 10;
|
|
59
|
-
margin: var(--outer-y) var(--outer-x);
|
|
60
|
-
border-bottom: 1px solid var(--border);
|
|
61
|
-
background-color: var(--background);
|
|
62
|
-
padding: 0 var(--inner-x);
|
|
63
|
-
width: 100%;
|
|
64
|
-
max-width: calc(100% - (2 * var(--outer-x)));
|
|
65
|
-
height: var(--header-height);
|
|
66
|
-
|
|
67
|
-
&.frame-fill {
|
|
68
|
-
--inner-x: var(--gutter);
|
|
69
|
-
--outer-y: 0;
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
&.frame-contain {
|
|
73
|
-
--inner-x: max(4vw, var(--space-3));
|
|
74
|
-
--outer-x: max(0px, calc(var(--gutter) - var(--inner-x)));
|
|
75
|
-
--outer-y: 0;
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
&.frame-panel {
|
|
79
|
-
--inner-x: min(4vw, var(--space-3));
|
|
80
|
-
--outer-x: var(--gutter);
|
|
81
|
-
--outer-y: var(--space-3);
|
|
82
|
-
|
|
83
|
-
border: 1px solid var(--border);
|
|
84
|
-
border-radius: var(--radius-3);
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
&.position-fixed {
|
|
88
|
-
position: fixed;
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
&.position-absolute {
|
|
92
|
-
position: absolute;
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
&.position-sticky {
|
|
96
|
-
position: sticky;
|
|
97
|
-
top: -1px;
|
|
98
|
-
}
|
|
99
|
-
}
|
|
100
|
-
</style>
|
|
@@ -1,103 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
import type { HTMLTag, Polymorphic } from 'astro/types'
|
|
3
|
-
import Component from '../_Component.astro'
|
|
4
|
-
|
|
5
|
-
type Props<As extends HTMLTag = 'section'> = Polymorphic<{ as: As }> & {
|
|
6
|
-
scheme?: 'light' | 'dark'
|
|
7
|
-
color?: 'base' | 'brand'
|
|
8
|
-
size?: 'xs' | 'sm' | 'md' | 'lg' | 'xl'
|
|
9
|
-
frame?: 'fill' | 'viewport' | 'contain' | 'panel'
|
|
10
|
-
variant?: 'ghost' | 'subtle' | 'outline' | 'soft' | 'solid' | 'surface'
|
|
11
|
-
align?: 'start' | 'center' | 'end'
|
|
12
|
-
structure?: 'column' | 'split' | 'spread'
|
|
13
|
-
// order?: 'reverse' | 'switch'
|
|
14
|
-
space?: 'auto' | 'none'
|
|
15
|
-
compact?: boolean
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
const {
|
|
19
|
-
as = 'div',
|
|
20
|
-
space = 'auto',
|
|
21
|
-
frame = 'fill',
|
|
22
|
-
structure = 'column',
|
|
23
|
-
variant = 'ghost',
|
|
24
|
-
align = 'start',
|
|
25
|
-
...rest
|
|
26
|
-
} = Astro.props
|
|
27
|
-
---
|
|
28
|
-
|
|
29
|
-
<Component
|
|
30
|
-
class:list={['section']}
|
|
31
|
-
{as}
|
|
32
|
-
{frame}
|
|
33
|
-
{variant}
|
|
34
|
-
{align}
|
|
35
|
-
{space}
|
|
36
|
-
{structure}
|
|
37
|
-
{...rest}
|
|
38
|
-
>
|
|
39
|
-
<slot />
|
|
40
|
-
</Component>
|
|
41
|
-
|
|
42
|
-
<style is:global lang="scss">
|
|
43
|
-
@import '../../css/utils.scss';
|
|
44
|
-
|
|
45
|
-
@include component('section') {
|
|
46
|
-
--screen: 1536px;
|
|
47
|
-
--gutter: max(4vw, calc(100vw - var(--screen)) / 2);
|
|
48
|
-
|
|
49
|
-
position: relative;
|
|
50
|
-
margin: var(--outer-y) var(--outer-x);
|
|
51
|
-
background-color: var(--background);
|
|
52
|
-
padding: var(--inner-y) var(--inner-x);
|
|
53
|
-
width: 100%;
|
|
54
|
-
max-width: calc(100% - (2 * var(--outer-x)));
|
|
55
|
-
height: auto;
|
|
56
|
-
|
|
57
|
-
&.frame-fill {
|
|
58
|
-
--inner-x: var(--gutter);
|
|
59
|
-
--outer-x: 0;
|
|
60
|
-
--inner-y: var(--space-7);
|
|
61
|
-
--outer-y: 0;
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
&.frame-viewport {
|
|
65
|
-
--inner-x: var(--gutter);
|
|
66
|
-
--outer-x: 0;
|
|
67
|
-
--inner-y: var(--space-7);
|
|
68
|
-
--outer-y: 0;
|
|
69
|
-
|
|
70
|
-
min-height: 100vh;
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
&.frame-contain {
|
|
74
|
-
--inner-x: max(4vw);
|
|
75
|
-
--outer-x: max(0px, calc(var(--gutter) - var(--inner-x)));
|
|
76
|
-
--inner-y: var(--space-7);
|
|
77
|
-
--outer-y: 0;
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
&.frame-panel {
|
|
81
|
-
--inner-x: min(4vw, var(--space-7));
|
|
82
|
-
--outer-x: var(--gutter);
|
|
83
|
-
--inner-y: var(--space-7);
|
|
84
|
-
--outer-y: var(--space-7);
|
|
85
|
-
|
|
86
|
-
border: 1px solid var(--border);
|
|
87
|
-
border-radius: var(--radius-2);
|
|
88
|
-
overflow: hidden;
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
// &.order-reverse {
|
|
92
|
-
// --is-reverse: initial;
|
|
93
|
-
|
|
94
|
-
// > *:first-child {
|
|
95
|
-
// order: 999;
|
|
96
|
-
// }
|
|
97
|
-
|
|
98
|
-
// & > *:last-child {
|
|
99
|
-
// order: -999;
|
|
100
|
-
// }
|
|
101
|
-
// }
|
|
102
|
-
}
|
|
103
|
-
</style>
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
Kan je een collectie Section maken? Ja: Hero, Cta etc
|
|
2
|
-
Kan je een collectie Cards maken? Ja: Product, Post etc
|
|
3
|
-
|
|
4
|
-
Kan je een collectie ... maken? Zo ja = segment.
|
|
5
|
-
Segments omschrijven super duidelijk de content.
|
|
6
|
-
Group is een voorbeeld van een slechte segment, want niemand wat hier in zit.
|
|
7
|
-
|
|
8
|
-
Deze segments willen we uiteindelijk hebben:
|
|
9
|
-
|
|
10
|
-
- Card
|
|
11
|
-
- Section
|
|
12
|
-
- Header
|
|
13
|
-
- Banner
|
|
14
|
-
- Sidebar
|
|
15
|
-
- Layout
|
|
16
|
-
- Deck
|
|
17
|
-
- Footer
|
|
18
|
-
|
|
19
|
-
Denk aan ProductCard, ProductSection, ProductLayout
|
|
20
|
-
|
|
21
|
-
Denk aan een block library met Sections, Cards, Sidebars, Header, Banners, Footer
|
|
22
|
-
|
|
23
|
-
Ze omschrijven ALLEMAAL duidelijk wat de content is.
|
|
24
|
-
|
|
25
|
-
Beschrijft het niet duidelijk de content? Beschrijft het wel duidelijk de structuur? >> structure
|
|
26
|
-
|
|
27
|
-
Waar structures 1 slot hebben, moeten segments meerdere slots krijgen. reden is dat de content hier bepalen is! Anders klopt de segment naam sws niet.
|
|
28
|
-
|
|
29
|
-
Section heeft bijv segment, writeup, actions, media.
|
|
30
|
-
Deck heeft bijv segment, writeup, actions, cards
|
|
31
|
-
|
|
32
|
-
Een segment kan goed uit meerdere structures bestaan, waar iedere slot een eigen structure heeft. Als segction structure spread bijv heeft wordt niet perse de hele section spread, maar de segment wel. Of kan ook met align stretch ipv structure
|
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
import type { HTMLTag, Polymorphic } from 'astro/types'
|
|
3
|
-
import Component from '../_Component.astro'
|
|
4
|
-
|
|
5
|
-
type Props<As extends HTMLTag = 'h2'> = Polymorphic<{ as: As }> & {
|
|
6
|
-
size?: 'xs' | 'sm' | 'md' | 'lg' | 'xl' | '2xl' | '3xl' | '4xl' | '5xl'
|
|
7
|
-
color?: 'base' | 'brand'
|
|
8
|
-
level?: 1 | 2 | 3 | 4 | 5 | 6
|
|
9
|
-
contrast?: boolean
|
|
10
|
-
html?: string
|
|
11
|
-
text?: string
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
const { level = 2, as = `h${level}`, contrast = true, ...rest } = Astro.props
|
|
15
|
-
---
|
|
16
|
-
|
|
17
|
-
<Component
|
|
18
|
-
class:list={['heading']}
|
|
19
|
-
{as}
|
|
20
|
-
{contrast}
|
|
21
|
-
{level}
|
|
22
|
-
{...rest}
|
|
23
|
-
>
|
|
24
|
-
<slot />
|
|
25
|
-
</Component>
|
|
26
|
-
|
|
27
|
-
<style is:global lang="scss">
|
|
28
|
-
@import '../../css/utils.scss';
|
|
29
|
-
|
|
30
|
-
@include component('heading') {
|
|
31
|
-
margin: 0;
|
|
32
|
-
max-width: calc(var(--space-4) * 36);
|
|
33
|
-
scroll-margin: var(--space-5);
|
|
34
|
-
color: var(--color-11);
|
|
35
|
-
font-weight: var(--heading-font-weight);
|
|
36
|
-
font-weight: 700;
|
|
37
|
-
line-height: 1.1;
|
|
38
|
-
font-family: var(--heading-font-family);
|
|
39
|
-
letter-spacing: -0.025em;
|
|
40
|
-
text-decoration: none;
|
|
41
|
-
|
|
42
|
-
&.level-1 {
|
|
43
|
-
font-size: var(--text-7);
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
&.level-2 {
|
|
47
|
-
font-size: var(--text-6);
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
&.level-3 {
|
|
51
|
-
font-size: var(--text-5);
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
&.level-4 {
|
|
55
|
-
font-size: var(--text-4);
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
&.level-5 {
|
|
59
|
-
font-size: var(--text-3);
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
&.level-6 {
|
|
63
|
-
font-size: var(--text-2);
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
|
-
</style>
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
import type { ComponentProps, HTMLTag, Polymorphic } from 'astro/types'
|
|
3
|
-
import Component from '../_Component.astro'
|
|
4
|
-
import ListItem from './ListItem.astro'
|
|
5
|
-
|
|
6
|
-
type Props<As extends HTMLTag = 'ul'> = Polymorphic<{ as: As }> & {
|
|
7
|
-
size?: 'xs' | 'sm' | 'md' | 'lg' | 'xl'
|
|
8
|
-
color?: 'base' | 'brand'
|
|
9
|
-
contrast?: boolean
|
|
10
|
-
items?: (
|
|
11
|
-
| ComponentProps<typeof ListItem>
|
|
12
|
-
| ComponentProps<typeof ListItem>['html']
|
|
13
|
-
)[]
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
const { as = 'ul', items, ...rest } = Astro.props
|
|
17
|
-
---
|
|
18
|
-
|
|
19
|
-
<Component
|
|
20
|
-
class:list={['list']}
|
|
21
|
-
{as}
|
|
22
|
-
{...rest}
|
|
23
|
-
>
|
|
24
|
-
{
|
|
25
|
-
items?.map((item) => {
|
|
26
|
-
if (typeof item === 'string') return <ListItem html={item} />
|
|
27
|
-
else return <ListItem {...item} />
|
|
28
|
-
})
|
|
29
|
-
}
|
|
30
|
-
<slot />
|
|
31
|
-
</Component>
|
|
32
|
-
|
|
33
|
-
<style is:global lang="scss">
|
|
34
|
-
@import '../../css/utils.scss';
|
|
35
|
-
|
|
36
|
-
@include component('list') {
|
|
37
|
-
display: flex;
|
|
38
|
-
flex-direction: column;
|
|
39
|
-
padding-left: var(--space-5);
|
|
40
|
-
color: var(--text);
|
|
41
|
-
font-weight: var(--font-weight);
|
|
42
|
-
font-size: var(--text-2);
|
|
43
|
-
line-height: 1.625;
|
|
44
|
-
font-family: var(--font-family);
|
|
45
|
-
list-style-type: disc;
|
|
46
|
-
}
|
|
47
|
-
</style>
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
import type { HTMLTag, Polymorphic } from 'astro/types'
|
|
3
|
-
import Component from '../_Component.astro'
|
|
4
|
-
|
|
5
|
-
type Props<As extends HTMLTag = 'li'> = Polymorphic<{ as: As }> & {
|
|
6
|
-
size?: 'xs' | 'sm' | 'md' | 'lg' | 'xl'
|
|
7
|
-
color?: 'base' | 'brand'
|
|
8
|
-
contrast?: boolean
|
|
9
|
-
html?: string
|
|
10
|
-
text?: string
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
const { as = 'li', ...rest } = Astro.props
|
|
14
|
-
---
|
|
15
|
-
|
|
16
|
-
<Component
|
|
17
|
-
class:list={['list-item']}
|
|
18
|
-
{as}
|
|
19
|
-
{...rest}
|
|
20
|
-
>
|
|
21
|
-
<slot />
|
|
22
|
-
</Component>
|
|
23
|
-
|
|
24
|
-
<style is:global lang="scss">
|
|
25
|
-
@import '../../css/utils.scss';
|
|
26
|
-
|
|
27
|
-
@include component('list-item') {
|
|
28
|
-
align-items: center;
|
|
29
|
-
max-width: calc(var(--space-4) * 36);
|
|
30
|
-
color: var(--text);
|
|
31
|
-
font-weight: var(--font-weight);
|
|
32
|
-
font-size: var(--text-2);
|
|
33
|
-
line-height: 1.625;
|
|
34
|
-
font-family: var(--font-family);
|
|
35
|
-
}
|
|
36
|
-
</style>
|