Skip to content

Commit d723616

Browse files
authored
Apply column span for full-width features (#681)
1 parent 298529d commit d723616

10 files changed

Lines changed: 10 additions & 10 deletions

docs/src/collections/feature/asc-drag-drop-video.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ asset:
66
path: "/features/asc-drag-drop-demo.mp4"
77
alt: "Drag your recorded MP4 or GIF into any destination. Use it as an App Store Preview video or share a visual representation inside GitHub issues and pull requests. Directly share what you're working on in Slack or on Twitter."
88
alignment: "full-width"
9-
columnSpan: 8
9+
columnSpan: 12
1010
sortOrder: 17
1111
---
1212

docs/src/collections/feature/compare-designs.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ asset:
66
path: "/features/onboarding-compare.mp4"
77
alt: "Comparing designs on top of the Simulator after exporting them from apps like Figma."
88
alignment: "full-width"
9-
columnSpan: 6
9+
columnSpan: 12
1010
sortOrder: 3
1111
---
1212

docs/src/collections/feature/location-simulation.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ asset:
66
path: "../../assets/features/location-routes.png"
77
alt: "Single locations or automobile and walking routes: Test them right in the Simulator."
88
alignment: "full-width"
9-
columnSpan: 6
9+
columnSpan: 12
1010
sortOrder: 8
1111
---
1212

docs/src/collections/feature/magnify.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ asset:
66
path: "/features/magnifier-color-picker.mp4"
77
alt: "Use the Color Picker and copy the value as SwiftUI Color, NSColor, or UIColor code."
88
alignment: "full-width"
9-
columnSpan: 6
9+
columnSpan: 12
1010
sortOrder: 5.3
1111
---
1212

docs/src/collections/feature/network-monitoring.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ asset:
66
path: "/features/network-monitoring-demo.mp4"
77
alt: "Clicking through network requests that are done while using the Stock Analyzer app."
88
alignment: "full-width"
9-
columnSpan: 6
9+
columnSpan: 12
1010
caption: "Network Monitoring is made possible by [Pulse](https://github.com/kean/Pulse), an open-source project created by [Alex Grebenyuk](https://github.com/kean)."
1111
sortOrder: 1
1212
---

docs/src/collections/feature/recording-example.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ asset:
66
path: "/features/recording-example.mp4"
77
alt: "RocketSim's touch-attention mode ensures your demo is easy to follow since a touch indicator will be constantly visible."
88
alignment: "full-width"
9-
columnSpan: 8
9+
columnSpan: 6
1010
sortOrder: 16
1111
---
1212

docs/src/collections/feature/user-defaults-editor.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ asset:
66
path: "/features/user-defaults-editor.mp4"
77
alt: "Test how your app responds to User Defaults changes. Quickly switch states like User Defaults-driven experiments."
88
alignment: "full-width"
9-
columnSpan: 6
9+
columnSpan: 12
1010
sortOrder: 6
1111
---
1212

docs/src/components/Feature.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ if (asset.alignment === "full-width") {
164164
style={{
165165
"--image-column":
166166
asset.alignment === "full-width"
167-
? "1 / -1"
167+
? `${(12 - asset.columnSpan) / 2 + 1} / span ${asset.columnSpan}`
168168
: `${asset.alignment === "left" ? 1 : `span ${asset.columnSpan}`} / ${asset.alignment === "left" ? `span ${asset.columnSpan}` : -1}`,
169169
}}
170170
data-aos={asset.alignment === "full-width" ? "fade-up" : undefined}

docs/src/components/OnlineTeamManager.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ import Feature from "./Feature.astro";
2020
path: "/features/team-insights-dashboard.mp4",
2121
alt: "RocketSim for Teams dashboard. Showing the build insights page. It is showing build times, build count and breakdown charts for the an Xcode project.",
2222
alignment: "full-width",
23-
columnSpan: 8,
23+
columnSpan: 12,
2424
},
2525
sortOrder: 1,
2626
}}

docs/src/content.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { glob } from "astro/loaders";
22
import { z, defineCollection } from "astro:content";
33

44
const alignment = z.enum(["left", "right", "full-width"]);
5-
const columnSpan = z.union([z.literal(6), z.literal(8)]);
5+
const columnSpan = z.union([z.literal(6), z.literal(8), z.literal(12)]);
66

77
const feature = defineCollection({
88
loader: glob({ pattern: "**/[^_]*.md", base: "./src/collections/feature" }),

0 commit comments

Comments
 (0)