Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

【REFACTOR】ファイル構成と共通化 #77

Merged
merged 9 commits into from
May 24, 2024
Merged

Conversation

mrs1669
Copy link
Member

@mrs1669 mrs1669 commented May 24, 2024

概要 (Abstract)

ファイル構成と共通化

関連するISSUE

詳細 (Detail)

@mrs1669 mrs1669 added the enhancement New feature or request label May 24, 2024
@mrs1669 mrs1669 self-assigned this May 24, 2024
Comment on lines +22 to +45
extension SelectDifficultyButtonView {
func selectDifficultyButton(difficulty: Difficulty) -> some View {
NavigationLink(destination: LazyView(QuizView(difficulty: difficulty))) {
Text(difficulty.rawValue)
.font(.system(size: 24, weight: .bold, design: .rounded))
.padding()
.frame(maxWidth: .infinity)
.background(
LinearGradient(gradient: Gradient(colors: difficulty.gradientColors),
startPoint: .topLeading,
endPoint: .bottomTrailing)
)
.foregroundColor(.white)
.cornerRadius(20)
.shadow(color: Color.black.opacity(0.3), radius: 10, x: 5, y: 5)
.overlay(
RoundedRectangle(cornerRadius: 20)
.stroke(Color.white.opacity(0.7), lineWidth: 2)
)
.padding(.horizontal, 50)
.padding(.bottom, 10)
}
}
}
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

これでだいぶスッキリした

@mrs1669 mrs1669 merged commit 42353b4 into develop May 24, 2024
2 checks passed
@mrs1669 mrs1669 deleted the refactor/common branch May 24, 2024 19:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

【REFACTOR】ファイル構成と共通化
1 participant