Repository Public License
1import SwiftUI2@testable import LunarDesign34// Native reference mockups, built from the real LunarDesign components. They are the visual target the real screens5// are compared to. Everything here is fixture data for the renders: page titles, counts and the neutral page6// placeholder exist only in these mockups.78// MARK: - Fixtures910struct MockTab: Identifiable {11 let id: Int12 let title: String13 let tint: LunarTint14 var isLoading = false15 var audio = LunarTabAudio.silent16 var isPinned = false17}1819enum MockData {20 static let tabs: [MockTab] = [21 MockTab(id: 0, title: "Lunar surface atlas", tint: .lunarBlue),22 MockTab(id: 1, title: "Orbital mechanics, a primer", tint: .spectralViolet),23 MockTab(id: 2, title: "Night sounds for focus", tint: .auroraMint, audio: .playing),24 MockTab(id: 3, title: "Glass optics and refraction", tint: .ocean),25 MockTab(id: 4, title: "Observatory schedule", tint: .solar, isLoading: true),26 MockTab(id: 5, title: "Field notes", tint: .rose),27 MockTab(id: 6, title: "Tide tables", tint: .forest),28 ]29 static let pinned: [(String, LunarTint)] = [("Mail", .rose), ("Calendar", .ember), ("Notes", .solar),30 ("Drive", .ocean)]31 static let workspaces: [(String, LunarTint, Int)] = [32 ("Research", .spectralViolet, 23), ("Studio", .auroraMint, 12), ("Travel", .solar, 5),33 ("Finance", .ocean, 9), ("Reading", .rose, 14), ("Garden", .forest, 4), ("Archive", .silver, 31),34 ("Lab", .nebula, 7),35 ]36 static let favourites: [(String, LunarTint)] = [37 ("Atlas", .lunarBlue), ("Mail", .rose), ("Calendar", .ember), ("Notes", .solar), ("Drive", .ocean),38 ("Sonata", .nebula), ("Kiosk", .forest), ("Photos", .spectralViolet), ("Wallet", .auroraMint),39 ("Vault", .silver),40 ]41 static let address = "atlas.example/lunar-surface"42}4344// MARK: - Shared pieces4546/// A neutral stand-in for web content. Mockup only: the real app shows the page itself here.47struct PagePlaceholder: View {48 @Environment(\.lunarTheme) private var theme49 var compact = false5051 var body: some View {52 let page = theme.isDark ? theme.windowBackground.mixed(with: theme.textPrimary, 0.045) : LunarRGBA.white53 let ink = theme.textPrimary54 GeometryReader { proxy in55 let column = min(proxy.size.width - (compact ? 40 : 120), 720)56 VStack(alignment: .leading, spacing: compact ? 14 : 20) {57 HStack(spacing: 10) {58 Circle().fill(ink.withAlpha(0.16)).frame(width: 22, height: 22)59 bar(96, ink, 0.16)60 Spacer()61 if !compact { bar(52, ink, 0.09); bar(52, ink, 0.09); bar(52, ink, 0.09) }62 }63 .padding(.bottom, compact ? 6 : 14)64 bar(column * 0.34, ink, 0.10, height: 8)65 VStack(alignment: .leading, spacing: 10) {66 bar(column * 0.92, ink, 0.24, height: compact ? 18 : 24)67 bar(column * 0.62, ink, 0.24, height: compact ? 18 : 24)68 }69 RoundedRectangle(cornerRadius: 14, style: .continuous)70 .fill(LinearGradient(colors: [ink.withAlpha(0.10).color, ink.withAlpha(0.05).color],71 startPoint: .topLeading, endPoint: .bottomTrailing))72 .overlay {73 Image(systemName: "photo").font(.system(size: 26, weight: .light))74 .foregroundStyle(ink.withAlpha(0.18))75 }76 .frame(width: column, height: compact ? 170 : 250)77 ForEach(0..<(compact ? 3 : 2), id: \.self) { paragraph in78 VStack(alignment: .leading, spacing: 9) {79 ForEach(0..<4, id: \.self) { line in80 bar(column * [1.0, 0.96, 0.99, 0.58][line] * (paragraph == 1 ? 0.97 : 1), ink, 0.11)81 }82 }83 }84 }85 .frame(width: column, alignment: .leading)86 .padding(.top, compact ? 22 : 40)87 .frame(maxWidth: .infinity, maxHeight: .infinity, alignment: .top)88 }89 .background(page)90 .clipped()91 }9293 private func bar(_ width: CGFloat, _ ink: LunarRGBA, _ alpha: Double, height: CGFloat = 9) -> some View {94 Capsule().fill(ink.withAlpha(alpha)).frame(width: max(8, width), height: height)95 }96}9798struct TrafficLights: View {99 var body: some View {100 HStack(spacing: 8) {101 ForEach([0xFF5F57, 0xFEBC2E, 0x28C840] as [UInt32], id: \.self) { hex in102 Circle().fill(LunarRGBA(hex: hex)).frame(width: 12, height: 12)103 .overlay { Circle().strokeBorder(Color.black.opacity(0.12), lineWidth: 0.5) }104 }105 }106 }107}108109struct MockOmnibox: View {110 var address = MockData.address111 var body: some View {112 LunarSearchField(text: .constant(address), prompt: "Search or enter an address",113 leading: .symbol("lock.fill")) {114 LunarIconButton(glyph: .reader, label: "Reader", diameter: 28) {}115 LunarIconButton(systemName: "arrow.clockwise", label: "Reload", diameter: 28) {}116 }117 }118}119120struct MockSidebar: View {121 @Environment(\.lunarTheme) private var theme122 var showsTrafficLights = true123124 var body: some View {125 VStack(alignment: .leading, spacing: LunarSpacing.sm) {126 HStack {127 if showsTrafficLights { TrafficLights().padding(.leading, LunarSpacing.unit) }128 Spacer()129 LunarIconButton(systemName: "sidebar.left", label: "Hide sidebar", isActive: true, diameter: 28) {}130 }131 .frame(height: 28)132133 HStack(spacing: LunarSpacing.sm) {134 LunarPlanet(tint: .spectralViolet, size: 26, isActive: true, hasRing: true)135 .frame(width: 36, height: 36)136 VStack(alignment: .leading, spacing: 1) {137 Text("Research").lunarFont(.headline).foregroundStyle(theme.textPrimary)138 Text("23 pages · 4 satellites").lunarFont(.caption).lunarTabularDigits()139 .foregroundStyle(theme.textSecondary)140 }141 Spacer()142 LunarIconView(.symbol("chevron.up.chevron.down"), size: 14).foregroundStyle(theme.textTertiary)143 }144 .padding(LunarSpacing.xs)145 .background { LunarShape.sm.fill(theme.textPrimary.withAlpha(0.05)) }146 .lunarHairline(.sm)147148 HStack(spacing: LunarSpacing.xs) {149 ForEach(Array(MockData.pinned.enumerated()), id: \.offset) { _, item in150 LunarMonogram(item.0, tint: item.1, size: 24)151 .frame(maxWidth: .infinity, minHeight: 44)152 .background { LunarShape.xs.fill(theme.textPrimary.withAlpha(0.05)) }153 .lunarHairline(.xs)154 }155 }156157 LunarSectionHeader("Tabs", actionTitle: "7") {}158 .padding(.top, LunarSpacing.unit)159 VStack(spacing: 2) {160 ForEach(MockData.tabs) { tab in161 LunarTabChip(title: tab.title, tint: tab.tint, isSelected: tab.id == 0, isLoading: tab.isLoading,162 audio: tab.audio, layout: .vertical, onSelect: {}, onClose: {})163 }164 }165 LunarListRow("New tab", icon: .symbol("plus"), action: {}) { LunarShortcut("⌘T") }166167 Spacer(minLength: 0)168 LunarHairline()169 HStack(spacing: 0) {170 LunarIconButton(glyph: .memory, label: "Memory") {}171 Spacer(minLength: 0)172 LunarIconButton(glyph: .time, label: "Time") {}173 Spacer(minLength: 0)174 LunarIconButton(glyph: .archive, label: "Archive") {}175 Spacer(minLength: 0)176 LunarIconButton(glyph: .flow, label: "Flow") {}177 Spacer(minLength: 0)178 LunarIconButton(systemName: "gearshape", label: "Settings") {}179 }180 }181 .padding(LunarSpacing.sm)182 }183}184185struct MockAgentPanel: View {186 @Environment(\.lunarTheme) private var theme187188 var body: some View {189 VStack(alignment: .leading, spacing: LunarSpacing.sm) {190 LunarSheetHeader("Agent", subtitle: "Working on this page", icon: .glyph(.agent), onClose: {})191 .padding(.horizontal, -LunarSpacing.unit)192 HStack(spacing: LunarSpacing.unit + 2) {193 LunarChip("Summarise", isSelected: true) {}194 LunarChip("Explain", isSelected: false) {}195 LunarChip("Compare", isSelected: false) {}196 }197 HStack {198 Spacer(minLength: LunarSpacing.xl)199 Text("What are the three largest maria, and how were they formed?")200 .lunarFont(.callout)201 .foregroundStyle(theme.textPrimary)202 .padding(.horizontal, LunarSpacing.sm)203 .padding(.vertical, LunarSpacing.xs)204 .background { LunarShape.sm.fill(theme.selection.composited(over: theme.elevatedSurface)) }205 .lunarHairline(.sm)206 }207 LunarCard(padding: LunarSpacing.sm, shape: .sm) {208 VStack(alignment: .leading, spacing: LunarSpacing.xs) {209 LunarLabel("Answer", icon: .glyph(.agent)).foregroundStyle(theme.accent)210 Text("Oceanus Procellarum, Mare Imbrium and Mare Serenitatis. Each is a basin flooded by basaltic lava between 3.1 and 3.9 billion years ago.")211 .lunarFont(.callout).lunarTabularDigits()212 .foregroundStyle(theme.textPrimary)213 .fixedSize(horizontal: false, vertical: true)214 HStack(spacing: LunarSpacing.unit + 2) {215 LunarBadge("3 sources", status: .accent)216 LunarBadge("On device", status: .success, icon: .glyph(.shield))217 }218 }219 }220 LunarSectionHeader("Sources")221 VStack(spacing: 0) {222 LunarListRow("Lunar surface atlas", subtitle: "This page", isSelected: false, action: {},223 leading: { LunarMonogram("Lunar", tint: .lunarBlue, size: 22) },224 trailing: { LunarIconView(.symbol("arrow.up.right"), size: 12) })225 LunarListRow("Orbital mechanics, a primer", subtitle: "Open tab", isSelected: false, action: {},226 leading: { LunarMonogram("Orbital", tint: .spectralViolet, size: 22) },227 trailing: { LunarIconView(.symbol("arrow.up.right"), size: 12) })228 }229 HStack(spacing: LunarSpacing.xs) {230 LunarProgressRing(value: nil, size: 18)231 Text("Reading 2 more tabs").lunarFont(.footnote).lunarTabularDigits()232 .foregroundStyle(theme.textSecondary)233 }234 .padding(.horizontal, LunarSpacing.xs)235 Spacer(minLength: 0)236 HStack(spacing: LunarSpacing.xs) {237 LunarSearchField(text: .constant(""), prompt: "Ask about this page", leading: .glyph(.agent))238 LunarIconButton(systemName: "arrow.up", label: "Send", style: .accent) {}239 }240 }241 .padding(LunarSpacing.sm)242 }243}244245struct MockBackdrop: View {246 @Environment(\.lunarTheme) private var theme247 var density = 1.0248 var orbits = true249250 var body: some View {251 ZStack {252 Rectangle().fill(theme.windowGradient)253 // A faint lunar glow rising from the top, as in the app icon.254 Ellipse()255 .fill(RadialGradient(colors: [theme.glow.withAlpha(theme.glow.alpha * 0.55).color,256 theme.glow.withAlpha(0).color],257 center: .center, startRadius: 0, endRadius: 350))258 .frame(width: 1040, height: 700)259 .offset(y: -330)260 LunarStarfield(density: density, showsOrbits: orbits)261 }262 }263}264265// MARK: - Mac main window266267struct MacWindowMockup: View {268 @Environment(\.lunarTheme) private var theme269270 var body: some View {271 ZStack {272 MockBackdrop(density: 0.8)273 HStack(spacing: LunarSpacing.sm) {274 MockSidebar()275 .frame(width: 268)276 .lunarGlass(.lg, style: .chrome, elevation: .floating)277278 VStack(spacing: LunarSpacing.sm) {279 HStack(spacing: LunarSpacing.sm) {280 Spacer(minLength: 0)281 LunarCapsuleBar {282 LunarIconButton(systemName: "chevron.left", label: "Back") {}283 LunarIconButton(systemName: "chevron.right", label: "Forward") {}.disabled(true)284 MockOmnibox().frame(width: 430)285 LunarIconButton(glyph: .shield, label: "Shield", isActive: true) {}286 LunarIconButton(glyph: .split, label: "Split") {}287 LunarIconButton(glyph: .orbit, label: "Orbit") {}288 LunarIconButton(glyph: .command, label: "Command") {}289 }290 Spacer(minLength: 0)291 }292 PagePlaceholder()293 .clipShape(LunarShape.md)294 .lunarHairline(.md)295 .lunarShadow(.raised)296 .overlay(alignment: .bottom) {297 LunarToast("Saved to Memory", status: .success).padding(.bottom, LunarSpacing.md)298 }299 }300301 MockAgentPanel()302 .frame(width: 324)303 .lunarGlass(.lg, style: .chrome, elevation: .floating)304 }305 .padding(LunarSpacing.sm)306 }307 .frame(width: 1440, height: 900)308 }309}310311// MARK: - iPhone312313struct PhoneMockup: View {314 @Environment(\.lunarTheme) private var theme315316 var body: some View {317 ZStack(alignment: .bottom) {318 PagePlaceholder(compact: true)319 .padding(.top, 54)320 .background(theme.isDark ? theme.windowBackground.mixed(with: theme.textPrimary, 0.045) : .white)321 VStack {322 HStack {323 Text("9:41").font(.system(size: 16, weight: .semibold)).monospacedDigit()324 Spacer()325 HStack(spacing: 6) {326 Image(systemName: "cellularbars")327 Image(systemName: "wifi")328 Image(systemName: "battery.100percent")329 }330 .font(.system(size: 15, weight: .medium))331 }332 .foregroundStyle(theme.textPrimary)333 .padding(.horizontal, 34)334 .padding(.top, 20)335 Spacer()336 }337 VStack(spacing: LunarSpacing.xs) {338 HStack {339 Spacer()340 LunarIconButton(glyph: .agent, label: "Agent", style: .glass, diameter: 44) {}341 }342 .padding(.horizontal, LunarSpacing.md)343 VStack(spacing: LunarSpacing.unit) {344 LunarSearchField(text: .constant("atlas.example"), prompt: "Search or enter an address",345 leading: .symbol("lock.fill")) {346 LunarIconButton(systemName: "arrow.clockwise", label: "Reload", diameter: 30) {}347 }348 HStack(spacing: 0) {349 LunarIconButton(systemName: "chevron.left", label: "Back", diameter: 44) {}350 Spacer(minLength: 0)351 LunarIconButton(systemName: "chevron.right", label: "Forward", diameter: 44) {}.disabled(true)352 Spacer(minLength: 0)353 LunarIconButton(systemName: "square.on.square", label: "Tabs", diameter: 44) {}354 .overlay(alignment: .topTrailing) {355 LunarBadge("7", status: .accent).scaleEffect(0.8).offset(x: 8, y: 0)356 }357 Spacer(minLength: 0)358 LunarIconButton(glyph: .orbit, label: "Orbit", isActive: true, diameter: 44) {}359 Spacer(minLength: 0)360 LunarIconButton(systemName: "ellipsis", label: "Menu", diameter: 44) {}361 }362 .padding(.horizontal, LunarSpacing.unit)363 }364 .padding(LunarSpacing.xs)365 .lunarGlass(.rounded(32), style: .chrome, elevation: .floating)366 .padding(.horizontal, LunarSpacing.sm)367 Capsule().fill(theme.textPrimary.withAlpha(0.8)).frame(width: 136, height: 5)368 .padding(.top, LunarSpacing.unit)369 .padding(.bottom, LunarSpacing.xs)370 }371 }372 .frame(width: 393, height: 852)373 .clipShape(RoundedRectangle(cornerRadius: 52, style: .continuous))374 .overlay {375 RoundedRectangle(cornerRadius: 52, style: .continuous).strokeBorder(theme.hairlineStrong, lineWidth: 1)376 }377 .padding(28)378 .background { Rectangle().fill(theme.windowGradient) }379 }380}381382// MARK: - iPad383384struct PadMockup: View {385 @Environment(\.lunarTheme) private var theme386387 var body: some View {388 ZStack {389 MockBackdrop(density: 0.8)390 HStack(spacing: LunarSpacing.sm) {391 MockSidebar(showsTrafficLights: false)392 .frame(width: 288)393 .lunarGlass(.lg, style: .chrome, elevation: .floating)394 VStack(spacing: LunarSpacing.sm) {395 LunarCapsuleBar {396 LunarIconButton(systemName: "chevron.left", label: "Back", diameter: 40) {}397 LunarIconButton(systemName: "chevron.right", label: "Forward", diameter: 40) {}.disabled(true)398 MockOmnibox()399 LunarIconButton(glyph: .shield, label: "Shield", isActive: true, diameter: 40) {}400 LunarIconButton(systemName: "square.and.arrow.up", label: "Share", diameter: 40) {}401 LunarIconButton(glyph: .orbit, label: "Orbit", diameter: 40) {}402 LunarIconButton(systemName: "plus", label: "New tab", style: .accent, diameter: 40) {}403 }404 PagePlaceholder()405 .clipShape(LunarShape.md)406 .lunarHairline(.md)407 .lunarShadow(.raised)408 .overlay(alignment: .bottomTrailing) {409 LunarIconButton(glyph: .agent, label: "Agent", style: .glass, diameter: 52) {}410 .padding(LunarSpacing.md)411 }412 }413 }414 .padding(.horizontal, LunarSpacing.sm)415 .padding(.bottom, LunarSpacing.sm)416 .padding(.top, 34)417 VStack {418 HStack {419 Text("9:41").monospacedDigit()420 Text("Tue 25 Nov")421 Spacer()422 Image(systemName: "wifi")423 Image(systemName: "battery.100percent")424 }425 .font(.system(size: 13, weight: .semibold))426 .foregroundStyle(theme.textPrimary)427 .padding(.horizontal, 24)428 .padding(.top, 9)429 Spacer()430 }431 }432 .frame(width: 1180, height: 820)433 }434}435436// MARK: - Orbit437438struct OrbitMockup: View {439 @Environment(\.lunarTheme) private var theme440 private let squash: CGFloat = 0.6441 private let outer: CGFloat = 560442443 /// (workspace index, ring, angle in degrees, planet size, ringed)444 private let placements: [(Int, Int, Double, CGFloat, Bool)] = [445 (1, 0, 200, 34, false), (2, 0, 20, 30, true),446 (3, 1, 150, 40, false), (4, 1, 300, 32, false), (5, 1, 45, 28, false),447 (6, 2, 172, 36, true), (7, 2, 335, 38, false), (0, 2, 236, 46, false),448 ]449450 var body: some View {451 ZStack {452 MockBackdrop(density: 2.0, orbits: false)453 ZStack {454 LunarOrbitRings(count: 3, squash: squash)455 .frame(width: outer * 2, height: outer * 2 * squash)456 // Pages travelling on the rings: small moons.457 ForEach(0..<26, id: \.self) { index in458 let ring = index % 3459 let angle = Double(index) * 47.0 + Double(ring) * 13460 Circle()461 .fill(theme.orbitRings[ring].withAlpha(min(1, theme.orbitRings[ring].alpha * 2.2)))462 .frame(width: 4, height: 4)463 .offset(point(ring: ring, degrees: angle))464 }465 VStack(spacing: LunarSpacing.xs) {466 LunarMarkView(size: 132)467 Text("ORIX").lunarFont(.overline).foregroundStyle(theme.textSecondary)468 }469 .offset(y: 8)470 ForEach(Array(placements.enumerated()), id: \.offset) { _, placement in471 let workspace = MockData.workspaces[placement.0]472 let active = placement.0 == 0473 VStack(spacing: LunarSpacing.unit + 2) {474 LunarPlanet(tint: workspace.1, size: placement.3, isActive: active, hasRing: placement.4)475 .frame(width: placement.3, height: placement.3)476 LunarSatelliteChip(workspace.0, tint: workspace.1, isActive: active, count: workspace.2)477 }478 .offset(point(ring: placement.1, degrees: placement.2))479 .offset(y: 22)480 }481 }482 .offset(y: 16)483484 VStack {485 HStack(alignment: .center, spacing: LunarSpacing.md) {486 TrafficLights()487 LunarGlyphView(.orbit, size: 22).foregroundStyle(theme.accent)488 Text("Orbit").lunarFont(.title2).foregroundStyle(theme.textPrimary)489 Spacer()490 LunarSegmentedControl("View", selection: .constant(1), segments: [491 LunarSegment("Tabs", value: 0), LunarSegment("Orbit", value: 1, icon: .glyph(.orbit)),492 LunarSegment("Memory", value: 2, icon: .glyph(.memory)),493 ])494 .frame(width: 340)495 Spacer()496 LunarSearchField(text: .constant(""), prompt: "Search your orbit").frame(width: 260)497 }498 .padding(.horizontal, LunarSpacing.lg)499 .padding(.top, LunarSpacing.md)500 Spacer()501 HStack(spacing: LunarSpacing.lg) {502 hint("Open satellite", "⏎")503 hint("New satellite", "⌘N")504 hint("Move page", "⌥⇥")505 hint("Back to tabs", "⎋")506 }507 .padding(.horizontal, LunarSpacing.lg)508 .frame(height: LunarMetrics.barHeight)509 .lunarGlass(.capsule, style: .chrome, elevation: .floating)510 .padding(.bottom, LunarSpacing.lg)511 }512 }513 .frame(width: 1440, height: 900)514 }515516 private func hint(_ text: String, _ keys: String) -> some View {517 HStack(spacing: LunarSpacing.xs) {518 LunarShortcut(keys)519 Text(text).lunarFont(.footnote).foregroundStyle(theme.textSecondary)520 }521 }522523 private func point(ring: Int, degrees: Double) -> CGSize {524 let radius = outer * LunarOrbitRings.radiusFraction(ring: ring, of: 3)525 let radians = degrees * .pi / 180526 return CGSize(width: radius * cos(radians), height: radius * squash * sin(radians))527 }528}529530// MARK: - New tab531532struct NewTabMockup: View {533 @Environment(\.lunarTheme) private var theme534535 var body: some View {536 ZStack {537 MockBackdrop(density: 1.6)538 VStack(spacing: 0) {539 HStack {540 TrafficLights()541 LunarIconButton(systemName: "sidebar.left", label: "Show sidebar", diameter: 28) {}542 .padding(.leading, LunarSpacing.xs)543 Spacer()544 LunarSatelliteChip("Research", tint: .spectralViolet, isActive: true, count: 23)545 LunarIconButton(glyph: .orbit, label: "Orbit", style: .glass) {}546 LunarIconButton(glyph: .command, label: "Command", style: .glass) {}547 }548 .padding(.horizontal, LunarSpacing.lg)549 .padding(.top, LunarSpacing.md)550 Spacer(minLength: 0)551 ZStack {552 LunarOrbitRings(count: 2).frame(width: 300, height: 300).opacity(0.7)553 LunarMarkView(size: 148)554 }555 .frame(height: 210)556 Text("ORIX Navigator")557 .font(.system(size: 34, weight: .semibold)).tracking(0.4)558 .foregroundStyle(theme.textPrimary)559 .padding(.top, LunarSpacing.unit)560 Text("Good evening. 148 trackers stayed outside this week.")561 .lunarFont(.callout).lunarTabularDigits().foregroundStyle(theme.textSecondary)562 .padding(.top, LunarSpacing.unit + 2)563 LunarCapsuleBar {564 LunarSearchField(text: .constant(""), prompt: "Search or enter an address") {565 LunarShortcut("⌘K")566 }567 LunarIconButton(glyph: .agent, label: "Ask the agent", style: .accent) {}568 }569 .frame(width: 640)570 .padding(.top, LunarSpacing.lg)571 VStack(spacing: LunarSpacing.md) {572 ForEach(0..<2, id: \.self) { row in573 HStack(spacing: LunarSpacing.md) {574 ForEach(0..<5, id: \.self) { column in575 let item = MockData.favourites[row * 5 + column]576 VStack(spacing: LunarSpacing.xs) {577 LunarMonogram(item.0, tint: item.1, size: 34)578 .frame(width: 68, height: 68)579 .lunarGlass(.sm, style: .control, elevation: .raised)580 Text(item.0).lunarFont(.caption).foregroundStyle(theme.textSecondary)581 }582 .frame(width: 92)583 }584 }585 }586 }587 .padding(.top, LunarSpacing.xl)588 Spacer(minLength: 0)589 HStack(spacing: LunarSpacing.xs) {590 ForEach(Array(MockData.workspaces.prefix(5).enumerated()), id: \.offset) { index, workspace in591 LunarSatelliteChip(workspace.0, tint: workspace.1, isActive: index == 0, count: workspace.2)592 }593 }594 .padding(.bottom, LunarSpacing.lg)595 }596 }597 .frame(width: 1440, height: 900)598 }599}600