mirror of
https://github.com/samsonjs/vibetunnel.git
synced 2026-04-27 15:17:38 +00:00
remove dupe
This commit is contained in:
parent
fd9eb47b85
commit
aadc65f2cc
1 changed files with 0 additions and 31 deletions
|
|
@ -199,37 +199,6 @@ struct InteractiveAppIcon: View {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// MARK: - Credit Link Component
|
|
||||||
|
|
||||||
/// Credit link component for individual contributors.
|
|
||||||
///
|
|
||||||
/// This component displays a contributor's handle as a clickable link
|
|
||||||
/// that opens their website when clicked.
|
|
||||||
struct CreditLink: View {
|
|
||||||
let name: String
|
|
||||||
let url: String
|
|
||||||
@State private var isHovering = false
|
|
||||||
|
|
||||||
var body: some View {
|
|
||||||
Button(action: {
|
|
||||||
if let linkURL = URL(string: url) {
|
|
||||||
NSWorkspace.shared.open(linkURL)
|
|
||||||
}
|
|
||||||
}, label: {
|
|
||||||
Text(name)
|
|
||||||
.font(.caption)
|
|
||||||
.underline(isHovering, color: .accentColor)
|
|
||||||
})
|
|
||||||
.buttonStyle(.link)
|
|
||||||
.pointingHandCursor()
|
|
||||||
.onHover { hovering in
|
|
||||||
withAnimation(.easeInOut(duration: 0.2)) {
|
|
||||||
isHovering = hovering
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// MARK: - Preview
|
// MARK: - Preview
|
||||||
|
|
||||||
#Preview("About View") {
|
#Preview("About View") {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue