Repository navigation
Expand file tree
/
Copy pathindex.html
More file actions
351 lines (329 loc) · 21.5 KB
/
Copy pathindex.html
File metadata and controls
351 lines (329 loc) · 21.5 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover">
<title>DatingRelating.com</title>
<meta name="description" content="Discover real people and explore ideas for better relationships. A world with more people happily in love. DatingRelating.com.">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=Inter:wght@400;500;600&display=swap" rel="stylesheet">
<link rel="stylesheet" href="/style.css?v=value-first-green-buy-5">
<!-- Open connections to the embed hosts early, so posts appear faster -->
<link rel="preconnect" href="https://www.instagram.com">
<link rel="preconnect" href="https://scontent.cdninstagram.com" crossorigin>
<link rel="preconnect" href="https://static.cdninstagram.com" crossorigin>
<link rel="preconnect" href="https://www.threads.com">
<link rel="preconnect" href="https://platform.twitter.com">
<style>
.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.card {
position: relative; aspect-ratio: 3 / 4; border-radius: 24px; overflow: hidden;
background: linear-gradient(135deg, var(--blob-1), var(--blob-3));
color: #fff; isolation: isolate;
transition: transform .25s ease, box-shadow .25s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 20px 40px rgba(0,0,0,.14); }
.card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .5s ease; }
.card:hover img { transform: scale(1.04); }
.initial {
position: absolute; inset: 0; display: grid; place-items: center; z-index: -2;
font-family: "Instrument Serif", Georgia, serif; font-size: 120px; color: rgba(255,255,255,.75);
}
.card::after {
content: ""; position: absolute; inset: 0; z-index: -1;
background: linear-gradient(to top, rgba(0,0,0,.78) 0%, rgba(0,0,0,.25) 45%, transparent 70%);
}
.top { position: absolute; top: 14px; left: 14px; right: 14px; display: flex; gap: 6px; flex-wrap: wrap; }
.tag {
background: rgba(0,0,0,.35); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
border-radius: 999px; padding: 4px 11px; font-size: 12px; font-weight: 500;
}
.tag.ex { background: var(--accent); }
.bottom { position: absolute; left: 18px; right: 18px; bottom: 18px; display: flex; flex-direction: column; gap: 6px; }
.loc { font-family: "Instrument Serif", Georgia, serif; font-size: 30px; line-height: 1; }
.country { font-size: 13px; opacity: .8; text-transform: uppercase; letter-spacing: .08em; }
.text {
margin: 4px 0 0; font-size: 14px; opacity: .9;
display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.link { color: #fff; font-size: 14px; font-weight: 600; text-decoration: none; margin-top: 4px; }
.link::before { content: ""; position: absolute; inset: 0; } /* whole card clickable */
/* Embed cards (Instagram / X) in a masonry layout. CSS columns work everywhere today;
browsers that ship native masonry (display: grid-lanes) get proper left-to-right order. */
.grid.has-embeds { display: block; columns: 3 326px; column-gap: 18px; max-width: 1180px; margin: 0 auto; }
.grid.has-embeds > * { break-inside: avoid; margin-bottom: 18px; }
@supports (display: grid-lanes) {
.grid.has-embeds { display: grid-lanes; columns: auto; grid-template-columns: repeat(auto-fill, minmax(326px, 1fr)); gap: 18px; }
.grid.has-embeds > * { margin-bottom: 0; }
}
.ecard {
background: var(--surface); border: 1px solid var(--line); border-radius: 24px;
padding: 14px; backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
box-shadow: 0 8px 30px rgba(0,0,0,.05);
}
.ecard .head {
display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 10px; row-gap: 4px;
align-items: center; padding: 4px 6px 12px;
}
.ecard .head .date { grid-column: 1 / -1; }
.permalink {
font-size: 13px; font-weight: 600; color: var(--muted); text-decoration: none;
min-width: 32px; height: 28px; padding: 0 10px; border-radius: 999px;
display: inline-grid; place-items: center; background: var(--chip);
transition: color .15s ease, background .15s ease;
}
.permalink:hover { color: var(--text); }
.permalink.done { color: #fff; background: var(--accent); }
.ecard { scroll-margin-top: 16px; }
.ecard .loc { font-size: 24px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ecard .date { color: var(--muted); font-size: 13px; }
.ecard .tag { background: var(--chip); color: var(--text); backdrop-filter: none; white-space: nowrap; }
.ecard .notice {
display: flex; flex-direction: column; gap: 2px; margin: -2px -2px 14px; padding: 16px 18px;
border-radius: 16px; color: #fff; background: linear-gradient(120deg, #ea580c, #f97316);
box-shadow: 0 8px 24px rgba(234, 88, 12, .3);
}
.ecard .notice strong { font-size: 18px; letter-spacing: -0.01em; }
.ecard .notice span { font-size: 14px; opacity: .92; }
.ecard .more {
display: block; margin: 12px 6px 2px; color: var(--accent); font-weight: 600; font-size: 14px; text-decoration: none;
}
.ecard .more:hover { text-decoration: underline; }
.ecard .note {
display: block; margin: 0 0 12px; padding: 10px 14px; border-radius: 12px; background: var(--chip);
color: var(--accent); font-weight: 600; font-size: 14px; text-decoration: none;
}
.ecard .note:hover { text-decoration: underline; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 20px; }
.filters a {
padding: 8px 14px; border-radius: 999px; background: var(--chip); color: var(--text);
font-weight: 600; font-size: 14px; text-decoration: none;
}
.filters a[aria-current] { background: var(--accent); color: #fff; }
.ecard .fallback {
display: block; padding: 28px; border-radius: 16px; background: var(--chip);
color: var(--accent); font-weight: 600; text-decoration: none; text-align: center;
}
.empty { color: var(--muted); padding: 60px 0; text-align: center; }
.empty a { color: var(--accent); }
</style>
</head>
<body class="dating-home">
<div class="blobs" aria-hidden="true"><span></span><span></span><span></span></div>
<div class="wrap">
<nav>
<a class="logo" href="/">Dating<b>Relating</b></a>
<div class="navlinks">
<a href="/" aria-current="page">Dating</a>
<a href="/relating/">Relating</a>
<a href="/frameworks/">Frameworks</a>
<a href="/hacker-mindset/">Hacker Mindset</a>
<a href="/co-founder-co-lover/">Co-founder & Co-lover</a>
<a href="/about/">About</a>
<a class="btn" href="#membership">Why join?</a>
</div>
</nav>
<header class="connection-hero">
<p class="eyebrow">Dating is the beginning. Relating is what comes next.</p>
<h1>Find your people.<br>Grow something <em>real.</em></h1>
<p class="lede">Discover people through their real posts, see where they are in the world, and explore ideas for building better relationships.</p>
<p class="connection-mission">We believe the world would be a better place with more people happily in love.</p>
<div class="connection-actions"><a class="btn" href="#grid">Explore the people ↓</a><a class="connection-secondary" href="#membership">Why become a member?</a></div>
</header>
<section class="connection-values" aria-label="What you can explore">
<a href="#grid"><span class="value-number" aria-hidden="true">01</span><div><h2>Find a spark.</h2><p>Real posts, personalities and places. Follow your curiosity.</p></div><span aria-hidden="true">↗</span></a>
<a href="/frameworks/"><span class="value-number" aria-hidden="true">02</span><div><h2>Know what matters.</h2><p>Explore frameworks for what you want and need in a relationship.</p></div><span aria-hidden="true">↗</span></a>
<a href="/relating/"><span class="value-number" aria-hidden="true">03</span><div><h2>Learn to relate.</h2><p>Ideas for working through conflict and rebuilding trust.</p></div><span aria-hidden="true">↗</span></a>
</section>
<section class="membership-section" id="membership" aria-labelledby="why-join-title">
<div class="membership-reason">
<p class="eyebrow">Why become a founding member?</p>
<h2 id="why-join-title">Help build a place<br>for real connection.</h2>
<p>Become part of the community we’re building, with lifetime membership and a permanent badge confirming that we met in person.</p>
<p>Your contribution supports the project from the beginning. Profiles and relationship resources are open to explore; membership is a way to join in and help it grow.</p>
</div>
<aside class="membership-offer panel" aria-labelledby="membership-title">
<p class="offer-exclusive"><span aria-hidden="true">✦</span> Solana Breakpoint — in person only — very limited offer</p>
<div class="offer-price-row"><div><h2 id="membership-title">Founding member.</h2><p class="membership-caption">Lifetime membership. One payment.</p></div><p class="membership-price">1 <span>SOL</span></p></div>
<div class="founder-badge"><span class="badge-mark" aria-hidden="true">✓</span><div><strong>Verified in person by Mars</strong><span>Your badge, for life.</span></div></div>
<p class="membership-description">Meet me at Breakpoint and join while we’re together. Keep your in-person badge for life, with extra member privileges to be announced.</p>
<button class="btn membership-buy" type="button" data-membership-open hidden>Get lifetime membership · 1 SOL ↗</button>
<noscript><a class="btn" href="mailto:datingrelatingdotcom@gmail.com?subject=1%20SOL%20lifetime%20membership">Ask about membership</a></noscript>
<p class="membership-note" id="membership-availability">In-person offer. Mars confirms your membership and badge.</p>
</aside>
</section>
<div class="people-heading"><h2 class="section-title">Possibly single. Somewhere in the world.</h2><p>Real people, real posts. Start with curiosity.</p></div>
<div class="filters" id="filters" hidden></div>
<main class="grid" id="grid"></main>
<p class="empty" id="empty" hidden>No one here yet. <a href="#join">Be the first</a>.</p>
<section class="join" id="join">
<h2>Want to be on the wall?</h2>
<p>Send your Instagram post, your current city and who you are looking for.</p>
<div class="row">
<a class="btn" href="mailto:datingrelatingdotcom@gmail.com">Email us</a>
<a class="btn ghost" href="https://github.com/PlanetaryCouncil/DatingRelating.com/issues/new?title=Add%20me&body=Link%20to%20my%20Instagram%20or%20X%20post%3A%0A%0AWhere%20I%20am%20right%20now%20%28country%2C%20region%2C%20city%29%3A%0A%0AOpen%20to%20relocating%3F%20%28yes%20/%20no%29%3A%0A%0AAnything%20else%20%28optional%29%3A%0A" target="_blank" rel="noopener">Create an issue on GitHub</a>
</div>
</section>
<section class="homepage-auction panel" aria-labelledby="auction-title">
<div>
<p class="eyebrow">Homepage spotlight · Coming soon</p>
<h2 id="auction-title">Make the first impression.</h2>
<p>Real-time auctions for featured spots on the homepage. Bid in SOL for a little more visibility.</p>
</div>
<div class="auction-status">
<span class="auction-label">Bidding has not opened</span>
<p>Homepage spots will be auctioned separately from lifetime membership. Timing and bidding rules will be announced before the first auction.</p>
<a href="mailto:datingrelatingdotcom@gmail.com?subject=Homepage%20auction%20interest">Ask about a homepage spot ↗</a>
</div>
</section>
<details class="founder-note panel">
<summary>A note from Mars, the founder</summary>
<p>I'm single, and I'm building the kind of dating community I'd like to be part of. This project comes from love, lessons learned, and wanting to appreciate connection more deeply. Dating is the first step. Relating is what happens afterwards.</p>
</details>
<p class="fine">
Listed and want to be taken down, or moved city?
<a href="mailto:datingrelatingdotcom@gmail.com">Email us</a> and it is done the same day.
</p>
</div>
<dialog id="membership-checkout" class="membership-checkout" aria-labelledby="checkout-title">
<div class="checkout-heading"><div><p class="eyebrow">Solana Breakpoint · In person only · Very limited offer</p><h2 id="checkout-title">Send 1 SOL. You’re in.</h2></div><button type="button" class="checkout-close" id="checkout-close" aria-label="Close membership checkout">×</button></div>
<div id="payment-unavailable">
<p>Membership payments aren't open yet. Get in touch about the 1 SOL lifetime offer.</p>
<a class="btn" href="mailto:datingrelatingdotcom@gmail.com?subject=1%20SOL%20lifetime%20membership">Ask about membership ↗</a>
</div>
<div id="payment-ready" hidden>
<p class="payment-context">Lifetime membership + your in-person badge.<br><strong>Solana mainnet · 1 SOL + network fee</strong></p>
<a class="btn wallet-primary" id="payment-wallet">Open wallet · Send 1 SOL ↗</a>
<p class="wallet-help">Opens a Solana Pay compatible wallet. Or copy the address into Phantom and send 1 SOL.</p>
<div class="address-block"><label for="payment-recipient">Mars’s receiving address</label><div class="address-copy-row"><textarea id="payment-recipient" readonly rows="2" spellcheck="false" autocapitalize="off"></textarea><button class="btn ghost" type="button" id="address-copy">Copy address</button></div></div>
<p id="payment-status" class="payment-status" role="status" aria-live="polite"></p>
<figure class="payment-qr"><div id="payment-qr" role="img" aria-label="QR code of Mars’s Solana receiving address"></div><figcaption>Scan this address with your wallet.<br>Enter <strong>1 SOL</strong> to send.</figcaption></figure>
<div class="receipt-note"><strong>Then show me your payment.</strong><p>Show Mars the transaction and your profile while you’re together. He’ll verify the payment and confirm your lifetime membership and in-person badge.</p><a id="payment-receipt">Send payment details by email ↗</a></div>
<details class="payment-more"><summary>Payment details & another way to copy</summary><p id="payment-recipient-note"></p><p>This is a direct wallet transfer, not an NFT mint. Payment alone does not verify an in-person meeting. Extra privileges will be announced.</p><p class="order-note">Order <span id="payment-order"></span></p><label class="payment-link-label" for="payment-link">Solana Pay link</label><input id="payment-link" type="text" readonly spellcheck="false"><button class="btn ghost" type="button" id="payment-copy">Copy payment link</button></details>
</div>
</dialog>
<script src="/membership-config.js"></script>
<script src="/vendor/qrcode-2.0.4.js"></script>
<script src="/membership.js?v=mobile-membership-2"></script>
<script src="/embeds.js"></script>
<script>
const $ = (id) => document.getElementById(id);
// FNV-1a: small, fast, good enough to spread ranks evenly.
function hash(str) {
let h = 0x811c9dc5;
for (let i = 0; i < str.length; i++) { h ^= str.charCodeAt(i); h = Math.imul(h, 0x01000193); }
return h >>> 0;
}
// Kept in localStorage (never sent to any server). If storage is blocked, the order is
// random per page load instead.
let seed;
function visitorSeed() {
if (seed) return seed;
try { seed = localStorage.getItem("dr-seed"); } catch {}
if (!seed) {
seed = Math.random().toString(36).slice(2);
try { localStorage.setItem("dr-seed", seed); } catch {}
}
return seed;
}
function embedCard(p, i) {
const c = el("article", { class: "ecard", id: p.id });
if (p.hidden) {
const notice = el("div", { class: "notice", role: "status" });
notice.append(el("strong", {}, "Not publicly visible"), el("span", {}, "Waiting for approval"));
c.append(notice);
}
const head = el("div", { class: "head" });
const loc = el("div", { class: "loc" }, fullPlace(p));
loc.title = fullPlace(p);
head.append(loc, permalink(p));
const d = postedAt(p);
const when = [d && `Posted ${fmtDate(d)}`, p.relocation && "Relocation friendly", p.passports > 1 && `${p.passports}× passport`].filter(Boolean).join(" · ");
head.append(el("div", { class: "date" }, when ||" "));
c.append(head);
if (p.note) c.append(el("a", { class: "note", href: p.post_url, target: "_blank", rel: "noopener" }, `${p.note} →`));
c.append(embedFrame(p.post_url, { restricted: p.age_restricted, noEmbed: p.no_embed, eager: i < 6 }));
const more = personUrl(p);
if (more) c.append(el("a", { class: "more", href: more }, "Read more →"));
return c;
}
const LINK_ICON = '<svg viewBox="0 0 24 24" width="16" height="16" fill="none" stroke="currentColor" stroke-width="2.2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M10 13a5 5 0 0 0 7.07 0l3-3a5 5 0 0 0-7.07-7.07l-1.5 1.5"/><path d="M14 11a5 5 0 0 0-7.07 0l-3 3a5 5 0 0 0 7.07 7.07l1.5-1.5"/></svg>';
// Link icon in the tile's top-right corner: copies a link that opens the page with this person first.
function permalink(p) {
const a = el("a", { class: "permalink", href: `#${p.id}`, title: "Copy link to this profile", "aria-label": "Copy link to this profile" });
a.innerHTML = LINK_ICON;
a.addEventListener("click", async (e) => {
e.preventDefault();
history.replaceState(null, "", `#${p.id}`);
try { await navigator.clipboard.writeText(location.href); a.textContent = "Copied"; }
catch { a.textContent = "Link set"; }
a.classList.add("done");
setTimeout(() => { a.innerHTML = LINK_ICON; a.classList.remove("done"); }, 1600);
});
return a;
}
function card(p, i) {
if (source(p.post_url) && p.embed !== false) return embedCard(p, i);
const c = el("article", { class: "card" });
if (p.image) {
c.append(el("img", { src: p.image, alt: p.name || "Photo", loading: "lazy" }));
} else {
c.append(el("div", { class: "initial", "aria-hidden": "true" }, (p.name || "?").trim().charAt(0).toUpperCase()));
}
const top = el("div", { class: "top" });
if (p.example) top.append(el("span", { class: "tag ex" }, "Example"));
c.append(top);
const b = el("div", { class: "bottom" });
if (p.country) b.append(el("div", { class: "country" }, p.country));
b.append(el("div", { class: "loc" }, p.city || p.country || ""));
if (p.text) b.append(el("p", { class: "text" }, p.text));
const handle = p.instagram && p.instagram.replace(/^@/, "");
const href = p.post_url || (handle && `https://instagram.com/${handle}`);
if (href) {
b.append(el("a", { class: "link", href, target: "_blank", rel: "noopener" },
handle ? `@${handle} →` : "View post →"));
}
c.append(b);
return c;
}
function render(list) {
$("grid").replaceChildren(...list.map((p, i) => card(p, i)));
$("grid").classList.toggle("has-embeds", list.some((p) => source(p.post_url)));
$("empty").hidden = list.length > 0;
}
fetch("profiles.json", { cache: "no-cache" })
.then((r) => r.json())
.then((data) => {
// Random order per visitor, but stable across reloads: each profile's rank is a hash of
// (visitor seed + profile id). New profiles slot in without reshuffling everyone else.
// A shared link (#id) puts that person first; "pinned" profiles come next.
const rank = (p) => hash(`${visitorSeed()}:${p.id}`);
// #comments is a category: only posts whose comment sections are worth reading ("note").
const COMMENTS = "comments";
const order = (list) => {
const target = decodeURIComponent(location.hash.slice(1));
if (target === COMMENTS) return list.filter((p) => p.note && !p.hidden).sort((a, b) => rank(a) - rank(b));
const tier = (p) => (p.id === target ? 0 : p.pinned ? 1 : 2);
// "hidden" profiles stay out of the list, but a direct #link still shows them.
return list.filter((p) => !p.hidden || p.id === target)
.sort((a, b) => tier(a) - tier(b) || rank(a) - rank(b));
};
const commentCount = data.filter((p) => p.note && !p.hidden).length;
const filters = () => {
const onComments = location.hash === `#${COMMENTS}`;
const all = el("a", { href: "#" }, "Everyone");
const com = el("a", { href: `#${COMMENTS}` }, `Explore the comments (${commentCount})`);
(onComments ? com : all).setAttribute("aria-current", "true");
$("filters").replaceChildren(all, com);
$("filters").hidden = commentCount === 0;
};
filters();
render(order(data));
if (data.some((p) => p.id === decodeURIComponent(location.hash.slice(1)))) $("grid").firstElementChild?.scrollIntoView({ block: "start" });
addEventListener("hashchange", () => { filters(); render(order(data)); });
})
.catch(() => { $("empty").hidden = false; $("empty").textContent = "Could not load profiles."; });
</script>
</body>
</html>