Skip to content

Commit d378f66

Browse files
committed
added extra pages
1 parent 2187709 commit d378f66

8 files changed

Lines changed: 628 additions & 17 deletions

File tree

app/routes.py

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,21 @@ async def contact(request: Request):
158158
return templates.TemplateResponse("contact.html", {"request": request})
159159

160160

161+
@ui_router.get("/privacy", response_class=HTMLResponse)
162+
async def privacy(request: Request):
163+
return templates.TemplateResponse("privacy.html", {"request": request})
164+
165+
166+
@ui_router.get("/terms", response_class=HTMLResponse)
167+
async def terms(request: Request):
168+
return templates.TemplateResponse("terms.html", {"request": request})
169+
170+
171+
@ui_router.get("/faq", response_class=HTMLResponse)
172+
async def faq(request: Request):
173+
return templates.TemplateResponse("faq.html", {"request": request})
174+
175+
161176
@ui_router.get("/history", response_class=HTMLResponse)
162177
async def recent_urls(request: Request):
163178
recent_urls_list = db.get_recent_urls(MAX_RECENT_URLS) or get_recent_from_cache(

app/static/css/tiny.css

Lines changed: 26 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ body.light-theme {
5353
flex-direction: column;
5454
gap: 1rem;
5555
flex: 1;
56-
justify-content: center;
56+
/*justify-content: center;*/
5757
}
5858

5959
.app-header {
@@ -98,6 +98,7 @@ body.light-theme .app-header {
9898
font-size: 1.5rem;
9999
font-weight: 700;
100100
color: var(--text-primary);
101+
text-decoration: none !important;
101102
}
102103

103104
.header-nav {
@@ -195,6 +196,9 @@ body.dark-theme .app-header {
195196

196197
.app-name {
197198
font-size: 1.1rem;
199+
& a {
200+
text-decoration: none !important;
201+
}
198202
}
199203
}
200204

@@ -755,9 +759,6 @@ body.light-theme .history-link {
755759
}
756760
}
757761

758-
759-
760-
761762
/*mobile responsive section */
762763

763764
/*tablet version */
@@ -769,7 +770,6 @@ body.light-theme .history-link {
769770

770771
/* Mobile (MAIN BREAKPOINT — 700px) */
771772
@media (max-width: 700px) {
772-
773773
/* header */
774774
.hamburger {
775775
display: block;
@@ -792,7 +792,6 @@ body.light-theme .history-link {
792792
display: flex;
793793
}
794794

795-
796795
/* layout */
797796
.main-layout {
798797
padding: 0.6rem;
@@ -805,7 +804,7 @@ body.light-theme .history-link {
805804
/* FIX HERO */
806805
.hero {
807806
margin: 0 0 10px;
808-
text-align: center
807+
text-align: center;
809808
}
810809

811810
.hero h1 {
@@ -882,7 +881,6 @@ body.light-theme .history-link {
882881
font-size: 0.75rem;
883882
}
884883

885-
886884
/* recent */
887885
.recent-header {
888886
font-size: 0.85rem;
@@ -926,4 +924,23 @@ body.light-theme .history-link {
926924
.recent-page-container {
927925
padding: 0 8px;
928926
}
929-
}
927+
}
928+
929+
details summary {
930+
list-style: none;
931+
cursor: pointer;
932+
padding: 1rem;
933+
font-weight: 600;
934+
border-bottom: 1px solid #e2e8f0;
935+
}
936+
937+
details[open] summary {
938+
color: #2563eb;
939+
/* Primary brand color */
940+
}
941+
942+
.faq-answer {
943+
padding: 1rem;
944+
line-height: 1.6;
945+
color: #4b5563;
946+
}

app/templates/faq.html

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
{% extends "layout.html" %}
2+
{% block title %}Frequently Asked Questions{% endblock %}
3+
{% block content %}
4+
<section class="faq-container" itemscope itemtype="https://schema.org/FAQPage">
5+
<h2 class="faq-title">Frequently Asked Questions</h2>
6+
7+
<div class="faq-item" itemprop="mainEntity" itemscope itemtype="https://schema.org/Question">
8+
<details>
9+
<summary itemprop="name">How long do the shortened links last?</summary>
10+
<div class="faq-answer" itemprop="acceptedAnswer" itemscope itemtype="https://schema.org/Answer">
11+
<div itemprop="text">
12+
Our links are permanent by default. However, you can set custom expiration dates via the advanced settings
13+
dashboard if you need temporary redirection for seasonal campaigns.
14+
</div>
15+
</div>
16+
</details>
17+
</div>
18+
19+
<div class="faq-item" itemprop="mainEntity" itemscope itemtype="https://schema.org/Question">
20+
<details>
21+
<summary itemprop="name">Are the generated QR codes high-resolution?</summary>
22+
<div class="faq-answer" itemprop="acceptedAnswer" itemscope itemtype="https://schema.org/Answer">
23+
<div itemprop="text">
24+
Yes. All QR codes are generated as vector-compatible PNGs or SVGs, ensuring they remain crisp when printed on
25+
everything from business cards to large-scale billboards.
26+
</div>
27+
</div>
28+
</details>
29+
</div>
30+
31+
<div class="faq-item" itemprop="mainEntity" itemscope itemtype="https://schema.org/Question">
32+
<details>
33+
<summary itemprop="name">Can I track the performance of my links?</summary>
34+
<div class="faq-answer" itemprop="acceptedAnswer" itemscope itemtype="https://schema.org/Answer">
35+
<div itemprop="text">
36+
Absolutely. Every shortened link includes real-time analytics tracking, providing data on click counts,
37+
geographic location, and referring devices.
38+
</div>
39+
</div>
40+
</details>
41+
</div>
42+
43+
<div class="faq-item" itemprop="mainEntity" itemscope itemtype="https://schema.org/Question">
44+
<details>
45+
<summary itemprop="name">Is there a limit to how many links I can shorten?</summary>
46+
<div class="faq-answer" itemprop="acceptedAnswer" itemscope itemtype="https://schema.org/Answer">
47+
<div itemprop="text">
48+
Free users can shorten up to 100 links per month. For higher volume requirements and API access, please refer
49+
to our developer documentation or enterprise plans.
50+
</div>
51+
</div>
52+
</details>
53+
</div>
54+
</section>
55+
{% endblock %}

app/templates/footer.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,22 +14,22 @@ <h4>Product</h4>
1414
<div class="footer-col">
1515
<h4>Support</h4>
1616
<ul>
17-
<li><a href="#">Help Center</a></li>
17+
<li><a href="/faq">FAQ</a></li>
1818
<li><a href="#">System Status</a></li>
1919
<li><a href="#">Contact Us</a></li>
2020
</ul>
2121
</div>
2222
<div class="footer-col">
2323
<h4>Legal</h4>
2424
<ul>
25-
<li><a href="#">Privacy Policy</a></li>
26-
<li><a href="#">Terms of Service</a></li>
25+
<li><a href="/privacy">Privacy Policy</a></li>
26+
<li><a href="/terms">Terms of Service</a></li>
2727
<li><a href="#">Abuse Report</a></li>
2828
</ul>
2929
</div>
3030
</div>
3131
<div class="footer-bottom">
32-
<div>© 2026 Recursive Zero Pvt Ltd. All rights reserved.</div>
32+
<div>© 2026 RecursiveZero Pvt Ltd. All rights reserved.</div>
3333
<div class="footer-meta">
3434
<span>v1.1.1-stable</span>
3535
<a href="https://github.com/recursivezero/tiny">GitHub</a>

app/templates/header.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<header class="app-header">
22
<div class="header-left">
33
<div class="app-logo">🔗</div>
4-
<span class="app-name">RZRO.link</span>
4+
<a href="https://rzro.link" class="app-name">RZRO.link</a>
55
</div>
66
<nav class="header-nav">
77
<a href="/" class="nav-link active">Home</a>

0 commit comments

Comments
 (0)