summaryrefslogtreecommitdiff
path: root/desk/web/assets
diff options
context:
space:
mode:
authorpolwex <polwex@sortug.com>2025-08-28 12:59:01 +0700
committerpolwex <polwex@sortug.com>2025-08-28 12:59:01 +0700
commit7c0681a06e0358887d2f64001dc43125554766c9 (patch)
treecd19f060a5f4147d6ee6928eecfe1abf03bdbb8e /desk/web/assets
init
Diffstat (limited to 'desk/web/assets')
-rw-r--r--desk/web/assets/apple-touch-icon.pngbin0 -> 18464 bytes
-rw-r--r--desk/web/assets/favicon-16x16.pngbin0 -> 863 bytes
-rw-r--r--desk/web/assets/favicon-32x32.pngbin0 -> 2066 bytes
-rw-r--r--desk/web/assets/favicon.icobin0 -> 15406 bytes
-rw-r--r--desk/web/assets/script.js0
-rw-r--r--desk/web/assets/site.webmanifest1
-rw-r--r--desk/web/assets/spinner.svg1
-rw-r--r--desk/web/assets/style.css415
8 files changed, 417 insertions, 0 deletions
diff --git a/desk/web/assets/apple-touch-icon.png b/desk/web/assets/apple-touch-icon.png
new file mode 100644
index 0000000..f77c873
--- /dev/null
+++ b/desk/web/assets/apple-touch-icon.png
Binary files differ
diff --git a/desk/web/assets/favicon-16x16.png b/desk/web/assets/favicon-16x16.png
new file mode 100644
index 0000000..6ab2451
--- /dev/null
+++ b/desk/web/assets/favicon-16x16.png
Binary files differ
diff --git a/desk/web/assets/favicon-32x32.png b/desk/web/assets/favicon-32x32.png
new file mode 100644
index 0000000..b81291b
--- /dev/null
+++ b/desk/web/assets/favicon-32x32.png
Binary files differ
diff --git a/desk/web/assets/favicon.ico b/desk/web/assets/favicon.ico
new file mode 100644
index 0000000..0369d8a
--- /dev/null
+++ b/desk/web/assets/favicon.ico
Binary files differ
diff --git a/desk/web/assets/script.js b/desk/web/assets/script.js
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/desk/web/assets/script.js
diff --git a/desk/web/assets/site.webmanifest b/desk/web/assets/site.webmanifest
new file mode 100644
index 0000000..45dc8a2
--- /dev/null
+++ b/desk/web/assets/site.webmanifest
@@ -0,0 +1 @@
+{"name":"","short_name":"","icons":[{"src":"/android-chrome-192x192.png","sizes":"192x192","type":"image/png"},{"src":"/android-chrome-512x512.png","sizes":"512x512","type":"image/png"}],"theme_color":"#ffffff","background_color":"#ffffff","display":"standalone"} \ No newline at end of file
diff --git a/desk/web/assets/spinner.svg b/desk/web/assets/spinner.svg
new file mode 100644
index 0000000..a6763ca
--- /dev/null
+++ b/desk/web/assets/spinner.svg
@@ -0,0 +1 @@
+<svg width="24" height="24" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><style>.spinner_0XTQ{transform-origin:center;animation:spinner_y6GP .75s linear infinite}@keyframes spinner_y6GP{100%{transform:rotate(360deg)}}</style><path class="spinner_0XTQ" d="M12,23a9.63,9.63,0,0,1-8-9.5,9.51,9.51,0,0,1,6.79-9.1A1.66,1.66,0,0,0,12,2.81h0a1.67,1.67,0,0,0-1.94-1.64A11,11,0,0,0,12,23Z"/></svg> \ No newline at end of file
diff --git a/desk/web/assets/style.css b/desk/web/assets/style.css
new file mode 100644
index 0000000..9b8f0e5
--- /dev/null
+++ b/desk/web/assets/style.css
@@ -0,0 +1,415 @@
+@font-face {
+ font-family: Urbit Sans;
+ src: url(https://media.urbit.org/fonts/UrbitSans/UrbitSansVFWeb-Regular.woff2) format("woff2");
+ font-weight: 100 700;
+ font-style: normal
+}
+
+@font-face {
+ font-family: "Urbit Serif Italic";
+ src: url(https://media.urbit.org/fonts/UrbitSerifItalic/UrbitSerifItalic-UltraThin.otf);
+ font-weight: 100;
+ font-style: normal
+}
+
+@font-face {
+ font-family: "Urbit Serif Italic";
+ src: url(https://media.urbit.org/fonts/UrbitSerifItalic/UrbitSerifItalic-Thin.otf);
+ font-weight: 200;
+ font-style: normal
+}
+
+@font-face {
+ font-family: "Urbit Serif Italic";
+ src: url(https://media.urbit.org/fonts/UrbitSerifItalic/UrbitSerifItalic-Light.otf);
+ font-weight: 300;
+ font-style: normal
+}
+
+@font-face {
+ font-family: "Urbit Serif Italic";
+ src: url(https://media.urbit.org/fonts/UrbitSerifItalic/UrbitSerifItalic-Regular.otf);
+ font-weight: 400;
+ font-style: normal
+}
+
+@font-face {
+ font-family: "Urbit Serif Italic";
+ src: url(https://media.urbit.org/fonts/UrbitSerifItalic/UrbitSerifItalic-Medium.otf);
+ font-weight: 500;
+ font-style: normal
+}
+
+@font-face {
+ font-family: "Urbit Serif Italic";
+ src: url(https://media.urbit.org/fonts/UrbitSerifItalic/UrbitSerifItalic-SemiBold.otf);
+ font-weight: 600;
+ font-style: normal
+}
+
+@font-face {
+ font-family: "Urbit Serif Italic";
+ src: url(https://media.urbit.org/fonts/UrbitSerifItalic/UrbitSerifItalic-Bold.otf);
+ font-weight: 700;
+ font-style: normal
+}
+
+body,
+html {
+ font-family: Urbit Sans
+}
+
+/* urbit intranav color scheme */
+.wit {
+ --muted: #14140F;
+ --primary: #F8FAF8;
+}
+/* fdn intranav color scheme */
+.mos {
+ --muted: #5A5A55;
+ --primary: #C3CDC3;
+}
+/* roadmap intranav color scheme */
+.mos-light {
+ --muted: #A3ABA3;
+ --primary: #54544F;
+}
+/* docs intranav color scheme */
+.blu {
+ --muted: #5A5A6E;
+ --primary: #A0DCE6;
+}
+/* network explorer intranav color scheme */
+.gry {
+ --muted: #141A14;
+ --primary: #C8C8C8
+}
+
+/* utility */
+.f {
+ display: flex;
+}
+
+.fs {
+ display: flex;
+ justify-content: space-between;
+}
+
+.g1 {
+ gap: 0.5rem;
+}
+
+.g2 {
+ gap: 1rem;
+}
+.cp{
+ cursor: pointer;
+}
+.tc{
+ text-align:center;
+}
+
+/* base */
+
+:root {
+ --black: #141A14;
+ --white: #FFFFFF;
+ --primary: #FFF450;
+ --muted: #B9B13D;
+}
+
+
+body {
+ background-color: var(--primary);
+ color: var(--black);
+ margin: 0;
+ padding: 0;
+ min-height: 100vh;
+ display: flex;
+ flex-direction: column;
+}
+
+a {
+ color: inherit;
+ text-decoration: none;
+}
+
+/* nav */
+#topnav {
+ height: 63px;
+
+ & #login-div {
+ display: flex;
+ align-items: center;
+ text-decoration: underline;
+ margin-right: 2rem;
+ font-size: 18px;
+ line-height: 24.12px;
+ /* font-weight: 600; */
+ }
+}
+
+#nav-main {
+ background-color: var(--black);
+ color: var(--primary);
+ cursor: pointer;
+ font-size: 18px;
+ line-height: 24.12px;
+ /* font-weight: 600; */
+ text-align: center;
+ display: flex;
+ align-items: center;
+ gap: 1rem;
+ padding: 0 1rem;
+}
+
+#nav-links {
+ display: flex;
+ align-items: center;
+ font-size: 18px;
+ line-height: 24.12px;
+ /* font-weight: 600; */
+ text-align: center;
+ gap: 1rem;
+
+ & a {
+ opacity: 0.5;
+ }
+
+ & .active {
+ opacity: 1
+ }
+}
+
+
+/* index */
+main {
+ padding: 1rem 2rem;
+ flex-grow: 1;
+ overflow: auto;
+}
+
+#index-top {
+ margin-bottom: 1.5rem;
+ font-size: 1.4rem;
+ font-weight: 600;
+
+ div {
+ opacity: 0.5;
+ cursor: pointer;
+ }
+
+ & .active {
+ opacity: 1;
+ }
+}
+
+.thread-preview {
+ padding: 0.5rem 0;
+
+ border-bottom: 2px solid black;
+
+ &:first-child {
+ border-top: 2px solid black;
+ }
+
+ & .num {
+ font-size: 1.5rem;
+ }
+
+ & a {
+ text-decoration: none;
+ }
+ & .preview{
+ max-width: 100%;
+ }
+ & .title {
+ font-weight: 600;
+ font-size: 25px;
+ line-height: 33px;
+ }
+ & .title-text{
+ white-space: nowrap;
+ overflow: hidden;
+ text-overflow: ellipsis;
+ }
+
+ & .out-link {
+ font-weight: 600;
+ font-size: 20px;
+
+ & .arrow {
+ margin-left: 0.3rem;
+ font-size: 1.3rem;
+ }
+ }
+
+ & .meta {
+ opacity: 0.5;
+ & .upvote-button, & .downvote-button{
+
+ }
+ }
+
+}
+
+.moar {
+ text-decoration: underline;
+ font-size: 20px;
+ margin-top: 1rem;
+ display: block;
+}
+
+.white{
+ background-color: var(--white);
+}
+/* thread page */
+#thread-main{
+ background-color: var(--white);
+ & h1{
+ margin-top: 0.3rem;
+ }
+ & ul{
+ display: block;
+ list-style-image: none;
+ list-style-position: outside;
+ list-style-type: none;
+ padding: 0;
+ & li{
+ margin-bottom: 1rem;
+ }
+ }
+ & .nested{
+ padding-left: 2rem !important;
+ }
+ & .comment{
+ & img{
+ max-width: 60%;
+ display: block;
+ margin: 1rem auto;
+ }
+ & .comment-proper{
+ margin-top: 0.5rem;
+ }
+ & .content{
+ font-weight: 600;
+ margin: 1rem 0;
+ & p{
+ margin: 0.2rem 0;
+ }
+ }
+ }
+}
+.red{
+ color: red;
+}
+.green {
+ color: green;
+}
+.tally{
+ font-weight: 600;
+}
+.uln{
+ text-decoration: underline;
+ cursor: pointer;
+}
+.return-link{
+ display: block;
+ margin-bottom: 2rem;
+}
+#og{
+ border: 1px solid var(--black);
+ border-radius: 0.5rem;
+ & img{
+ width: 100%;
+ max-height: 500px;
+ }
+}
+#link-url{
+ padding: 0.5rem 1rem;
+}
+#thread-composer{
+ & input{
+ display: block;
+ height: 2rem;
+ width: 100%;
+ margin: 1rem 0;
+ }
+}
+#comment-composer{
+ margin-top: 3rem;
+ margin-bottom: 1rem;
+
+ padding: 0.5rem 1rem;
+ border: 1px solid var(--black);
+ border-radius: 0.5rem;
+}
+#composer-proper{
+ margin: 1rem;
+ padding: 1rem;
+ & textarea{
+ width: 100%;
+ height: 200px;
+ margin-bottom: 0.5rem;
+ resize: none;
+ }
+}
+#login-page{
+ & form{
+ display: block;
+ width: 50%;
+ margin: 2rem auto;
+
+ & input{
+ display: block;
+ width: 30ch;
+ padding: 0.4rem;
+ height: 2rem;
+ margin: 2rem auto;
+ }
+ & button{
+ display: block;
+ margin: auto;
+ font-size: 1.2rem;
+ }
+ }
+}
+#sigil-img{
+ margin: 1rem auto !important;
+}
+#user-page{
+ & *{
+ margin: auto;
+ }
+ & #main{
+ width: 50%;
+ }
+}
+#logout{
+ display: block;
+ margin: 2rem auto;
+ font-size: 1.2rem;
+}
+button, .button{
+ border: 1px solid var(--black);
+ background: none;
+ padding: 0.5rem;
+ width: max-content;
+}
+
+.footer {
+ /* height: 63px; */
+ /* display: flex; */
+ /* position: fixed; */
+ left: 0;
+ bottom: 0;
+ /* width: 100%; */
+ background-color: none;
+ padding: 0.5rem;
+ color: #141A14;
+ text-align: right;
+ margin-right: 2rem;
+ font-size: 20px;
+ line-height: 23px;
+ font-weight: 600;
+}