diff --git a/public/profile/index.html b/public/profile/index.html new file mode 100644 index 0000000..8de06f5 --- /dev/null +++ b/public/profile/index.html @@ -0,0 +1,599 @@ + + + + + + CSSS User Profile + + + + + + + + + + + + + + + + + +
+ + +
+
+

Metadata

+
+
+
+
User Info
+
+
+ + + + + + + + + + + + + + +
SFU computing id
Most recent login
First login
+
+
+
+
+ + + + diff --git a/public/profile/script.js b/public/profile/script.js new file mode 100644 index 0000000..01d6f21 --- /dev/null +++ b/public/profile/script.js @@ -0,0 +1,12 @@ +function toggleHidden(elementID, collapsibleID) { + let element = document.getElementById(elementID); + let collapsible = document.getElementById(collapsibleID); + + if (element.getAttribute("hidden") !== null) { + element.removeAttribute("hidden"); + collapsible.src = "/static/icons/minus.svg"; + } else { + element.setAttribute("hidden", ""); + collapsible.src = "/static/icons/chevron-down.svg"; + } +} \ No newline at end of file diff --git a/public/profile/style.css b/public/profile/style.css new file mode 100644 index 0000000..e27524c --- /dev/null +++ b/public/profile/style.css @@ -0,0 +1,158 @@ +body { + margin: 0; + + font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif; + + background-color: #24242e; +} + +a { + color: #2fbdda; + font-weight: bold; +} +a:hover { + color: #28c074; + font-weight: bold; +} + +h3 { + margin-top: 0; + margin-bottom: 0; +} + +label { + margin-top: 0.25rem; + margin-bottom: 0.25rem; +} + +input[type=text], +input[type=date], +select, +textarea { + padding: 0.5rem; + + border: #fff solid 3px; + border-radius: 0.25rem; + outline: none; + + font-family: monospace; + + background-color: #fff; +} + +input[type=text]:focus, +input[type=date]:focus, +select:focus, +textarea:focus { + border: #aaa solid 3px; +} + + +table { + border-collapse: collapse; +} +td { + padding: 0.5rem; +} + +#header { + display: flex; + flex-direction: column; + justify-content: center; + + margin: auto; + padding: 3rem 3rem 1rem 3rem; + max-width: calc(980px - 6rem); + + background-color: #fff; +} + +#content { + display: flex; + flex-direction: column; + + margin: auto; + padding: 1rem 3rem; + max-width: calc(980px - 6rem); + min-height: 600px; + + background-color: #fff; +} + +.widget { + display: flex; + flex-direction: column; + align-items: start; + + margin: auto; + margin-bottom: 1rem; + max-width: 600px; + padding: 1rem; + border-radius: 1rem; + + background-color: #eee; +} + +.clear-widget { + display: flex; + flex-direction: column; + align-items: start; + + margin: auto; + margin-bottom: 1rem; + max-width: 600px; + padding: 1rem; + border-radius: 1rem; +} + +.title { + font-family: Poppins, sans-serif; +} + +.officer-input-container { + display: flex; + flex-direction: row; +} +.officer-input { + display: flex; + flex-direction: column; + + width: 50%; +} +.officer-input .smol-text { + margin-left: auto; + font-weight: 400; +} + +.db-result { + text-align: left; + display: flex; + align-items: center; + + color: #777; + border-bottom: 1px solid #bbb; + + width: calc(50% - 2 * 1rem); + margin: 2rem 1rem 0.5rem 1rem; +} + +.unselectable { + -webkit-touch-callout: none; + -webkit-user-select: none; + -khtml-user-select: none; + -moz-user-select: none; + -ms-user-select: none; + user-select: none; +} + +.collapsible { + display: inline-block; +} + +.grey { + color: #aaa; +} + +.smol-text { + font-size: 0.6rem; +} \ No newline at end of file diff --git a/public/static/icons/chevron-down.svg b/public/static/icons/chevron-down.svg new file mode 100644 index 0000000..e99c51b --- /dev/null +++ b/public/static/icons/chevron-down.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/public/static/icons/minus.svg b/public/static/icons/minus.svg new file mode 100644 index 0000000..eb8b3f4 --- /dev/null +++ b/public/static/icons/minus.svg @@ -0,0 +1 @@ + \ No newline at end of file