Public
Back
Version 35
12/22/2023
/** @jsxImportSource https://esm.sh/preact */
import { date_me_docs_cache } from "https://esm.town/v/stevekrouse/date_me_docs_cache";
import { date_me_faq } from "https://esm.town/v/stevekrouse/date_me_faq";
import { html } from "https://esm.town/v/stevekrouse/html";
import { render } from "npm:preact-render-to-string";
let headers = [
"Name",
"Age",
"Gender",
"InterestedIn",
"Style",
"Location",
"LocationFlexibility",
"Community",
"Contact",
];
let linkClass = "text-sky-600 hover:text-sky-500";
function renderCell(header, row) {
let data = row[header];
if (header === "Name") {
return <a class={linkClass} href={row["Profile"]} target="_blank">{data}</a>;
} else if (Array.isArray(data)) {
return data.map(d => <span className="p-1 m-1 border rounded-md">{d}</span>);
} else {
return data;
}
}
export const date_me_directory = async (req: Request) => {
let page = (
<html>
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
stevekrouse-dateme.web.val.run
Updated: September 3, 2024