Advertisement
radicaldeepscale

Tripane view NavigationLink array destinations view?

Sep 5th, 2022
164
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Swift 39.63 KB | Science | 0 0
  1. struct ContentMenu: View {
  2.    
  3.    
  4.     /*
  5.      let allColors: [Color] = [
  6.      .pink,
  7.      .red,
  8.      .orange,
  9.      .yellow,
  10.      .green,
  11.      .mint,
  12.      .teal,
  13.      .cyan,
  14.      .blue,
  15.      .indigo,
  16.      .purple,
  17.      .brown,
  18.      .gray
  19.      ]
  20.      */
  21.    
  22.    
  23.     var body: some View {
  24.         VStack(alignment: .center) {
  25.            
  26.             VStack(alignment: .center) {
  27.                
  28.                     Image("C2F")
  29.                         .resizable()
  30.                         .aspectRatio(contentMode: .fit)
  31.                
  32.                
  33.             }
  34.             .background(
  35.                 LinearGradient(gradient: Gradient(colors: [.brown, .cyan]), startPoint: .topLeading, endPoint: .bottomTrailing))
  36.            
  37.             ScrollView(.vertical) {
  38.                 VStack(alignment: .center) {
  39.                    
  40.                    
  41.                    
  42.                     VStack(alignment: .center) {
  43.                         VStack(alignment: .center){
  44.                             NavigationLink(destination: WelcomeView()) {
  45.                                 ZStack(alignment: .leading){
  46.                                     RoundedRectangle(cornerRadius: 4.0)
  47.                                         .aspectRatio(4.5, contentMode: ContentMode.fit)
  48.                                         .shadow(radius: 3)
  49.                                         .foregroundColor(.blue)
  50.                                     HStack(alignment: .center){
  51.                                         Image("Hum").resizable()
  52.                                             .aspectRatio(contentMode: .fit).padding(.leading, 8).padding(.trailing, 4)
  53.                                             .frame(
  54.                                                 maxWidth: 50,
  55.                                                 maxHeight: 50, alignment: .leading).shadow(radius: 3)
  56.                                         Text("DART Meadow")
  57.                                     }.foregroundColor(.white)
  58.                                 }
  59.                             }
  60.                         }
  61.                         VStack(alignment: .center){
  62.                             NavigationLink(destination: JournalView()) {
  63.                                 ZStack(alignment: .leading){
  64.                                     RoundedRectangle(cornerRadius: 4.0)
  65.                                         .aspectRatio(4.5, contentMode: ContentMode.fit)
  66.                                         .shadow(radius: 3)
  67.                                         .foregroundColor(.blue)
  68.                                     HStack(alignment: .center){
  69.                                         Image("LD").resizable()
  70.                                             .aspectRatio(contentMode: .fit).padding(.leading, 8).padding(.trailing, 4)
  71.                                             .frame(
  72.                                                 maxWidth: 50,
  73.                                                 maxHeight: 50, alignment: .leading).shadow(radius: 3)
  74.                                         Text("Articren Journal")
  75.                                        
  76.                                     }.foregroundColor(.white)
  77.                                 }
  78.                             }
  79.                         }
  80.                         VStack(alignment: .center){
  81.                             NavigationLink(destination: ResearchMenu()) {
  82.                                 ZStack(alignment: .leading){
  83.                                     RoundedRectangle(cornerRadius: 4.0)
  84.                                         .aspectRatio(4.5, contentMode: ContentMode.fit)
  85.                                         .shadow(radius: 3)
  86.                                         .foregroundColor(.blue)
  87.                                     HStack(alignment: .center){
  88.                                         Image("rdflower").resizable()
  89.                                             .aspectRatio(contentMode: .fit).padding(.leading, 8).padding(.trailing, 4)
  90.                                             .frame(
  91.                                                 maxWidth: 50,
  92.                                                 maxHeight: 50, alignment: .leading).shadow(radius: 3)
  93.                                         Text("Research")
  94.                                     }.foregroundColor(.white)
  95.                                 }
  96.                             }
  97.                         }
  98.                         VStack(alignment: .center){
  99.                             NavigationLink(destination: ArcLakeView()) {
  100.                                 ZStack(alignment: .leading){
  101.                                     RoundedRectangle(cornerRadius: 4.0)
  102.                                         .aspectRatio(4.5, contentMode: ContentMode.fit)
  103.                                         .shadow(radius: 3)
  104.                                         .foregroundColor(.blue)
  105.                                     HStack(alignment: .center){
  106.                                             Image("LDGlassBlack").resizable()
  107.                                                 .aspectRatio(contentMode: .fit).padding(.leading, 8).padding(.trailing, 4)
  108.                                                 .frame(
  109.                                                     maxWidth: 50,
  110.                                                     maxHeight: 50, alignment: .leading).shadow(radius: 3)
  111.                                         Text("Navigation")
  112.                                     }.foregroundColor(.white)
  113.                                 }
  114.                             }
  115.                         }
  116.                         VStack(alignment: .center){
  117.                             NavigationLink(destination: WelcomeView()) {
  118.                                 ZStack(alignment: .leading){
  119.                                     RoundedRectangle(cornerRadius: 4.0)
  120.                                         .aspectRatio(4.5, contentMode: ContentMode.fit)
  121.                                         .shadow(radius: 3)
  122.                                         .foregroundColor(.blue)
  123.                                     HStack(alignment: .center){
  124.                                         Image("CircleTrans").resizable()
  125.                                             .aspectRatio(contentMode: .fit).padding(.leading, 8).padding(.trailing, 4)
  126.                                             .frame(
  127.                                                 maxWidth: 50,
  128.                                                 maxHeight: 50, alignment: .leading).shadow(radius: 3)
  129.                                         Text("Simulations")
  130.                                     }.foregroundColor(.white)
  131.                                 }
  132.                             }
  133.                         }
  134.                         VStack(alignment: .center){
  135.                             NavigationLink(destination: WelcomeView()) {
  136.                                 ZStack(alignment: .leading){
  137.                                     RoundedRectangle(cornerRadius: 4.0)
  138.                                         .aspectRatio(4.5, contentMode: ContentMode.fit)
  139.                                         .shadow(radius: 3)
  140.                                         .foregroundColor(.blue)
  141.                                     HStack(alignment: .center){
  142.                                         Image("StealthEdgeMasterset").resizable()
  143.                                             .aspectRatio(contentMode: .fit).padding(.leading, 8).padding(.trailing, 4)
  144.                                             .frame(
  145.                                                 maxWidth: 50,
  146.                                                 maxHeight: 50, alignment: .leading).shadow(radius: 3)
  147.                                         Text("Logistics")
  148.                                     }.foregroundColor(.white)
  149.                                 }
  150.                             }
  151.                         }
  152.                        
  153.                        
  154.                     }
  155.                    
  156.                 }.frame(
  157.                     maxWidth: 190,
  158.                     maxHeight: .infinity, alignment: .topLeading)
  159.                
  160.             }
  161.            
  162.            
  163.            
  164.         }
  165.         .background(
  166.             LinearGradient(gradient: Gradient(colors: [.brown, .black]), startPoint: .topLeading, endPoint: .bottomTrailing))
  167.        
  168.        
  169.        
  170.        
  171.     }
  172.    
  173. }
  174.  
  175. struct RNode: Hashable, Identifiable {
  176.     let id = UUID()
  177.     let title: String
  178.     let icon: String
  179.     var nodes: [RNode]?
  180.     /*
  181.     var views: (some View) {[
  182.         WelcomeView(), DETEView(), OrbitNodeView()
  183.     ]}
  184.      */
  185.     //DART Meadow
  186.    
  187.     //Jounal
  188.    
  189.     //Research
  190.     static let elements = RNode(title: "Elements", icon: "flame")
  191.     static let sigcothian = RNode(title: "Sigcothian", icon: "star")
  192.     static let dartedge = RNode(title: "DART Edge", icon: "star")
  193.     static let orbit = RNode(title: "Orbit", icon: "star")
  194.     static let orbitbuilder = RNode(title: "Orbit Builder", icon: "star")
  195.     static let orbitbuilds = RNode(title: "Orbit Builds", icon: "star")
  196.     static let mass = RNode(title: "Mass", icon: "star")
  197.     static let volume = RNode(title: "Volume", icon: "star")
  198.     static let weight = RNode(title: "Weight", icon: "star")
  199.     static let density = RNode(title: "Density", icon: "star")
  200.     static let atm26 = RNode(title: "ATM 26", icon: "star")
  201.     static let breakvelocity = RNode(title: "Break | Velocity", icon: "star")
  202.     static let gas = RNode(title: "Gas", icon: "star")
  203.     static let liquid = RNode(title: "Liquid", icon: "star")
  204.     static let solid = RNode(title: "Solid", icon: "star")
  205.     static let crystalline = RNode(title: "Crystalline", icon: "star")
  206.     static let moleculebuilder = RNode(title: "Molecule Builder", icon: "star")
  207.     static let moleculebuilds = RNode(title: "Molecule Builds", icon: "star")
  208.     static let solartalatm = RNode(title: "Solartal ATM", icon: "star")
  209.     static let nozzle = RNode(title: "Nozzle", icon: "star")
  210.     static let decibel = RNode(title: "Decibel", icon: "star")
  211.     static let catalyst = RNode(title: "Catalyst", icon: "star")
  212.     static let phedge = RNode(title: "PH Edge", icon: "star")
  213.     static let bioedge = RNode(title: "BioEdge", icon: "star")
  214.     static let stealthedge = RNode(title: "StealthEdge", icon: "star")
  215.    
  216.     //Navagation
  217.    
  218.     //Logistics
  219.    
  220.     //Simulations
  221.     /*
  222.         .init(id: 1, title: "DART Meadow", imageName: "sun.max.fill"),
  223.         .init(id: 2, title: "Journal", imageName: "note.text"),
  224.         .init(id: 3, title: "Research", imageName: "flame"),
  225.         .init(id: 4, title: "Navigation", imageName: "moon.stars.fill"),
  226.         .init(id: 5, title: "Logistics", imageName: "cube.transparent.fill"),
  227.         .init(id: 6, title: "Simulations", imageName: "chart.pie.fill"),
  228.      */
  229.     // subcontent
  230.     static let dartmeadow = RNode(title: "DART Meadow", icon: "star")
  231.     static let journal = RNode(title: "Articren Journal", icon: "star")
  232.     static let research = RNode(title: "Research", icon: "star", nodes: [RNode.elements, RNode.sigcothian, RNode.dartedge, RNode.orbit, RNode.mass, RNode.volume, RNode.weight, RNode.density, RNode.atm26, RNode.breakvelocity, RNode.gas, RNode.liquid, RNode.solid, RNode.crystalline, RNode.solartalatm, RNode.nozzle, RNode.decibel, RNode.catalyst, RNode.phedge, RNode.bioedge, RNode.stealthedge])
  233.     static let navigation = RNode(title: "Navigation", icon: "star")
  234.     static let simulations = RNode(title: "Simulations", icon: "star")
  235.     static let logistics = RNode(title: "Logistics", icon: "star")
  236. }
  237.  
  238.  
  239.    
  240.        
  241. struct ResearchMenu: View {
  242.     @State var scale = 1.0
  243.     let nodes: [RNode] = [.dartmeadow,.journal,.research,.navigation,.simulations,.logistics]
  244.     /*#-code-walkthrough(2.columnLayout)*/
  245.     let columnLayout = Array(repeating: GridItem(), count: 1)
  246.    
  247.     /*
  248.     let allColors: [Color] = [
  249.         .pink,
  250.         .red,
  251.         .orange,
  252.         .yellow,
  253.         .green,
  254.         .mint,
  255.         .teal,
  256.         .cyan,
  257.         .blue,
  258.         .indigo,
  259.         .purple,
  260.         .brown,
  261.         .gray
  262.     ]
  263.      */
  264.    
  265.    
  266.     var body: some View {
  267.         HStack(alignment: .center) {
  268.         VStack(alignment: .leading) {
  269.        
  270.            
  271.            
  272.             ScrollView(.vertical) {
  273.             VStack(alignment: .leading) {
  274.            
  275.                
  276.                
  277.                 VStack(alignment: .center) {
  278.                    
  279.                             VStack(alignment: .center){
  280.                                 NavigationLink(destination: DETEView()) {
  281.                                     ZStack(alignment: .leading){
  282.                                         RoundedRectangle(cornerRadius: 4.0)
  283.                                             .aspectRatio(4.5, contentMode: ContentMode.fit)
  284.                                             .shadow(radius: 3)
  285.                                             .foregroundColor(.blue)
  286.                                         HStack(alignment: .center){
  287.                                             Image("rdflower").resizable()
  288.                                                 .aspectRatio(contentMode: .fit).padding(.leading, 8).padding(.trailing, 4)
  289.                                                 .frame(
  290.                                                     maxWidth: 40,
  291.                                                     maxHeight: 40, alignment: .leading).shadow(radius: 3)
  292.                                         Text("Elements")
  293.                                         }.foregroundColor(.white)
  294.                                     }
  295.                                 }
  296.                             }
  297.                                 VStack(alignment: .center){
  298.                                         NavigationLink(destination: SigcothianView()) {
  299.                                             ZStack(alignment: .leading){
  300.                                                 RoundedRectangle(cornerRadius: 4.0)
  301.                                                     .aspectRatio(4.5, contentMode: ContentMode.fit)
  302.                                                     .shadow(radius: 3)
  303.                                                     .foregroundColor(.blue)
  304.                                                 HStack(alignment: .center){
  305.                                                     Image("Sigcothian300").resizable()
  306.                                                         .aspectRatio(contentMode: .fit).padding(.leading, 8).padding(.trailing, 4)
  307.                                                         .frame(
  308.                                                             maxWidth: 40,
  309.                                                             maxHeight: 40, alignment: .leading).shadow(radius: 3)
  310.                                             Text("Sigcothian")
  311.                                                    
  312.                                                 }.foregroundColor(.white)
  313.                                         }
  314.                                     }
  315.                                 }
  316.                                     VStack(alignment: .center){
  317.                                         NavigationLink(destination: DARTEdge()) {
  318.                                             ZStack(alignment: .leading){
  319.                                                 RoundedRectangle(cornerRadius: 4.0)
  320.                                                     .aspectRatio(4.5, contentMode: ContentMode.fit)
  321.                                                     .shadow(radius: 3)
  322.                                                     .foregroundColor(.blue)
  323.                                                 HStack(alignment: .center){
  324.                                                     Image("dle").resizable()
  325.                                                         .aspectRatio(contentMode: .fit).padding(.leading, 8).padding(.trailing, 4)
  326.                                                         .frame(
  327.                                                             maxWidth: 40,
  328.                                                             maxHeight: 40, alignment: .leading).shadow(radius: 3)
  329.                                                     Text("DART Edge")
  330.                                                 }.foregroundColor(.white)
  331.                                             }
  332.                                         }
  333.                                     }
  334.                 VStack(alignment: .center){
  335.                     NavigationLink(destination: OrbitNodeView()) {
  336.                         ZStack(alignment: .leading){
  337.                             RoundedRectangle(cornerRadius: 4.0)
  338.                                 .aspectRatio(4.5, contentMode: ContentMode.fit)
  339.                                 .shadow(radius: 3)
  340.                                 .foregroundColor(.blue)
  341.                             HStack(alignment: .center){
  342.                                 Image("orbit100").resizable()
  343.                                     .aspectRatio(contentMode: .fit).padding(.leading, 8).padding(.trailing, 4)
  344.                                     .frame(
  345.                                         maxWidth: 40,
  346.                                         maxHeight: 40, alignment: .leading).shadow(radius: 3)
  347.                                 Text("Orbit Builder")
  348.                             }.foregroundColor(.white)
  349.                         }
  350.                     }
  351.                 }
  352.                 VStack(alignment: .center){
  353.                     NavigationLink(destination: OrbitNodeView()) {
  354.                         ZStack(alignment: .leading){
  355.                             RoundedRectangle(cornerRadius: 4.0)
  356.                                 .aspectRatio(4.5, contentMode: ContentMode.fit)
  357.                                 .shadow(radius: 3)
  358.                                 .foregroundColor(.blue)
  359.                             HStack(alignment: .center){
  360.                                 Image("orbit100").resizable()
  361.                                     .aspectRatio(contentMode: .fit).padding(.leading, 8).padding(.trailing, 4)
  362.                                     .frame(
  363.                                         maxWidth: 40,
  364.                                         maxHeight: 40, alignment: .leading).shadow(radius: 3)
  365.                                 Text("Orbit Builds")
  366.                             }.foregroundColor(.white)
  367.                         }
  368.                     }
  369.                 }
  370.                 VStack(alignment: .center){
  371.                     NavigationLink(destination: MassView()) {
  372.                         ZStack(alignment: .leading){
  373.                             RoundedRectangle(cornerRadius: 4.0)
  374.                                 .aspectRatio(4.5, contentMode: ContentMode.fit)
  375.                                 .shadow(radius: 3)
  376.                                 .foregroundColor(.blue)
  377.                             HStack(alignment: .center){
  378.                             Image("Mass150").resizable()
  379.                                 .aspectRatio(contentMode: .fit).padding(.leading, 8).padding(.trailing, 4)
  380.                                 .frame(
  381.                                     maxWidth: 40,
  382.                                     maxHeight: 40, alignment: .leading).shadow(radius: 3)
  383.                                 Text("Mass")
  384.                             }.foregroundColor(.white)
  385.                         }
  386.                     }
  387.                 }
  388.                 VStack(alignment: .center){
  389.                     NavigationLink(destination: VolumeView()) {
  390.                         ZStack(alignment: .leading){
  391.                             RoundedRectangle(cornerRadius: 4.0)
  392.                                 .aspectRatio(4.5, contentMode: ContentMode.fit)
  393.                                 .shadow(radius: 3)
  394.                                 .foregroundColor(.blue)
  395.                             HStack(alignment: .center){
  396.                                 Image("VolumeCuda").resizable()
  397.                                     .aspectRatio(contentMode: .fit).padding(.leading, 8).padding(.trailing, 4)
  398.                                     .frame(
  399.                                         maxWidth: 40,
  400.                                         maxHeight: 40, alignment: .leading).shadow(radius: 3)
  401.                                 Text("Volume")
  402.                             }.foregroundColor(.white)
  403.                         }
  404.                     }
  405.                 }
  406.                 VStack(alignment: .center){
  407.                     NavigationLink(destination: WeightView()) {
  408.                         ZStack(alignment: .leading){
  409.                             RoundedRectangle(cornerRadius: 4.0)
  410.                                 .aspectRatio(4.5, contentMode: ContentMode.fit)
  411.                                 .shadow(radius: 3)
  412.                                 .foregroundColor(.blue)
  413.                             HStack(alignment: .center){
  414.                                 Image("Weight150").resizable()
  415.                                     .aspectRatio(contentMode: .fit).padding(.leading, 8).padding(.trailing, 4)
  416.                                     .frame(
  417.                                         maxWidth: 40,
  418.                                         maxHeight: 40, alignment: .leading).shadow(radius: 3)
  419.                                 Text("Weight")
  420.                             }.foregroundColor(.white)
  421.                         }
  422.                     }
  423.                 }
  424.             }
  425.                
  426.             VStack(alignment: .center){
  427.             VStack(alignment: .center){
  428.                 NavigationLink(destination: DensityView()) {
  429.                     ZStack(alignment: .leading){
  430.                         RoundedRectangle(cornerRadius: 4.0)
  431.                             .aspectRatio(4.5, contentMode: ContentMode.fit)
  432.                             .shadow(radius: 3)
  433.                             .foregroundColor(.blue)
  434.                         HStack(alignment: .center){
  435.                             Image("Density150").resizable()
  436.                                 .aspectRatio(contentMode: .fit).padding(.leading, 8).padding(.trailing, 4)
  437.                                 .frame(
  438.                                     maxWidth: 40,
  439.                                     maxHeight: 40, alignment: .leading).shadow(radius: 3)
  440.                             Text("Density")
  441.                         }.foregroundColor(.white)
  442.                     }
  443.                 }
  444.             }
  445.                 VStack(alignment: .center){
  446.                     NavigationLink(destination: ATM26NodeView()) {
  447.                         ZStack(alignment: .leading){
  448.                             RoundedRectangle(cornerRadius: 4.0)
  449.                                 .aspectRatio(4.5, contentMode: ContentMode.fit)
  450.                                 .shadow(radius: 3)
  451.                                 .foregroundColor(.blue)
  452.                             HStack(alignment: .center){
  453.                                 Image("DEAC").resizable()
  454.                                     .aspectRatio(contentMode: .fit).padding(.leading, 8).padding(.trailing, 4)
  455.                                     .frame(
  456.                                         maxWidth: 40,
  457.                                         maxHeight: 40, alignment: .leading).shadow(radius: 3)
  458.                                 Text("ATM 26")
  459.                             }.foregroundColor(.white)
  460.                         }
  461.                     }
  462.                 }
  463.                 VStack(alignment: .center){
  464.                     NavigationLink(destination: DETEView()) {
  465.                         ZStack(alignment: .leading){
  466.                             RoundedRectangle(cornerRadius: 4.0)
  467.                                 .aspectRatio(4.5, contentMode: ContentMode.fit)
  468.                                 .shadow(radius: 3)
  469.                                 .foregroundColor(.blue)
  470.                             HStack(alignment: .center){
  471.                                 Image("Hercules").resizable()
  472.                                     .aspectRatio(contentMode: .fit).padding(.leading, 8).padding(.trailing, 4)
  473.                                     .frame(
  474.                                         maxWidth: 40,
  475.                                         maxHeight: 40, alignment: .leading).shadow(radius: 3)
  476.                                 Text("Break | Velocity")
  477.                             }.foregroundColor(.white)
  478.                         }
  479.                     }
  480.                 }
  481.                 VStack(alignment: .center){
  482.                     NavigationLink(destination: DETEView()) {
  483.                         ZStack(alignment: .leading){
  484.                             RoundedRectangle(cornerRadius: 4.0)
  485.                                 .aspectRatio(4.5, contentMode: ContentMode.fit)
  486.                                 .shadow(radius: 3)
  487.                                 .foregroundColor(.blue)
  488.                             HStack(alignment: .center){
  489.                                 Image("rdflower").resizable()
  490.                                     .aspectRatio(contentMode: .fit).padding(.leading, 8).padding(.trailing, 4)
  491.                                     .frame(
  492.                                         maxWidth: 40,
  493.                                         maxHeight: 40, alignment: .leading).shadow(radius: 3)
  494.                                 Text("Gas")
  495.                             }.foregroundColor(.white)
  496.                         }
  497.                     }
  498.                 }
  499.                 VStack(alignment: .center){
  500.                     NavigationLink(destination: DETEView()) {
  501.                         ZStack(alignment: .leading){
  502.                             RoundedRectangle(cornerRadius: 4.0)
  503.                                 .aspectRatio(4.5, contentMode: ContentMode.fit)
  504.                                 .shadow(radius: 3)
  505.                                 .foregroundColor(.blue)
  506.                             HStack(alignment: .center){
  507.                                 Image("rdflower").resizable()
  508.                                     .aspectRatio(contentMode: .fit).padding(.leading, 8).padding(.trailing, 4)
  509.                                     .frame(
  510.                                         maxWidth: 40,
  511.                                         maxHeight: 40, alignment: .leading).shadow(radius: 3)
  512.                                 Text("Liquid")
  513.                             }.foregroundColor(.white)
  514.                         }
  515.                     }
  516.                 }
  517.                 VStack(alignment: .center){
  518.                     NavigationLink(destination: DETEView()) {
  519.                         ZStack(alignment: .leading){
  520.                             RoundedRectangle(cornerRadius: 4.0)
  521.                                 .aspectRatio(4.5, contentMode: ContentMode.fit)
  522.                                 .shadow(radius: 3)
  523.                                 .foregroundColor(.blue)
  524.                             HStack(alignment: .center){
  525.                                 Image("rdflower").resizable()
  526.                                     .aspectRatio(contentMode: .fit).padding(.leading, 8).padding(.trailing, 4)
  527.                                     .frame(
  528.                                         maxWidth: 40,
  529.                                         maxHeight: 40, alignment: .leading).shadow(radius: 3)
  530.                                 Text("Solid")
  531.                             }.foregroundColor(.white)
  532.                         }
  533.                     }
  534.                 }
  535.                 VStack(alignment: .center){
  536.                     NavigationLink(destination: DETEView()) {
  537.                         ZStack(alignment: .leading){
  538.                             RoundedRectangle(cornerRadius: 4.0)
  539.                                 .aspectRatio(4.5, contentMode: ContentMode.fit)
  540.                                 .shadow(radius: 3)
  541.                                 .foregroundColor(.blue)
  542.                             HStack(alignment: .center){
  543.                                 Image("LDGlassBlack").resizable()
  544.                                     .aspectRatio(contentMode: .fit).padding(.leading, 8).padding(.trailing, 4)
  545.                                     .frame(
  546.                                         maxWidth: 40,
  547.                                         maxHeight: 40, alignment: .leading).shadow(radius: 3)
  548.                                 Text("Crystalline")
  549.                             }.foregroundColor(.white)
  550.                         }
  551.                     }
  552.                 }
  553.                 VStack(alignment: .center){
  554.                     NavigationLink(destination: DETEView()) {
  555.                         ZStack(alignment: .leading){
  556.                             RoundedRectangle(cornerRadius: 4.0)
  557.                                 .aspectRatio(4.5, contentMode: ContentMode.fit)
  558.                                 .shadow(radius: 3)
  559.                                 .foregroundColor(.blue)
  560.                             HStack(alignment: .center){
  561.                                 Image("rdflower").resizable()
  562.                                     .aspectRatio(contentMode: .fit).padding(.leading, 8).padding(.trailing, 4)
  563.                                     .frame(
  564.                                         maxWidth: 40,
  565.                                         maxHeight: 40, alignment: .leading).shadow(radius: 3)
  566.                                 Text("Molecule Builder")
  567.                             }.foregroundColor(.white)
  568.                         }
  569.                     }
  570.                 }
  571.                 VStack(alignment: .center){
  572.                     NavigationLink(destination: DETEView()) {
  573.                         ZStack(alignment: .leading){
  574.                             RoundedRectangle(cornerRadius: 4.0)
  575.                                 .aspectRatio(4.5, contentMode: ContentMode.fit)
  576.                                 .shadow(radius: 3)
  577.                                 .foregroundColor(.blue)
  578.                             HStack(alignment: .center){
  579.                                 Image("rdflower").resizable()
  580.                                     .aspectRatio(contentMode: .fit).padding(.leading, 8).padding(.trailing, 4)
  581.                                     .frame(
  582.                                         maxWidth: 40,
  583.                                         maxHeight: 40, alignment: .leading).shadow(radius: 3)
  584.                                 Text("Molecule Builds")
  585.                             }.foregroundColor(.white)
  586.                         }
  587.                     }
  588.                 }
  589.                 VStack(alignment: .center){
  590.                     NavigationLink(destination: DETEView()) {
  591.                         ZStack(alignment: .leading){
  592.                             RoundedRectangle(cornerRadius: 4.0)
  593.                                 .aspectRatio(4.5, contentMode: ContentMode.fit)
  594.                                 .shadow(radius: 3)
  595.                                 .foregroundColor(.blue)
  596.                             HStack(alignment: .center){
  597.                                 Image("rdflower").resizable()
  598.                                     .aspectRatio(contentMode: .fit).padding(.leading, 8).padding(.trailing, 4)
  599.                                     .frame(
  600.                                         maxWidth: 40,
  601.                                         maxHeight: 40, alignment: .leading).shadow(radius: 3)
  602.                                 Text("Solartal ATM")
  603.                             }.foregroundColor(.white)
  604.                         }
  605.                     }
  606.                 }
  607.             }
  608.                 VStack(alignment: .center){
  609.                     VStack(alignment: .center){
  610.                         NavigationLink(destination: NozzleNodeView()) {
  611.                             ZStack(alignment: .leading){
  612.                                 RoundedRectangle(cornerRadius: 4.0)
  613.                                     .aspectRatio(4.5, contentMode: ContentMode.fit)
  614.                                     .shadow(radius: 3)
  615.                                     .foregroundColor(.blue)
  616.                                 HStack(alignment: .center){
  617.                                     Image("NozzleArtemis300").resizable()
  618.                                         .aspectRatio(contentMode: .fit).padding(.leading, 8).padding(.trailing, 4)
  619.                                         .frame(
  620.                                             maxWidth: 40,
  621.                                             maxHeight: 40, alignment: .leading).shadow(radius: 3)
  622.                                     Text("Nozzle")
  623.                                 }.foregroundColor(.white)
  624.                             }
  625.                         }
  626.                     }
  627.                     VStack(alignment: .center){
  628.                         NavigationLink(destination: Decibel()) {
  629.                             ZStack(alignment: .leading){
  630.                                 RoundedRectangle(cornerRadius: 4.0)
  631.                                     .aspectRatio(4.5, contentMode: ContentMode.fit)
  632.                                     .shadow(radius: 3)
  633.                                     .foregroundColor(.blue)
  634.                                 HStack(alignment: .center){
  635.                                     Image("LDBay").resizable()
  636.                                         .aspectRatio(contentMode: .fit).padding(.leading, 8).padding(.trailing, 4)
  637.                                         .frame(
  638.                                             maxWidth: 40,
  639.                                             maxHeight: 40, alignment: .leading).shadow(radius: 3)
  640.                                     Text("Decibel")
  641.                                 }.foregroundColor(.white)
  642.                             }
  643.                         }
  644.                     }
  645.                     VStack(alignment: .center){
  646.                         NavigationLink(destination: DETEView()) {
  647.                             ZStack(alignment: .leading){
  648.                                 RoundedRectangle(cornerRadius: 4.0)
  649.                                     .aspectRatio(4.5, contentMode: ContentMode.fit)
  650.                                     .shadow(radius: 3)
  651.                                     .foregroundColor(.blue)
  652.                                 HStack(alignment: .center){
  653.                                     Image("rdflower").resizable()
  654.                                         .aspectRatio(contentMode: .fit).padding(.leading, 8).padding(.trailing, 4)
  655.                                         .frame(
  656.                                             maxWidth: 40,
  657.                                             maxHeight: 40, alignment: .leading).shadow(radius: 3)
  658.                                     Text("Catalyst")
  659.                                 }.foregroundColor(.white)
  660.                             }
  661.                         }
  662.                     }
  663.                     VStack(alignment: .center){
  664.                         NavigationLink(destination: DETEView()) {
  665.                             ZStack(alignment: .leading){
  666.                                 RoundedRectangle(cornerRadius: 4.0)
  667.                                     .aspectRatio(4.5, contentMode: ContentMode.fit)
  668.                                     .shadow(radius: 3)
  669.                                     .foregroundColor(.blue)
  670.                                 HStack(alignment: .center){
  671.                                     Image("rdflower").resizable()
  672.                                         .aspectRatio(contentMode: .fit).padding(.leading, 8).padding(.trailing, 4)
  673.                                         .frame(
  674.                                             maxWidth: 40,
  675.                                             maxHeight: 40, alignment: .leading).shadow(radius: 3)
  676.                                     Text("PH Edge")
  677.                                 }.foregroundColor(.white)
  678.                             }
  679.                         }
  680.                     }
  681.                     VStack(alignment: .center){
  682.                         NavigationLink(destination: DETEView()) {
  683.                             ZStack(alignment: .leading){
  684.                                 RoundedRectangle(cornerRadius: 4.0)
  685.                                     .aspectRatio(4.5, contentMode: ContentMode.fit)
  686.                                     .shadow(radius: 3)
  687.                                     .foregroundColor(.blue)
  688.                                 HStack(alignment: .center){
  689.                                     Image("BioEdge130").resizable()
  690.                                         .aspectRatio(contentMode: .fit).padding(.leading, 8).padding(.trailing, 4)
  691.                                         .frame(
  692.                                             maxWidth: 40,
  693.                                             maxHeight: 40, alignment: .leading).shadow(radius: 3)
  694.                                     Text("BioEdge")
  695.                                 }.foregroundColor(.white)
  696.                             }
  697.                         }
  698.                     }
  699.                     VStack(alignment: .center){
  700.                         NavigationLink(destination: DETEView()) {
  701.                             ZStack(alignment: .leading){
  702.                                 RoundedRectangle(cornerRadius: 4.0)
  703.                                     .aspectRatio(4.5, contentMode: ContentMode.fit)
  704.                                     .shadow(radius: 3)
  705.                                     .foregroundColor(.blue)
  706.                                 HStack(alignment: .center){
  707.                                     Image("StealthEdgeMasterset").resizable()
  708.                                         .aspectRatio(contentMode: .fit).padding(.leading, 8).padding(.trailing, 4)
  709.                                         .frame(
  710.                                             maxWidth: 40,
  711.                                             maxHeight: 40, alignment: .leading).shadow(radius: 3)
  712.                                     Text("Stealth Edge")
  713.                                 }.foregroundColor(.white)
  714.                             }
  715.                         }
  716.                     }
  717.                    
  718.                 }
  719.                
  720.             }.frame(
  721.                 maxWidth: 198,
  722.                 maxHeight: .infinity, alignment: .topLeading)
  723.             .frame(
  724.                 maxWidth: 198,
  725.                 maxHeight: .infinity, alignment: .topLeading).padding(.trailing, 8)
  726.                
  727.             }
  728.            
  729.            
  730.            
  731.             .padding(.leading, 4)
  732.            
  733.            
  734.         }.frame(
  735.             maxWidth: 198,
  736.             maxHeight: .infinity, alignment: .topLeading)
  737.        
  738.            
  739.            
  740.         VStack(alignment: .center){
  741.             Image("DMLogoDETE")
  742.                 .resizable()
  743.                 .aspectRatio(contentMode: .fit)
  744.         }.frame(maxWidth: .infinity, maxHeight: .infinity, alignment: .center)
  745.         }.background(
  746.             LinearGradient(gradient: Gradient(colors: [.brown, .black]), startPoint: .topLeading, endPoint: .bottomTrailing))
  747.        
  748.        
  749.     }
  750.    
  751. }
  752.    
  753.  
  754. struct WelcomeView: View {
  755.    
  756.     var body: some View{
  757.        
  758.         VStack(alignment: .center) {
  759.            
  760.            
  761.             VStack(alignment: .center) {
  762.                     Image("DMHum")
  763.                         .resizable()
  764.                         .aspectRatio(contentMode: .fit)
  765.                 }.frame(width: 400, height: 200, alignment: .center)
  766.             VStack(alignment: .center) {
  767.                     Image("C2Logo")
  768.                         .resizable()
  769.                         .aspectRatio(contentMode: .fit)
  770.                 }.frame(width: 512, height: 512, alignment: .center)
  771.         }.frame(
  772.             maxWidth: .infinity,
  773.             maxHeight: .infinity, alignment: .center)
  774.         .background(LinearGradient(gradient: Gradient(colors: [.brown, .black]), startPoint: .topTrailing, endPoint: .bottomLeading))
  775.        
  776.     }
  777. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement