Files
simplex-chat/website/src/directory.html
T

338 lines
9.8 KiB
HTML

---
layout: layouts/main.html
title: "SimpleX Directory"
description: "Find communities on SimpleX network and create your own"
templateEngineOverride: njk
active_directory: true
---
{% set lang = page.url | getlang %}
{% block js_scripts %}
<script src="/js/flag-anchor.js"></script>
{% endblock %}
<style>
#directory .entry {
display: flex;
align-items: flex-start;
margin-bottom: 20px;
padding: 16px;
word-break: break-word;
}
#directory .entry a.img-link {
order: -1;
object-fit: cover;
margin-right: 16px;
margin-bottom: 16px;
}
#directory .entry a.img-link img {
min-width: 104px;
min-height: 104px;
width: 104px;
height: 104px;
border-radius: 24px;
}
#directory .entry h2 {
margin: 0 0 5px 0;
}
#directory .entry p {
margin: 0 0 5px 0;
}
#directory .entry .secret {
filter: blur(5px);
cursor: pointer;
transition: filter 0.1s ease;
user-select: none;
}
#directory .entry .secret.visible {
filter: none;
user-select: auto;
}
#directory .entry .read-more {
color: #0053D0;
text-decoration: underline;
cursor: pointer;
}
#directory .entry .read-less {
color: darkgray;
cursor: pointer;
}
.dark #directory .entry .read-more {
color: #70F0F9;
}
#directory .entry .red {
color: #DD0000;
}
#directory .entry .green {
color: #20BD3D;
}
#directory .entry .blue {
color: #0053d0;
}
#directory .entry .cyan {
color: #0AC4D1;
}
#directory .entry .yellow {
color: #DEBD00;
}
#directory .entry .magenta {
color: magenta;
}
#directory .entry .small-text {
font-size: 0.8em;
color: #888;
}
.dark #directory .entry .small-text {
color: #999;
}
.dark #directory .entry .green {
color: #4DDA67;
}
.dark #directory .entry .blue {
color: #00A2FF;
}
.dark #directory .entry .cyan {
color: #70F0F9;
}
.dark #directory .entry .yellow {
color: #FFD700;
}
.dark #directory .entry .magenta {
color: magenta;
}
#directory .entry {
--md-card: rgba(139, 135, 134, 0.12);
--md-line: rgba(139, 135, 134, 0.35);
--md-bar: rgba(0, 0, 0, 0.16);
--md-stripe: rgba(139, 135, 134, 0.08);
--md-link: #0053D0;
}
.dark #directory .entry {
--md-card: rgba(255, 255, 255, 0.08);
--md-line: rgba(139, 135, 134, 0.45);
--md-bar: rgba(255, 255, 255, 0.22);
--md-stripe: rgba(139, 135, 134, 0.12);
--md-link: #70F0F9;
}
#directory .entry .text-container { min-width: 0; }
#directory .entry .md-gap { height: 0.7em; }
#directory .entry .md-h1 { font-size: 1.5em; line-height: 1.3; font-weight: 700; }
#directory .entry .md-h2 { font-size: 1.3em; line-height: 1.3; font-weight: 700; }
#directory .entry .md-h3 { font-size: 1.15em; line-height: 1.3; font-weight: 700; }
#directory .entry .md-h4 { font-weight: 700; }
#directory .entry .md-entry { display: flex; gap: 6px; }
#directory .entry .md-mark { flex: none; min-width: 1.1em; }
#directory .entry .md-text { flex: 1; min-width: 0; }
#directory .entry .md-quote { display: flex; gap: 10px; }
#directory .entry .md-bar { flex: none; width: 4px; border-radius: 2px; background: var(--md-bar); }
#directory .entry .md-quote > .md-text { opacity: 0.7; }
#directory .entry .md-code { position: relative; background: var(--md-card); border-radius: 4px; overflow: hidden; }
#directory .entry .md-code pre { margin: 0; padding: 8px 12px; overflow-x: auto; white-space: pre; font-family: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace; font-size: 0.875em; line-height: 1.45; }
#directory .entry .md-copy { position: absolute; top: 4px; right: 4px; width: 28px; height: 28px; padding: 0; display: grid; place-items: center; border: 0; border-radius: 4px; background: var(--md-card); color: var(--md-link); cursor: pointer; opacity: 0; pointer-events: none; transition: opacity 0.15s; }
#directory .entry .md-code:hover .md-copy,
#directory .entry .md-code.tapped .md-copy,
#directory .entry .md-copy:focus-visible { opacity: 1; pointer-events: auto; }
#directory .entry .md-copy svg { width: 18px; height: 18px; }
#directory .entry .md-icon-done,
#directory .entry .md-copy.copied .md-icon-copy { display: none; }
#directory .entry .md-copy.copied .md-icon-done { display: block; }
#directory .entry .md-table { overflow-x: auto; }
#directory .entry .md-frame { display: inline-block; vertical-align: top; border: 1px solid var(--md-line); border-radius: 4px; overflow: hidden; }
#directory .entry .md-frame table { border-collapse: collapse; font-variant-numeric: tabular-nums; }
#directory .entry .md-frame th,
#directory .entry .md-frame td { padding: 4px 12px; white-space: nowrap; border-right: 1px solid var(--md-line); border-bottom: 1px solid var(--md-line); }
#directory .entry .md-frame th:last-child,
#directory .entry .md-frame td:last-child { border-right: 0; }
#directory .entry .md-frame tr:last-child th,
#directory .entry .md-frame tr:last-child td { border-bottom: 0; }
#directory .entry .md-frame th { font-weight: 700; background: var(--md-card); }
#directory .entry .md-frame tr:nth-child(odd) td { background: var(--md-stripe); }
#directory .entry .md-rule { border: 0; border-top: 1px solid var(--md-line); margin: 6px 0; }
.pagination {
display: flex;
justify-content: center;
align-items: center;
gap: 4px;
margin-top: 20px;
padding: 10px 0;
}
.pagination button {
padding: 8px 12px;
border: none;
background-color: transparent;
color: #374151;
cursor: pointer;
border-radius: 50%;
font-size: 14px;
min-width: 40px;
height: 40px;
display: flex;
align-items: center;
justify-content: center;
transition: background-color 0.2s;
}
.dark .pagination button {
color: #70F0F9;
}
.pagination button:hover {
background-color: #f3f4f6;
}
.dark .pagination button:hover {
background-color: #0B2A50;
}
.pagination button.active {
font-weight: bold;
color: #0B2A59;
}
.dark .pagination button.active {
color: #70F0F9;
}
.pagination button.text-btn {
border-radius: 20px;
min-width: auto;
height: 40px;
padding: 8px 16px;
}
.pagination button:disabled {
opacity: 0.5;
cursor: not-allowed;
}
@media (max-width: 768px) {
.pagination {
gap: 2px;
padding: 8px 0;
}
.pagination button {
font-size: 12px;
min-width: 32px;
height: 32px;
padding: 4px 8px;
}
.pagination button.text-btn {
padding: 4px 8px;
height: 32px;
border-radius: 16px;
font-size: 12px;
}
@media (max-width: 480px) {
.pagination button:not(.text-btn):not(.active):not(.neighbor) {
display: none;
}
.pagination button.active,
.pagination button.neighbor {
display: flex;
}
}
}
#search {
width: 100%;
max-width: 540px;
padding: 8px 12px 8px 32px;
font-size: 15px;
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
border: none;
border-radius: 10px;
background-color: white;
color: #000000;
outline: solid 1px #f2f2ff;
transition: background-color 0.2s, box-shadow 0.2s;
background-image: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGcgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIiBzdHJva2Utd2lkdGg9IjIiIHN0cm9rZT0iIzg4ODg4OCI+CjxjaXJjbGUgY3g9IjEwLjUiIGN5PSIxMC41IiByPSI3LjUiIC8+CjxsaW5lIHgxPSIxNiIgeTE9IjE2IiB4Mj0iMjEiIHkyPSIyMSIgLz4KPC9nPgo8L3N2Zz4=');
background-position: 8px center;
background-repeat: no-repeat;
background-size: 18px;
}
#search::placeholder {
color: #8e8e93;
}
.dark #search {
background-color: #0B2A50;
color: #ffffff;
background-image: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGcgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIiBzdHJva2Utd2lkdGg9IjIiIHN0cm9rZT0iI2JiYmJiYiI+CjxjaXJjbGUgY3g9IjEwLjUiIGN5PSIxMC41IiByPSI3LjUiIC8+CjxsaW5lIHgxPSIxNiIgeTE9IjE2IiB4Mj0iMjEiIHkyPSIyMSIgLz4KPC9nPgo8L3N2Zz4=');
outline: none;
}
.dark #search::placeholder {
color: #8e8e93;
}
.search-container {
display: flex;
align-items: center;
justify-content: space-between;
gap: 16px;
}
#search {
flex-grow: 1;
}
#top-pagination {
margin-bottom: 16px;
}
</style>
<section class="py-10 px-5 mt-[66px] dark:text-white">
<div class="container">
<h1 class="text-[38px] md:text-[45px] text-center font-bold text-active-blue mb-8">SimpleX Directory</h1>
<p>Welcome to the selected users' communities that you can join via <a href="/downloads">SimpleX Chat
app</a>.</p>
<p>SimpleX Directory is also available as a <a href="https://smp4.simplex.im/a#lXUjJW5vHYQzoLYgmi8GbxkGP41_kjefFvBrdwg-0Ok" target="_blank" rel="noopener simplex">SimpleX chat bot</a>.</p>
<p>Read about <a href="/docs/directory.html">how to add</a> your community.</p>
<template data-markdown><p>All listed groups and channels in JSON, with names, descriptions, member counts, join links and activity times: <a href="https://directory.simplex.chat/data/listing.json">directory.simplex.chat/data/listing.json</a>.</p></template>
<div class="search-container">
<input id="search" autocomplete="off">
<div id="top-pagination" class="pagination">
<button class="text-btn live">Active</button>
<button class="text-btn new">New</button>
<button class="text-btn top">All</button>
</div>
</div>
<div id="directory" style="height: 3000px;"></div>
<div id="bottom-pagination" class="pagination"></div>
</div>
</section>
<script src="/js/directory.js"></script>