201 lines
5.0 KiB
HTML
201 lines
5.0 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
|
|
<head>
|
|
<meta charset="UTF-8" />
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no, maximum-scale=1">
|
|
|
|
<title>Dandelion</title>
|
|
<script type="module" src="main.js"></script>
|
|
<script src="lib/marked.min.js"></script>
|
|
<script src="lib/qrcode.min.js"></script>
|
|
<!-- <script src="lib/lottie.min.js"></script> -->
|
|
<!-- <script src="https://unpkg.com/@dotlottie/player-component@latest/dist/dotlottie-player.mjs" type="module"></script> -->
|
|
|
|
<!-- <script src="/lib/webtorrent/webtorrent_1_8_0.min.js"></script> -->
|
|
<link rel="manifest" href="/app.webmanifest">
|
|
<style>
|
|
@font-face {
|
|
font-family: 'Virgil';
|
|
/* Define the name you want to reference your font with */
|
|
src: url('./virgil.woff2') format('woff2');
|
|
/* URL to the font file and format */
|
|
font-weight: normal;
|
|
/* Define the weight of the font */
|
|
font-style: normal;
|
|
/* Define the style of the font */
|
|
}
|
|
|
|
@font-face {
|
|
font-family: 'Bookerly';
|
|
/* Define the name you want to reference your font with */
|
|
src: url('./bookerly.woff2') format('woff2');
|
|
/* URL to the font file and format */
|
|
font-weight: normal;
|
|
/* Define the weight of the font */
|
|
font-style: normal;
|
|
/* Define the style of the font */
|
|
}
|
|
|
|
body {
|
|
font-family: Bookerly, sans-serif;
|
|
color: rgb(202, 208, 211);
|
|
background-color: black;
|
|
/* Use the font with a fallback */
|
|
}
|
|
|
|
hr {
|
|
border-color: rgb(60, 60, 60);
|
|
}
|
|
|
|
#textarea_post {
|
|
font-size: medium;
|
|
font-family: Bookerly;
|
|
background-color: rgb(0, 0, 0);
|
|
color: rgb(202, 208, 211);
|
|
width: 100%;
|
|
/* Make the textarea take up 100% of the body's width */
|
|
box-sizing: border-box;
|
|
/* Include padding and border in the element's total width and height */
|
|
padding-left: 30px;
|
|
padding-right: 30px;
|
|
border: 1px solid rgb(132, 136, 138);
|
|
resize: vertical;
|
|
/* Allows the textarea to be resized vertically only */
|
|
border-radius: 40px;
|
|
}
|
|
|
|
.header {
|
|
font-size: 18px;
|
|
}
|
|
|
|
.flex-container {
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: flex-start;
|
|
min-height: 100vh;
|
|
padding: 0px;
|
|
/* Add some padding around the flex container */
|
|
}
|
|
|
|
.content {
|
|
max-width: 600px;
|
|
/* Your preferred max width for the content */
|
|
flex: 1;
|
|
/* Shorthand for flex-grow, flex-shrink and flex-basis */
|
|
min-width: 300px;
|
|
/* Minimum width the content can shrink to */
|
|
padding: 20px;
|
|
box-shadow: 0 0 5px rgb(60, 60, 60);
|
|
text-align: left;
|
|
overflow-x: hidden;
|
|
/* Hide horizontal overflow inside the flex container */
|
|
line-height: 1.3;
|
|
}
|
|
|
|
.embed {
|
|
max-width: 800px;
|
|
border-color: red;
|
|
border: 1px, solid;
|
|
padding: 20px;
|
|
}
|
|
|
|
.postImage {
|
|
width: 100%;
|
|
}
|
|
|
|
#log {
|
|
font-family: monospace;
|
|
text-wrap: nowrap;
|
|
font-size: 10px;
|
|
margin-bottom: 20px;
|
|
height: 150px;
|
|
width: 50%;
|
|
}
|
|
|
|
.button {
|
|
text-align: right;
|
|
}
|
|
|
|
#buttons {
|
|
margin-left: 40px;
|
|
}
|
|
|
|
#button_post {
|
|
margin-right:40px;
|
|
}
|
|
|
|
a {
|
|
color: rgb(29, 155, 240);
|
|
}
|
|
|
|
.logo {
|
|
width: 32px;
|
|
height: 32px;
|
|
image-rendering: pixelated;
|
|
}
|
|
|
|
#torrent-content {
|
|
border:solid 1px;
|
|
width:800px;
|
|
}
|
|
|
|
.img-button {
|
|
cursor: pointer;
|
|
}
|
|
|
|
button {
|
|
background-color: rgb(0, 0, 0);
|
|
border-radius: 10px;
|
|
padding-left:10px;
|
|
padding-right:10px;
|
|
padding-top:5px;
|
|
padding-bottom:5px;
|
|
margin-left:5px;
|
|
color:rgb(255,255,255);
|
|
/* border:solid 1px white; */
|
|
border: 1px solid rgb(132, 136, 138);
|
|
color: rgb(202, 208, 211);
|
|
cursor: pointer;
|
|
|
|
|
|
}
|
|
</style>
|
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
|
|
|
|
<div class="flex-container">
|
|
<div class="content">
|
|
<div class="img-button" id="ddln-logo-button"><img class="logo" src="favicon.ico"></div>
|
|
|
|
<div id="status"></div>
|
|
|
|
<div id="info" style="display:none">
|
|
<div id="log" ></div>
|
|
<div id="qrcode"></div>
|
|
<!-- <dotlottie-player src="https://lottie.host/272b60dd-462d-42a3-8ed6-fec4143633d6/X4FxBascRI.json" background="transparent" speed="1" style="width: 300px; height: 300px" direction="1" playMode="normal" loop controls autoplay></dotlottie-player> -->
|
|
</div>
|
|
<!-- <div id="peer_display"><canvas></canvas></div> -->
|
|
<div id="buttons">
|
|
<button id="button_font1" >font1</button>
|
|
<button id="button_font2" >font2 </button>
|
|
<button id="import_tweets" >import</button>
|
|
<button id="clear_posts" >clear </button>
|
|
<button id="update_app" >check for updates</button>
|
|
</div>
|
|
|
|
<textarea cols="60" rows="6" id="textarea_post"></textarea>
|
|
<div class="button">
|
|
<button id="button_post" >post</button>
|
|
</div>
|
|
<!-- <div id="torrent-content"></div> -->
|
|
<div id="content"></div>
|
|
</div>
|
|
</div>
|
|
</body>
|
|
|
|
</html> |