LogoView.swift (1680B)
1 // 2 // LogoView.swift 3 // damus 4 // 5 // Created by Daniel D’Aquino on 2024-02-09. 6 // 7 8 import SwiftUI 9 10 // MARK: - More helper views 11 12 extension DamusPurpleView { 13 struct LogoView: View { 14 var body: some View { 15 HStack(spacing: 20) { 16 Image("damus-dark-logo") 17 .resizable() 18 .frame(width: 60, height: 60) 19 .clipShape(RoundedRectangle(cornerRadius: 15.0)) 20 .overlay( 21 RoundedRectangle(cornerRadius: 15) 22 .stroke(LinearGradient( 23 colors: [DamusColors.lighterPink.opacity(0.8), .white.opacity(0), DamusColors.deepPurple.opacity(0.6)], 24 startPoint: .topLeading, 25 endPoint: .bottomTrailing), lineWidth: 1) 26 ) 27 .shadow(radius: 5) 28 29 VStack(alignment: .leading) { 30 Text("Purple", comment: "Subscription service name") 31 .font(.system(size: 60.0).weight(.bold)) 32 .foregroundStyle( 33 LinearGradient( 34 colors: [DamusColors.lighterPink, DamusColors.deepPurple], 35 startPoint: .bottomLeading, 36 endPoint: .topTrailing 37 ) 38 ) 39 .foregroundColor(.white) 40 .tracking(-2) 41 } 42 } 43 .padding(.bottom, 30) 44 } 45 } 46 } 47 48 #Preview { 49 DamusPurpleView.LogoView() 50 }