1
Fork 0
mirror of https://github.com/glassflame/glassflame.github.io.git synced 2024-11-21 15:44:27 +00:00
glassflame/index.html

85 lines
No EOL
1.8 KiB
HTML

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