Add multi-language option

This commit is contained in:
Christoph Hagen
2023-08-20 13:11:13 +02:00
parent 55de8ada91
commit 911fc0c8f8
7 changed files with 152 additions and 27 deletions

View File

@ -29,7 +29,7 @@ struct TitledIconSection: View {
TitledSection(title: content.title, spacing: titleSpacing) {
VStack(alignment: .leading) {
ForEach(content.items) { item in
HStack(alignment: .firstTextBaseline) {
HStack(alignment: .firstTextBaseline, spacing: 5) {
Image(systemSymbol: item.systemSymbol)
.frame(
width: style.iconSize,

View File

@ -24,6 +24,7 @@ struct TopView: View {
RightImageLabel(info.place, systemSymbol: .house)
.padding(.leading, -4)
RightImageLabel(info.ageText, systemSymbol: .hourglass)
Spacer()
}.font(.subheadline)
}
.frame(width: sideWidth)
@ -63,7 +64,7 @@ struct TopView_Previews: PreviewProvider {
TopView(info: .init(
imageName: "Cover",
name: "Christoph Hagen",
tagLine: "Problem solver and creative mind with a favour for interdisciplinary work.",
tagLine: "Problem solver with a favour for interdisciplinary work.",
place: "Würzburg, Germany",
ageText: "Age 32",
web: "christophhagen.de",