Files
Project_Velocity/iOS/velocity-edge-phone/EdgeScaffold.swift
sayan 84e439712c feat/#24 WebOS Completion (#25)
#24 WebOS Completion

Co-authored-by: Sayan Datta <sayan@Sayans-MacBook-Air.local>
Reviewed-on: #25
2026-04-18 18:59:04 +05:30

57 lines
2.0 KiB
Swift

import SwiftUI
struct EdgeScaffold: View {
let title: String
let subtitle: String
let actionLabel: String
var body: some View {
ZStack {
LinearGradient(
colors: [
Color(red: 0.03, green: 0.05, blue: 0.08),
Color.black,
],
startPoint: .topLeading,
endPoint: .bottomTrailing
)
.ignoresSafeArea()
VStack(alignment: .leading, spacing: 18) {
Text(title)
.font(.system(size: 30, weight: .bold))
.foregroundStyle(.white)
Text(subtitle)
.font(.system(size: 14))
.foregroundStyle(Color.white.opacity(0.7))
VStack(alignment: .leading, spacing: 8) {
Text("EDGE ACTION")
.font(.system(size: 10, weight: .semibold))
.tracking(1.4)
.foregroundStyle(Color(red: 0.22, green: 0.60, blue: 0.98))
Text(actionLabel)
.font(.system(size: 18, weight: .semibold))
.foregroundStyle(.white)
Text("This narrow surface is ready for `/api/mobile-edge` hookup once auth, installs, and heartbeat registration are connected.")
.font(.system(size: 13))
.foregroundStyle(Color.white.opacity(0.72))
}
.padding(18)
.frame(maxWidth: .infinity, alignment: .leading)
.background(
RoundedRectangle(cornerRadius: 22)
.fill(Color.white.opacity(0.06))
.overlay(
RoundedRectangle(cornerRadius: 22)
.stroke(Color.white.opacity(0.08), lineWidth: 1)
)
)
Spacer()
}
.padding(24)
}
}
}