Add privacy policy.

This commit is contained in:
Marcin Czachursk 2023-03-19 08:09:44 +01:00
parent 290ed8d9fc
commit b62de727db
5 changed files with 63 additions and 5 deletions

View File

@ -169,7 +169,7 @@
"settings.title.thirdParty" = "Third party";
"settings.title.reportBug" = "Report a bug";
"settings.title.githubIssues" = "Issues on Github";
"settings.title.follow" = "Follow me on Mastodon";
"settings.title.follow" = "Follow me";
"settings.title.support" = "Support";
"settings.title.thankYouTitle" = "Thank you 💕";
"settings.title.thankYouMessage" = "Thanks for your purchase. Purchases both big and small help us keep our dream of providing the best quality products to our customers. We hope youre loving Vernissage.";
@ -186,6 +186,12 @@
"settings.title.alwaysShowAltDescription" = "Show alternative text if present on status details screen";
"settings.title.general" = "General";
"settings.title.applicationIcon" = "Application icon";
"settings.title.followVernissage" = "Follow Vernissage";
"settings.title.mastodonAccount" = "Mastodon account";
"settings.title.pixelfedAccount" = "Pixelfed account";
"settings.title.openPage" = "Open";
"settings.title.privacyPolicy" = "Privacy policy";
"settings.title.terms" = "Terms & Conditions";
// Mark: Signin view.
"signin.navigationBar.title" = "Sign in to Pixelfed";

View File

@ -169,7 +169,7 @@
"settings.title.thirdParty" = "Zewnętrzne biblioteki";
"settings.title.reportBug" = "Zgłoś błąd";
"settings.title.githubIssues" = "Błędy na Github";
"settings.title.follow" = "Obserwuj mnie na Mastodon";
"settings.title.follow" = "Obserwuj mnie";
"settings.title.support" = "Wsparcie";
"settings.title.thankYouTitle" = "Dziękuję 💕";
"settings.title.thankYouMessage" = "Dziękujemy za twój zakup. Zakupy zarówno te duże, jak i te małe pomagają nam w realizacji marzenia o dostarczaniu naszym klientom produktów najwyższej jakości. Mamy nadzieję, że Vernissage spełnia Twoje oczekiwania.";
@ -186,6 +186,12 @@
"settings.title.alwaysShowAltDescription" = "Pokaż alternatywny tekst, jeśli jest obecny na szczegółach statusu";
"settings.title.general" = "Ogólne";
"settings.title.applicationIcon" = "Ikona aplikacji";
"settings.title.followVernissage" = "Obserwuj Vernissage";
"settings.title.mastodonAccount" = "Konto Mastodon";
"settings.title.pixelfedAccount" = "Konto Pixelfed";
"settings.title.openPage" = "Otwórz";
"settings.title.privacyPolicy" = "Polityka prywatności";
"settings.title.terms" = "Zasady i warunki";
// Mark: Signin view.
"signin.navigationBar.title" = "Zaloguj się do Pixelfed";

View File

@ -237,8 +237,7 @@ struct MainView: View {
self.routerPath.presentedSheet = .newStatusEditor
} label: {
Image(systemName: "square.and.pencil")
.symbolRenderingMode(.palette)
.foregroundStyle(Color.accentColor, Color.mainTextColor)
.foregroundColor(Color.mainTextColor)
.fontWeight(.semibold)
}
}

View File

@ -25,6 +25,7 @@ struct GeneralSectionView: View {
HStack {
Image("\(icon)-Preview")
Text(icon.replacing("-", with: " "))
.font(.subheadline)
}
.tag(icon)
}

View File

@ -13,6 +13,20 @@ struct OtherSectionView: View {
Text("settings.title.thirdParty", comment: "Third party")
}
HStack {
Text("settings.title.privacyPolicy", comment: "Privacy policy")
Spacer()
Link(NSLocalizedString("settings.title.openPage", comment: "Open"), destination: URL(string: "https://mczachurski.dev/vernissage/privacy-policy.html")!)
.font(.footnote)
}
HStack {
Text("settings.title.terms", comment: "Terms & Conditions")
Spacer()
Link(NSLocalizedString("settings.title.openPage", comment: "Open"), destination: URL(string: "https://mczachurski.dev/vernissage/terms.html")!)
.font(.footnote)
}
HStack {
Text("settings.title.reportBug", comment: "Report a bug")
Spacer()
@ -21,11 +35,43 @@ struct OtherSectionView: View {
}
HStack {
Text("settings.title.follow", comment: "Follow me on Mastodon")
VStack(alignment: .leading) {
Text("settings.title.followVernissage", comment: "Follow Vernissage")
Text("Mastodon account")
.font(.footnote)
.foregroundColor(.lightGrayColor)
}
Spacer()
Link("@vernissage", destination: URL(string: "https://mastodon.social/@vernissage")!)
.font(.footnote)
}
HStack {
VStack(alignment: .leading) {
Text("settings.title.follow", comment: "Follow me")
Text("settings.title.mastodonAccount", comment: "Mastodon account")
.font(.footnote)
.foregroundColor(.lightGrayColor)
}
Spacer()
Link("@mczachurski", destination: URL(string: "https://mastodon.social/@mczachurski")!)
.font(.footnote)
}
HStack {
VStack(alignment: .leading) {
Text("settings.title.follow", comment: "Follow me")
Text("settings.title.pixelfedAccount", comment: "Pixelfed account")
.font(.footnote)
.foregroundColor(.lightGrayColor)
}
Spacer()
Link("@mczachurski", destination: URL(string: "https://pixelfed.social/@mczachurski")!)
.font(.footnote)
}
}
}
}