18 lines
382 B
Plaintext
18 lines
382 B
Plaintext
package components
|
|
|
|
import "fmt"
|
|
|
|
templ ServerAddress(host, port string) {
|
|
<div class="my-2 flex gap-4 items-center">
|
|
<span class="block">
|
|
{ host }:{ port }
|
|
</span>
|
|
<button>
|
|
<i class="fa-regular fa-clipboard"></i>
|
|
</button>
|
|
<a class="block" href={ templ.SafeURL(fmt.Sprintf("cod4://%s:%s", host, port)) }>
|
|
<i class="block fa-solid fa-play"></i>
|
|
</a>
|
|
</div>
|
|
}
|