1
Fork 0
mirror of https://github.com/glassflame/glassflame.github.io.git synced 2024-11-21 23:54:26 +00:00
glassflame/index.html

85 lines
1.8 KiB
HTML
Raw Normal View History

2023-10-18 23:58:51 +00:00
<!DOCTYPE html>
<html lang="">
<head>
<meta charset="utf-8" />
2023-10-18 23:11:03 +00:00
<title>WIP: Obsiview</title>
2023-10-19 10:41:35 +00:00
<meta name="viewport" content="width=device-width, initial-scale=1" />
2023-10-19 12:56:08 +00:00
<style>
@import "style/light.css";
@import "style/dark.css";
body {
2023-10-20 01:44:56 +00:00
margin: 0;
2023-10-19 12:56:08 +00:00
background-color: var(--color-background);
color: var(--color-foreground);
}
</style>
2023-10-18 23:58:51 +00:00
<script src="https://cdn.jsdelivr.net/npm/marked/marked.min.js"></script>
<script type="module" src="src/index.mjs"></script>
2023-10-20 01:44:56 +00:00
<template id="template-node-file">
<style>
2023-10-20 01:44:56 +00:00
.node {
position: absolute;
box-sizing: border-box;
}
.node-file {
outline-width: 2px;
2023-10-18 23:58:51 +00:00
border-radius: 8px;
padding: 12px;
2023-10-20 01:44:56 +00:00
overflow-x: clip;
overflow-y: scroll;
}
.node-empty {
outline-style: dashed;
}
.node-full {
outline-style: solid;
}
</style>
2023-10-20 01:44:56 +00:00
<article class="node node-file">
<h1>
2023-10-20 01:44:56 +00:00
<slot name="node-title">Node title</slot>
</h1>
2023-10-20 01:44:56 +00:00
<slot name="node-contents">Node contents</slot>
</article>
</template>
<template id="template-markdown">
<slot name="markdown-contents"></slot>
</template>
<template id="template-canvas">
<style>
.canvas {
}
</style>
<div class="canvas"></div>
</template>
2023-10-19 12:56:08 +00:00
<template id="template-wikilink">
<style>
.wikilink {
2023-10-20 01:44:56 +00:00
color: var(--color-accent);
text-decoration: underline 1px solid currentColor;
cursor: pointer;
2023-10-19 12:56:08 +00:00
}
</style>
2023-10-20 01:44:56 +00:00
<a class="wikilink"><slot name="wikilink-text">Wikilink text</slot></a>
2023-10-19 12:56:08 +00:00
</template>
<template id="template-hashtag">
<style>
.hashtag {
2023-10-20 01:44:56 +00:00
background-color: color-mix(in srgb, var(--color-accent) 20%, transparent);
color: var(--color-accent);
2023-10-19 12:56:08 +00:00
}
</style>
<span class="hashtag"><slot name="hashtag-text">#Hashtag</slot></span>
</template>
2023-10-20 01:44:56 +00:00
</head>
<body>
<x-canvas contents=""/>
</body>
</html>