Site in HTML,CSS,JS
index.html:
<!DOCTYPE html>
<html lang="ro">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Aplicație WiFi</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<div class="container">
<h1>Conectează-te la WiFi</h1>
<div class="wifi-list">
<h2>Rețele disponibile:</h2>
<ul id="wifi-networks">
<!-- Rețelele WiFi vor fi adăugate din JavaScript -->
</ul>
</div>
<div class="connection-status">
<p id="status">Selectează o rețea pentru a te conecta.</p>
</div>
</div>
<script src="script.js"></script>
</body>
</html>
style.css:
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: Arial, sans-serif;
background-color: #33b981;
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
}
.container {
text-align: center;
background-color: #1492a3;
padding: 20px;
border-radius: 8px;
box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
}
h1 {
color: #333;
}
.wifi-list {
margin-top: 20px;
}
ul {
list-style: none;
padding: 0;
}
li {
background-color: #f0f0f0;
padding: 10px;
margin: 5px 0;
border-radius: 5px;
cursor: pointer;
}
li:hover {
background-color: #ddd;
}
.connection-status {
margin-top: 20px;
font-size: 18px;
color: #333;
}
#status {
font-weight: bold;
}
Comentarii
Trimiteți un comentariu