mirror of
https://github.com/samsonjs/vibetunnel.git
synced 2026-04-09 11:55:53 +00:00
- Move all macOS-specific code from root to mac/ directory - Move app icons and assets to dedicated assets/ directory - Update GitHub workflows for new structure - Consolidate documentation files - Clean up root directory for better multi-platform organization
32 lines
855 B
Swift
32 lines
855 B
Swift
import SwiftUI
|
|
|
|
// 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
|
|
}
|
|
}
|
|
}
|
|
}
|