Skip to content

Commit 199a5de

Browse files
committed
Add license and terms pages, modern border styles, and smooth scrolling functionality
- Created `license/index.html` and `terms/index.html` with appropriate content and structure. - Added `modern-border.css` and `modern-border.js` for enhanced UI effects on elements with modern borders. - Implemented smooth scrolling functionality in `smooth_scroll.js` for improved user experience. - Introduced `robots.txt` to manage web crawler access. - Developed CSS styles in `style.css` and `tag.css` for consistent design across the site. - Updated Rust backend with new context and page generator modules to support error handling and page rendering. - Integrated error page generation logic in `err_page.rs` to provide user-friendly error messages.
1 parent 20e4b3a commit 199a5de

26 files changed

+428
-1347
lines changed

Cargo.lock

Lines changed: 237 additions & 1325 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,9 @@ edition = "2024"
55

66
[dependencies]
77
env_logger = "0.11.8"
8-
tera = "1.14.1"
98
chrono = "0.4.41"
10-
bytes = "1.10.1"
9+
kurosabi = "0.2.8"
1110
tokio = { version = "1.45.0", features = ["full"] }
12-
serde = { version = "1.0.219", features = ["derive"] }
13-
serde_yaml = "0.9"
1411
serde_json = "1.0.140"
15-
actix-files = "0.6.6"
16-
log = "0.4.27"
17-
actix-cors = "0.7.1"
18-
actix-web = { version = "4.10.1", default-features = false, features = ["compress-gzip", "macros", "cookies", "http2", "unicode"] }
12+
serde = { version = "1.0.219", features = ["derive"] }
13+

templates/pages/err/index.html renamed to data/pages/err/index.html

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
<html lang="en">
44
<head>
5-
<meta charset="UTF-8">
5+
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
66
<meta name="viewport" content="width=device-width, initial-scale=1.0">
77
<title>ERR-{{ code }} </title>
88
<link rel="stylesheet" href="/style.css">
@@ -33,21 +33,14 @@ <h1>Error {{ code }}</h1>
3333
<h2>Solution</h2>
3434
<div class="i">
3535
<ul>
36-
{% for suggestion in suggestions %}
37-
<li>{{ loop.index }}. {{ suggestion }}</li>
38-
{% endfor %}
36+
{{ solution }}
3937
</ul>
4038
</div>
4139

4240
<h2>Debug</h2>
4341
<div class="i">
4442
<ul>
45-
{% for key, value in debug_info %}
46-
<li>{{ key }}: <ul>
47-
<li>{{ value }}</li>
48-
</ul>
49-
</li>
50-
{% endfor %}
43+
{{ debug }}
5144
</ul>
5245
</div>
5346
<hr>
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)