aboutsummaryrefslogtreecommitdiff
path: root/server/src/frontend/style
diff options
context:
space:
mode:
Diffstat (limited to 'server/src/frontend/style')
-rw-r--r--server/src/frontend/style/cantarell.woff2bin93888 -> 0 bytes
-rw-r--r--server/src/frontend/style/layout.css45
-rw-r--r--server/src/frontend/style/mod.rs25
3 files changed, 0 insertions, 70 deletions
diff --git a/server/src/frontend/style/cantarell.woff2 b/server/src/frontend/style/cantarell.woff2
deleted file mode 100644
index 76fd894..0000000
--- a/server/src/frontend/style/cantarell.woff2
+++ /dev/null
Binary files differ
diff --git a/server/src/frontend/style/layout.css b/server/src/frontend/style/layout.css
deleted file mode 100644
index 0612a7e..0000000
--- a/server/src/frontend/style/layout.css
+++ /dev/null
@@ -1,45 +0,0 @@
-@font-face {
- font-family: 'Cantarell';
- src: url(/assets/cantarell.woff2) format('woff2');
-}
-
-* {
- color: white;
- font-family: "Cantarell", sans-serif;
- font-weight: 300;
- margin: 0px;
- padding: 0px;
-}
-
-body {
- background-color: #1a1a1a;
- width: 100vw;
-}
-
-nav {
- position: absolute;
- top: 0px;
- left: 0px;
- padding: 1em;
- width: calc(100vw - 2em);
- height: 2em;
- background-color: #41414144;
-}
-
-nav h1 {
- margin: 0px;
- font-size: 1.5em;
-}
-
-#main {
- margin-top: 5em;
- padding: 1em;
- padding-left: 3em;
- padding-right: 3em;
-}
-
-.error {
- padding: 1em;
- color: rgb(255, 117, 117);
- font-family: monospace;
-} \ No newline at end of file
diff --git a/server/src/frontend/style/mod.rs b/server/src/frontend/style/mod.rs
deleted file mode 100644
index ca54aa7..0000000
--- a/server/src/frontend/style/mod.rs
+++ /dev/null
@@ -1,25 +0,0 @@
-use std::{
- fs::{read_to_string, File},
- io::Read,
-};
-
-pub fn css_bundle() -> String {
- if cfg!(debug_assertions) {
- read_to_string("server/src/frontend/style/layout.css").unwrap()
- } else {
- include_str!("layout.css").to_string()
- }
-}
-
-pub fn font_bundle() -> Vec<u8> {
- if cfg!(debug_assertions) {
- let mut woff = Vec::new();
- File::open("server/src/frontend/style/cantarell.woff2")
- .unwrap()
- .read_to_end(&mut woff)
- .unwrap();
- woff
- } else {
- include_bytes!("cantarell.woff2").to_vec()
- }
-}