init: onboarding systém pro CZ Mastodon komunitu
This commit is contained in:
5
.gitignore
vendored
Normal file
5
.gitignore
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
__pycache__/
|
||||
*.pyc
|
||||
*.log
|
||||
.env
|
||||
test-output/
|
||||
29
README.md
Normal file
29
README.md
Normal file
@@ -0,0 +1,29 @@
|
||||
# fedi_start
|
||||
|
||||
Onboarding systém pro nové uživatele Mastodonu (CZ/SK komunita).
|
||||
|
||||
## Soubory
|
||||
|
||||
| Soubor | Popis |
|
||||
|---|---|
|
||||
| `start.html` | Úvodní onboarding stránka |
|
||||
| `accounts.html` | Interaktivní seznam CZ účtů s filtry |
|
||||
| `accounts.json` | Data účtů (generováno skriptem) |
|
||||
| `starter-general.csv` | Starter pack pro import do Mastodonu |
|
||||
| `mastodon_cz_accounts.py` | Automatický sběr CZ/SK účtů |
|
||||
|
||||
## Lokální spuštění
|
||||
```bash
|
||||
python3 -m http.server 8080
|
||||
# http://localhost:8080/accounts.html
|
||||
```
|
||||
|
||||
## Generování dat
|
||||
```bash
|
||||
python3 mastodon_cz_accounts.py --output .
|
||||
```
|
||||
|
||||
## Cron
|
||||
```
|
||||
0 3 * * * /usr/bin/python3 /opt/fedi_start/mastodon_cz_accounts.py --output /var/www/fedi_start/
|
||||
```
|
||||
1011
accounts.html
Normal file
1011
accounts.html
Normal file
File diff suppressed because it is too large
Load Diff
110
accounts.json
Normal file
110
accounts.json
Normal file
@@ -0,0 +1,110 @@
|
||||
{
|
||||
"generated_at": "2025-03-29T03:00:00Z",
|
||||
"count": 8,
|
||||
"accounts": [
|
||||
{
|
||||
"name": "Mamutovo",
|
||||
"handle": "mamutovo@mamutovo.cz",
|
||||
"bio": "Oficiální účet české Mastodon instance Mamutovo. Novinky, tipy a komunita pro CZ/SK uživatele.",
|
||||
"avatar": "",
|
||||
"followers": 1200,
|
||||
"statuses": 340,
|
||||
"score": 95,
|
||||
"tags": ["česky", "komunita", "mastodon"],
|
||||
"category": "ostatni",
|
||||
"last_active": "2025-03-28",
|
||||
"url": "https://mamutovo.cz/@mamutovo"
|
||||
},
|
||||
{
|
||||
"name": "Linux CZ",
|
||||
"handle": "linuxcz@fosstodon.org",
|
||||
"bio": "Česká komunita okolo Linuxu a open source. Tipy, návody, diskuse. 🇨🇿",
|
||||
"avatar": "",
|
||||
"followers": 870,
|
||||
"statuses": 1200,
|
||||
"score": 88,
|
||||
"tags": ["linux", "opensource", "tech"],
|
||||
"category": "tech",
|
||||
"last_active": "2025-03-29",
|
||||
"url": "https://fosstodon.org/@linuxcz"
|
||||
},
|
||||
{
|
||||
"name": "Fedi.Tips",
|
||||
"handle": "feditips@mstdn.social",
|
||||
"bio": "Tipy jak používat Mastodon a fediverse. V češtině i angličtině.",
|
||||
"avatar": "",
|
||||
"followers": 650,
|
||||
"statuses": 980,
|
||||
"score": 82,
|
||||
"tags": ["mastodon", "tipy", "fediverse"],
|
||||
"category": "tech",
|
||||
"last_active": "2025-03-27",
|
||||
"url": "https://mstdn.social/@feditips"
|
||||
},
|
||||
{
|
||||
"name": "Open Source CZ",
|
||||
"handle": "oscz@mastodon.social",
|
||||
"bio": "Open source projekty, svobodný software a decentralizace po česku. 🇨🇿",
|
||||
"avatar": "",
|
||||
"followers": 540,
|
||||
"statuses": 760,
|
||||
"score": 79,
|
||||
"tags": ["opensource", "tech", "svobodný software"],
|
||||
"category": "tech",
|
||||
"last_active": "2025-03-26",
|
||||
"url": "https://mastodon.social/@oscz"
|
||||
},
|
||||
{
|
||||
"name": "Česká věda",
|
||||
"handle": "ceskaveda@scholar.social",
|
||||
"bio": "Popularizace vědy a výzkumu v češtině. Biologie, fyzika, astronomie. 🇨🇿",
|
||||
"avatar": "",
|
||||
"followers": 430,
|
||||
"statuses": 520,
|
||||
"score": 74,
|
||||
"tags": ["věda", "vzdělávání", "česky"],
|
||||
"category": "veda",
|
||||
"last_active": "2025-03-25",
|
||||
"url": "https://scholar.social/@ceskaveda"
|
||||
},
|
||||
{
|
||||
"name": "Foto CZ",
|
||||
"handle": "fotocz@mastodon.social",
|
||||
"bio": "Česká fotografická komunita. Krajiny, portréty, street foto. #fotografie 🇨🇿",
|
||||
"avatar": "",
|
||||
"followers": 390,
|
||||
"statuses": 890,
|
||||
"score": 71,
|
||||
"tags": ["fotografie", "foto", "umění"],
|
||||
"category": "foto",
|
||||
"last_active": "2025-03-28",
|
||||
"url": "https://mastodon.social/@fotocz"
|
||||
},
|
||||
{
|
||||
"name": "Gaming CZ",
|
||||
"handle": "gamingcz@mastodon.social",
|
||||
"bio": "Videohry po česku. Recenze, novinky, diskuse bez korporátního hype.",
|
||||
"avatar": "",
|
||||
"followers": 310,
|
||||
"statuses": 430,
|
||||
"score": 65,
|
||||
"tags": ["gaming", "hry", "česky"],
|
||||
"category": "gaming",
|
||||
"last_active": "2025-03-20",
|
||||
"url": "https://mastodon.social/@gamingcz"
|
||||
},
|
||||
{
|
||||
"name": "Kultura CZ",
|
||||
"handle": "kulturacz@mastodon.social",
|
||||
"bio": "Kultura, knihy, filmy a hudba v češtině. 🇨🇿",
|
||||
"avatar": "",
|
||||
"followers": 280,
|
||||
"statuses": 350,
|
||||
"score": 61,
|
||||
"tags": ["kultura", "knihy", "hudba"],
|
||||
"category": "kultura",
|
||||
"last_active": "2025-03-22",
|
||||
"url": "https://mastodon.social/@kulturacz"
|
||||
}
|
||||
]
|
||||
}
|
||||
243
mastodon_cz_accounts.py
Normal file
243
mastodon_cz_accounts.py
Normal file
@@ -0,0 +1,243 @@
|
||||
#!/usr/bin/env python3
|
||||
"""
|
||||
mastodon_cz_accounts.py
|
||||
Sbírá CZ/SK účty z Mastodonu přes /api/v1/directory?language=cs
|
||||
– stejná logika jako mstdn.cz od @adent.
|
||||
|
||||
Kritéria:
|
||||
- discoverable=true (uživatel chce být nalezen)
|
||||
- jazyk příspěvků nastaven na cs nebo sk
|
||||
- aktivní za posledních 30 dní
|
||||
- min. 10 příspěvků
|
||||
|
||||
Použití:
|
||||
python3 mastodon_cz_accounts.py
|
||||
python3 mastodon_cz_accounts.py --output /var/www/start/
|
||||
|
||||
Cron (každý den v 3:00):
|
||||
0 3 * * * /usr/bin/python3 /opt/mastodon-start/mastodon_cz_accounts.py --output /var/www/start/ >> /var/log/mastodon-start.log 2>&1
|
||||
"""
|
||||
|
||||
import json, csv, time, re, argparse, logging
|
||||
from datetime import datetime, timezone, timedelta
|
||||
from pathlib import Path
|
||||
import urllib.request, urllib.error, urllib.parse
|
||||
|
||||
logging.basicConfig(level=logging.INFO, format="%(asctime)s %(levelname)s %(message)s", datefmt="%H:%M:%S")
|
||||
log = logging.getLogger(__name__)
|
||||
|
||||
# ── CONFIG ────────────────────────────────────
|
||||
QUERY_INSTANCES = [
|
||||
"mastodon.social",
|
||||
"mstdn.social",
|
||||
"mastodon.online",
|
||||
"fosstodon.org",
|
||||
"chaos.social",
|
||||
"mastodon.cloud",
|
||||
"infosec.exchange",
|
||||
"scholar.social",
|
||||
"mamutovo.cz",
|
||||
]
|
||||
TARGET_LANGUAGES = ["cs", "sk"]
|
||||
MIN_STATUSES = 10
|
||||
MIN_FOLLOWERS = 10
|
||||
MAX_DAYS_INACTIVE = 30
|
||||
TOP_N = 60
|
||||
RATE_LIMIT_DELAY = 1.2
|
||||
PAGE_LIMIT = 80
|
||||
MAX_PAGES = 10
|
||||
|
||||
# ── HTTP ──────────────────────────────────────
|
||||
def api_get(url, timeout=12):
|
||||
try:
|
||||
req = urllib.request.Request(url, headers={"User-Agent": "MamutovoStarterBot/1.0 (+https://mamutovo.cz)"})
|
||||
with urllib.request.urlopen(req, timeout=timeout) as r:
|
||||
return json.loads(r.read().decode())
|
||||
except urllib.error.HTTPError as e:
|
||||
if e.code == 429:
|
||||
log.warning("Rate limit – čekám 60s"); time.sleep(60)
|
||||
elif e.code not in (404, 410):
|
||||
log.debug(f"HTTP {e.code} {url}")
|
||||
return None
|
||||
except Exception as e:
|
||||
log.debug(f"Chyba {url}: {e}"); return None
|
||||
|
||||
# ── SBĚR ─────────────────────────────────────
|
||||
def fetch_directory(instance, language, order="active"):
|
||||
accounts = []
|
||||
seen_ids = set()
|
||||
for page in range(MAX_PAGES):
|
||||
offset = page * PAGE_LIMIT
|
||||
url = (f"https://{instance}/api/v1/directory"
|
||||
f"?language={language}&local=false&order={order}"
|
||||
f"&limit={PAGE_LIMIT}&offset={offset}")
|
||||
batch = api_get(url)
|
||||
if not batch or not isinstance(batch, list):
|
||||
break
|
||||
new = 0
|
||||
for acc in batch:
|
||||
aid = acc.get("id")
|
||||
if aid and aid not in seen_ids:
|
||||
seen_ids.add(aid)
|
||||
acc["_source_instance"] = instance
|
||||
acc["_language"] = language
|
||||
accounts.append(acc)
|
||||
new += 1
|
||||
log.debug(f" {instance} lang={language} offset={offset}: {new} nových")
|
||||
if len(batch) < PAGE_LIMIT:
|
||||
break
|
||||
time.sleep(RATE_LIMIT_DELAY)
|
||||
return accounts
|
||||
|
||||
def fetch_all():
|
||||
seen_handles = set()
|
||||
all_accounts = []
|
||||
for instance in QUERY_INSTANCES:
|
||||
for lang in TARGET_LANGUAGES:
|
||||
log.info(f"directory {instance} lang={lang} ...")
|
||||
batch = fetch_directory(instance, lang)
|
||||
added = 0
|
||||
for acc in batch:
|
||||
handle = acc.get("acct", "")
|
||||
if "@" not in handle:
|
||||
handle = f"{handle}@{instance}"
|
||||
if handle in seen_handles:
|
||||
continue
|
||||
seen_handles.add(handle)
|
||||
acc["_handle"] = handle
|
||||
all_accounts.append(acc)
|
||||
added += 1
|
||||
log.info(f" → {added} nových (celkem {len(all_accounts)})")
|
||||
time.sleep(RATE_LIMIT_DELAY)
|
||||
log.info(f"Sběr hotov: {len(all_accounts)} unikátních účtů")
|
||||
return all_accounts
|
||||
|
||||
# ── FILTRY ────────────────────────────────────
|
||||
def passes_quality(acc):
|
||||
if acc.get("suspended") or acc.get("limited"):
|
||||
return False
|
||||
if (acc.get("statuses_count") or 0) < MIN_STATUSES: return False
|
||||
if (acc.get("followers_count") or 0) < MIN_FOLLOWERS: return False
|
||||
last = acc.get("last_status_at")
|
||||
if not last:
|
||||
return False
|
||||
try:
|
||||
dt = datetime.fromisoformat(last.replace("Z", "+00:00"))
|
||||
if dt < datetime.now(timezone.utc) - timedelta(days=MAX_DAYS_INACTIVE):
|
||||
return False
|
||||
except Exception:
|
||||
pass
|
||||
return True
|
||||
|
||||
# ── SCORING ───────────────────────────────────
|
||||
def score(acc):
|
||||
followers = acc.get("followers_count", 0) or 0
|
||||
statuses = acc.get("statuses_count", 0) or 0
|
||||
following = acc.get("following_count", 1) or 1
|
||||
f = min(40, int(40 * min(followers, 2000) / 2000))
|
||||
a = min(30, int(30 * min(statuses, 2000) / 2000))
|
||||
r = min(20, int(min(followers / max(following, 1), 4) * 5))
|
||||
handle = acc.get("_handle", "")
|
||||
instance = handle.split("@")[-1] if "@" in handle else ""
|
||||
b = 10 if any(x in instance for x in ("mamutovo", "czech")) else 0
|
||||
return min(100, f + a + r + b)
|
||||
|
||||
# ── KATEGORIE ─────────────────────────────────
|
||||
CATEGORIES = {
|
||||
"tech": ["linux", "python", "programov", "software", "opensource", "developer", "sysadmin", "git"],
|
||||
"foto": ["fotografi", "foto", "photograph", "objektiv", "kamera"],
|
||||
"veda": ["věda", "fyzika", "biologi", "astronom", "výzkum", "science", "matematik"],
|
||||
"kultura": ["knihy", "literatura", "film", "hudba", "divadlo", "umění"],
|
||||
"gaming": ["gaming", "hry", "videohry", "steam", "gamer"],
|
||||
"zpravy": ["novinář", "zprávy", "politik", "média", "journalist"],
|
||||
}
|
||||
|
||||
def categorize(acc):
|
||||
text = re.sub(r"<[^>]+>", " ", acc.get("note", "") or "").lower()
|
||||
text += " " + (acc.get("display_name", "") or "").lower()
|
||||
for cat, kws in CATEGORIES.items():
|
||||
if any(kw in text for kw in kws):
|
||||
return cat
|
||||
return "ostatni"
|
||||
|
||||
def extract_tags(acc):
|
||||
text = re.sub(r"<[^>]+>", " ", acc.get("note", "") or "").lower()
|
||||
found = []
|
||||
for kws in CATEGORIES.values():
|
||||
for kw in kws:
|
||||
if kw in text and kw not in found and len(kw) > 3:
|
||||
found.append(kw.strip())
|
||||
return found[:4]
|
||||
|
||||
# ── VÝSTUP ────────────────────────────────────
|
||||
def build_output(raw):
|
||||
results = []
|
||||
for acc in raw:
|
||||
if 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", ""),
|
||||
"language": acc.get("_language", "cs"),
|
||||
})
|
||||
seen = set()
|
||||
unique = []
|
||||
for r in sorted(results, key=lambda x: x["score"], reverse=True):
|
||||
if r["handle"] not in seen:
|
||||
seen.add(r["handle"])
|
||||
unique.append(r)
|
||||
return unique[:TOP_N]
|
||||
|
||||
def write_json(accounts, output_dir):
|
||||
data = {"generated_at": datetime.now(timezone.utc).isoformat(), "count": len(accounts), "accounts": accounts}
|
||||
p = output_dir / "accounts.json"
|
||||
p.write_text(json.dumps(data, ensure_ascii=False, indent=2))
|
||||
log.info(f"JSON: {p} ({len(accounts)} účtů)")
|
||||
|
||||
def write_csv(accounts, output_dir):
|
||||
p = output_dir / "accounts.csv"
|
||||
with open(p, "w", newline="", encoding="utf-8") as f:
|
||||
w = csv.writer(f)
|
||||
w.writerow(["Account address", "Show boosts"])
|
||||
for a in accounts:
|
||||
w.writerow([a["handle"], "true"])
|
||||
log.info(f"CSV: {p}")
|
||||
|
||||
# ── MAIN ──────────────────────────────────────
|
||||
def main():
|
||||
parser = argparse.ArgumentParser()
|
||||
parser.add_argument("--output", default=".", help="Výstupní adresář")
|
||||
parser.add_argument("--top", default=TOP_N, type=int)
|
||||
parser.add_argument("--debug", action="store_true")
|
||||
args = parser.parse_args()
|
||||
if args.debug:
|
||||
logging.getLogger().setLevel(logging.DEBUG)
|
||||
global TOP_N
|
||||
TOP_N = args.top
|
||||
output_dir = Path(args.output)
|
||||
output_dir.mkdir(parents=True, exist_ok=True)
|
||||
log.info(f"Startuji – {len(QUERY_INSTANCES)} instancí × {len(TARGET_LANGUAGES)} jazyků")
|
||||
raw = fetch_all()
|
||||
accounts = build_output(raw)
|
||||
if not accounts:
|
||||
log.error("Žádné účty! Zkontroluj připojení.")
|
||||
return 1
|
||||
log.info(f"Po filtraci: {len(accounts)} účtů")
|
||||
write_json(accounts, output_dir)
|
||||
write_csv(accounts, output_dir)
|
||||
log.info("Hotovo.")
|
||||
return 0
|
||||
|
||||
if __name__ == "__main__":
|
||||
exit(main())
|
||||
380
start.html
Normal file
380
start.html
Normal file
@@ -0,0 +1,380 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="cs">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Začni na Mastodonu – 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;
|
||||
}
|
||||
|
||||
.badge {
|
||||
display: inline-block;
|
||||
background: var(--surface2);
|
||||
border: 1px solid var(--border);
|
||||
color: var(--muted);
|
||||
font-family: 'Space Mono', monospace;
|
||||
font-size: 0.72rem;
|
||||
padding: 0.3rem 0.8rem;
|
||||
border-radius: 999px;
|
||||
margin-bottom: 1.5rem;
|
||||
letter-spacing: 0.05em;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
h1 {
|
||||
font-size: clamp(2rem, 6vw, 3.2rem);
|
||||
font-weight: 800;
|
||||
line-height: 1.1;
|
||||
margin-bottom: 1rem;
|
||||
letter-spacing: -0.02em;
|
||||
}
|
||||
|
||||
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;
|
||||
}
|
||||
|
||||
.tagline strong { color: var(--text); }
|
||||
|
||||
/* --- STEPS --- */
|
||||
.steps {
|
||||
max-width: 680px;
|
||||
margin: 0 auto 3rem;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 1rem;
|
||||
}
|
||||
|
||||
.step {
|
||||
background: var(--surface);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: var(--radius);
|
||||
padding: 1.4rem 1.6rem;
|
||||
display: grid;
|
||||
grid-template-columns: 2.5rem 1fr;
|
||||
gap: 0 1rem;
|
||||
align-items: start;
|
||||
transition: border-color 0.2s;
|
||||
}
|
||||
|
||||
.step:hover { border-color: var(--accent); }
|
||||
|
||||
.step-num {
|
||||
font-family: 'Space Mono', monospace;
|
||||
font-size: 0.8rem;
|
||||
font-weight: 700;
|
||||
color: var(--accent);
|
||||
background: rgba(99,100,255,0.1);
|
||||
border-radius: 6px;
|
||||
width: 2rem;
|
||||
height: 2rem;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
flex-shrink: 0;
|
||||
margin-top: 0.1rem;
|
||||
}
|
||||
|
||||
.step-body h3 {
|
||||
font-size: 1rem;
|
||||
font-weight: 700;
|
||||
margin-bottom: 0.35rem;
|
||||
letter-spacing: -0.01em;
|
||||
}
|
||||
|
||||
.step-body p {
|
||||
color: var(--muted);
|
||||
font-size: 0.9rem;
|
||||
line-height: 1.5;
|
||||
margin-bottom: 0.8rem;
|
||||
}
|
||||
|
||||
/* --- BUTTONS --- */
|
||||
.btn {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 0.4rem;
|
||||
font-family: 'Space Mono', monospace;
|
||||
font-size: 0.8rem;
|
||||
font-weight: 700;
|
||||
padding: 0.55rem 1.1rem;
|
||||
border-radius: 7px;
|
||||
text-decoration: none;
|
||||
transition: all 0.15s;
|
||||
cursor: pointer;
|
||||
border: none;
|
||||
}
|
||||
|
||||
.btn-primary {
|
||||
background: var(--accent);
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
.btn-primary:hover {
|
||||
background: #7879ff;
|
||||
transform: translateY(-1px);
|
||||
}
|
||||
|
||||
.btn-secondary {
|
||||
background: var(--surface2);
|
||||
color: var(--text);
|
||||
border: 1px solid var(--border);
|
||||
}
|
||||
|
||||
.btn-secondary:hover {
|
||||
border-color: var(--accent);
|
||||
color: var(--accent);
|
||||
}
|
||||
|
||||
.btn-row {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 0.5rem;
|
||||
}
|
||||
|
||||
/* --- PATH HINT --- */
|
||||
.path-hint {
|
||||
font-family: 'Space Mono', monospace;
|
||||
font-size: 0.78rem;
|
||||
color: var(--muted);
|
||||
background: var(--surface2);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 6px;
|
||||
padding: 0.55rem 0.9rem;
|
||||
display: inline-block;
|
||||
margin-top: 0.6rem;
|
||||
line-height: 1.7;
|
||||
}
|
||||
|
||||
.path-hint span { color: var(--accent2); }
|
||||
|
||||
/* --- COPY POST --- */
|
||||
.copy-box {
|
||||
background: var(--surface2);
|
||||
border: 1px dashed var(--border);
|
||||
border-radius: var(--radius);
|
||||
padding: 1rem 1.2rem;
|
||||
font-size: 0.92rem;
|
||||
line-height: 1.6;
|
||||
color: var(--text);
|
||||
margin-bottom: 0.8rem;
|
||||
position: relative;
|
||||
cursor: pointer;
|
||||
transition: border-color 0.2s;
|
||||
user-select: all;
|
||||
}
|
||||
|
||||
.copy-box:hover { border-color: var(--accent); }
|
||||
|
||||
.copy-label {
|
||||
font-family: 'Space Mono', monospace;
|
||||
font-size: 0.68rem;
|
||||
color: var(--muted);
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.08em;
|
||||
margin-bottom: 0.5rem;
|
||||
display: block;
|
||||
}
|
||||
|
||||
.copy-toast {
|
||||
position: fixed;
|
||||
bottom: 1.5rem;
|
||||
left: 50%;
|
||||
transform: translateX(-50%) translateY(2rem);
|
||||
background: var(--accent);
|
||||
color: #fff;
|
||||
font-family: 'Space Mono', monospace;
|
||||
font-size: 0.8rem;
|
||||
padding: 0.6rem 1.4rem;
|
||||
border-radius: 999px;
|
||||
opacity: 0;
|
||||
transition: all 0.25s;
|
||||
pointer-events: none;
|
||||
z-index: 100;
|
||||
}
|
||||
|
||||
.copy-toast.show {
|
||||
opacity: 1;
|
||||
transform: translateX(-50%) translateY(0);
|
||||
}
|
||||
|
||||
/* --- HASHTAGS --- */
|
||||
.tags {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 0.5rem;
|
||||
margin-top: 0.4rem;
|
||||
}
|
||||
|
||||
.tag {
|
||||
font-family: 'Space Mono', monospace;
|
||||
font-size: 0.78rem;
|
||||
color: var(--accent);
|
||||
background: rgba(99,100,255,0.08);
|
||||
border: 1px solid rgba(99,100,255,0.2);
|
||||
border-radius: 999px;
|
||||
padding: 0.3rem 0.75rem;
|
||||
text-decoration: none;
|
||||
transition: all 0.15s;
|
||||
}
|
||||
|
||||
.tag:hover {
|
||||
background: rgba(99,100,255,0.2);
|
||||
border-color: var(--accent);
|
||||
}
|
||||
|
||||
/* --- 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; }
|
||||
.footer-note a:hover { text-decoration: underline; }
|
||||
|
||||
@media (max-width: 500px) {
|
||||
.step { grid-template-columns: 1fr; }
|
||||
.step-num { margin-bottom: 0.5rem; }
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<div class="hero">
|
||||
<div class="badge">🦣 Mamutovo · Průvodce pro nováčky</div>
|
||||
<h1>Twitter bez <span>korporátu</span>.<br>Mastodon za 3 minuty.</h1>
|
||||
<p class="tagline">
|
||||
Žádné algoritmy. Žádné reklamy. <strong>Patří komunitě.</strong><br>
|
||||
Tyhle 4 kroky ti zaplní feed a pomůžou udělat první post.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div class="steps">
|
||||
|
||||
<!-- KROK 1 -->
|
||||
<div class="step">
|
||||
<div class="step-num">01</div>
|
||||
<div class="step-body">
|
||||
<h3>Stáhni starter pack</h3>
|
||||
<p>CSV soubor s účty, které stojí za sledování. Nahraješ ho do Mastodonu a feed se okamžitě zaplní.</p>
|
||||
<div class="btn-row">
|
||||
<a href="starter-general.csv" download class="btn btn-primary">⬇ Stáhnout CSV – obecný mix</a>
|
||||
<a href="starter-tech.csv" download class="btn btn-secondary">Tech & Linux</a>
|
||||
<a href="starter-czech.csv" download class="btn btn-secondary">CZ účty</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- KROK 2 -->
|
||||
<div class="step">
|
||||
<div class="step-num">02</div>
|
||||
<div class="step-body">
|
||||
<h3>Nahraj CSV do Mastodonu</h3>
|
||||
<p>Přejdi do nastavení a importuj soubor. Trvá to 30 sekund.</p>
|
||||
<div class="path-hint">
|
||||
<span>Nastavení</span> → Import a export → Import<br>
|
||||
Typ: <span>Sledovaní</span> → Vyber soubor → <span>Nahrát</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- KROK 3 -->
|
||||
<div class="step">
|
||||
<div class="step-num">03</div>
|
||||
<div class="step-body">
|
||||
<h3>Pošli první post</h3>
|
||||
<p>Zkopíruj, uprav, odešli. Komunita reaguje na #Představení.</p>
|
||||
<span class="copy-label">Klikni pro zkopírování</span>
|
||||
<div class="copy-box" onclick="copyPost(this)">
|
||||
Ahoj Mastodon! 👋 Jsem tu nový/nová, přišel/přišla jsem z [Twitteru / Facebooku].
|
||||
Zajímá mě [Linux / příroda / fotografie / ...]. Rád/a se seznámím!
|
||||
|
||||
#Představení #novácek #Mamutovo
|
||||
</div>
|
||||
<a href="https://mamutovo.cz/publish" class="btn btn-primary" target="_blank">✏️ Napsat post</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- KROK 4 -->
|
||||
<div class="step">
|
||||
<div class="step-num">04</div>
|
||||
<div class="step-body">
|
||||
<h3>Sleduj hashtagy, co tě zajímají</h3>
|
||||
<p>Klikni na hashtag → „Sledovat hashtag". Příspěvky se ti začnou objevovat v timeline.</p>
|
||||
<div class="tags">
|
||||
<a href="https://mamutovo.cz/tags/představení" class="tag">#Představení</a>
|
||||
<a href="https://mamutovo.cz/tags/česky" class="tag">#Česky</a>
|
||||
<a href="https://mamutovo.cz/tags/linux" class="tag">#Linux</a>
|
||||
<a href="https://mamutovo.cz/tags/opensource" class="tag">#OpenSource</a>
|
||||
<a href="https://mamutovo.cz/tags/fotografie" class="tag">#Fotografie</a>
|
||||
<a href="https://mamutovo.cz/tags/příroda" class="tag">#Příroda</a>
|
||||
<a href="https://mamutovo.cz/tags/hudba" class="tag">#Hudba</a>
|
||||
<a href="https://mamutovo.cz/tags/knihy" class="tag">#Knihy</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="footer-note">
|
||||
Zasekl/a ses? Napiš na <a href="https://mamutovo.cz/@admin">@admin@mamutovo.cz</a> nebo
|
||||
se zeptej v <a href="https://mamutovo.cz/tags/pomoc">#pomoc</a>.<br>
|
||||
Tato stránka je open source: <a href="https://github.com/mamutovo/start">github.com/mamutovo/start</a>
|
||||
</div>
|
||||
|
||||
<div class="copy-toast" id="toast">Zkopírováno! Vlož do pole pro post ✓</div>
|
||||
|
||||
<script>
|
||||
function copyPost(el) {
|
||||
const text = el.innerText.trim();
|
||||
navigator.clipboard.writeText(text).then(() => {
|
||||
const toast = document.getElementById('toast');
|
||||
toast.classList.add('show');
|
||||
setTimeout(() => toast.classList.remove('show'), 2500);
|
||||
});
|
||||
}
|
||||
</script>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
16
starter-general.csv
Normal file
16
starter-general.csv
Normal file
@@ -0,0 +1,16 @@
|
||||
Account address,Show boosts
|
||||
FediFollows@mastodon.online,true
|
||||
Mastodon@mastodon.social,true
|
||||
feditips@mstdn.social,true
|
||||
fosstodon@fosstodon.org,true
|
||||
climateaction@climatejustice.social,false
|
||||
writingexchange@writing.exchange,true
|
||||
photography@mastodon.social,true
|
||||
gamedev@mastodon.gamedev.place,true
|
||||
scicomm@scholar.social,false
|
||||
openstreetmap@en.osm.town,false
|
||||
techbots@botsin.space,false
|
||||
privacyguides@mastodon.social,false
|
||||
linuxrocks@linuxrocks.online,true
|
||||
bookwyrm@bookwyrm.social,false
|
||||
prague@mastodon.social,true
|
||||
|
Reference in New Issue
Block a user