Skip to content

Commit c02cb49

Browse files
committed
Docs: Try to improve main page - 3
1 parent c75ce1e commit c02cb49

2 files changed

Lines changed: 13 additions & 42 deletions

File tree

Website/src/pages/index.js

Lines changed: 8 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -132,34 +132,14 @@ export default function Home() {
132132
<HomepageFeatures />
133133
<div className="container text--center margin-top--xl margin-bottom--xl">
134134
<Heading as="h2">See It in Action</Heading>
135-
<div className={styles.previewGrid}>
136-
<div className={styles.previewItem}>
137-
<img
138-
src="./img/preview-profiles.gif"
139-
alt="Profile management preview"
140-
/>
141-
<p className={styles.previewCaption}>
142-
Encrypted profile files, group &amp; profile management.
143-
</p>
144-
</div>
145-
<div className={styles.previewItem}>
146-
<img
147-
src="./img/preview-tabs-drag-drop.gif"
148-
alt="Tabs and drag & drop preview"
149-
/>
150-
<p className={styles.previewCaption}>
151-
Tabs and drag &amp; drop functionality.
152-
</p>
153-
</div>
154-
<div className={styles.previewItem}>
155-
<img
156-
src="./img/preview-light-theme.png"
157-
alt="Light theme preview"
158-
/>
159-
<p className={styles.previewCaption}>
160-
Customizable light/dark themes and accent colors.
161-
</p>
162-
</div>
135+
<div className={styles.previewSingle}>
136+
<img
137+
src="./img/preview-tabs-drag-drop.gif"
138+
alt="Tabs and drag & drop preview"
139+
/>
140+
<p className={styles.previewCaption}>
141+
Tabs and drag &amp; drop functionality.
142+
</p>
163143
</div>
164144
<Link
165145
className="button button--outline button--primary"

Website/src/pages/styles.module.css

Lines changed: 5 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -141,17 +141,14 @@ table {
141141
text-decoration: none;
142142
}
143143

144-
/* ─── Preview grid ("See It in Action") ────────────── */
144+
/* ─── Preview ("See It in Action") ─────────────────── */
145145

146-
.previewGrid {
147-
display: grid;
148-
grid-template-columns: repeat(3, 1fr);
149-
gap: 24px;
150-
margin: 32px 0 40px;
151-
text-align: left;
146+
.previewSingle {
147+
margin: 32px auto 40px;
148+
max-width: var(--content-max-width);
152149
}
153150

154-
.previewItem img {
151+
.previewSingle img {
155152
display: block;
156153
width: 100%;
157154
height: auto;
@@ -165,12 +162,6 @@ table {
165162
color: var(--ifm-color-emphasis-600);
166163
}
167164

168-
@media only screen and (max-width: 768px) {
169-
.previewGrid {
170-
grid-template-columns: 1fr;
171-
}
172-
}
173-
174165
/* ─── Responsive ────────────────────────────────────── */
175166

176167
@media only screen and (max-width: 768px) {

0 commit comments

Comments
 (0)