diff options
| author | LMBishop <13875753+LMBishop@users.noreply.github.com> | 2021-12-20 14:48:04 +0000 |
|---|---|---|
| committer | LMBishop <13875753+LMBishop@users.noreply.github.com> | 2021-12-20 14:48:04 +0000 |
| commit | 3f91a121b33151cd466de930d0e68bdf87f4d19e (patch) | |
| tree | 62e9555661340d85537d8441da8cb92384d21180 /static | |
| parent | 1a1f5a10fb60426dae868d2a73ed2cac46100f2b (diff) | |
Convert to typescript
Diffstat (limited to 'static')
| -rw-r--r-- | static/css/globalstyles.css | 100 | ||||
| -rw-r--r-- | static/scripts/purge.js | 15 | ||||
| -rw-r--r-- | static/scripts/rebuild.js | 14 |
3 files changed, 129 insertions, 0 deletions
diff --git a/static/css/globalstyles.css b/static/css/globalstyles.css new file mode 100644 index 0000000..774c6ca --- /dev/null +++ b/static/css/globalstyles.css @@ -0,0 +1,100 @@ +@import url('https://fonts.googleapis.com/css2?family=Cousine:ital,wght@0,400;0,700;1,400;1,700&display=swap'); + +.website-name { + font-size: 10px; + font-weight: 700; + line-height: 1.2; + color: #ddd; + text-shadow: 0px 1px 10px #9876aa; +} + +html, body { + border: 0; + margin: 0; + background-color: #111; + color: #ddd; + font-family: 'Cousine', monospace, sans-serif; + line-height: 1.3; +} + +h1, h2, h3, h4, h5, h6 { + color: #cc7832 +} + +.code-block { + background-color: #222; + border: solid 1px #333; + padding: 10px; +} + +#navbar { + background-color: #222; + width: 100%; + display: flex; + flex-direction: row; + justify-content: flex-start; + align-items: stretch; + gap: 10px; +} + +.navbar-element { + background-color: #222; + display: flex; + height: 30px; + text-align: center; + line-height: 30px; + padding: 10px; +} + +.navbar-element:hover { + background-color: #888; + transition: 0.2s; + cursor: pointer; +} + +.navbar-element > a { + color: #fff; + text-decoration: none; +} + +.navbar-element > .highlight { + color: #ffc66d; +} + +#main-container { + max-width: 1200px; + margin: 0 auto; +} + +#content-container { + box-shadow: 0px 0px 15px 10px rgba(152,118,170,0.05); +} + +#content { + padding: 20px; + max-width: 1200px; + background-color: #2b2b2b; + margin: 0 auto; +} + +a { + color: #9876aa; + text-decoration: underline; +} + +.highlight { + color: #ffc66d; +} + +.footer { + font-size: 10px; +} + +.redlink { + color: #ff4136; +} + +.box { + border: solid 1px #fff; + padding: 10px; +} diff --git a/static/scripts/purge.js b/static/scripts/purge.js new file mode 100644 index 0000000..5ee34f0 --- /dev/null +++ b/static/scripts/purge.js @@ -0,0 +1,15 @@ +$(() => { + $('#confirm').click(() => { + let page = $('#confirm').data('page'); + $.ajax({ + type: 'GET', + url: `/special/purge/${page}/confirm`, + success: () => { + $('#response').html('<div class=\'box\'>Successfully purged page.</div>'); + }, + error: () => { + $('#response').html('<div class=\'box\'>Could not purge page. Try again later.</div>'); + } + }); + }); +}); diff --git a/static/scripts/rebuild.js b/static/scripts/rebuild.js new file mode 100644 index 0000000..8fd0e2e --- /dev/null +++ b/static/scripts/rebuild.js @@ -0,0 +1,14 @@ +$(() => { + $('#confirm').click(() => { + $.ajax({ + type: 'GET', + url: `/special/rebuild/confirm`, + success: () => { + $('#response').html('<div class=\'box\'>Successfully rebuilt page directory.</div>'); + }, + error: () => { + $('#response').html('<div class=\'box\'>Could not rebuild page directory. Try again later.</div>'); + } + }); + }); +}); |
