diff --git a/__pycache__/dashboard.cpython-310.pyc b/__pycache__/dashboard.cpython-310.pyc deleted file mode 100644 index d3ac58c..0000000 Binary files a/__pycache__/dashboard.cpython-310.pyc and /dev/null differ diff --git a/dashboard_static/index.html b/dashboard_static/index.html index 4355751..853a2e7 100644 --- a/dashboard_static/index.html +++ b/dashboard_static/index.html @@ -95,7 +95,7 @@
- +
Sort By arrow_drop_down
@@ -107,7 +107,7 @@
- + arrow_downward
diff --git a/dashboard_static/js/events.js b/dashboard_static/js/events.js index 7e0b801..2627449 100644 --- a/dashboard_static/js/events.js +++ b/dashboard_static/js/events.js @@ -51,9 +51,28 @@ $(window).on("test", function(e, filter) { let root = document.querySelector(":root") $(".logo").on("click", function() { - if (root.style.getPropertyValue("--main-bg") === 'ghostwhite') { + if (root.style.getPropertyValue("--main-bg") === 'snow') { + console.log("IM here") + root.style.setProperty('--main-medium-dark', '#1E1E1E'); root.style.setProperty('--main-bg', '#292929'); + root.style.setProperty('--main-light', ' #ffffff' ); + root.style.setProperty('--main-dark', '#ffffff'); + root.style.setProperty('--tweet-color', '#000000') + root.style.setProperty('--column-color', '#1E1E1E') } else { - root.style.setProperty('--main-bg', 'ghostwhite'); + root.style.setProperty('--main-medium-dark', '#1D9BF0'); + root.style.setProperty('--main-bg', 'snow'); + root.style.setProperty('--main-light', '#000000'); + root.style.setProperty('--main-dark', ' #000000'); + root.style.setProperty('--tweet-color', 'whitesmoke'); + root.style.setProperty('--column-color', 'rgba(112, 128, 144, 0.388'); + } +}) + +$(".order-btn").on("click", function() { + if($(this).html() == "arrow_downward") { // Descending to ascending + $(this).html("arrow_upward") + } else { // Ascending to descending + $(this).html("arrow_downward") } }) \ No newline at end of file diff --git a/dashboard_static/style/style.css b/dashboard_static/style/style.css index 7632c17..9b27667 100644 --- a/dashboard_static/style/style.css +++ b/dashboard_static/style/style.css @@ -3,6 +3,8 @@ --main-light: #ffffff; --main-medium-dark: #1E1E1E; --main-dark: #000000; + --tweet-color: #000000; + --column-color: #1E1E1E; --secondary: #1D9BF0; } @@ -44,6 +46,7 @@ body { padding: 16px; background-color: var(--main-medium-dark); border-radius: 16px; + cursor: pointer; } .logo img { @@ -90,9 +93,10 @@ body { .tweet { display: flex; - background-color: var(--main-dark); + background-color: var(--tweet-color); border-radius: 16px; padding: 16px; + margin-bottom: 8px; } .tweet-profilepicture { @@ -189,12 +193,8 @@ body { grid-row: 1/ -1; } -.leftcol { - background-color: red; -} - -.centercol { - background-color: green; +.leftcol, .centercol, .rightcol, .searchcontainer, .popchart { + background-color: var(--column-color); } .rightcol { @@ -203,16 +203,13 @@ body { } .searchcontainer { - background-color: blue; padding: 8px; box-sizing: border-box; display: flex; flex-wrap: wrap; + margin-bottom: 32px; } -.popchart { - background-color: rgba(255, 0, 255, 0.344); -} .colheader { display: block; @@ -238,13 +235,19 @@ body { } .button { - color: var(--main-dark); + color: var(--main-bg); cursor: pointer; background-color: var(--main-light); - border-radius: 30px; + border-radius: 16px; border: none; } +.material-symbols-outlined.order-btn { + line-height: 52px; + font-weight: 600; + user-select: none; +} + .sort-btn { user-select: none; position: relative; @@ -255,7 +258,7 @@ body { } .sort-dropdown-list { - position: absolute; + /* position: absolute; */ width: 100%; list-style-type: none; padding: 0; diff --git a/eca/__pycache__/arff.cpython-310.pyc b/eca/__pycache__/arff.cpython-310.pyc deleted file mode 100644 index 74c1a36..0000000 Binary files a/eca/__pycache__/arff.cpython-310.pyc and /dev/null differ diff --git a/eca/__pycache__/generators.cpython-310.pyc b/eca/__pycache__/generators.cpython-310.pyc deleted file mode 100644 index ec48a87..0000000 Binary files a/eca/__pycache__/generators.cpython-310.pyc and /dev/null differ