Created
May 22, 2020 05:20
-
-
Save navsing/72f6b6d3e2a0d10ac9586d96464a2e02 to your computer and use it in GitHub Desktop.
Sleek
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// LandingPage.swift | |
// Swiftlycode | |
// | |
// Created by Navdeep Singh on 5/19/20. | |
// Copyright © 2020 Navdeep Singh. All rights reserved. | |
// | |
import SwiftUI | |
struct LandingPage: View { | |
var body: some View { | |
ZStack { | |
Image("photo").resizable().aspectRatio(contentMode: .fill).edgesIgnoringSafeArea(.all) | |
Rectangle() // Shapes are resizable by default | |
.foregroundColor(.clear) // Making rectangle transparent | |
.background(LinearGradient(gradient: Gradient(colors: [.clear, .black]), startPoint: .bottom, endPoint: .top)).edgesIgnoringSafeArea(.all) | |
VStack (spacing: 20) { | |
Text("SLEEK").font(.title).fontWeight(.heavy) | |
Spacer() | |
VStack { | |
Text("Be Classy.").font(.system(size: 40, design: .monospaced)).fontWeight(.heavy) | |
Text("Be Stylish.").font(.system(size: 40, design: .monospaced)).fontWeight(.heavy) | |
Text("Be Exclusive.").font(.system(size: 40, design: .monospaced)).fontWeight(.heavy) | |
}.padding(.vertical, 20) | |
Text("Check out the trendy apparel and put together the perfect outfit. ").lineLimit(2).multilineTextAlignment(.center) | |
Button(action: {}){ | |
Text("Join the Cult").padding() | |
}.frame(width: 300).background(Color.black) | |
}.frame(width: UIScreen.main.bounds.width - 40).foregroundColor(.white) | |
} | |
} | |
} | |
struct LandingPage_Previews: PreviewProvider { | |
static var previews: some View { | |
LandingPage() | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment