WIP
This commit is contained in:
98
index.html
98
index.html
@@ -7,8 +7,13 @@
|
||||
|
||||
<title>Dandelion</title>
|
||||
<script type="module" src="main.js"></script>
|
||||
<script src="marked.min.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';
|
||||
@@ -40,7 +45,7 @@
|
||||
}
|
||||
|
||||
hr {
|
||||
border-color: rgb(128, 128, 128);
|
||||
border-color: rgb(60, 60, 60);
|
||||
}
|
||||
|
||||
#textarea_post {
|
||||
@@ -52,15 +57,17 @@
|
||||
/* 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: 10px;
|
||||
/* Optional padding for the inside of the textarea */
|
||||
padding-left: 30px;
|
||||
padding-right: 30px;
|
||||
border: 1px solid rgb(132, 136, 138);
|
||||
/* Optional border for the textarea */
|
||||
resize: vertical;
|
||||
/* Allows the textarea to be resized vertically only */
|
||||
border-radius: 40px;
|
||||
}
|
||||
|
||||
|
||||
.header {
|
||||
font-size: 18px;
|
||||
}
|
||||
|
||||
.flex-container {
|
||||
display: flex;
|
||||
@@ -72,14 +79,14 @@
|
||||
}
|
||||
|
||||
.content {
|
||||
max-width: 800px;
|
||||
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 10px rgb(60, 60, 60);
|
||||
box-shadow: 0 0 5px rgb(60, 60, 60);
|
||||
text-align: left;
|
||||
overflow-x: hidden;
|
||||
/* Hide horizontal overflow inside the flex container */
|
||||
@@ -94,25 +101,64 @@
|
||||
}
|
||||
|
||||
.postImage {
|
||||
width:100%;
|
||||
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);
|
||||
}
|
||||
|
||||
#log {
|
||||
margin-bottom: 20px;
|
||||
height:150px;
|
||||
.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>
|
||||
|
||||
@@ -124,15 +170,29 @@
|
||||
|
||||
<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="log"></div>
|
||||
<input type="button" value="font1" id="button_font1" />
|
||||
<input type="button" value="font2" id="button_font2" />
|
||||
|
||||
<textarea cols="60" rows="8" id="textarea_post"></textarea>
|
||||
<div class="button">
|
||||
<input type="button" value="post" id="button_post" />
|
||||
|
||||
<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>
|
||||
|
||||
Reference in New Issue
Block a user