peers syncing for a single user

This commit is contained in:
bobbydigitales
2024-09-20 20:54:54 -07:00
parent 88f5cb677b
commit 998840ec2c
17 changed files with 1099 additions and 733 deletions

View File

@@ -14,154 +14,7 @@
<!-- <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>
<link rel="stylesheet" href="/main.css">
</head>
<body>
@@ -174,15 +27,23 @@
<div id="status"></div>
<div id="info" style="display:none">
<div id="info" style="display:block">
<div id="profile">
<span class="form_label">username:</span><span class="form_field" id="username" contenteditable="true">unnamed</span>
</div>
<div id="following">
<div>fiona</div>
<div>fiona</div>
</div>
<div id="log" ></div>
<div id="connectURL"></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="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>