Skip to content

Commit 28d1f57

Browse files
committed
refactor(docs): replace custom card layout with CardGrid component
- Remove custom grid styling and replace it with CardGrid component - Simplify Card components by removing unnecessary styling - Improve readability and maintainability of the code
1 parent cf1288e commit 28d1f57

File tree

1 file changed

+11
-48
lines changed

1 file changed

+11
-48
lines changed

src/content/docs/index.mdx

Lines changed: 11 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -24,27 +24,10 @@ import { Card, CardGrid, LinkButton } from '@astrojs/starlight/components';
2424

2525
Welcome to the Flutter News App Full Source Code Toolkit. This is more than just an app template; it's a complete, three-part ecosystem designed to work seamlessly together, giving you everything you need to launch, manage, and scale a modern news application.
2626

27-
<div
28-
style={{
29-
display: 'grid',
30-
gridTemplateColumns: 'repeat(auto-fit, minmax(250px, 1fr))',
31-
gap: '1rem',
32-
alignItems: 'stretch',
33-
}}
34-
>
35-
<Card
36-
title="Mobile Client App"
37-
icon="phone"
38-
style={{
39-
display: 'flex',
40-
flexDirection: 'column',
41-
justifyContent: 'space-between',
42-
}}
43-
>
44-
<div>
45-
A feature-rich Flutter application for iOS and Android that delivers a
46-
beautiful, intuitive news reading experience to your users.
47-
</div>
27+
<CardGrid>
28+
<Card title="Mobile Client App" icon="phone">
29+
A feature-rich Flutter application for iOS and Android that delivers a
30+
beautiful, intuitive news reading experience to your users.
4831
<div
4932
style={{
5033
display: 'flex',
@@ -67,19 +50,9 @@ Welcome to the Flutter News App Full Source Code Toolkit. This is more than just
6750
</a>
6851
</div>
6952
</Card>
70-
<Card
71-
title="Web Dashboard"
72-
icon="laptop"
73-
style={{
74-
display: 'flex',
75-
flexDirection: 'column',
76-
justifyContent: 'space-between',
77-
}}
78-
>
79-
<div>
80-
A comprehensive Flutter web app for administrators and publishers to manage
81-
content, configure app settings, and view key analytics.
82-
</div>
53+
<Card title="Web Dashboard" icon="laptop">
54+
A comprehensive Flutter web app for administrators and publishers to manage
55+
content, configure app settings, and view key analytics.
8356
<div
8457
style={{
8558
display: 'flex',
@@ -102,19 +75,9 @@ Welcome to the Flutter News App Full Source Code Toolkit. This is more than just
10275
</a>
10376
</div>
10477
</Card>
105-
<Card
106-
title="API Server"
107-
icon="cloud"
108-
style={{
109-
display: 'flex',
110-
flexDirection: 'column',
111-
justifyContent: 'space-between',
112-
}}
113-
>
114-
<div>
115-
A high-performance backend built with Dart Frog, providing robust APIs for
116-
authentication, data management, and remote configuration.
117-
</div>
78+
<Card title="API Server" icon="cloud">
79+
A high-performance backend built with Dart Frog, providing robust APIs for
80+
authentication, data management, and remote configuration.
11881
<div
11982
style={{
12083
display: 'flex',
@@ -131,7 +94,7 @@ Welcome to the Flutter News App Full Source Code Toolkit. This is more than just
13194
</a>
13295
</div>
13396
</Card>
134-
</div>
97+
</CardGrid>
13598

13699
## Choose Your Path
137100

0 commit comments

Comments
 (0)