diff --git a/ARCHBLOX-APPLE-MODERN/ARCHBLOX/ARCHBLOX.entitlements b/ARCHBLOX-APPLE-MODERN/ARCHBLOX/ARCHBLOX.entitlements new file mode 100644 index 0000000..852fa1a --- /dev/null +++ b/ARCHBLOX-APPLE-MODERN/ARCHBLOX/ARCHBLOX.entitlements @@ -0,0 +1,8 @@ + + + + + com.apple.security.app-sandbox + + + diff --git a/ARCHBLOX-APPLE-MODERN/ARCHBLOX/ARCHBLOX.swift b/ARCHBLOX-APPLE-MODERN/ARCHBLOX/ARCHBLOX.swift new file mode 100644 index 0000000..1ba7022 --- /dev/null +++ b/ARCHBLOX-APPLE-MODERN/ARCHBLOX/ARCHBLOX.swift @@ -0,0 +1,27 @@ +// +// ARCHBLOX.swift +// ARCHBLOX +// +// Created by Thomas G on 13/3/2023. +// + +import SwiftUI + +@main + + +struct ARCHBLOX: App { + #if os(macOS) + var body: some Scene { + WindowGroup { + MainView().frame(minWidth: 400, maxWidth: .infinity, minHeight: 300, maxHeight: .infinity).edgesIgnoringSafeArea(.top) + }.windowStyle(HiddenTitleBarWindowStyle()); + } + #else + var body: some Scene { + WindowGroup { + LoadingScreen() + } + } + #endif +} diff --git a/ARCHBLOX-APPLE-MODERN/ARCHBLOX/HomeView.swift b/ARCHBLOX-APPLE-MODERN/ARCHBLOX/HomeView.swift new file mode 100644 index 0000000..923eace --- /dev/null +++ b/ARCHBLOX-APPLE-MODERN/ARCHBLOX/HomeView.swift @@ -0,0 +1,69 @@ +// +// MainView.swift +// ARCHBLOX +// +// Created by Thomas G on 13/3/2023. +// + +import SwiftUI + +struct HomeView: View { + var body: some View { + VStack{ + VStack(spacing: 0){ + HStack{ + Image("ARCHBLOX").resizable().aspectRatio(contentMode: ContentMode.fit).accessibilityLabel("ARCHBLOX").padding().frame(minHeight: 80,maxHeight: 80); + Spacer(); + Text("Thomas").font(.custom("Lucida Grande", size: 15)); + Image("divider").resizable().aspectRatio(contentMode: ContentMode.fit).accessibilityLabel("").frame(minHeight: 25,maxHeight: 25); + Image("arkot").resizable().aspectRatio(contentMode: ContentMode.fit).accessibilityLabel("").frame(minHeight: 30,maxHeight: 30); + Text("100.000M").font(.custom("Lucida Grande", size: 15)).accessibilityLabel("100,000,000 ARKOTS"); + Image("divider").resizable().aspectRatio(contentMode: ContentMode.fit).accessibilityLabel("").frame(minHeight: 25,maxHeight: 25); + Button("Log Out"){ + + }.font(.custom("Lucida Grande Bold", size: 20)); + }.fixedSize(horizontal: false, vertical: true).frame(minHeight: 51,maxHeight: 51).background( + Image("navbar") + .resizable() + .edgesIgnoringSafeArea(.all)) + HStack{ + Text("Home").font(.custom("Lucida Grande", size: 15)).padding(); + Text("Messages").font(.custom("Lucida Grande", size: 15)).padding(); + Text("Friends").font(.custom("Lucida Grande", size: 15)).padding(); + Spacer(); + }.fixedSize(horizontal: false, vertical: true).frame(minHeight: 40,maxHeight: 40).background( + Image("black") + .resizable() + .edgesIgnoringSafeArea(.all)) + } + Spacer(); + VStack{ + HStack() { + Text("Hello, Thomas!").font(.custom("Lucida Grande", size: 30)).padding().colorInvert(); + Spacer(); + } + Spacer(); + HStack{ + Text("My Feed").font(.custom("Lucida Grande", size: 30)).padding().colorInvert(); + Spacer(); + Text("Friends").font(.custom("Lucida Grande", size: 30)).padding().colorInvert(); + } + }.background( + Image("white") + .resizable() + .edgesIgnoringSafeArea(.all) + ).frame(minWidth: 0, maxWidth: 1000, minHeight: 0, maxHeight: .infinity) + }.background( + Image("background") + .resizable() + .edgesIgnoringSafeArea(.all) + .accessibilityLabel("") + ).preferredColorScheme(ColorScheme.dark) + } +} + +struct HomeView_Previews: PreviewProvider { + static var previews: some View { + HomeView() + } +} diff --git a/ARCHBLOX-APPLE-MODERN/ARCHBLOX/LoadingScreen.swift b/ARCHBLOX-APPLE-MODERN/ARCHBLOX/LoadingScreen.swift new file mode 100644 index 0000000..54ae54f --- /dev/null +++ b/ARCHBLOX-APPLE-MODERN/ARCHBLOX/LoadingScreen.swift @@ -0,0 +1,38 @@ +// +// LoadingScreen.swift +// ARCHBLOX +// +// Created by Thomas G on 14/3/2023. +// + +import SwiftUI + +struct LoadingScreen: View { + @State var loading: Bool = true + var body: some View { + if self.loading { + VStack{ + Image("ARCHBLOXarched").resizable().aspectRatio(contentMode: ContentMode.fit).accessibilityLabel("ARCHBLOX is loading please wait").padding(); + Spacer(); + }.padding(0).background( + Image("background") + .resizable() + .scaledToFill() + .edgesIgnoringSafeArea(.all) + .accessibilityLabel("ARCHBLOX is loading please wait") + ).preferredColorScheme(ColorScheme.dark).onAppear{ + DispatchQueue.main.asyncAfter(deadline: .now() + 2.5) { + self.loading = false; + } + } + } else { + MainView(); + } + } +} + +struct LoadingScreen_Previews: PreviewProvider { + static var previews: some View { + LoadingScreen() + } +} diff --git a/ARCHBLOX-APPLE-MODERN/ARCHBLOX/LucidaGrande.ttf b/ARCHBLOX-APPLE-MODERN/ARCHBLOX/LucidaGrande.ttf new file mode 100644 index 0000000..63c3d97 Binary files /dev/null and b/ARCHBLOX-APPLE-MODERN/ARCHBLOX/LucidaGrande.ttf differ diff --git a/ARCHBLOX-APPLE-MODERN/ARCHBLOX/LucidaGrandeBold.ttf b/ARCHBLOX-APPLE-MODERN/ARCHBLOX/LucidaGrandeBold.ttf new file mode 100644 index 0000000..6f67c86 Binary files /dev/null and b/ARCHBLOX-APPLE-MODERN/ARCHBLOX/LucidaGrandeBold.ttf differ diff --git a/ARCHBLOX-APPLE-MODERN/ARCHBLOX/MainView.swift b/ARCHBLOX-APPLE-MODERN/ARCHBLOX/MainView.swift new file mode 100644 index 0000000..ff7f41a --- /dev/null +++ b/ARCHBLOX-APPLE-MODERN/ARCHBLOX/MainView.swift @@ -0,0 +1,64 @@ +// +// MainView.swift +// ARCHBLOX +// +// Created by Thomas G on 13/3/2023. +// + +import SwiftUI + + +struct classic_title_bar: View { + var body: some View { + GeometryReader {geometry in + ZStack { + Image("macbar").resizable(capInsets: EdgeInsets(top: 0, leading: 0, bottom: 0, trailing: 0), resizingMode: .tile).frame(width: geometry.size.width, height: 24) + VStack(spacing: 0) { + // Spacer() + HStack { + Spacer() + Text("ARCHBLOX").foregroundColor(Color.black).font(.custom("Lucida Grande", size: 13)).shadow(color: Color.white.opacity(0.51), radius: 0, x: 0.0, y: 2/3) + Spacer() + }.padding([.top, .bottom], 4) + } + } + } + } +} +struct MainView: View { + @State var homeopen: Bool = false + var body: some View { +#if os(macOS) + classic_title_bar().frame(minHeight: 24, maxHeight: 24).clipped().zIndex(2).shadow(color: Color.black.opacity(0.55), radius: 0.55, x: 0, y: 1).padding(0); +#endif + + if homeopen { + HomeView(); + } else { + VStack{ + Image("ARCHBLOXarched").resizable().aspectRatio(contentMode: ContentMode.fit).accessibilityLabel("ARCHBLOX").padding(); + Spacer(); + HStack{ + Button("Sign Up") { + + }.font(.custom("Lucida Grande", size: 15)).padding(); + Button("Log In") { + homeopen = true; + }.font(.custom("Lucida Grande", size: 15)).padding(); + } + }.padding(0).background( + Image("background") + .resizable() + .scaledToFill() + .edgesIgnoringSafeArea(.all) + .accessibilityLabel("") + ).preferredColorScheme(ColorScheme.dark) + } + } +} + +struct MainView_Previews: PreviewProvider { + static var previews: some View { + MainView() + } +} diff --git a/ARCHBLOX-APPLE-MODERN/ARCHBLOX/en.lproj/MainMenu.xib b/ARCHBLOX-APPLE-MODERN/ARCHBLOX/en.lproj/MainMenu.xib new file mode 100644 index 0000000..6fccafe --- /dev/null +++ b/ARCHBLOX-APPLE-MODERN/ARCHBLOX/en.lproj/MainMenu.xib @@ -0,0 +1,126 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +