|
@@ -196,14 +196,8 @@ struct JournalFinderView: View {
|
|
|
// MARK: - Input Card
|
|
// MARK: - Input Card
|
|
|
|
|
|
|
|
private func inputCard(abstractMinHeight: CGFloat) -> some View {
|
|
private func inputCard(abstractMinHeight: CGFloat) -> some View {
|
|
|
- VStack(alignment: .leading, spacing: 18) {
|
|
|
|
|
- Image("YourContentLogo")
|
|
|
|
|
- .resizable()
|
|
|
|
|
- .aspectRatio(contentMode: .fit)
|
|
|
|
|
- .frame(height: 52, alignment: .topLeading)
|
|
|
|
|
- .frame(height: 46, alignment: .topLeading)
|
|
|
|
|
- .clipped()
|
|
|
|
|
- .accessibilityLabel("Your Content")
|
|
|
|
|
|
|
+ VStack(alignment: .leading, spacing: AppTheme.contentCardSpacing) {
|
|
|
|
|
+ YourContentHeader()
|
|
|
|
|
|
|
|
titleField
|
|
titleField
|
|
|
abstractEditor(minHeight: abstractMinHeight)
|
|
abstractEditor(minHeight: abstractMinHeight)
|
|
@@ -221,7 +215,7 @@ struct JournalFinderView: View {
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
- .padding(22)
|
|
|
|
|
|
|
+ .inputContentCardPadding()
|
|
|
.frame(maxWidth: .infinity, alignment: .topLeading)
|
|
.frame(maxWidth: .infinity, alignment: .topLeading)
|
|
|
.background(AppTheme.cardBackground)
|
|
.background(AppTheme.cardBackground)
|
|
|
.clipShape(RoundedRectangle(cornerRadius: AppTheme.cardCornerRadius))
|
|
.clipShape(RoundedRectangle(cornerRadius: AppTheme.cardCornerRadius))
|
|
@@ -336,7 +330,7 @@ struct JournalFinderView: View {
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
- .padding(22)
|
|
|
|
|
|
|
+ .padding(AppTheme.contentCardPadding)
|
|
|
.background(AppTheme.cardBackground)
|
|
.background(AppTheme.cardBackground)
|
|
|
.clipShape(RoundedRectangle(cornerRadius: AppTheme.cardCornerRadius))
|
|
.clipShape(RoundedRectangle(cornerRadius: AppTheme.cardCornerRadius))
|
|
|
.overlay(
|
|
.overlay(
|
|
@@ -442,7 +436,7 @@ struct JournalFinderView: View {
|
|
|
.stroke(AppTheme.border.opacity(0.6), lineWidth: 1)
|
|
.stroke(AppTheme.border.opacity(0.6), lineWidth: 1)
|
|
|
)
|
|
)
|
|
|
}
|
|
}
|
|
|
- .padding(22)
|
|
|
|
|
|
|
+ .padding(AppTheme.contentCardPadding)
|
|
|
.background(AppTheme.cardBackground)
|
|
.background(AppTheme.cardBackground)
|
|
|
.clipShape(RoundedRectangle(cornerRadius: AppTheme.cardCornerRadius))
|
|
.clipShape(RoundedRectangle(cornerRadius: AppTheme.cardCornerRadius))
|
|
|
.overlay(
|
|
.overlay(
|