Skip to content

Commit

Permalink
feat etc: create index.html
Browse files Browse the repository at this point in the history
  • Loading branch information
prplwtf authored Feb 19, 2024
1 parent e9161ef commit bdb98e6
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions etc/policies/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
<html>
<head>
<script src="/modules/marked/marked.min.js"></script>
<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=Inter:wght@100..900&display=swap" rel="stylesheet">
</head>
<body>
<div class="markdown-container"></div>
</body>
</html>
<style>
* {
font-family: "Inter", sans-serif;
font-optical-sizing: auto;
font-weight: 400;
font-style: normal;
font-variation-settings:
"slnt" 0;
}

.markdown-container {
position: absolute;
left: 50%;
top: 10%;
height: 90%;
overflow-y: scroll;
max-width: 80%;
width: 400px;
height: auto;
-webkit-transform: translate(-50%);
transform: translate(-50%);
}
</style>
<script>
const response = await fetch("/etc/policies.md");
document.querySelector('.markdown-container').innerHTML = marked.parse(response);
</script>

0 comments on commit bdb98e6

Please sign in to comment.