Skip to content

Commit 6cf3b44

Browse files
committed
fix tos css + fix .well-known dir
1 parent 1db66b4 commit 6cf3b44

File tree

3 files changed

+62
-46
lines changed

3 files changed

+62
-46
lines changed

.nojekyll

Whitespace-only changes.

.well-known/README.md

Lines changed: 0 additions & 1 deletion
This file was deleted.
Lines changed: 62 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -1,45 +1,62 @@
1-
<!DOCTYPE html>
2-
<html lang="en">
3-
<head>
4-
<meta charset="UTF-8">
5-
<meta name="viewport" content="width=device-width, initial-scale=1.0">
6-
7-
<title>Terms of Service | is-a.dev</title>
8-
9-
<!-- Stylesheets -->
10-
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/github-markdown-css/5.8.1/github-markdown.min.css">
11-
12-
<!-- Scripts -->
13-
<script src="https://cdn.jsdelivr.net/npm/marked/marked.min.js"></script>
14-
</head>
15-
16-
<body>
17-
<div class="markdown-body" id="terms-of-service"></div>
18-
19-
<script>
20-
const markdownUrl = 'https://raw.githubusercontent.com/is-a-dev/register/refs/heads/main/TERMS_OF_SERVICE.md';
21-
22-
const container = document.getElementById('terms-of-service');
23-
24-
// Fetch the Markdown file
25-
fetch(markdownUrl)
26-
.then(response => {
27-
if (!response.ok) {
28-
throw new Error(`Error fetching the file: ${response.statusText}`);
29-
}
30-
return response.text();
31-
})
32-
.then(markdown => {
33-
// Convert Markdown to HTML using Marked.js
34-
const htmlContent = marked.parse(markdown);
35-
36-
// Insert the HTML into the container
37-
container.innerHTML = htmlContent;
38-
})
39-
.catch(error => {
40-
console.error('Error:', error);
41-
container.innerHTML = '<p>Failed to load Terms of Service.</p>';
42-
});
43-
</script>
44-
</body>
45-
</html>
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8">
5+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
6+
7+
<title>Terms of Service | is-a.dev</title>
8+
9+
<!-- Stylesheets -->
10+
<link rel="stylesheet"
11+
href="https://cdnjs.cloudflare.com/ajax/libs/github-markdown-css/5.8.1/github-markdown.min.css">
12+
13+
<!-- Scripts -->
14+
<script src="https://cdn.jsdelivr.net/npm/marked/marked.min.js"></script>
15+
</head>
16+
17+
<style>
18+
body {
19+
box-sizing: border-box;
20+
min-width: 200px;
21+
max-width: 980px;
22+
margin: 0 auto;
23+
padding: 45px;
24+
}
25+
26+
@media (prefers-color-scheme: dark) {
27+
body {
28+
background-color: #0d1117;
29+
}
30+
}
31+
</style>
32+
33+
<body>
34+
<div class="markdown-body" id="terms-of-service">Loading Terms of Service...</div>
35+
36+
<script>
37+
const markdownUrl = "https://raw.githubusercontent.com/is-a-dev/register/refs/heads/main/TERMS_OF_SERVICE.md";
38+
39+
const container = document.getElementById("terms-of-service");
40+
41+
// Fetch the Markdown file
42+
fetch(markdownUrl)
43+
.then(response => {
44+
if (!response.ok) {
45+
throw new Error(`Error fetching the file: ${response.statusText}`);
46+
}
47+
return response.text();
48+
})
49+
.then(markdown => {
50+
// Convert Markdown to HTML using Marked.js
51+
const htmlContent = marked.parse(markdown);
52+
53+
// Insert the HTML into the container
54+
container.innerHTML = htmlContent;
55+
})
56+
.catch(err => {
57+
console.error(err);
58+
container.innerHTML = "<p>Failed to load Terms of Service.</p>";
59+
});
60+
</script>
61+
</body>
62+
</html>

0 commit comments

Comments
 (0)