tangled
alpha
login
or
join now
jordanreger.com
/
htmlsky
0
fork
atom
An HTML-only Bluesky frontend
0
fork
atom
overview
issues
pulls
pipelines
Added page and profile class files
ImOutOfIdeas
2 years ago
50570485
6ffec739
+30
2 changed files
expand all
collapse all
unified
split
page.ts
profile.ts
+4
page.ts
···
1
1
+
export default class Page {
2
2
+
3
3
+
}
4
4
+
+26
profile.ts
···
1
1
+
import Page from "./page.ts";
2
2
+
3
3
+
class Profile extends Page {
4
4
+
title: string;
5
5
+
6
6
+
constructor(title: string) {
7
7
+
super();
8
8
+
this.title = title;
9
9
+
}
10
10
+
11
11
+
generateHTML() {
12
12
+
return `
13
13
+
<!DOCTYPE html>
14
14
+
<html>
15
15
+
<head>
16
16
+
<meta charset="utf-8">
17
17
+
<title>${this.title}</title>
18
18
+
</head>
19
19
+
<body>
20
20
+
<h1>Hello, World!</h1>
21
21
+
<p>This is a simple HTML page generated by Node.js server-side.</p>
22
22
+
</body>
23
23
+
</html>
24
24
+
`;
25
25
+
}
26
26
+
}