Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file not shown.
90 changes: 89 additions & 1 deletion SwiftUIBasics/Views/PlansView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,95 @@ import SwiftUI

struct PlansView: View {
var body: some View {
Text(/*@START_MENU_TOKEN@*/"Hello, World!"/*@END_MENU_TOKEN@*/)
VStack(alignment: .center){
VStack(alignment: .leading){Text("Chose")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

line jump missing

.font(.largeTitle)
.fontWeight(.bold)
Text("Your Plan")
.font(.largeTitle)
.fontWeight(.bold)
}
HStack{
RoundedRectangle(cornerRadius: 10)
.fill(Color.purple)
.frame(width: 170, height: 170)
.overlay {
VStack(alignment: .center){
Text("Basic")
.foregroundStyle(.white)
.font(.largeTitle)
.fontWeight(.bold)
Text("$9")
.foregroundStyle(.white)
.font(.largeTitle)
.fontWeight(.bold)
Text("per month")
.foregroundStyle(.white)
.font(.subheadline)
.fontWeight(.bold)
}
}
RoundedRectangle(cornerRadius: 10)
.fill(Color.gray)
.frame(width: 170, height: 170)
.opacity(0.2)
.overlay {

VStack(alignment: .center){
Text("Pro")
.font(.largeTitle)
.fontWeight(.bold)
Text("$19")
.font(.largeTitle)
.fontWeight(.bold)
Text("per month")
.font(.subheadline)
.fontWeight(.bold)
ZStack{
Rectangle()
.fill(Color.orange)
.frame(width: 120, height: 20)
Text("Best for disigner")
.foregroundStyle(.white)
.font(.footnote)
.fontWeight(.bold)
}
}.padding(.top, 50)
}
}.padding()
RoundedRectangle(cornerRadius: 10)
.fill(Color.black)
.frame(width: 340, height: 170)
.opacity(0.7)
.overlay {
VStack(alignment: .center){
Image(systemName: "wand.and.rays")
.font(.title)
.foregroundColor(.white)
Text("Team")
.font(.title)
.fontWeight(.bold)
.foregroundStyle(.white)
Text("$299")
.font(.largeTitle)
.fontWeight(.bold)
.foregroundStyle(.white)
Text("per month")
.font(.subheadline)
.fontWeight(.bold)
.foregroundStyle(.white)
ZStack{
Rectangle()
.fill(Color.orange)
.frame(width: 250, height: 20)
Text("Perfect for teams with 20 members")
.foregroundStyle(.white)
.font(.footnote)
.fontWeight(.bold)
}
}.padding(.top, 30)
}
}
}
}

Expand Down