Skip to content

Commit ede836e

Browse files
committed
docs: tweaks
1 parent 8c1f758 commit ede836e

File tree

4 files changed

+73
-72
lines changed

4 files changed

+73
-72
lines changed

docs/env.example

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
VITE_PUBLIC_CLOUDINARY_CLOUD_NAME=colbycloud-next-cloudinary
1+
VITE_PUBLIC_CLOUDINARY_CLOUD_NAME=

docs/src/routes/+page.svx

Lines changed: 53 additions & 53 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ images
2121
* Generate Open Graph Social Media cards on the fly
2222
* Drop-in Upload Widget
2323
* ...all at scale with Cloudinary
24+
2425
<ImageGrid>
2526
<li>
2627
<CldImage
@@ -31,16 +32,15 @@ images
3132
/>
3233
</li>
3334
<li>
34-
<CldImage
35+
<CldImage
3536
width="987"
3637
height="987"
37-
src={`images/woman-headphones`}
38-
sizes="50vw"
38+
src="images/woman-headphones"
3939
crop="thumb"
4040
gravity="faces"
41-
removeBackground
42-
tint="40:253f8c"
43-
underlay="images/city-skyline"
41+
removeBackground="true"
42+
tint="40:253f8c"
43+
underlay="images/city-skyline"
4444
overlays={[
4545
{
4646
position: {
@@ -84,51 +84,51 @@ images
8484

8585
```svelte
8686
<CldImage
87-
width="987"
88-
height="987"
89-
src={`${import.meta.env.IMAGES_DIRECTORY}/woman-headphones`}
90-
sizes="50vw"
91-
crop="thumb"
92-
gravity="faces"
93-
removeBackground
94-
tint="40:253f8c"
95-
underlay={`${import.meta.env.IMAGES_DIRECTORY}/city-skyline`}
96-
overlays={[
97-
{
98-
position: {
99-
gravity: 'north',
100-
y: 60
101-
},
102-
text: {
103-
color: 'rgb:52a4ff80',
104-
fontFamily: 'Source Sans Pro',
105-
fontSize: 320,
106-
fontWeight: 'black',
107-
text: 'MUSIC',
108-
letterSpacing: -10,
109-
lineSpacing: -100,
110-
stroke: true,
111-
border: '20px_solid_rgb:2d0eff99',
112-
}
113-
},
114-
{
115-
position: {
116-
gravity: 'south',
117-
y: 60
118-
},
119-
text: {
120-
color: 'rgb:52a4ff80',
121-
fontFamily: 'Source Sans Pro',
122-
fontSize: 320,
123-
fontWeight: 'black',
124-
text: 'IS LIFE',
125-
letterSpacing: -10,
126-
lineSpacing: -100,
127-
stroke: true,
128-
border: '20px_solid_rgb:2d0eff99',
129-
}
130-
}
131-
]}
132-
alt="Image of woman with headphones transformed with Cloudinary"
133-
/>
87+
width="987"
88+
height="987"
89+
src={`images/woman-headphones`}
90+
sizes="50vw"
91+
crop="thumb"
92+
gravity="faces"
93+
removeBackground
94+
tint="40:253f8c"
95+
underlay={`images/city-skyline`}
96+
overlays={[
97+
{
98+
position: {
99+
gravity: 'north',
100+
y: 60
101+
},
102+
text: {
103+
color: 'rgb:52a4ff80',
104+
fontFamily: 'Source Sans Pro',
105+
fontSize: 320,
106+
fontWeight: 'black',
107+
text: 'MUSIC',
108+
letterSpacing: -10,
109+
lineSpacing: -100,
110+
stroke: true,
111+
border: '20px_solid_rgb:2d0eff99',
112+
}
113+
},
114+
{
115+
position: {
116+
gravity: 'south',
117+
y: 60
118+
},
119+
text: {
120+
color: 'rgb:52a4ff80',
121+
fontFamily: 'Source Sans Pro',
122+
fontSize: 320,
123+
fontWeight: 'black',
124+
text: 'IS LIFE',
125+
letterSpacing: -10,
126+
lineSpacing: -100,
127+
stroke: true,
128+
border: '20px_solid_rgb:2d0eff99',
129+
}
130+
}
131+
]}
132+
alt="Image of woman with headphones transformed with Cloudinary"
133+
/>
134134
```

docs/src/routes/components/CldImage/examples/+page.svx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import { CldImage } from 'svelte-cloudinary'
1212
<svelte:head>
1313
<title>CldImage Examples - Svelte Cloudinary</title>
1414
<meta name="og:title" content="CldImage Examples - Svelte Cloudinary" />
15-
<meta name="og:url" content={`https://next-cloudinary.vercel.app/components/cldimage/examples`} />
15+
<meta name="og:url" content={`https://svelte-cloudinary.vercel.app/components/cldimage/examples`} />
1616
</svelte:head>
1717

1818

@@ -655,7 +655,7 @@ overlays={[{
655655
src="images/turtle"
656656
sizes="(max-width: 480px) 100vw, 50vw"
657657
transformations={[
658-
'next-cloudinary-named-transformation'
658+
'svelte-cloudinary-named-transformation'
659659
]}
660660
alt=""
661661
/>
@@ -664,7 +664,7 @@ overlays={[{
664664

665665
```jsx
666666
transformations={[
667-
'next-cloudinary-named-transformation'
667+
'svelte-cloudinary-named-transformation'
668668
]}
669669
```
670670
</li>

docs/src/routes/components/CldImage/usage/+page.svx

Lines changed: 16 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -20,27 +20,28 @@ With it comes access to more advanced features like dynamic cropping, background
2020
The basic required props include width, height, src, and alt:
2121

2222
```js
23-
import { CldImage } from 'svelte-cloudinary';
24-
25-
<CldImage
26-
width={960}
27-
height={600}
28-
src="<Public ID>"
29-
alt="Description of my image"
30-
sizes="100vw"
31-
/>
23+
import { CldImage } from 'svelte-cloudinary';
24+
25+
<CldImage
26+
width={960}
27+
height={600}
28+
src="<Public ID>"
29+
alt="Description of my image"
30+
sizes="100vw"
31+
/>
3232
```
3333

3434
*Note: A Cloud Name must be first be configured. See [Installation](/installation) for more details.*
3535

3636

3737
The sizes prop is optional.
38-
<CldImage
39-
width={960}
40-
height={600}
41-
src={`images/turtle`}
42-
sizes="100vw"
43-
/>
38+
39+
<CldImage
40+
width={960}
41+
height={600}
42+
src={`images/turtle`}
43+
sizes="100vw"
44+
/>
4445

4546

4647

0 commit comments

Comments
 (0)