Skip to content

Commit 808f8bc

Browse files
committed
UI fixes on mobile devices
1 parent 98f0feb commit 808f8bc

File tree

4 files changed

+78
-24
lines changed

4 files changed

+78
-24
lines changed

README.md

+62-1
Original file line numberDiff line numberDiff line change
@@ -1 +1,62 @@
1-
# LockDown
1+
# LockDown 🔒
2+
3+
<center><img src="static/images/icon.png" alt="LockDown Logo" width="100" height="100"></center>
4+
5+
## Introduction
6+
7+
LockDown is a powerful and versatile application designed to enhance security and control over your devices. It offers a comprehensive suite of features, including:
8+
9+
* **Device Lockdown:** Securely lock down your device to prevent unauthorized access.
10+
* **App Management:** Control which applications can be accessed and used.
11+
* **Network Monitoring:** Monitor and restrict network activity to protect your data.
12+
* **Parental Controls:** Set limits and restrictions for children's device usage.
13+
* **Data Encryption:** Encrypt sensitive data to safeguard it from prying eyes.
14+
15+
## Features
16+
17+
* **User-Friendly Interface:** LockDown boasts an intuitive and easy-to-use interface, making it accessible to users of all technical levels.
18+
* **Customizable Settings:** Tailor LockDown's settings to meet your specific security needs and preferences.
19+
* **Real-Time Monitoring:** Stay informed about device activity with real-time monitoring and alerts.
20+
* **Comprehensive Security:** LockDown employs advanced security measures to protect your device and data.
21+
* **Regular Updates:** Benefit from ongoing updates and improvements to ensure optimal security and performance.
22+
23+
## Getting Started
24+
25+
1. **Download and Install:** Download the LockDown application from [link to download page].
26+
2. **Launch the Application:** Run the LockDown application on your device.
27+
3. **Create an Account:** Set up a secure account to manage your LockDown settings.
28+
4. **Connect Your Devices:** Link your devices to your LockDown account for centralized control.
29+
5. **Configure Settings:** Customize LockDown's settings to your liking.
30+
6. **Enable Security Features:** Activate the desired security features to enhance your device's protection.
31+
32+
## Documentation
33+
34+
For detailed information on LockDown's features, settings, and usage, please refer to the official documentation: [link to documentation page].
35+
36+
## Support
37+
38+
If you encounter any issues or have questions, please contact our support team at [link to support page].
39+
40+
## Contributing
41+
42+
We welcome contributions from the community! If you'd like to contribute to LockDown's development, please visit our GitHub repository: [https://github.com/Eta06/LockDown](https://github.com/Eta06/LockDown).
43+
44+
## License
45+
46+
LockDown is licensed under the [link to license page]. You can find the license file [here](LICENSE).
47+
48+
## Contact
49+
50+
For any inquiries, please contact us at [link to contact page].
51+
52+
## Social Media
53+
54+
Follow us on social media for updates and news:
55+
56+
* **Twitter:** [link to Twitter page]
57+
* **Facebook:** [link to Facebook page]
58+
* **LinkedIn:** [link to LinkedIn page]
59+
60+
---
61+
62+
**Note:** Replace the placeholders in square brackets with the actual links and information.

main.py

-17
Original file line numberDiff line numberDiff line change
@@ -44,27 +44,10 @@ def reset_everything():
4444
return redirect(url_for("index"))
4545

4646

47-
48-
49-
@app.route("/about")
50-
def about():
51-
if language == "":
52-
return render_template("language.html", version=version, language=language, author=author)
53-
return render_template("about.html", version=version, language=language, author=author, language_files=language_files)
54-
55-
56-
@app.route("/settings")
57-
def settings():
58-
if language == "":
59-
return render_template("language.html", version=version, language=language, author=author)
60-
return render_template("settings.html", version=version, language=language, author=author)
61-
62-
6347
@app.route("/")
6448
def index():
6549
if language == "":
6650
return render_template("language.html", version=version, language=language, author=author)
67-
print(language_files)
6851
return render_template("index.html", version=version, language=language, author=author, language_files=language_files)
6952

7053

templates/index.html

+15-6
Original file line numberDiff line numberDiff line change
@@ -137,12 +137,13 @@
137137
.tab {
138138
padding: 10px 20px;
139139
border: 1px solid #ffffff;
140-
border-bottom: none;
140+
border-radius: 0 0 20px 20px;
141141
background-color: #ffffff;
142142
cursor: pointer;
143143
font-weight: bold;
144144
transition: 0.4s;
145145
font-family: 'Lucida Grande', Arial, sans-serif;
146+
146147
}
147148

148149
.tab.active {
@@ -216,6 +217,7 @@
216217
border-radius: 5px;
217218
cursor: pointer;
218219
transition: 0.4s;
220+
margin-bottom: 20px;
219221
}
220222

221223
.reset-card button:hover {
@@ -258,6 +260,12 @@
258260
justify-content: center;
259261
width: 80%;
260262
}
263+
264+
@media (max-width: 768px) { /* Adjust the breakpoint as needed */
265+
.tabs {
266+
width: 90%; /* Set the width to 90% on mobile devices */
267+
}
268+
}
261269
</style>
262270
</head>
263271
<body>
@@ -269,6 +277,7 @@ <h2>LockDown Web UI</h2>
269277
</center>
270278
<center class="main-screen">
271279
<div class="main-div">
280+
<center>
272281
<div class="tabs" style="
273282
white-space: nowrap;
274283
margin-bottom: 0;
@@ -277,10 +286,11 @@ <h2>LockDown Web UI</h2>
277286
<div class="tab" data-tab="modules">{{ language_files.modules }}</div>
278287
<div class="tab" data-tab="settings">{{ language_files.settings }}</div>
279288
</div>
289+
</center>
280290
<div class="tab-content active" id="home">
281291
<h1>{{ language_files.home }}</h1>
282292
<p>{{ language_files.home_text }}</p>
283-
<button id="submit-button" onclick="window.location.href='/lockdown'">{{ language_files.home_button }}</button>
293+
<button class=" " id="submit-button" onclick="window.location.href='/lockdown'">{{ language_files.home_button }}</button>
284294
</div>
285295
<div class="tab-content" id="modules">
286296
</div>
@@ -292,18 +302,17 @@ <h3>{{ language_files.language }}</h3>
292302
<label>
293303
<select name="language">
294304
<option value="en">English</option>
295-
<option value="es">Spanish</option>
296305
<option value="tr">Turkish</option>
306+
<option value="es">Spanish</option>
307+
<option value="ru">Russian</option>
297308
</select>
298309
</label>
299310
<button id="save-language">{{ language_files.save }}</button>
300311
</div>
301312
<div class="settings-card reset-card">
302313
<h3>{{ language_files.reset }}</h3>
303314
<p>{{ language_files.resetinfo }}</p>
304-
<span class="confirm-buttons">
305-
<button id="confirm-reset">{{ language_files.reset }}</button>
306-
</span>
315+
<button id="confirm-reset">{{ language_files.reset }}</button>
307316
</div>
308317
</cardwidget>
309318
</div>

templates/language.html

+1
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@
4545
});
4646

4747
document.addEventListener("click", (event) => {
48+
navigator.vibrate([10, 40, 10]);
4849
if (event.target.id === "submit-button") {
4950
const mainScreen = document.querySelector(".main-screen");
5051
// keep the animations last frame with fill mode

0 commit comments

Comments
 (0)