Commit 6b6536f6 authored by 12579710's avatar 12579710
Browse files

Add new file

parents
//
// ContentView.swift
// Assessment Task 3 FInal
//
// Created by Tanya Xaybounheuang on 13/10/20.
// Copyright © 2020 Tanya Xaybounheuang. All rights reserved.
//
import SwiftUI
struct ImageOverlay: View {
var body: some View {
VStack {
Text("Welcome To")
.font(.title)
.fontWeight(.bold)
.foregroundColor(Color.white)
.multilineTextAlignment(.center)
.lineLimit(1)
.background(Color.clear)
Text("365 Story")
.font(.largeTitle)
.fontWeight(.heavy)
.foregroundColor(Color.white)
.multilineTextAlignment(.center)
.lineLimit(1)
Text("")
Text("")
Text("")
Button(action: /*@START_MENU_TOKEN@*/{}/*@END_MENU_TOKEN@*/) {
Text("Sign In")
.font(.title)
.fontWeight(.bold)
.multilineTextAlignment(.center)
.lineLimit(2)
.background(Color.clear)}
Text("")
Text("or")
.font(.body)
.fontWeight(.medium)
.multilineTextAlignment(.center)
.background(Color.clear)
Text("")
Button(action: /*@START_MENU_TOKEN@*/{}/*@END_MENU_TOKEN@*/) {
Text("Sign Up")
.font(.title)
.fontWeight(.bold)
.multilineTextAlignment(.center)
.lineLimit(2)
.background(Color.clear)
}
}
}
}
struct ContentView: View {
var body: some View {
VStack {
Image("background")
.resizable()
.frame(width: 600, height: 1000)
.scaledToFill()
.overlay(ImageOverlay(), alignment: .center)
.aspectRatio(contentMode: .fill)
.foregroundColor(Color.white)
}
}
struct ContentView_Previews: PreviewProvider {
static var previews: some View {
ContentView()
}
}
}
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment