Files
zeekayandHanzo Dev c8bfbebc15 Keep ZAMA's copyright notices
This app is ZAMA's BSD 3-Clause Clear demo. The license requires its notices to
survive redistribution, and a rebrand had replaced every one of them with ours:
the LICENSE text, 66 source headers and the app's copyright string. They are
back, each with our line beside it for our changes.

Co-authored-by: Hanzo Dev <[email protected]>
2026-09-23 01:55:03 -07:00

64 lines
1.9 KiB
Swift

// Copyright © 2025 Zama. All rights reserved.
// Copyright © 2025 Lux Industries Inc.
import SwiftUI
#Preview {
@Previewable @State var tab = DataVaultTab.home
TabView(selection: $tab) {
Tab("Home", systemImage: "house", value: .home) {
HomeTab(selectedTab: $tab)
}
}
}
struct HomeTab: View {
@Binding var selectedTab: DataVaultTab
var body: some View {
ScrollView {
VStack(alignment: .leading, spacing: 24) {
Text("LUX\nDATA\nVAULT")
.multilineTextAlignment(.leading)
.font(.custom("Telegraf-Bold", size: 50))
.padding(.bottom, 20)
Text("What sensitive data would you like to protect?")
.customFont(.title2)
VStack(spacing: 12) {
HStack(spacing: 12) {
Button("Sleep") {
selectedTab = .sleep
}
Button("Weight") {
selectedTab = .weight
}
}
Button("Profile Information") {
selectedTab = .profile
}
}
.buttonStyle(.lux)
Text("How does it work behind the scenes?")
.customFont(.title2)
Text("Fully Homomorphic Encryption (FHE) lets you process your data while keeping it encrypted, ensuring your privacy at all times.")
Image(.fheTutorial)
.resizable()
.aspectRatio(contentMode: .fill)
Link("Learn More on Lux.network", destination: LuxConfig.websiteFHEIntro)
.buttonStyle(.lux)
Spacer()
}
.padding(.horizontal, 30)
.customFont(.body)
}
}
}