diff LazyBear/Views/Home/Helpers/TradingDatesItem.swift @ 333:41c9252fc76c

Reorganizing files
author Dennis Concepción Martín <66180929+denniscm190@users.noreply.github.com>
date Tue, 30 Mar 2021 23:15:49 +0200
parents
children 6f904b166564
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/LazyBear/Views/Home/Helpers/TradingDatesItem.swift	Tue Mar 30 23:15:49 2021 +0200
@@ -0,0 +1,56 @@
+//
+//  TradingDatesItem.swift
+//  LazyBear
+//
+//  Created by Dennis Concepción Martín on 30/3/21.
+//
+
+import SwiftUI
+
+struct TradingDatesItem: View {
+    @Environment(\.colorScheme) var colorScheme
+    
+    var body: some View {
+        RoundedRectangle(cornerRadius: 20)
+            .foregroundColor(Color(.secondarySystemBackground))
+            .frame(height: 100)
+            .overlay(
+                HStack {
+                    Rectangle()
+                        .frame(width: 15)
+                        .foregroundColor(Color("default"))
+                        
+                    VStack {
+                        Text("April")
+                            .fontWeight(.semibold)
+                        
+                        Text("20")
+                            .font(.title)
+                            .fontWeight(.semibold)
+                            .foregroundColor(Color("default"))
+                    }
+                    
+                    Spacer()
+                    VStack {
+                        Text("US Markets open in regular hours")
+                            .fontWeight(.semibold)
+                        
+                        Text("Random funny phrase")
+                            .font(.caption)
+                            .fontWeight(.semibold)
+                            .multilineTextAlignment(.center)
+                            .opacity(0.6)
+                    }
+                    
+                    Spacer()
+                }
+                .clipShape(RoundedRectangle(cornerRadius: 20))
+            )
+    }
+}
+
+struct TradingDatesItem_Previews: PreviewProvider {
+    static var previews: some View {
+        TradingDatesItem()
+    }
+}