Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit e9d130c

Browse files
authoredOct 9, 2023
Update card images (#448)
* Update index.mdx * Update index.mdx * Update index.mdx * Update index.mdx Fixed don't image for card length * Update index.mdx * Update index.mdx
1 parent 3227a7d commit e9d130c

File tree

1 file changed

+19
-13
lines changed

1 file changed

+19
-13
lines changed
 

‎apps/docs/content/components/Card/index.mdx

+19-13
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import CustomVideoPlayer from '../../../src/components/custom-video-player'
77
import ComponentLayout from '../../../src/layouts/component-layout'
88
export default ComponentLayout
99

10-
![An image showing a card with a Copilot Octicon.](https://github.com/primer/brand/assets/912236/494d440c-98d2-4634-beec-8a80caca8926)
10+
![An image showing a card with a Copilot Octicon.](https://github.com/primer/brand/assets/6951037/5bb4e3dd-8f53-44c5-a5ed-987c732eaf8f)
1111

1212
## Usage
1313

@@ -17,11 +17,11 @@ Cards should always be used in groups of two or more related concepts.
1717

1818
<DoDontContainer>
1919
<Do>
20-
<img src="https://github.com/primer/brand/assets/912236/d0da491e-8895-4ba2-9840-17eef7f2dd75" />
20+
<img src="https://github.com/primer/brand/assets/6951037/139deb0e-0143-4051-a8c8-49b854b58727" />
2121
<Caption>Use cards in groups to display related information.</Caption>
2222
</Do>
2323
<Dont>
24-
<img src="https://github.com/primer/brand/assets/912236/9f17706e-dfb1-4ef9-a87d-df6c8a1d3825" />
24+
<img src="https://github.com/primer/brand/assets/6951037/1f009b98-01b8-4cb3-af30-83ccac31c8c9" />
2525
<Caption>
2626
Don't use isolated cards. Consider using a CTABanner instead.
2727
</Caption>
@@ -36,14 +36,14 @@ For a better visual experience, we recommend using similar length size for the h
3636

3737
<DoDontContainer>
3838
<Do>
39-
<img src="https://github.com/primer/brand/assets/912236/fced572e-c296-4a97-aaa8-3d4b357f2f6e" />
39+
<img src="https://github.com/primer/brand/assets/6951037/28b8dbfa-9ed5-40ba-b1a3-d501ac3be4b8" />
4040
<Caption>
4141
Use the same type of visual asset for all cards and a similar length size
4242
for the content.
4343
</Caption>
4444
</Do>
4545
<Dont>
46-
<img src="https://github.com/primer/brand/assets/912236/c612ccf8-7c98-4213-92b9-2fdf6f0f1398" />
46+
<img src="https://github.com/primer/brand/assets/6951037/6d494165-312e-4e84-94df-199d1d82fd50" />
4747
<Caption>
4848
Don't use different length sizes for the title or the description.
4949
</Caption>
@@ -54,13 +54,13 @@ When using an image as the visual asset, we recommend using the same aspect rati
5454

5555
<DoDontContainer>
5656
<Do>
57-
<img src="https://github.com/primer/brand/assets/912236/0ec93c16-7091-4ebb-a1a0-b0626de7833f" />
57+
<img src="https://github.com/primer/brand/assets/6951037/1a6decfc-a840-440b-8ec7-bf25b7716711" />
5858
<Caption>
5959
Use the same image ratio and a similar length sizes for the content.
6060
</Caption>
6161
</Do>
6262
<Dont>
63-
<img src="https://github.com/primer/brand/assets/912236/0b8ffb2d-0753-4bdd-9165-0f30ec28a8c8" />
63+
<img src="https://github.com/primer/brand/assets/6951037/cffafadf-2e9d-47f0-a6db-6f89fb48fabe" />
6464
<Caption>
6565
Don't use different image ratios and a different length size for the
6666
content.
@@ -73,7 +73,7 @@ Cards typically appear in groups of three or four in desktop viewports. For smal
7373
<div>
7474
<CustomVideoPlayer
7575
width="100%"
76-
src="https://github.com/primer/brand/assets/912236/d8e76477-1b27-4be1-9bf5-d22186af8376"
76+
src="https://github.com/primer/brand/assets/6951037/a9ceec00-59c9-4471-a274-f516790f43c9"
7777
/>
7878
<Caption>
7979
Stack cards vertically so that the content has enough line length.
@@ -82,21 +82,21 @@ Cards typically appear in groups of three or four in desktop viewports. For smal
8282

8383
## Anatomy
8484

85-
![An image showing the card anatomy with an icon as a visual asset, a heading, a description and a CTA text in a vertical order.](https://github.com/primer/brand/assets/912236/633b83d8-4ea8-49bd-9d6c-45a1989060d9)
85+
![An image showing the card anatomy with an icon as a visual asset, a heading, a description and a CTA text in a vertical order.](https://github.com/primer/brand/assets/6951037/2ae395d0-227d-4794-8e0b-f709a431e636)
8686

8787
### Visual asset
8888

8989
The visual asset is optional and can be an image or an icon. It can be used to provide a visual cue to the user about the content of the card. To avoid visual noise, we recommend using only one icon or image, but not both in the same card.
9090

91-
![An image showing two cards, one with an Icon and another with an Image as the visual assets options.](https://github.com/primer/brand/assets/912236/be65583b-f6f0-438a-8d2c-6b7a0a9fd3de)
91+
![An image showing two cards, one with an Icon and another with an Image as the visual assets options.](https://github.com/primer/brand/assets/6951037/21623e82-2ea5-499a-a78f-82b09915af16)
9292

9393
<DoDontContainer>
9494
<Do>
95-
<img src="https://github.com/primer/brand/assets/912236/863de864-5216-44bf-8b35-430821da8853" />
95+
<img src="https://github.com/primer/brand/assets/6951037/e5494fd3-76b1-45fd-8aa7-4acfe834b159" />
9696
<Caption>Use only one visual asset per card.</Caption>
9797
</Do>
9898
<Dont>
99-
<img src="https://github.com/primer/brand/assets/912236/9acdde97-42e3-4a7a-8102-b9be5e3c05fc" />
99+
<img src="https://github.com/primer/brand/assets/6951037/bc29b10b-ee0b-421d-8bc4-0a95fad3791b" />
100100
<Caption>Don't use both icon and image as the visual asset.</Caption>
101101
</Dont>
102102
</DoDontContainer>
@@ -105,7 +105,7 @@ The visual asset is optional and can be an image or an icon. It can be used to p
105105

106106
The label can be used to indicate the type of content or its status. For example, use it to indicate that the content is `new` or that it is a `beta` feature. The label is optional and can be used along with a visual asset.
107107

108-
![An image showing two cards, one with a Label and another one with Label and Icon.](https://github.com/primer/brand/assets/912236/2d84fe89-2735-451e-9d1f-9a2f0297e7b5)
108+
![An image showing two cards, one with a Label and another one with Label and Icon.](https://github.com/primer/brand/assets/6951037/3e16bb51-9e19-4a98-a9c2-e289d4bf540c)
109109

110110
### Heading
111111

@@ -119,6 +119,12 @@ The description is an optional short text that extends the information provided
119119

120120
The call to action label indicates the action or resource the card links to. It defaults to "Learn more".
121121

122+
## Options
123+
124+
### Border
125+
126+
Card offers a variation with a border. Border is disabled by default.
127+
122128
## Related components
123129

124130
- [Pillar](/components/Pillar): To display related content with less visual emphasis.

0 commit comments

Comments
 (0)
Please sign in to comment.