fulldev-ui 0.6.0-beta.8 → 0.6.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/astro.config.ts +6 -8
- package/cloudcannon.config.yml +38 -102
- package/package.json +2 -1
- package/public/images/block-code.png +0 -0
- package/public/images/component-code.png +0 -0
- package/src/blocks/Banner.astro +3 -5
- package/src/blocks/Colleagues1.astro +4 -3
- package/src/blocks/Content1.astro +6 -28
- package/src/blocks/Content2.astro +25 -49
- package/src/blocks/Content3.astro +25 -54
- package/src/blocks/Content4.astro +27 -50
- package/src/blocks/Content5.astro +7 -37
- package/src/blocks/Content6.astro +56 -0
- package/src/blocks/Content7.astro +64 -0
- package/src/blocks/Content8.astro +47 -0
- package/src/blocks/Cta1.astro +6 -9
- package/src/blocks/Cta2.astro +52 -0
- package/src/blocks/Features1.astro +5 -4
- package/src/blocks/Features2.astro +70 -0
- package/src/blocks/Footer.astro +2 -6
- package/src/blocks/Header.astro +8 -25
- package/src/blocks/Hero1.astro +19 -27
- package/src/blocks/Intro1.astro +3 -4
- package/src/blocks/{Industries1.astro → JobCategories1.astro} +13 -38
- package/src/blocks/JobCategory1.astro +90 -0
- package/src/blocks/Jobs1.astro +7 -10
- package/src/blocks/Logos1.astro +4 -4
- package/src/blocks/Pages1.astro +85 -0
- package/src/blocks/Pricings1.astro +61 -0
- package/src/blocks/Products1.astro +7 -10
- package/src/blocks/Projects1.astro +59 -83
- package/src/blocks/Reviews1.astro +10 -10
- package/src/blocks/Subheader.astro +4 -9
- package/src/blocks/{Contact1.astro → _Contact1.astro} +1 -3
- package/src/components/Avatar.astro +40 -0
- package/src/components/Avatars.astro +20 -0
- package/src/components/Badge.astro +6 -35
- package/src/components/Block.astro +19 -4
- package/src/components/Chip.astro +73 -0
- package/src/components/Element.astro +1 -0
- package/src/components/Heading.astro +13 -5
- package/src/components/Image.astro +1 -1
- package/src/components/Link.astro +1 -1
- package/src/components/Menu.astro +9 -5
- package/src/components/Proof.astro +52 -0
- package/src/components/Toc.astro +33 -35
- package/src/content/config.ts +5 -0
- package/src/content/layouts/base.yml +133 -143
- package/src/content/pages/{base → _base}/toggle.mdx +1 -1
- package/src/content/pages/_showcase/stark-vulcanising-products.md +0 -1
- package/src/content/pages/docs/blocks/_categories.mdx +1 -17
- package/src/content/pages/docs/blocks/banner.mdx +1 -1
- package/src/content/pages/docs/blocks/colleagues.mdx +1 -1
- package/src/content/pages/docs/blocks/content.mdx +162 -1
- package/src/content/pages/docs/blocks/cta.mdx +1 -1
- package/src/content/pages/docs/blocks/features.mdx +66 -1
- package/src/content/pages/docs/blocks/footer.mdx +1 -1
- package/src/content/pages/docs/blocks/header.mdx +1 -1
- package/src/content/pages/docs/blocks/hero.mdx +1 -1
- package/src/content/pages/docs/blocks/intro.mdx +1 -1
- package/src/content/pages/docs/blocks/logos.mdx +1 -1
- package/src/content/pages/docs/blocks/projects.mdx +1 -1
- package/src/content/pages/docs/blocks/reviews.mdx +1 -1
- package/src/content/pages/docs/blocks.mdx +1 -7
- package/src/content/pages/docs/collections/images.mdx +1 -1
- package/src/content/pages/docs/collections/pages.mdx +1 -1
- package/src/content/pages/docs/collections/presets.mdx +1 -1
- package/src/content/pages/docs/components/_localeswitcher.mdx +1 -1
- package/src/content/pages/docs/components/_table.mdx +1 -1
- package/src/content/pages/docs/components/_tagline.mdx +1 -1
- package/src/content/pages/docs/components/_themer.mdx +1 -1
- package/src/content/pages/docs/components/_toggle.mdx +1 -1
- package/src/content/pages/docs/components/avatar.mdx +32 -0
- package/src/content/pages/docs/components/badge.mdx +1 -34
- package/src/content/pages/docs/components/badges.mdx +1 -13
- package/src/content/pages/docs/components/button.mdx +1 -1
- package/src/content/pages/docs/components/buttons.mdx +1 -1
- package/src/content/pages/docs/components/channel.mdx +1 -1
- package/src/content/pages/docs/components/channels.mdx +1 -1
- package/src/content/pages/docs/components/checkbox.mdx +1 -1
- package/src/content/pages/docs/components/chip.mdx +75 -0
- package/src/content/pages/docs/components/heading.mdx +1 -1
- package/src/content/pages/docs/components/icon.mdx +1 -1
- package/src/content/pages/docs/components/image.mdx +2 -1
- package/src/content/pages/docs/components/input.mdx +1 -1
- package/src/content/pages/docs/components/label.mdx +1 -1
- package/src/content/pages/docs/components/link.mdx +1 -1
- package/src/content/pages/docs/components/links.mdx +11 -52
- package/src/content/pages/docs/components/list.mdx +1 -1
- package/src/content/pages/docs/components/logo.mdx +1 -1
- package/src/content/pages/docs/components/menu.mdx +5 -18
- package/src/content/pages/docs/components/paragraph.mdx +1 -1
- package/src/content/pages/docs/components/rating.mdx +1 -1
- package/src/content/pages/docs/components/select.mdx +1 -1
- package/src/content/pages/docs/components/social.mdx +1 -1
- package/src/content/pages/docs/components/socials.mdx +1 -1
- package/src/content/pages/docs/components/switch.mdx +1 -1
- package/src/content/pages/docs/components/tagline.mdx +1 -1
- package/src/content/pages/docs/components/textarea.mdx +1 -1
- package/src/content/pages/docs/components.mdx +1 -1
- package/src/content/pages/docs/customization.mdx +1 -1
- package/src/content/pages/docs/frameworks.mdx +1 -1
- package/src/content/pages/docs/index.mdx +1 -1
- package/src/content/pages/docs/installation.mdx +1 -24
- package/src/content/pages/docs/layouts/doc.mdx +1 -1
- package/src/content/pages/docs/layouts/page.mdx +1 -1
- package/src/content/pages/docs/pages.mdx +1 -1
- package/src/content/pages/docs/structures/_card.mdx +1 -1
- package/src/content/pages/docs/structures/_dialog.mdx +1 -1
- package/src/content/pages/docs/structures/_drawer.mdx +1 -1
- package/src/content/pages/docs/structures/card.mdx +1 -1
- package/src/content/pages/docs/structures/code.mdx +1 -1
- package/src/content/pages/docs/structures/container.mdx +1 -1
- package/src/content/pages/docs/structures/drawer.mdx +1 -1
- package/src/content/pages/docs/structures/group.mdx +1 -1
- package/src/content/pages/docs/structures/layout.mdx +1 -1
- package/src/content/pages/docs/structures/masonry.mdx +1 -1
- package/src/content/pages/docs/structures/matrix.mdx +1 -1
- package/src/content/pages/docs/structures/panel.mdx +1 -1
- package/src/content/pages/docs/structures/prose.mdx +1 -1
- package/src/content/pages/docs/structures/section.mdx +1 -1
- package/src/content/pages/docs/structures/stack.mdx +1 -1
- package/src/content/pages/docs/structures/writeup.mdx +1 -1
- package/src/content/pages/docs/structures.mdx +1 -1
- package/src/content/pages/index.mdx +20 -25
- package/src/layouts/Page.astro +44 -10
- package/src/layouts/{Product.astro → _Product.astro} +6 -6
- package/src/pages/test.astro +16 -0
- package/src/schemas/block.ts +18 -44
- package/src/schemas/button.ts +2 -0
- package/src/schemas/card.ts +43 -0
- package/src/schemas/{badge.ts → chip.ts} +3 -3
- package/src/schemas/page.ts +4 -18
- package/src/schemas/proof.ts +12 -0
- package/src/structures/Drawer.astro +2 -3
- package/src/structures/Prose.astro +31 -40
- package/src/structures/Section.astro +1 -1
- package/src/structures/Sidebar.astro +3 -4
- package/src/structures/Split.astro +38 -0
- package/tailwind.config.ts +4 -1
- package/pnpm-lock.yaml +0 -5186
- package/src/blocks/_Hero.astro +0 -245
- package/src/components/Blocks.astro +0 -26
- package/src/components/Sidebar.astro +0 -43
- package/src/content/pages/docs/blocks/feature.mdx +0 -17
- package/src/content/pages/docs/layouts.mdx +0 -80
- package/src/layouts/Block.astro +0 -81
- package/src/layouts/Category.astro +0 -136
- package/src/layouts/Doc.astro +0 -96
- package/src/layouts/Job.astro +0 -60
- package/src/layouts/Jobs.astro +0 -72
- package/src/layouts/Post.astro +0 -53
- /package/src/content/pages/{posts → _posts}/post.md +0 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
---
|
|
2
|
-
|
|
2
|
+
_block: Content7
|
|
3
3
|
title: Links
|
|
4
4
|
description: A utility component for displaying multiple links.
|
|
5
5
|
---
|
|
@@ -11,12 +11,7 @@ import Props from 'fulldev-ui/components/docs/Props.astro'
|
|
|
11
11
|
import Links from 'fulldev-ui/components/Links.astro'
|
|
12
12
|
---
|
|
13
13
|
|
|
14
|
-
<Links
|
|
15
|
-
links={[
|
|
16
|
-
{ text: 'First', href: '#' },
|
|
17
|
-
{ text: 'Second', href: '#' },
|
|
18
|
-
]}
|
|
19
|
-
/>
|
|
14
|
+
<Links links={[{ text: 'First' }, { text: 'Second' }]} />
|
|
20
15
|
```
|
|
21
16
|
|
|
22
17
|
## Props
|
|
@@ -32,13 +27,7 @@ import Links from 'fulldev-ui/components/Links.astro'
|
|
|
32
27
|
import Links from 'fulldev-ui/components/Links.astro'
|
|
33
28
|
---
|
|
34
29
|
|
|
35
|
-
<Links
|
|
36
|
-
direction="column"
|
|
37
|
-
links={[
|
|
38
|
-
{ text: 'First', href: '#' },
|
|
39
|
-
{ text: 'Second', href: '#' },
|
|
40
|
-
]}
|
|
41
|
-
/>
|
|
30
|
+
<Links direction="column" links={[{ text: 'First' }, { text: 'Second' }]} />
|
|
42
31
|
```
|
|
43
32
|
|
|
44
33
|
### `variant`
|
|
@@ -48,21 +37,9 @@ import Links from 'fulldev-ui/components/Links.astro'
|
|
|
48
37
|
import Links from 'fulldev-ui/components/Links.astro'
|
|
49
38
|
---
|
|
50
39
|
|
|
51
|
-
<Links
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
{ text: 'First', href: '#' },
|
|
55
|
-
{ text: 'Second', href: '#' },
|
|
56
|
-
]}
|
|
57
|
-
/>
|
|
58
|
-
|
|
59
|
-
<Links
|
|
60
|
-
variant="muted"
|
|
61
|
-
links={[
|
|
62
|
-
{ text: 'First', href: '#' },
|
|
63
|
-
{ text: 'Second', href: '#' },
|
|
64
|
-
]}
|
|
65
|
-
/>
|
|
40
|
+
<Links variant="primary" links={[{ text: 'First' }, { text: 'Second' }]} />
|
|
41
|
+
|
|
42
|
+
<Links variant="muted" links={[{ text: 'First' }, { text: 'Second' }]} />
|
|
66
43
|
```
|
|
67
44
|
|
|
68
45
|
### `size`
|
|
@@ -72,27 +49,9 @@ import Links from 'fulldev-ui/components/Links.astro'
|
|
|
72
49
|
import Links from 'fulldev-ui/components/Links.astro'
|
|
73
50
|
---
|
|
74
51
|
|
|
75
|
-
<Links
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
]}
|
|
81
|
-
/>
|
|
82
|
-
|
|
83
|
-
<Links
|
|
84
|
-
size="md"
|
|
85
|
-
links={[
|
|
86
|
-
{ text: 'First', href: '#' },
|
|
87
|
-
{ text: 'Second', href: '#' },
|
|
88
|
-
]}
|
|
89
|
-
/>
|
|
90
|
-
|
|
91
|
-
<Links
|
|
92
|
-
size="lg"
|
|
93
|
-
links={[
|
|
94
|
-
{ text: 'First', href: '#' },
|
|
95
|
-
{ text: 'Second', href: '#' },
|
|
96
|
-
]}
|
|
97
|
-
/>
|
|
52
|
+
<Links size="sm" links={[{ text: 'First' }, { text: 'Second' }]} />
|
|
53
|
+
|
|
54
|
+
<Links size="md" links={[{ text: 'First' }, { text: 'Second' }]} />
|
|
55
|
+
|
|
56
|
+
<Links size="lg" links={[{ text: 'First' }, { text: 'Second' }]} />
|
|
98
57
|
```
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
---
|
|
2
|
-
|
|
2
|
+
_block: Content7
|
|
3
3
|
title: Menu
|
|
4
4
|
---
|
|
5
5
|
|
|
@@ -13,11 +13,7 @@ import Menu from 'fulldev-ui/components/Menu.astro'
|
|
|
13
13
|
|
|
14
14
|
<Menu
|
|
15
15
|
heading="Heading"
|
|
16
|
-
links={[
|
|
17
|
-
{ text: 'First', href: '#' },
|
|
18
|
-
{ text: 'Second', href: '#' },
|
|
19
|
-
{ text: 'Third', href: '#' },
|
|
20
|
-
]}
|
|
16
|
+
links={[{ text: 'First' }, { text: 'Second' }, { text: 'Third' }]}
|
|
21
17
|
/>
|
|
22
18
|
```
|
|
23
19
|
|
|
@@ -37,25 +33,16 @@ import Menu from 'fulldev-ui/components/Menu.astro'
|
|
|
37
33
|
<Menu
|
|
38
34
|
size="sm"
|
|
39
35
|
heading="First"
|
|
40
|
-
links={[
|
|
41
|
-
{ text: 'First', href: '#' },
|
|
42
|
-
{ text: 'Second', href: '#' },
|
|
43
|
-
]}
|
|
36
|
+
links={[{ text: 'First' }, { text: 'Second' }]}
|
|
44
37
|
/>
|
|
45
38
|
<Menu
|
|
46
39
|
size="md"
|
|
47
40
|
heading="First"
|
|
48
|
-
links={[
|
|
49
|
-
{ text: 'First', href: '#' },
|
|
50
|
-
{ text: 'Second', href: '#' },
|
|
51
|
-
]}
|
|
41
|
+
links={[{ text: 'First' }, { text: 'Second' }]}
|
|
52
42
|
/>
|
|
53
43
|
<Menu
|
|
54
44
|
size="lg"
|
|
55
45
|
heading="First"
|
|
56
|
-
links={[
|
|
57
|
-
{ text: 'First', href: '#' },
|
|
58
|
-
{ text: 'Second', href: '#' },
|
|
59
|
-
]}
|
|
46
|
+
links={[{ text: 'First' }, { text: 'Second' }]}
|
|
60
47
|
/>
|
|
61
48
|
```
|
|
@@ -1,25 +1,10 @@
|
|
|
1
1
|
---
|
|
2
|
-
|
|
2
|
+
_block: Content7
|
|
3
3
|
title: Installation
|
|
4
|
-
description: How to install dependencies and setup the integration.
|
|
5
4
|
---
|
|
6
5
|
|
|
7
6
|
import Link from 'fulldev-ui/components/Link.astro'
|
|
8
7
|
|
|
9
|
-
## Add to existing project
|
|
10
|
-
|
|
11
|
-
If you don't have an existing project, you can create a new one using the [starter template](https://github.com/fulldotdev/starter).
|
|
12
|
-
|
|
13
|
-
### Automatic setup
|
|
14
|
-
|
|
15
|
-
Run the following command to automatically install the dependencies and add the integration.
|
|
16
|
-
|
|
17
|
-
```bash
|
|
18
|
-
npx astro add fulldev-ui
|
|
19
|
-
```
|
|
20
|
-
|
|
21
|
-
### Manual setup
|
|
22
|
-
|
|
23
8
|
Run any of the following commands to add fulldev-ui to your dependencies.
|
|
24
9
|
|
|
25
10
|
```bash
|
|
@@ -43,11 +28,3 @@ export default defineConfig({
|
|
|
43
28
|
integrations: [fulldev()],
|
|
44
29
|
})
|
|
45
30
|
```
|
|
46
|
-
|
|
47
|
-
## Create a new project
|
|
48
|
-
|
|
49
|
-
Run the following command to setup a new project from the [starter template](https://github.com/fulldotdev/starter).
|
|
50
|
-
|
|
51
|
-
```bash
|
|
52
|
-
npx astro create --template fulldev-ui
|
|
53
|
-
```
|
|
@@ -1,39 +1,33 @@
|
|
|
1
1
|
---
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
description: Make websites rapidly with pre-built components and blocks.
|
|
5
|
-
image:
|
|
6
|
-
src: /images/og-image.png
|
|
2
|
+
_schema: page
|
|
3
|
+
_block: Hero1
|
|
7
4
|
|
|
8
|
-
title:
|
|
5
|
+
title: Fulldev UI - Astro component and block library, open-source
|
|
6
|
+
description: Make websites rapidly with pre-built components and blocks.
|
|
7
|
+
heading: Build complete websites with this Astro UI library
|
|
8
|
+
paragraph: Everything you need to rapidly build content-driven websites. Components, blocks, layouts and complete page generation.
|
|
9
|
+
buttons:
|
|
10
|
+
- text: Get Started
|
|
11
|
+
href: /docs/
|
|
12
|
+
- text: GitHub
|
|
13
|
+
href: https://github.com/fulldotdev/ui
|
|
14
|
+
icon: brand-github
|
|
15
|
+
target: _blank
|
|
9
16
|
|
|
10
17
|
sections:
|
|
11
|
-
- _block:
|
|
12
|
-
badge:
|
|
13
|
-
text: 'Introducing v0.6: layouts & pagebuilding'
|
|
14
|
-
href: /overview/installation/
|
|
15
|
-
heading: Build complete websites with this Astro UI library
|
|
16
|
-
paragraph: 'Everything you need to rapidly build content-driven websites. Components, blocks, layouts and complete page generation.'
|
|
17
|
-
buttons:
|
|
18
|
-
- text: Get Started
|
|
19
|
-
href: /docs/
|
|
20
|
-
- text: GitHub
|
|
21
|
-
href: https://github.com/fulldotdev/ui
|
|
22
|
-
icon: brand-github
|
|
23
|
-
target: _blank
|
|
24
|
-
|
|
25
|
-
- _block: Feature1
|
|
18
|
+
- _block: Content2
|
|
26
19
|
tagline: Blocks
|
|
27
20
|
heading: Use pre-built blocks with just props
|
|
28
21
|
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.
|
|
29
22
|
image:
|
|
30
23
|
src: /images/block-code.png
|
|
31
24
|
buttons:
|
|
32
|
-
- href: /blocks/
|
|
25
|
+
- href: /docs/blocks/
|
|
33
26
|
icon: layout
|
|
34
27
|
text: View blocks
|
|
28
|
+
variant: secondary
|
|
35
29
|
|
|
36
|
-
- _block:
|
|
30
|
+
- _block: Content2
|
|
37
31
|
tagline: Components
|
|
38
32
|
heading: Or build your own, with easy to use components
|
|
39
33
|
paragraph: Our rich set of components make it easy to build your own blocks with great customizability through props and global theming.
|
|
@@ -41,15 +35,16 @@ sections:
|
|
|
41
35
|
src: /images/component-code.png
|
|
42
36
|
buttons:
|
|
43
37
|
- text: View components
|
|
44
|
-
href: /components/
|
|
38
|
+
href: /docs/components/
|
|
45
39
|
icon: code
|
|
40
|
+
variant: secondary
|
|
46
41
|
|
|
47
42
|
- _block: Cta1
|
|
48
43
|
heading: Build content websites in a fraction of time
|
|
49
44
|
paragraph: A library of components and blocks to build content sites, fast.
|
|
50
45
|
buttons:
|
|
51
46
|
- text: Get Started
|
|
52
|
-
href: /
|
|
47
|
+
href: /docs/
|
|
53
48
|
- text: Github
|
|
54
49
|
href: https://github.com/fulldotdev/ui
|
|
55
50
|
icon: brand-github
|
package/src/layouts/Page.astro
CHANGED
|
@@ -1,29 +1,63 @@
|
|
|
1
1
|
---
|
|
2
2
|
import type { ComponentProps } from 'astro/types'
|
|
3
|
-
import
|
|
4
|
-
import Footer from 'fulldev-ui/blocks/Footer.astro'
|
|
5
|
-
import Header from 'fulldev-ui/blocks/Header.astro'
|
|
3
|
+
import type { CollectionEntry } from 'astro:content'
|
|
6
4
|
import Block from 'fulldev-ui/components/Block.astro'
|
|
7
5
|
import Element from 'fulldev-ui/components/Element.astro'
|
|
8
6
|
import type { PageSchema } from 'fulldev-ui/schemas/page.ts'
|
|
9
7
|
import Layout from 'fulldev-ui/structures/Layout.astro'
|
|
10
8
|
|
|
11
|
-
type Props = ComponentProps<typeof Layout> &
|
|
9
|
+
type Props = ComponentProps<typeof Layout> &
|
|
10
|
+
PageSchema & {
|
|
11
|
+
render: CollectionEntry<'pages'>['render']
|
|
12
|
+
}
|
|
12
13
|
|
|
13
|
-
const {
|
|
14
|
+
const {
|
|
15
|
+
_block,
|
|
16
|
+
title,
|
|
17
|
+
heading,
|
|
18
|
+
description,
|
|
19
|
+
paragraph,
|
|
20
|
+
banner,
|
|
21
|
+
sidebar,
|
|
22
|
+
header,
|
|
23
|
+
sections,
|
|
24
|
+
footer,
|
|
25
|
+
render,
|
|
26
|
+
navigation,
|
|
27
|
+
...rest
|
|
28
|
+
} = Astro.props
|
|
29
|
+
|
|
30
|
+
const { Content, headings } = await render()
|
|
14
31
|
---
|
|
15
32
|
|
|
16
33
|
<Layout
|
|
17
34
|
class:list="page"
|
|
18
|
-
{...
|
|
35
|
+
{...rest}
|
|
19
36
|
>
|
|
20
|
-
<
|
|
21
|
-
|
|
22
|
-
{...
|
|
37
|
+
<Block
|
|
38
|
+
_block="Banner"
|
|
39
|
+
{...banner}
|
|
40
|
+
/>
|
|
41
|
+
<Block
|
|
42
|
+
_block="Header"
|
|
43
|
+
{...rest}
|
|
23
44
|
{...header}
|
|
24
45
|
/>
|
|
25
46
|
<Element as="main">
|
|
47
|
+
<Block
|
|
48
|
+
_block={_block || 'Hero1'}
|
|
49
|
+
depth={1}
|
|
50
|
+
heading={heading || title}
|
|
51
|
+
paragraph={paragraph || description}
|
|
52
|
+
{headings}
|
|
53
|
+
{...rest}
|
|
54
|
+
>
|
|
55
|
+
<Content />
|
|
56
|
+
</Block>
|
|
26
57
|
{sections?.map((section) => <Block {...section} />)}
|
|
27
58
|
</Element>
|
|
28
|
-
<
|
|
59
|
+
<Block
|
|
60
|
+
_block="Footer"
|
|
61
|
+
{...footer}
|
|
62
|
+
/>
|
|
29
63
|
</Layout>
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
---
|
|
1
|
+
<!-- ---
|
|
2
2
|
// @ts-nocheck
|
|
3
3
|
import type { ComponentProps } from 'astro/types'
|
|
4
4
|
import { getImage } from 'astro:assets'
|
|
5
5
|
import type { CollectionEntry } from 'astro:content'
|
|
6
|
-
import { getCollection,
|
|
6
|
+
import { getCollection,getEntry } from 'astro:content'
|
|
7
7
|
import Products1 from 'fulldev-ui/blocks/Products1.astro'
|
|
8
8
|
import CartForm from 'fulldev-ui/components/CartForm.svelte'
|
|
9
9
|
import Element from 'fulldev-ui/components/Element.astro'
|
|
@@ -58,7 +58,7 @@ const baseLayout = await getEntry('layouts', 'base')
|
|
|
58
58
|
<Element class:list="product-container">
|
|
59
59
|
<Element class:list="product-main">
|
|
60
60
|
<Gallery {images} />
|
|
61
|
-
|
|
61
|
+
<Prose {render} />
|
|
62
62
|
</Element>
|
|
63
63
|
<Element class:list="product-segment">
|
|
64
64
|
<Element class:list="product-content">
|
|
@@ -69,10 +69,10 @@ const baseLayout = await getEntry('layouts', 'base')
|
|
|
69
69
|
/>
|
|
70
70
|
<Paragraph text={description} />
|
|
71
71
|
</Element>
|
|
72
|
-
|
|
72
|
+
<CartForm
|
|
73
73
|
product={Astro.props}
|
|
74
74
|
client:load
|
|
75
|
-
/>
|
|
75
|
+
/>
|
|
76
76
|
<List
|
|
77
77
|
size="sm"
|
|
78
78
|
items={baseLayout.data.banner?.split('|')}
|
|
@@ -112,4 +112,4 @@ const baseLayout = await getEntry('layouts', 'base')
|
|
|
112
112
|
@apply bg-background;
|
|
113
113
|
}
|
|
114
114
|
}
|
|
115
|
-
</style>
|
|
115
|
+
</style> -->
|