Skip to content

Commit e1d424e

Browse files
committed
Change the copy block to a btn for clicking
1 parent a8d4860 commit e1d424e

File tree

2 files changed

+7
-33
lines changed

2 files changed

+7
-33
lines changed

index.html

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -21,23 +21,12 @@ <h1 class="overlay-text">Bienvenido a Planet</h1>
2121
<div class="text">
2222
<img src="assets/logo-coop-white.png" alt="co-op logo Todos Conectadas Logo" class="logo">
2323
<img src="assets/logo-white.png" alt="OLE Todos Conectadas Logo" class="logo">
24-
<p>Por favor copie el siguiente URL para continuar:</p>
24+
<p>Por favor haga clic en el siguiente enlace para continuar:</p>
2525
<div class="url-container">
26-
<input type="text" value="http://192.168.39.253" id="url" readonly>
27-
<button onclick="copyURL()">
28-
<img src="assets/clipboard.png" alt="Copy" class="clipboard-icon">
29-
</button>
26+
<a href="http://192.168.39.253" target="_blank" class="url-link">http://192.168.39.253</a>
3027
</div>
3128
</div>
3229
</div>
3330
</div>
34-
<script>
35-
function copyURL() {
36-
var urlField = document.getElementById("url");
37-
urlField.select();
38-
urlField.setSelectionRange(0, 99999);
39-
document.execCommand("copy");
40-
}
41-
</script>
4231
</body>
4332
</html>

styles.css

Lines changed: 5 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -78,34 +78,19 @@ body, html {
7878
margin-top: 20px;
7979
}
8080

81-
input[type="text"] {
82-
padding: 10px;
83-
border: none;
84-
border-radius: 5px;
85-
width: 80%;
86-
max-width: 300px;
87-
text-align: center;
88-
margin-right: 10px;
89-
}
90-
91-
button {
92-
padding: 10px;
93-
border: none;
81+
.url-link {
82+
padding: 10px 20px;
9483
border-radius: 5px;
9584
background-color: #C1FF72;
9685
color: #035AA6;
97-
cursor: pointer;
86+
text-decoration: none;
87+
font-weight: bold;
9888
}
9989

100-
button:hover {
90+
.url-link:hover {
10191
background-color: #AECCF2;
10292
}
10393

104-
.clipboard-icon {
105-
width: 20px;
106-
height: 20px;
107-
}
108-
10994
@media screen and (max-width: 768px) {
11095
.overlay-text {
11196
font-size: 2rem;

0 commit comments

Comments
 (0)