Skip to content

Commit f1e06e4

Browse files
committed
Extract Recurse.com header entirely to personalizations
1 parent 4119cd8 commit f1e06e4

8 files changed

+3198
-3178
lines changed

html.js

-15
Original file line numberDiff line numberDiff line change
@@ -66,22 +66,7 @@ export const Page = ({ body, title, mixpanelToken, myRcUserId }) => html`
6666
`;
6767

6868
export const RootBody = ({ rooms, whoIsInTheHub, personalizations }) => {
69-
// NOTE: This chunk is copied from the source of https://www.recurse.com/calendar
70-
// Ostensibly that doesn't change very often, but you might want to check
71-
// when it was last changed somehow.
72-
// After copying, replaced all root relative links with absolute URLs
73-
// via `s/href=\"\//href="https:\/\/www.recurse.com\//g`
74-
// Also removed a few things in the menu specific to my user,
75-
// which makes this more than a simple copy and paste job.
76-
// TODO: Next time I update this, I want to instead put it in
77-
// a separate HTML file, then include it here verbatim and
78-
// then filter and edit the content in JavaScript instead of
79-
// manually. It will make future updates much simpler.
8069
let body = "";
81-
body += useSnippet("./html/font-awesome.snippet.html");
82-
// TODO Clean up - entire recurse-com header can be a self-contained personalization
83-
body += useSnippet("./html/recurse-com-other-css.snippet.html");
84-
body += useSnippet("./html/recurse-com-header.snippet.html");
8570
body += `<main hx-ext="ws" ws-connect="/websocket">`;
8671
body += html`<h1>RCVerse</h1>`;
8772
body += useSnippet("./html/about.snippet.html");

0 commit comments

Comments
 (0)