fulldev-ui 0.6.0-beta.6 → 0.6.0-beta.8
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/.vscode/settings.json +2 -0
- package/astro.config.ts +1 -3
- package/cloudcannon.config.yml +2 -3
- package/package.json +1 -1
- package/src/blocks/Banner.astro +3 -3
- package/src/blocks/Colleagues1.astro +16 -16
- package/src/blocks/Contact1.astro +5 -10
- package/src/blocks/Content1.astro +22 -39
- package/src/blocks/Content2.astro +21 -45
- package/src/blocks/Content3.astro +36 -31
- package/src/blocks/Content4.astro +28 -35
- package/src/blocks/Content5.astro +72 -0
- package/src/blocks/Cta1.astro +6 -6
- package/src/blocks/Features1.astro +9 -5
- package/src/blocks/Footer.astro +13 -5
- package/src/blocks/Header.astro +19 -15
- package/src/blocks/Hero1.astro +8 -5
- package/src/blocks/Industries1.astro +86 -0
- package/src/blocks/Intro1.astro +7 -9
- package/src/blocks/Jobs1.astro +28 -24
- package/src/blocks/Logos1.astro +4 -4
- package/src/blocks/Products1.astro +4 -4
- package/src/blocks/Projects1.astro +103 -0
- package/src/blocks/Reviews1.astro +9 -7
- package/src/{components → blocks}/Subheader.astro +1 -2
- package/src/components/Badge.astro +8 -20
- package/src/components/Badges.astro +3 -3
- package/src/components/Block.astro +1 -1
- package/src/components/Button.astro +9 -18
- package/src/components/Cart.astro +6 -6
- package/src/components/CartSummary.astro +1 -0
- package/src/components/Channel.astro +9 -3
- package/src/components/Channels.astro +11 -42
- package/src/components/Checkbox.astro +8 -14
- package/src/components/Element.astro +2 -1
- package/src/components/Form.astro +1 -2
- package/src/components/Gallery.astro +6 -5
- package/src/components/Head.astro +14 -4
- package/src/components/Heading.astro +21 -17
- package/src/components/Icon.astro +2 -3
- package/src/components/Image.astro +6 -2
- package/src/components/Input.astro +11 -14
- package/src/components/Label.astro +6 -6
- package/src/components/Link.astro +13 -16
- package/src/components/Links.astro +1 -2
- package/src/components/List.astro +3 -5
- package/src/components/Logo.astro +9 -16
- package/src/components/Menu.astro +7 -3
- package/src/components/Paragraph.astro +6 -7
- package/src/components/Price.astro +1 -4
- package/src/components/Rating.astro +4 -2
- package/src/components/Search.astro +1 -6
- package/src/components/Select.astro +3 -4
- package/src/components/Sidebar.astro +6 -6
- package/src/components/Social.astro +3 -1
- package/src/components/Socials.astro +18 -34
- package/src/components/Switch.astro +4 -69
- package/src/components/Table.astro +2 -3
- package/src/components/Tagline.astro +6 -7
- package/src/components/Textarea.astro +5 -5
- package/src/components/Themer.astro +3 -3
- package/src/components/Toc.astro +7 -11
- package/src/components/Toggle.astro +45 -0
- package/src/components/{Breadcrumb.astro → _Breadcrumb.astro} +3 -3
- package/src/components/_Image.astro +2 -2
- package/src/components/docs/Props.astro +21 -0
- package/src/content/layouts/base.yml +131 -19
- package/src/content/pages/base/toggle.mdx +28 -0
- package/src/content/pages/{blocks → docs/blocks}/banner.mdx +1 -0
- package/src/content/pages/docs/blocks/colleagues.mdx +49 -0
- package/src/content/pages/docs/blocks/content.mdx +155 -0
- package/src/content/pages/docs/blocks/cta.mdx +16 -0
- package/src/content/pages/docs/blocks/feature.mdx +17 -0
- package/src/content/pages/docs/blocks/features.mdx +35 -0
- package/src/content/pages/docs/blocks/footer.mdx +46 -0
- package/src/content/pages/docs/blocks/header.mdx +60 -0
- package/src/content/pages/docs/blocks/hero.mdx +18 -0
- package/src/content/pages/docs/blocks/intro.mdx +16 -0
- package/src/content/pages/docs/blocks/logos.mdx +37 -0
- package/src/content/pages/docs/blocks/projects.mdx +36 -0
- package/src/content/pages/docs/blocks/reviews.mdx +65 -0
- package/src/content/pages/docs/blocks.mdx +45 -20
- package/src/content/pages/docs/collections/pages.mdx +2 -2
- package/src/content/pages/docs/components/{table.mdx → _table.mdx} +2 -4
- package/src/content/pages/docs/components/{themer.mdx → _themer.mdx} +2 -4
- package/src/content/pages/docs/components/_toggle.mdx +2 -2
- package/src/content/pages/docs/components/badge.mdx +2 -4
- package/src/content/pages/docs/components/badges.mdx +3 -4
- package/src/content/pages/docs/components/button.mdx +2 -4
- package/src/content/pages/docs/components/buttons.mdx +3 -4
- package/src/content/pages/docs/components/channel.mdx +2 -4
- package/src/content/pages/docs/components/channels.mdx +3 -2
- package/src/content/pages/docs/components/checkbox.mdx +2 -4
- package/src/content/pages/docs/components/heading.mdx +11 -21
- package/src/content/pages/docs/components/icon.mdx +2 -4
- package/src/content/pages/docs/components/image.mdx +3 -9
- package/src/content/pages/docs/components/input.mdx +2 -4
- package/src/content/pages/docs/components/label.mdx +2 -4
- package/src/content/pages/docs/components/link.mdx +2 -4
- package/src/content/pages/docs/components/links.mdx +3 -4
- package/src/content/pages/docs/components/list.mdx +2 -4
- package/src/content/pages/docs/components/logo.mdx +9 -21
- package/src/content/pages/docs/components/menu.mdx +20 -48
- package/src/content/pages/docs/components/paragraph.mdx +44 -0
- package/src/content/pages/docs/components/rating.mdx +9 -42
- package/src/content/pages/docs/components/select.mdx +2 -4
- package/src/content/pages/docs/components/social.mdx +2 -4
- package/src/content/pages/docs/components/socials.mdx +3 -2
- package/src/content/pages/docs/components/switch.mdx +2 -4
- package/src/content/pages/docs/components/tagline.mdx +2 -6
- package/src/content/pages/docs/components/textarea.mdx +2 -4
- package/src/content/pages/docs/components.mdx +3 -4
- package/src/content/pages/docs/customization.mdx +52 -20
- package/src/content/pages/docs/frameworks.mdx +12 -11
- package/src/content/pages/docs/index.mdx +3 -2
- package/src/content/pages/docs/installation.mdx +9 -6
- package/src/content/pages/docs/layouts/doc.mdx +15 -0
- package/src/content/pages/docs/layouts/page.mdx +15 -0
- package/src/content/pages/docs/layouts.mdx +66 -19
- package/src/content/pages/docs/{generating-pages.mdx → pages.mdx} +1 -0
- package/src/content/pages/docs/{components → structures}/_card.mdx +6 -6
- package/src/content/pages/docs/{components → structures}/_drawer.mdx +1 -1
- package/src/content/pages/docs/structures/card.mdx +15 -0
- package/src/content/pages/docs/{components → structures}/code.mdx +4 -7
- package/src/content/pages/docs/structures/container.mdx +15 -0
- package/src/content/pages/docs/structures/drawer.mdx +15 -0
- package/src/content/pages/docs/structures/group.mdx +15 -0
- package/src/content/pages/docs/structures/layout.mdx +15 -0
- package/src/content/pages/docs/structures/masonry.mdx +15 -0
- package/src/content/pages/docs/structures/matrix.mdx +15 -0
- package/src/content/pages/docs/structures/panel.mdx +15 -0
- package/src/content/pages/docs/{components → structures}/prose.mdx +3 -6
- package/src/content/pages/docs/structures/section.mdx +15 -0
- package/src/content/pages/docs/structures/stack.mdx +15 -0
- package/src/content/pages/docs/structures/writeup.mdx +15 -0
- package/src/content/pages/docs/structures.mdx +7 -0
- package/src/content/pages/index.mdx +7 -4
- package/src/content/pages/showcase.mdx +1 -4
- package/src/css/theme.css +9 -42
- package/src/integration/index.ts +1 -3
- package/src/layouts/Block.astro +81 -0
- package/src/layouts/Category.astro +6 -6
- package/src/layouts/Doc.astro +50 -24
- package/src/layouts/Job.astro +5 -7
- package/src/layouts/Jobs.astro +14 -14
- package/src/layouts/Page.astro +4 -4
- package/src/layouts/Post.astro +7 -6
- package/src/layouts/Product.astro +3 -2
- package/src/schemas/badge.ts +14 -0
- package/src/schemas/block.ts +58 -0
- package/src/schemas/{components/button.ts → button.ts} +3 -7
- package/src/schemas/channel.ts +14 -0
- package/src/schemas/checkbox.ts +13 -0
- package/src/schemas/footer.ts +17 -0
- package/src/schemas/{components/head.ts → head.ts} +5 -5
- package/src/schemas/header.ts +21 -0
- package/src/schemas/{components/image.ts → image.ts} +22 -9
- package/src/schemas/input.ts +13 -0
- package/src/schemas/link.ts +14 -0
- package/src/schemas/logo.ts +13 -0
- package/src/schemas/menu.ts +11 -0
- package/src/schemas/page.ts +11 -14
- package/src/schemas/{utils/pathSchema.ts → path.ts} +1 -1
- package/src/schemas/textarea.ts +11 -0
- package/src/stores/cart.svelte.ts +0 -1
- package/src/{components → structures}/Card.astro +5 -1
- package/src/{components → structures}/Code.astro +7 -6
- package/src/{components → structures}/Container.astro +1 -1
- package/src/{components → structures}/Drawer.astro +4 -4
- package/src/{components → structures}/Layout.astro +2 -3
- package/src/structures/Matrix.astro +39 -0
- package/src/{components → structures}/Prose.astro +17 -6
- package/src/structures/Sidebar.astro +37 -0
- package/src/{components → structures}/Stack.astro +1 -1
- package/src/{components → structures}/Writeup.astro +9 -1
- package/src/structures/_Bento.astro +34 -0
- package/src/utils/cart.ts +1 -1
- package/tailwind.config.ts +5 -7
- package/tsconfig.json +3 -1
- package/public/favicon/favicon-16x16-dark.png +0 -0
- package/public/favicon/favicon-32x32-dark.png +0 -0
- package/public/favicon/favicon-48x48-dark.png +0 -0
- package/public/favicon/favicon-dark.ico +0 -0
- package/src/blocks/Feature1.astro +0 -61
- package/src/components/Avatar.astro +0 -45
- package/src/components/Avatars.astro +0 -36
- package/src/components/Cards.astro +0 -133
- package/src/components/Dialog.astro +0 -67
- package/src/components/DrawerOld.astro +0 -143
- package/src/components/Grid.astro +0 -39
- package/src/components/Header.astro +0 -32
- package/src/components/Navigation.astro +0 -39
- package/src/components/_Author.astro +0 -90
- package/src/components/_Header.astro +0 -129
- package/src/components/_Prose copy.astro +0 -172
- package/src/components/_Sidebar copy.astro +0 -87
- package/src/components/docs/DecorativeBox.astro +0 -15
- package/src/components/docs/PropsTable.astro +0 -49
- package/src/components/experimental/Video.astro +0 -32
- package/src/components/experimental/Window.astro +0 -122
- package/src/content/pages/blocks/_footer.mdx +0 -75
- package/src/content/pages/blocks/_header.mdx +0 -183
- package/src/content/pages/blocks/_prices.mdx +0 -122
- package/src/content/pages/blocks/_product.mdx +0 -97
- package/src/content/pages/blocks/_products.mdx +0 -52
- package/src/content/pages/blocks/colleagues.mdx +0 -37
- package/src/content/pages/blocks/content.mdx +0 -77
- package/src/content/pages/blocks/cta.mdx +0 -159
- package/src/content/pages/blocks/features.mdx +0 -128
- package/src/content/pages/blocks/hero.mdx +0 -94
- package/src/content/pages/blocks/intro.mdx +0 -124
- package/src/content/pages/blocks/reviews.mdx +0 -251
- package/src/content/pages/categories/category.md +0 -7
- package/src/content/pages/docs/_internationalization.mdx +0 -55
- package/src/content/pages/docs/_using-blocks.mdx +0 -33
- package/src/content/pages/docs/_using-presets.mdx +0 -49
- package/src/content/pages/docs/collections.mdx +0 -42
- package/src/content/pages/docs/components/_switch.mdx +0 -31
- package/src/content/pages/docs/components/avatar.mdx +0 -34
- package/src/content/pages/docs/components/section.mdx +0 -35
- package/src/content/pages/docs/components/text.mdx +0 -48
- package/src/content/pages/products/product.md +0 -20
- package/src/css/color.css +0 -76
- package/src/css/size.css +0 -131
- package/src/images/favicon/android-chrome-192x192.png +0 -0
- package/src/images/favicon/android-chrome-512x512.png +0 -0
- package/src/images/favicon/apple-touch-icon.png +0 -0
- package/src/images/favicon/browserconfig.xml +0 -9
- package/src/images/favicon/favicon-16x16.png +0 -0
- package/src/images/favicon/favicon-32x32.png +0 -0
- package/src/images/favicon/favicon-48x48.png +0 -0
- package/src/images/favicon/favicon.ico +0 -0
- package/src/images/favicon/favicon.svg +0 -16
- package/src/images/favicon/manifest.webmanifest +0 -30
- package/src/images/favicon/mstile-150x150.png +0 -0
- package/src/images/favicon/safari-pinned-tab.svg +0 -16
- package/src/images/favicon/yandex-browser-50x50.png +0 -0
- package/src/images/favicon/yandex-browser-manifest.json +0 -9
- package/src/pages/test.astro +0 -35
- package/src/schemas/components/avatar.ts +0 -6
- package/src/schemas/components/badge.ts +0 -18
- package/src/schemas/components/block.ts +0 -61
- package/src/schemas/components/channel.ts +0 -19
- package/src/schemas/components/footer.ts +0 -19
- package/src/schemas/components/header.ts +0 -23
- package/src/schemas/components/heading.ts +0 -9
- package/src/schemas/components/icon.ts +0 -9
- package/src/schemas/components/link.ts +0 -17
- package/src/schemas/components/logo.ts +0 -13
- package/src/schemas/components/menu.ts +0 -14
- package/src/schemas/components/navigation.ts +0 -10
- package/src/schemas/components/paragraph.ts +0 -9
- package/src/schemas/components/price.ts +0 -9
- package/src/schemas/components/rating.ts +0 -10
- package/src/schemas/components/sidebar.ts +0 -18
- package/src/schemas/components/social.ts +0 -18
- package/src/schemas/components/tagline.ts +0 -9
- package/src/schemas/imageSchema.ts +0 -41
- package/src/schemas/utils/component.ts +0 -17
- package/src/types/global-props.ts +0 -7
- package/src/utils/_archive/Childmorphic.ts +0 -8
- package/src/utils/_archive/getAllCollections.ts +0 -10
- package/src/utils/_archive/getCollectionCascade.ts +0 -33
- package/src/utils/_archive/getPathname.ts +0 -18
- package/src/utils/_archive/mergeEntries.ts +0 -28
- package/src/utils/_archive/staticPageSchema.ts +0 -124
- package/src/utils/_archive/transform/transform.ts +0 -25
- package/src/utils/_archive/transform/transformCasing.ts +0 -24
- package/src/utils/_archive/transform/transformReferences.ts +0 -54
- package/src/utils/_archive/transform/transformSelfs.ts +0 -20
- package/src/utils/_archive/transform/transformUnderscores.ts +0 -19
- package/src/utils/formatEntries.ts +0 -8
- package/src/utils/formatEntry.ts +0 -29
- package/src/utils/getDeepReferenceChildren.ts +0 -14
- package/src/utils/getFolderChildren.ts +0 -18
- package/src/utils/getReferenceChildren.ts +0 -14
- package/src/utils/getSiblingPages.ts +0 -14
- package/src/utils/setTheme.ts +0 -18
- /package/{src → public}/images/anti-slip-profiles.webp +0 -0
- /package/{src → public}/images/avatar-1.jpeg +0 -0
- /package/{src → public}/images/avatar-2.jpeg +0 -0
- /package/{src → public}/images/avatar-3.jpeg +0 -0
- /package/{src → public}/images/avatar-4.jpeg +0 -0
- /package/{src → public}/images/avatar-placeholder.jpg +0 -0
- /package/{src → public}/images/block-code.png +0 -0
- /package/{src → public}/images/component-code.png +0 -0
- /package/{src → public}/images/favicon.svg +0 -0
- /package/{src → public}/images/fulldev-ui.webp +0 -0
- /package/{src → public}/images/lavis-detailing.webp +0 -0
- /package/{src → public}/images/leren-trainingsacteren.webp +0 -0
- /package/{src → public}/images/logo-1.svg +0 -0
- /package/{src → public}/images/logo-2.svg +0 -0
- /package/{src → public}/images/logo-basic.svg +0 -0
- /package/{src → public}/images/logo-simple.svg +0 -0
- /package/{src → public}/images/logo-thin.svg +0 -0
- /package/{src → public}/images/logo.svg +0 -0
- /package/{src → public}/images/logofat.svg +0 -0
- /package/{src → public}/images/miele-witgoedcenter-amsterdam.webp +0 -0
- /package/{src → public}/images/og-image.png +0 -0
- /package/{src → public}/images/placeholder-center.webp +0 -0
- /package/{src → public}/images/placeholder-landscape-dark.png +0 -0
- /package/{src → public}/images/placeholder-landscape.webp +0 -0
- /package/{src → public}/images/placeholder-portrait.webp +0 -0
- /package/{src → public}/images/placeholder-right.webp +0 -0
- /package/{src → public}/images/placeholder.webp +0 -0
- /package/{src → public}/images/sloepverhuur-bolsward.webp +0 -0
- /package/{src → public}/images/stark-vulcanising-products.webp +0 -0
- /package/{src → public}/images/the-gym-haren.webp +0 -0
- /package/{src → public}/images/van-dillen-antieke-bouwmaterialen.webp +0 -0
- /package/src/components/{LocaleSwitcher.astro → _LocaleSwitcher.astro} +0 -0
- /package/src/content/pages/{showcase → _showcase}/anti-slip-profiles.md +0 -0
- /package/src/content/pages/{showcase → _showcase}/fulldev-ui.md +0 -0
- /package/src/content/pages/{showcase → _showcase}/lavis-detailing.md +0 -0
- /package/src/content/pages/{showcase → _showcase}/leren-trainingsacteren.md +0 -0
- /package/src/content/pages/{showcase → _showcase}/miele-witgoedcenter-amsterdam.md +0 -0
- /package/src/content/pages/{showcase → _showcase}/sloepverhuur-bolsward.md +0 -0
- /package/src/content/pages/{showcase → _showcase}/stark-vulcanising-products.md +0 -0
- /package/src/content/pages/{showcase → _showcase}/the-gym-haren.md +0 -0
- /package/src/content/pages/{showcase → _showcase}/van-dillen-antieke-bouwmaterialen.md +0 -0
- /package/src/content/pages/{blocks → docs/blocks}/_categories.mdx +0 -0
- /package/src/content/pages/{blocks/contact.mdx → docs/blocks/_contact.mdx} +0 -0
- /package/src/content/pages/{blocks → docs/blocks}/_jobs.mdx +0 -0
- /package/src/content/pages/{blocks/posts.mdx → docs/blocks/_posts.mdx} +0 -0
- /package/src/content/pages/{blocks → docs/blocks}/_stats.mdx +0 -0
- /package/src/content/pages/docs/{components → structures}/_dialog.mdx +0 -0
- /package/src/{components → structures}/Carousel.astro +0 -0
- /package/src/{components → structures}/Group.astro +0 -0
- /package/src/{components → structures}/Masonry.astro +0 -0
- /package/src/{components → structures}/Panel.astro +0 -0
- /package/src/{components → structures}/Section.astro +0 -0
- /package/{src/types/virtual.d.ts → virtual.d.ts} +0 -0
|
@@ -1,33 +1,80 @@
|
|
|
1
1
|
---
|
|
2
2
|
_layout: doc
|
|
3
|
-
title: Layouts
|
|
3
|
+
title: Using Layouts
|
|
4
|
+
description: Ready to use layouts and page generation.
|
|
4
5
|
---
|
|
5
6
|
|
|
6
|
-
|
|
7
|
+
## Regular usage
|
|
7
8
|
|
|
8
|
-
|
|
9
|
+
```astro
|
|
10
|
+
---
|
|
11
|
+
import Page from 'fulldev-ui/layouts/Page.astro'
|
|
12
|
+
---
|
|
9
13
|
|
|
10
|
-
|
|
14
|
+
<Page
|
|
15
|
+
title="Your meta title"
|
|
16
|
+
description="Your meta description"
|
|
17
|
+
banner={{
|
|
18
|
+
text: 'This is a banner',
|
|
19
|
+
}}
|
|
20
|
+
header={{
|
|
21
|
+
logo: {
|
|
22
|
+
image: '/favicon/android-chrome-512x512.png',
|
|
23
|
+
text: 'Fulldev UI',
|
|
24
|
+
},
|
|
25
|
+
links: [{ text: 'Docs', href: '/docs/' }],
|
|
26
|
+
socials: [
|
|
27
|
+
'https://github.com/fulldotdev/ui',
|
|
28
|
+
'https://discord.gg/vXZqMbadm8',
|
|
29
|
+
],
|
|
30
|
+
}}
|
|
31
|
+
/>
|
|
32
|
+
```
|
|
11
33
|
|
|
12
|
-
##
|
|
34
|
+
## Dynamic page generation
|
|
13
35
|
|
|
14
|
-
|
|
36
|
+
To generate pages dynamically, you need to enable page generation in your `astro.config.ts` file.
|
|
15
37
|
|
|
16
|
-
|
|
38
|
+
```ts
|
|
39
|
+
// astro.config.ts
|
|
40
|
+
import { defineConfig } from 'astro/config'
|
|
41
|
+
import fulldev from 'fulldev-ui/integration'
|
|
17
42
|
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
43
|
+
export default defineConfig({
|
|
44
|
+
integrations: [
|
|
45
|
+
fulldev({
|
|
46
|
+
injectRoutes: true,
|
|
47
|
+
}),
|
|
48
|
+
],
|
|
49
|
+
})
|
|
50
|
+
```
|
|
24
51
|
|
|
25
|
-
|
|
52
|
+
### Configuring collections
|
|
26
53
|
|
|
27
|
-
|
|
54
|
+
There are two types of collections:
|
|
28
55
|
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
56
|
+
1. `pages`: Used for generating pages and/or cards.
|
|
57
|
+
2. `layouts`: Default values that can be referenced by pages
|
|
58
|
+
|
|
59
|
+
Create a content collections config file at `src/content/config.ts`, and add the following content:
|
|
60
|
+
|
|
61
|
+
```ts
|
|
62
|
+
// src/content/config.ts
|
|
63
|
+
import { defineCollection } from 'astro:content'
|
|
64
|
+
import { pageSchema } from 'fulldev-ui/schemas/page.ts'
|
|
65
|
+
|
|
66
|
+
export const collections = {
|
|
67
|
+
pages: defineCollection({
|
|
68
|
+
type: 'content',
|
|
69
|
+
schema: pageSchema,
|
|
70
|
+
}),
|
|
71
|
+
layouts: defineCollection({
|
|
72
|
+
type: 'data',
|
|
73
|
+
schema: pageSchema,
|
|
74
|
+
}),
|
|
75
|
+
}
|
|
33
76
|
```
|
|
77
|
+
|
|
78
|
+
#### Pages
|
|
79
|
+
|
|
80
|
+
Please reference `fulldev-ui/schemas/page.ts` for more information on the page schema.
|
|
@@ -5,11 +5,11 @@ title: Card
|
|
|
5
5
|
|
|
6
6
|
# Card
|
|
7
7
|
|
|
8
|
-
import
|
|
8
|
+
import Props from 'fulldev-ui/components/docs/Props.astro'
|
|
9
9
|
|
|
10
10
|
```astro live
|
|
11
11
|
---
|
|
12
|
-
import Card from 'fulldev-ui/
|
|
12
|
+
import Card from 'fulldev-ui/structures/Card.astro'
|
|
13
13
|
---
|
|
14
14
|
|
|
15
15
|
<Card
|
|
@@ -20,13 +20,13 @@ import Card from 'fulldev-ui/components/Card.astro'
|
|
|
20
20
|
|
|
21
21
|
## Props
|
|
22
22
|
|
|
23
|
-
<
|
|
23
|
+
<Props />
|
|
24
24
|
|
|
25
25
|
## Examples
|
|
26
26
|
|
|
27
27
|
```astro live
|
|
28
28
|
---
|
|
29
|
-
import Card from 'fulldev-ui/
|
|
29
|
+
import Card from 'fulldev-ui/structures/Card.astro'
|
|
30
30
|
---
|
|
31
31
|
|
|
32
32
|
<Card
|
|
@@ -45,7 +45,7 @@ import Card from 'fulldev-ui/components/Card.astro'
|
|
|
45
45
|
|
|
46
46
|
```astro live
|
|
47
47
|
---
|
|
48
|
-
import Card from 'fulldev-ui/
|
|
48
|
+
import Card from 'fulldev-ui/structures/Card.astro'
|
|
49
49
|
---
|
|
50
50
|
|
|
51
51
|
<Card
|
|
@@ -69,7 +69,7 @@ import Card from 'fulldev-ui/components/Card.astro'
|
|
|
69
69
|
|
|
70
70
|
```astro live
|
|
71
71
|
---
|
|
72
|
-
import Card from 'fulldev-ui/
|
|
72
|
+
import Card from 'fulldev-ui/structures/Card.astro'
|
|
73
73
|
---
|
|
74
74
|
|
|
75
75
|
<Card
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
---
|
|
2
|
+
_layout: doc
|
|
3
|
+
title: Card
|
|
4
|
+
description: A box with a border, padding and rounded corners
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
import Props from 'fulldev-ui/components/docs/Props.astro'
|
|
8
|
+
|
|
9
|
+
## Props
|
|
10
|
+
|
|
11
|
+
<Props />
|
|
12
|
+
|
|
13
|
+
## Examples
|
|
14
|
+
|
|
15
|
+
Please reference the blocks for examples on how to use the wrapper components.
|
|
@@ -1,14 +1,11 @@
|
|
|
1
1
|
---
|
|
2
2
|
_layout: doc
|
|
3
3
|
title: Code
|
|
4
|
+
description: Enhanced code component with live preview.
|
|
4
5
|
---
|
|
5
6
|
|
|
6
|
-
import
|
|
7
|
-
import Code from 'fulldev-ui/
|
|
8
|
-
|
|
9
|
-
# Code
|
|
10
|
-
|
|
11
|
-
Enhanced code component with live preview.
|
|
7
|
+
import Props from 'fulldev-ui/components/docs/Props.astro'
|
|
8
|
+
import Code from 'fulldev-ui/structures/Code.astro'
|
|
12
9
|
|
|
13
10
|
```astro live
|
|
14
11
|
<h1>I'm a live preview</h1>
|
|
@@ -22,7 +19,7 @@ The following code will translate to the example at the top of this page:
|
|
|
22
19
|
|
|
23
20
|
```astro
|
|
24
21
|
---
|
|
25
|
-
import Code from 'fulldev-ui/
|
|
22
|
+
import Code from 'fulldev-ui/structures/Code.astro'
|
|
26
23
|
---
|
|
27
24
|
|
|
28
25
|
<Code code={`<h1>I'm a live preview</h1>`} />
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
---
|
|
2
|
+
_layout: doc
|
|
3
|
+
title: Container
|
|
4
|
+
description: Sets a max-width, padding and centers the content
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
import Props from 'fulldev-ui/components/docs/Props.astro'
|
|
8
|
+
|
|
9
|
+
## Props
|
|
10
|
+
|
|
11
|
+
<Props />
|
|
12
|
+
|
|
13
|
+
## Examples
|
|
14
|
+
|
|
15
|
+
Please reference the blocks for examples on how to use the wrapper components.
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
---
|
|
2
|
+
_layout: doc
|
|
3
|
+
title: Drawer
|
|
4
|
+
description: A panel that slides out from the side of the screen
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
import Props from 'fulldev-ui/components/docs/Props.astro'
|
|
8
|
+
|
|
9
|
+
## Props
|
|
10
|
+
|
|
11
|
+
<Props />
|
|
12
|
+
|
|
13
|
+
## Examples
|
|
14
|
+
|
|
15
|
+
Please reference the Header blocks for examples on how to use the wrapper components.
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
---
|
|
2
|
+
_layout: doc
|
|
3
|
+
title: Group
|
|
4
|
+
description: Group buttons and similar components
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
import Props from 'fulldev-ui/components/docs/Props.astro'
|
|
8
|
+
|
|
9
|
+
## Props
|
|
10
|
+
|
|
11
|
+
<Props />
|
|
12
|
+
|
|
13
|
+
## Examples
|
|
14
|
+
|
|
15
|
+
Please reference the blocks for examples on how to use the wrapper components.
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
---
|
|
2
|
+
_layout: doc
|
|
3
|
+
title: Container
|
|
4
|
+
description: Sets a head, body and some base styles
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
import Props from 'fulldev-ui/components/docs/Props.astro'
|
|
8
|
+
|
|
9
|
+
## Props
|
|
10
|
+
|
|
11
|
+
<Props />
|
|
12
|
+
|
|
13
|
+
## Examples
|
|
14
|
+
|
|
15
|
+
Please reference the layouts for examples on how to use the wrapper components.
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
---
|
|
2
|
+
_layout: doc
|
|
3
|
+
title: Masonry
|
|
4
|
+
description: Places items like cards in a masonry layout
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
import Props from 'fulldev-ui/components/docs/Props.astro'
|
|
8
|
+
|
|
9
|
+
## Props
|
|
10
|
+
|
|
11
|
+
<Props />
|
|
12
|
+
|
|
13
|
+
## Examples
|
|
14
|
+
|
|
15
|
+
Please reference the blocks for examples on how to use the wrapper components.
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
---
|
|
2
|
+
_layout: doc
|
|
3
|
+
title: Matrix
|
|
4
|
+
description: Places items like cards in a grid
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
import Props from 'fulldev-ui/components/docs/Props.astro'
|
|
8
|
+
|
|
9
|
+
## Props
|
|
10
|
+
|
|
11
|
+
<Props />
|
|
12
|
+
|
|
13
|
+
## Examples
|
|
14
|
+
|
|
15
|
+
Please reference the blocks for examples on how to use the wrapper components.
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
---
|
|
2
|
+
_layout: doc
|
|
3
|
+
title: Panel
|
|
4
|
+
description: A box with a border, padding and rounded corners used for sections
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
import Props from 'fulldev-ui/components/docs/Props.astro'
|
|
8
|
+
|
|
9
|
+
## Props
|
|
10
|
+
|
|
11
|
+
<Props />
|
|
12
|
+
|
|
13
|
+
## Examples
|
|
14
|
+
|
|
15
|
+
Please reference the blocks for examples on how to use the wrapper components.
|
|
@@ -1,17 +1,14 @@
|
|
|
1
1
|
---
|
|
2
2
|
_layout: doc
|
|
3
3
|
title: Prose
|
|
4
|
+
description: Applies styling to child components
|
|
4
5
|
---
|
|
5
6
|
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
<aside>This component is experimental and likely to change</aside>
|
|
9
|
-
|
|
10
|
-
import PropsTable from 'fulldev-ui/components/docs/PropsTable.astro'
|
|
7
|
+
import Props from 'fulldev-ui/components/docs/Props.astro'
|
|
11
8
|
|
|
12
9
|
```astro live
|
|
13
10
|
---
|
|
14
|
-
import Prose from 'fulldev-ui/
|
|
11
|
+
import Prose from 'fulldev-ui/structures/Prose.astro'
|
|
15
12
|
---
|
|
16
13
|
|
|
17
14
|
<Prose>
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
---
|
|
2
|
+
_layout: doc
|
|
3
|
+
title: Section
|
|
4
|
+
description: Sets vertical padding and some base styles
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
import Props from 'fulldev-ui/components/docs/Props.astro'
|
|
8
|
+
|
|
9
|
+
## Props
|
|
10
|
+
|
|
11
|
+
<Props />
|
|
12
|
+
|
|
13
|
+
## Examples
|
|
14
|
+
|
|
15
|
+
Please reference the blocks for examples on how to use the wrapper components.
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
---
|
|
2
|
+
_layout: doc
|
|
3
|
+
title: Stack
|
|
4
|
+
description: Places items like cards in a horizontal or vertical stack
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
import Props from 'fulldev-ui/components/docs/Props.astro'
|
|
8
|
+
|
|
9
|
+
## Props
|
|
10
|
+
|
|
11
|
+
<Props />
|
|
12
|
+
|
|
13
|
+
## Examples
|
|
14
|
+
|
|
15
|
+
Please reference the blocks for examples on how to use the wrapper components.
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
---
|
|
2
|
+
_layout: doc
|
|
3
|
+
title: Writeup
|
|
4
|
+
description: Applies styling to child components, similar to Prose
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
import Props from 'fulldev-ui/components/docs/Props.astro'
|
|
8
|
+
|
|
9
|
+
## Props
|
|
10
|
+
|
|
11
|
+
<Props />
|
|
12
|
+
|
|
13
|
+
## Examples
|
|
14
|
+
|
|
15
|
+
Please reference the blocks for examples on how to use the wrapper components.
|
|
@@ -2,11 +2,12 @@
|
|
|
2
2
|
head:
|
|
3
3
|
title: Fulldev UI - Astro component and block library, open-source
|
|
4
4
|
description: Make websites rapidly with pre-built components and blocks.
|
|
5
|
-
image:
|
|
5
|
+
image:
|
|
6
|
+
src: /images/og-image.png
|
|
6
7
|
|
|
7
8
|
title: Home
|
|
8
9
|
|
|
9
|
-
|
|
10
|
+
sections:
|
|
10
11
|
- _block: Hero1
|
|
11
12
|
badge:
|
|
12
13
|
text: 'Introducing v0.6: layouts & pagebuilding'
|
|
@@ -25,7 +26,8 @@ blocks:
|
|
|
25
26
|
tagline: Blocks
|
|
26
27
|
heading: Use pre-built blocks with just props
|
|
27
28
|
paragraph: We created a great gallery of blocks to build content sites with a modern look and feel, all of our blocks are build with components from the library to achieve a consistent look.
|
|
28
|
-
image:
|
|
29
|
+
image:
|
|
30
|
+
src: /images/block-code.png
|
|
29
31
|
buttons:
|
|
30
32
|
- href: /blocks/
|
|
31
33
|
icon: layout
|
|
@@ -35,7 +37,8 @@ blocks:
|
|
|
35
37
|
tagline: Components
|
|
36
38
|
heading: Or build your own, with easy to use components
|
|
37
39
|
paragraph: Our rich set of components make it easy to build your own blocks with great customizability through props and global theming.
|
|
38
|
-
image:
|
|
40
|
+
image:
|
|
41
|
+
src: /images/component-code.png
|
|
39
42
|
buttons:
|
|
40
43
|
- text: View components
|
|
41
44
|
href: /components/badge/
|
|
@@ -2,8 +2,7 @@
|
|
|
2
2
|
title: Showcase
|
|
3
3
|
---
|
|
4
4
|
|
|
5
|
-
import Card from 'fulldev-ui/
|
|
6
|
-
import Cards from 'fulldev-ui/components/Cards.astro'
|
|
5
|
+
import Card from 'fulldev-ui/structures/Card.astro'
|
|
7
6
|
import { getCollection } from 'astro:content'
|
|
8
7
|
|
|
9
8
|
export const projects = (
|
|
@@ -29,5 +28,3 @@ Projects that are built with Fulldev UI.
|
|
|
29
28
|
target: '_blank',
|
|
30
29
|
}}
|
|
31
30
|
/>
|
|
32
|
-
|
|
33
|
-
<Cards structure="masonry" position="inset" panel cards={projects} />
|
package/src/css/theme.css
CHANGED
|
@@ -1,40 +1,3 @@
|
|
|
1
|
-
/* :root {
|
|
2
|
-
--radius: 0.5rem;
|
|
3
|
-
|
|
4
|
-
--background: 33.3 30% 97.5%;
|
|
5
|
-
--foreground: 33.3 10% 10.5%;
|
|
6
|
-
|
|
7
|
-
--primary: 20 100% 50%;
|
|
8
|
-
--primary-foreground: 0 0% 100%;
|
|
9
|
-
--primary-hover: var(--primary) / 85%;
|
|
10
|
-
|
|
11
|
-
--secondary: 20 10% 92%;
|
|
12
|
-
--secondary-hover: var(--secondary) / 75%;
|
|
13
|
-
--secondary-foreground: var(--foreground);
|
|
14
|
-
|
|
15
|
-
--accent: var(--secondary-hover);
|
|
16
|
-
--accent-foreground: var(--secondary-foreground);
|
|
17
|
-
|
|
18
|
-
--muted: var(--accent);
|
|
19
|
-
--muted-foreground: var(--foreground) / 75%;
|
|
20
|
-
|
|
21
|
-
--card: var(--secondary) / 40%;
|
|
22
|
-
--card-foreground: var(--foreground);
|
|
23
|
-
|
|
24
|
-
--border: var(--foreground) / 8%;
|
|
25
|
-
--input: var(--foreground) / 26%;
|
|
26
|
-
--ring: var(--foreground);
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
.dark {
|
|
30
|
-
--foreground: 0 0% 100%;
|
|
31
|
-
--background: 20 40% 3%;
|
|
32
|
-
--primary: 20 30% 97%;
|
|
33
|
-
--primary-foreground: 20 100% 0%;
|
|
34
|
-
--secondary: 20 10% 10%;
|
|
35
|
-
--secondary-foreground: 20 30% 97%;
|
|
36
|
-
} */
|
|
37
|
-
|
|
38
1
|
@layer base {
|
|
39
2
|
:root {
|
|
40
3
|
--background: 0 0% 100%;
|
|
@@ -43,8 +6,8 @@
|
|
|
43
6
|
--card-foreground: 20 14.3% 4.1%;
|
|
44
7
|
--popover: 0 0% 100%;
|
|
45
8
|
--popover-foreground: 20 14.3% 4.1%;
|
|
46
|
-
--primary:
|
|
47
|
-
--primary-foreground:
|
|
9
|
+
--primary: 20.5 90.2% 48.2%;
|
|
10
|
+
--primary-foreground: 0 0% 100%;
|
|
48
11
|
--secondary: 60 4.8% 95.9%;
|
|
49
12
|
--secondary-foreground: 24 9.8% 10%;
|
|
50
13
|
--muted: 60 4.8% 95.9%;
|
|
@@ -66,13 +29,13 @@
|
|
|
66
29
|
|
|
67
30
|
.dark {
|
|
68
31
|
--background: 20 14.3% 4.1%;
|
|
69
|
-
--foreground: 60
|
|
32
|
+
--foreground: 60 4.8% 95.9%;
|
|
70
33
|
--card: 20 14.3% 4.1%;
|
|
71
34
|
--card-foreground: 60 9.1% 97.8%;
|
|
72
35
|
--popover: 20 14.3% 4.1%;
|
|
73
36
|
--popover-foreground: 60 9.1% 97.8%;
|
|
74
|
-
--primary:
|
|
75
|
-
--primary-foreground:
|
|
37
|
+
--primary: 20.5 90.2% 48.2%;
|
|
38
|
+
--primary-foreground: 0 0% 100%;
|
|
76
39
|
--secondary: 12 6.5% 15.1%;
|
|
77
40
|
--secondary-foreground: 60 9.1% 97.8%;
|
|
78
41
|
--muted: 12 6.5% 15.1%;
|
|
@@ -93,3 +56,7 @@
|
|
|
93
56
|
color-scheme: dark;
|
|
94
57
|
}
|
|
95
58
|
}
|
|
59
|
+
|
|
60
|
+
.astro-code {
|
|
61
|
+
@apply mt-4 rounded-md p-4 text-sm first:mt-0;
|
|
62
|
+
}
|
package/src/integration/index.ts
CHANGED
|
@@ -70,7 +70,7 @@ export default function fulldevIntegration(
|
|
|
70
70
|
sitemap(),
|
|
71
71
|
robotsTxt(),
|
|
72
72
|
liveCode({
|
|
73
|
-
layout: '/src/
|
|
73
|
+
layout: '/src/structures/Code.astro',
|
|
74
74
|
}),
|
|
75
75
|
],
|
|
76
76
|
vite: {
|
|
@@ -165,8 +165,6 @@ export default function fulldevIntegration(
|
|
|
165
165
|
const libDir = path.join(__dirname, '../../cloudcannon.config.yml')
|
|
166
166
|
const userDir = path.join(process.cwd(), 'cloudcannon.config.yml')
|
|
167
167
|
|
|
168
|
-
console.log({ libDir, userDir })
|
|
169
|
-
|
|
170
168
|
const libConfig = yaml.load(
|
|
171
169
|
fs.readFileSync(path.resolve(libDir), 'utf8')
|
|
172
170
|
)
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
---
|
|
2
|
+
import type { ComponentProps } from 'astro/types'
|
|
3
|
+
import type { CollectionEntry } from 'astro:content'
|
|
4
|
+
import Footer from 'fulldev-ui/blocks/Footer.astro'
|
|
5
|
+
import Header from 'fulldev-ui/blocks/Header.astro'
|
|
6
|
+
import Heading from 'fulldev-ui/components/Heading.astro'
|
|
7
|
+
import Menus from 'fulldev-ui/components/Menus.astro'
|
|
8
|
+
import Paragraph from 'fulldev-ui/components/Paragraph.astro'
|
|
9
|
+
import type { PageSchema } from 'fulldev-ui/schemas/page.ts'
|
|
10
|
+
import Container from 'fulldev-ui/structures/Container.astro'
|
|
11
|
+
import Layout from 'fulldev-ui/structures/Layout.astro'
|
|
12
|
+
import Prose from 'fulldev-ui/structures/Prose.astro'
|
|
13
|
+
import Sidebar from 'fulldev-ui/structures/Sidebar.astro'
|
|
14
|
+
|
|
15
|
+
type Props = ComponentProps<typeof Layout> &
|
|
16
|
+
PageSchema & {
|
|
17
|
+
render: CollectionEntry<'pages'>['render']
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
const { header, sidebar, render, title, description, footer } = Astro.props
|
|
21
|
+
|
|
22
|
+
const { Content } = await render()
|
|
23
|
+
---
|
|
24
|
+
|
|
25
|
+
<Layout
|
|
26
|
+
class:list="block"
|
|
27
|
+
{...Astro.props}
|
|
28
|
+
>
|
|
29
|
+
<Header
|
|
30
|
+
{...sidebar}
|
|
31
|
+
{...header}
|
|
32
|
+
/>
|
|
33
|
+
<Container
|
|
34
|
+
class:list="block-main"
|
|
35
|
+
as="main"
|
|
36
|
+
>
|
|
37
|
+
<Sidebar>
|
|
38
|
+
<Menus
|
|
39
|
+
size="sm"
|
|
40
|
+
menus={sidebar?.menus}
|
|
41
|
+
/>
|
|
42
|
+
</Sidebar>
|
|
43
|
+
<Container class:list="block-container">
|
|
44
|
+
<Prose class:list="block-prose">
|
|
45
|
+
<Heading
|
|
46
|
+
size="4xl"
|
|
47
|
+
as="h1"
|
|
48
|
+
text={title}
|
|
49
|
+
/>
|
|
50
|
+
<Paragraph
|
|
51
|
+
muted
|
|
52
|
+
text={description}
|
|
53
|
+
/>
|
|
54
|
+
<Content />
|
|
55
|
+
</Prose>
|
|
56
|
+
</Container>
|
|
57
|
+
</Container>
|
|
58
|
+
<Footer {...footer} />
|
|
59
|
+
</Layout>
|
|
60
|
+
|
|
61
|
+
<style is:global>
|
|
62
|
+
@layer fulldev {
|
|
63
|
+
.block {
|
|
64
|
+
.block-main {
|
|
65
|
+
@apply flex w-full items-start justify-between !px-0;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
.block-container {
|
|
69
|
+
max-width: calc(100% - var(--sidebar-width)) !important;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
.sidebar {
|
|
73
|
+
@apply hidden lg:flex;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
.block-prose {
|
|
77
|
+
@apply mx-auto max-w-none py-8;
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
</style>
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
---
|
|
1
|
+
<!-- ---
|
|
2
2
|
import type { ComponentProps } from 'astro/types'
|
|
3
3
|
import type { CollectionEntry } from 'astro:content'
|
|
4
4
|
import { getCollection } from 'astro:content'
|
|
5
5
|
import Products1 from 'fulldev-ui/blocks/Products1.astro'
|
|
6
6
|
import Carousel from 'fulldev-ui/components/Carousel.astro'
|
|
7
7
|
import Element from 'fulldev-ui/components/Element.astro'
|
|
8
|
-
import Layout from 'fulldev-ui/components/Layout.astro'
|
|
9
|
-
import Prose from 'fulldev-ui/components/Prose.astro'
|
|
10
8
|
import Select from 'fulldev-ui/components/Select.astro'
|
|
11
9
|
import type { PageSchema } from 'fulldev-ui/schemas/page.ts'
|
|
10
|
+
import Layout from 'fulldev-ui/structures/Layout.astro'
|
|
11
|
+
import Prose from 'fulldev-ui/structures/Prose.astro'
|
|
12
12
|
import { getHref } from 'fulldev-ui/utils/getHref.ts'
|
|
13
13
|
|
|
14
14
|
interface Props extends ComponentProps<typeof Layout>, PageSchema {
|
|
@@ -77,10 +77,10 @@ const sorts = [
|
|
|
77
77
|
class:list="category"
|
|
78
78
|
{...Astro.props}
|
|
79
79
|
>
|
|
80
|
-
|
|
80
|
+
<Intro1
|
|
81
81
|
heading={title}
|
|
82
82
|
text={description}
|
|
83
|
-
/>
|
|
83
|
+
/>
|
|
84
84
|
<Carousel>
|
|
85
85
|
{
|
|
86
86
|
categories.map((category) => (
|
|
@@ -133,4 +133,4 @@ const sorts = [
|
|
|
133
133
|
@apply text-sm text-muted-foreground;
|
|
134
134
|
}
|
|
135
135
|
}
|
|
136
|
-
</style>
|
|
136
|
+
</style> -->
|