Skip to content
This repository has been archived by the owner on May 10, 2024. It is now read-only.

Commit

Permalink
Fix#2933: Update Brave VPN intro card text + Graphic (#3143)
Browse files Browse the repository at this point in the history
  • Loading branch information
soner-yuksel authored Jan 12, 2021
1 parent 7cc37ba commit ab0b0ff
Show file tree
Hide file tree
Showing 8 changed files with 17 additions and 8 deletions.
10 changes: 8 additions & 2 deletions BraveShared/BraveStrings.swift
Original file line number Diff line number Diff line change
Expand Up @@ -1017,11 +1017,17 @@ extension Strings {
value: "Buy",
comment: "Button text to buy Brave VPN")

public static let tryForFreeButton =
NSLocalizedString("vpn.learnMore",
bundle: .braveShared,
value: "Try for FREE",
comment: "Button text to try free Brave VPN")

public static let settingHeaderBody =
NSLocalizedString("vpn.settingHeaderBody",
bundle: .braveShared,
value: "Protect your connection and block invasive trackers.",
comment: "")
value: "Upgrade to a VPN to protect your connection and block invasive trackers everywhere.",
comment: "VPN Banner Description")

public static let errorCantGetPricesTitle =
NSLocalizedString("vpn.errorCantGetPricesTitle",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,16 +1,17 @@
{
"images" : [
{
"filename" : "enable_vpn_settings_banner.png",
"idiom" : "universal",
"scale" : "1x"
},
{
"filename" : "settings_vpn_banner@2x.png",
"filename" : "enable_vpn_settings_banner@2x.png",
"idiom" : "universal",
"scale" : "2x"
},
{
"filename" : "settings_vpn_banner@3x.png",
"filename" : "enable_vpn_settings_banner@3x.png",
"idiom" : "universal",
"scale" : "3x"
}
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
10 changes: 6 additions & 4 deletions Client/Frontend/BraveVPN/EnableVPNSettingHeader.swift
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class EnableVPNSettingHeader: UIView {
}

private let titleLabel = UILabel().then {
$0.text = Strings.VPN.vpnName
$0.text = Strings.VPN.vpnMenuItemTitle
$0.appearanceTextColor = .white
$0.font = UIFont.systemFont(ofSize: 19, weight: .semibold)
}
Expand All @@ -37,8 +37,10 @@ class EnableVPNSettingHeader: UIView {

let title = { () -> String in
switch BraveVPN.vpnState {
case .notPurchased, .expired:
return Strings.learnMore
case .notPurchased:
return Strings.VPN.tryForFreeButton
case .expired:
return Strings.learnMore
case .purchased, .installed:
return Strings.VPN.enableButton
}
Expand Down Expand Up @@ -86,8 +88,8 @@ class EnableVPNSettingHeader: UIView {
contentView.addSubview(mainStackView)
mainStackView.snp.makeConstraints {
$0.top.bottom.equalToSuperview().inset(16)
$0.leading.trailing.equalToSuperview().inset(25)
$0.centerX.equalToSuperview()
$0.width.equalTo(250)
}

contentView.snp.makeConstraints {
Expand Down

0 comments on commit ab0b0ff

Please sign in to comment.