8 Commits

5 changed files with 343 additions and 29 deletions
+1 -1
View File
@@ -1060,7 +1060,7 @@ loadAccounts();
<div class="site-footer-inner"> <div class="site-footer-inner">
<a href="https://git.arch-linux.cz/Mamutovo/fedi_start">Gitea repo</a> <a href="https://git.arch-linux.cz/Mamutovo/fedi_start">Gitea repo</a>
<a href="https://oscloud.cz">Oscloud</a> <a href="https://oscloud.cz">Oscloud</a>
<a href="https://gts.arch-linux.cz/@archos">@archos@gts.arch-linux.cz</a> <a href="https://mamutovo.cz/@archos">@archos@mamutovo.cz</a>
</div> </div>
</footer> </footer>
+235
View File
@@ -0,0 +1,235 @@
<!DOCTYPE html>
<html lang="cs">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Mobilní aplikace Mamutovo</title>
<style>
@import url('https://fonts.googleapis.com/css2?family=Space+Mono:wght@400;700&family=Syne:wght@400;700;800&display=swap');
:root {
--bg: #0f0f0f;
--surface: #1a1a1a;
--surface2: #242424;
--accent: #6364ff;
--accent2: #ff6b6b;
--text: #f0f0f0;
--muted: #888;
--border: #2e2e2e;
--radius: 10px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
background: var(--bg);
color: var(--text);
font-family: 'Syne', sans-serif;
min-height: 100vh;
padding: 0 1rem;
}
/* --- HERO --- */
.hero {
max-width: 680px;
margin: 0 auto;
padding: 3rem 0 2rem;
text-align: center;
}
a.badge { text-decoration: none; }
a.badge:hover { border-color: var(--accent); color: var(--accent); }
.badge {
display: inline-block;
background: var(--surface2);
border: 1px solid var(--border);
color: var(--muted);
font-family: 'Space Mono', monospace;
font-size: 0.85rem;
padding: 0.45rem 1.1rem;
border-radius: 999px;
margin-bottom: 1.5rem;
letter-spacing: 0.05em;
text-transform: uppercase;
}
h1 {
font-size: clamp(1.4rem, 4vw, 2.5rem);
font-weight: 700;
line-height: 1.1;
margin-bottom: 1rem;
letter-spacing: -0.02em;
word-break: break-word;
overflow-wrap: break-word;
}
h1 span { color: var(--accent); }
.tagline {
color: var(--muted);
font-size: 1.05rem;
line-height: 1.6;
max-width: 480px;
margin: 0 auto 2.5rem;
}
/* --- SECTIONS --- */
.sections {
max-width: 680px;
margin: 0 auto 3rem;
display: flex;
flex-direction: column;
gap: 1rem;
}
.section {
background: var(--surface);
border: 1px solid var(--border);
border-radius: var(--radius);
padding: 1.4rem 1.6rem;
transition: border-color 0.2s;
}
.section:hover { border-color: var(--accent); }
.section h2 {
font-size: 1rem;
font-weight: 700;
margin-bottom: 0.8rem;
letter-spacing: -0.01em;
color: var(--text);
}
.section a {
color: var(--accent);
text-decoration: none;
}
.section a:hover { text-decoration: underline; }
/* --- APP LIST --- */
.app-list {
display: flex;
flex-direction: column;
gap: 0.75rem;
}
.app-item {
display: flex;
flex-direction: column;
gap: 0.2rem;
padding-bottom: 0.75rem;
border-bottom: 1px solid var(--border);
}
.app-item:last-child {
padding-bottom: 0;
border-bottom: none;
}
.app-name {
font-weight: 700;
font-size: 0.95rem;
}
.app-name a {
color: var(--text);
text-decoration: none;
}
.app-name a:hover {
color: var(--accent);
text-decoration: none;
}
.app-desc {
color: var(--muted);
font-size: 0.88rem;
line-height: 1.5;
}
/* --- FOOTER NOTE --- */
.footer-note {
max-width: 680px;
margin: 0 auto 3rem;
text-align: center;
color: var(--muted);
font-size: 0.82rem;
line-height: 1.6;
padding-top: 1rem;
border-top: 1px solid var(--border);
}
.footer-note a {
color: var(--accent);
text-decoration: none;
font-family: 'Space Mono', monospace;
font-size: 0.78rem;
}
.footer-note a:hover { text-decoration: underline; }
</style>
</head>
<body>
<div class="hero">
<a href="https://fedi.mamutovo.cz" class="badge">🦣 MAMUTOVO · APLIKACE</a>
<h1>Mobilní <span>aplikace</span></h1>
<p class="tagline">Doporučené appky pro Mastodon na Android a iOS.</p>
</div>
<div class="sections">
<div class="section">
<h2>Android</h2>
<div class="app-list">
<div class="app-item">
<div class="app-name"><a href="https://tusky.app">Tusky</a></div>
<div class="app-desc">Jednoduchý a přehledný, skvělý pro začátečníky.</div>
</div>
<div class="app-item">
<div class="app-name"><a href="https://pachli.app">Pachli</a></div>
<div class="app-desc">Fork Tusky s aktivním vývojem a více funkcemi.</div>
</div>
<div class="app-item">
<div class="app-name"><a href="https://fedilab.app">Fedilab</a></div>
<div class="app-desc">Pokročilý, podporuje více účtů.</div>
</div>
<div class="app-item">
<div class="app-name"><a href="https://play.google.com/store/apps/details?id=org.joinmastodon.android">Mastodon</a></div>
<div class="app-desc">Oficiální aplikace.</div>
</div>
</div>
</div>
<div class="section">
<h2>iOS</h2>
<div class="app-list">
<div class="app-item">
<div class="app-name"><a href="https://tapbots.com/ivory">Ivory</a></div>
<div class="app-desc">Nejlepší UX, placená.</div>
</div>
<div class="app-item">
<div class="app-name"><a href="https://apps.apple.com/app/ice-cubes-for-mastodon/id6444915884">Ice Cubes</a></div>
<div class="app-desc">Zdarma, open source.</div>
</div>
<div class="app-item">
<div class="app-name"><a href="https://apps.apple.com/app/toot-for-mastodon/id1229021451">Toot!</a></div>
<div class="app-desc">Kvalitní a udržovaná appka.</div>
</div>
<div class="app-item">
<div class="app-name"><a href="https://apps.apple.com/app/mastodon-for-iphone/id1571998974">Mastodon</a></div>
<div class="app-desc">Oficiální aplikace.</div>
</div>
</div>
</div>
</div>
<div class="footer-note">
<a href="start.html">← Zpět na průvodce</a>
</div>
</body>
</html>
+9 -2
View File
@@ -21,7 +21,7 @@ jackc@kompost.cz,true,false,
ottovonwenkoff@mastodonczech.cz,true,false, ottovonwenkoff@mastodonczech.cz,true,false,
unreed@mastodonczech.cz,true,false, unreed@mastodonczech.cz,true,false,
tombarys@mastodon.social,true,false, tombarys@mastodon.social,true,false,
stepan@skorpil.cz,true,false, stepan@mastodon.skorpil.cz,true,false,
sumavanet@mastodonczech.cz,true,false, sumavanet@mastodonczech.cz,true,false,
honzakorinek@cztwitter.cz,true,false, honzakorinek@cztwitter.cz,true,false,
rezzabuh@mastodon.social,true,false, rezzabuh@mastodon.social,true,false,
@@ -96,5 +96,12 @@ architektradim@mastodonczech.cz,true,false,
nacelnik01@mamutovo.cz,true,false, nacelnik01@mamutovo.cz,true,false,
sledge@mastodonczech.cz,true,false, sledge@mastodonczech.cz,true,false,
tensob_@mastodonczech.cz,true,false tensob_@mastodonczech.cz,true,false
archos@gts.arch-linux.cz,true,false, archos@mamutovo.cz,true,false,
archlinux@mamutovo.cz,true,false, archlinux@mamutovo.cz,true,false,
electric@vaclavpasek.cz,true,false,
adamhavelka@mastodon.prorocketeers.com,true,false,
Kipe@mastodon.social,true,false,
zpravobot@zpravobot.news,true,false,
ozzelot@mstdn.social,true,false,
j4n3z@mastodon.social,true,false,
prahou@merveilles.town,true,false,
1 medvidekpu@mastodon.social true false
21 ottovonwenkoff@mastodonczech.cz true false
22 unreed@mastodonczech.cz true false
23 tombarys@mastodon.social true false
24 stepan@skorpil.cz stepan@mastodon.skorpil.cz true false
25 sumavanet@mastodonczech.cz true false
26 honzakorinek@cztwitter.cz true false
27 rezzabuh@mastodon.social true false
96 nacelnik01@mamutovo.cz true false
97 sledge@mastodonczech.cz true false
98 tensob_@mastodonczech.cz true false
99 archos@gts.arch-linux.cz archos@mamutovo.cz true false
100 archlinux@mamutovo.cz true false
101 electric@vaclavpasek.cz true false
102 adamhavelka@mastodon.prorocketeers.com true false
103 Kipe@mastodon.social true false
104 zpravobot@zpravobot.news true false
105 ozzelot@mstdn.social true false
106 j4n3z@mastodon.social true false
107 prahou@merveilles.town true false
+41 -24
View File
@@ -81,7 +81,7 @@ QUERY_INSTANCES = [
MIN_STATUSES = 10 MIN_STATUSES = 10
MIN_FOLLOWERS = 10 MIN_FOLLOWERS = 10
MAX_DAYS_INACTIVE = 90 MAX_DAYS_INACTIVE = 90
TOP_N = 200 TOP_N = 250
RATE_LIMIT_DELAY = 1.2 RATE_LIMIT_DELAY = 1.2
PAGE_LIMIT = 80 PAGE_LIMIT = 80
MAX_PAGES = 10 MAX_PAGES = 10
@@ -242,33 +242,50 @@ def extract_tags(acc):
return found[:4] return found[:4]
# ── VÝSTUP ──────────────────────────────────── # ── VÝSTUP ────────────────────────────────────
def _to_output(acc):
handle = acc.get("_handle", acc.get("acct", ""))
bio = re.sub(r"<[^>]+>", " ", acc.get("note", "") or "").strip()
return {
"name": acc.get("display_name") or acc.get("username", ""),
"handle": handle,
"bio": bio[:220],
"avatar": acc.get("avatar", ""),
"followers": acc.get("followers_count", 0),
"statuses": acc.get("statuses_count", 0),
"score": score(acc),
"tags": extract_tags(acc),
"category": categorize(acc),
"last_active": acc.get("last_status_at", ""),
"url": acc.get("url", ""),
}
def build_output(raw): def build_output(raw):
results = [] # Manuální účty vždy zahrnuty (bez ohledu na TOP_N)
for acc in raw:
if not acc.get("_manual") and not passes_quality(acc):
continue
handle = acc.get("_handle", acc.get("acct", ""))
bio = re.sub(r"<[^>]+>", " ", acc.get("note", "") or "").strip()
results.append({
"name": acc.get("display_name") or acc.get("username", ""),
"handle": handle,
"bio": bio[:220],
"avatar": acc.get("avatar", ""),
"followers": acc.get("followers_count", 0),
"statuses": acc.get("statuses_count", 0),
"score": score(acc),
"tags": extract_tags(acc),
"category": categorize(acc),
"last_active": acc.get("last_status_at", ""),
"url": acc.get("url", ""),
})
seen = set() seen = set()
unique = [] manual = []
for r in sorted(results, key=lambda x: x["followers"], reverse=True): for acc in raw:
if not acc.get("_manual"):
continue
r = _to_output(acc)
if r["handle"].lower() not in seen: if r["handle"].lower() not in seen:
seen.add(r["handle"].lower()) seen.add(r["handle"].lower())
unique.append(r) manual.append(r)
return unique[:TOP_N]
# Automatické účty doplní zbývající místa do TOP_N
auto_candidates = []
for acc in raw:
if acc.get("_manual"):
continue
if not passes_quality(acc):
continue
r = _to_output(acc)
if r["handle"].lower() not in seen:
seen.add(r["handle"].lower())
auto_candidates.append(r)
auto_candidates.sort(key=lambda x: x["followers"], reverse=True)
remaining = max(0, TOP_N - len(manual))
return manual + auto_candidates[:remaining]
def write_json(accounts, output_dir): def write_json(accounts, output_dir):
data = {"generated_at": datetime.now(timezone.utc).isoformat(), "count": len(accounts), "accounts": accounts} data = {"generated_at": datetime.now(timezone.utc).isoformat(), "count": len(accounts), "accounts": accounts}
+57 -2
View File
@@ -76,6 +76,47 @@
.tagline strong { color: var(--text); } .tagline strong { color: var(--text); }
/* --- CARDS GRID --- */
.cards {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 1rem;
}
@media (max-width: 500px) {
.cards { grid-template-columns: 1fr; }
}
.card {
background: var(--surface);
border: 1px solid var(--border);
border-radius: var(--radius);
padding: 1.4rem 1.6rem;
display: flex;
flex-direction: column;
gap: 0.5rem;
transition: border-color 0.2s;
}
.card:hover { border-color: var(--accent); }
.card h3 {
font-size: 1rem;
font-weight: 700;
letter-spacing: -0.01em;
}
.card p {
color: var(--muted);
font-size: 0.9rem;
line-height: 1.5;
flex: 1;
}
.card .btn {
align-self: center;
}
/* --- BASICS BANNER --- */ /* --- BASICS BANNER --- */
.basics-banner { .basics-banner {
display: block; display: block;
@@ -342,7 +383,6 @@
</div> </div>
<div class="steps"> <div class="steps">
<a href="basics.html" class="basics-banner">📖 Základy Mastodonu nejčastější otázky →</a>
<!-- KROK 1 --> <!-- KROK 1 -->
@@ -408,8 +448,23 @@ Rád/a poznám nové lidi 🙂 #Představení #novacek #cesky
</div> </div>
<div class="steps" style="margin-top: 0;">
<div class="cards">
<div class="card">
<h3>📖 Základy Mastodonu</h3>
<p>Soukromí, hashtagy, jak odpovídat a další tipy.</p>
<a href="basics.html" class="btn btn-secondary">Zobrazit →</a>
</div>
<div class="card">
<h3>📱 Mobilní aplikace</h3>
<p>Doporučené appky pro Android a iOS.</p>
<a href="apps.html" class="btn btn-secondary">Zobrazit →</a>
</div>
</div>
</div>
<div class="footer-note"> <div class="footer-note">
Zasekl/a ses? Napiš na <a href="https://gts.arch-linux.cz/@archos">@archos@gts.arch-linux.cz</a> nebo Zasekl/a ses? Napiš na <a href="https://mamutovo.cz/@archos">@archos@mamutovo.cz</a> nebo
se zeptej v <a href="https://mamutovo.cz/tags/pomoc">#pomoc</a>.<br> se zeptej v <a href="https://mamutovo.cz/tags/pomoc">#pomoc</a>.<br>
Tato stránka je open source: <a href="https://git.arch-linux.cz/Mamutovo/fedi_start">Gitea</a> · Tato stránka je open source: <a href="https://git.arch-linux.cz/Mamutovo/fedi_start">Gitea</a> ·
<a href="https://oscloud.cz">oscloud.cz</a> <a href="https://oscloud.cz">oscloud.cz</a>