diff options
author | Yigit Sever | 2021-04-17 20:28:25 +0300 |
---|---|---|
committer | Yigit Sever | 2021-04-17 20:28:25 +0300 |
commit | 3c3a27e6e0fc76b414ff28d774584b1764219836 (patch) | |
tree | c0aeee4295d57f57c244aaea4035ba143c457bdd /site | |
parent | 94ad41555fd7c6741337ccf2f11e0cdeaf4b74c8 (diff) | |
download | gradecoin-3c3a27e6e0fc76b414ff28d774584b1764219836.tar.gz gradecoin-3c3a27e6e0fc76b414ff28d774584b1764219836.tar.bz2 gradecoin-3c3a27e6e0fc76b414ff28d774584b1764219836.zip |
Add news ticker
Diffstat (limited to 'site')
-rw-r--r-- | site/public/index.html | 18 | ||||
-rw-r--r-- | site/public/site.css | 44 | ||||
-rw-r--r-- | site/static/site.css | 44 | ||||
-rw-r--r-- | site/templates/index.html | 17 |
4 files changed, 120 insertions, 3 deletions
diff --git a/site/public/index.html b/site/public/index.html index bce3933..26d312b 100644 --- a/site/public/index.html +++ b/site/public/index.html | |||
@@ -67,6 +67,7 @@ | |||
67 | 67 | ||
68 | <div class="hero"> | 68 | <div class="hero"> |
69 | 69 | ||
70 | |||
70 | <section class="text-center"> | 71 | <section class="text-center"> |
71 | <h1 class="heading-text animate__animated animate__jackInTheBox" style="font-size: 50px"> | 72 | <h1 class="heading-text animate__animated animate__jackInTheBox" style="font-size: 50px"> |
72 | Mine your own grades | 73 | Mine your own grades |
@@ -83,6 +84,7 @@ | |||
83 | onclick="document.getElementById('features').scrollIntoView({behavior: 'smooth'})"> | 84 | onclick="document.getElementById('features').scrollIntoView({behavior: 'smooth'})"> |
84 | ⇩ Learn How ⇩ | 85 | ⇩ Learn How ⇩ |
85 | </div> | 86 | </div> |
87 | |||
86 | <style> | 88 | <style> |
87 | 89 | ||
88 | .hero section { | 90 | .hero section { |
@@ -197,8 +199,18 @@ footer { | |||
197 | 199 | ||
198 | <div class="content text"> | 200 | <div class="content text"> |
199 | 201 | ||
200 | <div id="features" class="heading-text">Overview</div> | 202 | <div class="tcontainer"> |
201 | <h1 id="welcome-to-gradecoin">Welcome to Gradecoin!</h1> | 203 | <div class="ticker-wrap"> |
204 | <div class="ticker-move"> | ||
205 | <div class="ticker-item"><b>News:</b></div> | ||
206 | <div class="ticker-item">Gradecoin is in testnet mode, API is not stable, everything might reset at any time.</div> | ||
207 | <div class="ticker-item">Someone managed to authenticate themselves in less than 24 hours!</div> | ||
208 | <div class="ticker-item">Transactions now have saner amount limits.</div> | ||
209 | <div class="ticker-item">Blocks now properly require 10 transactions in them.</div> | ||
210 | </div> | ||
211 | </div> | ||
212 | </div> | ||
213 | <h1 id="welcome-to-gradecoin">Welcome to Gradecoin!</h1> | ||
202 | <p>Blockchains are incredibly simple yet can appear very complicated, we will see how they work and practice programming <em>production</em> cryptography code.</p> | 214 | <p>Blockchains are incredibly simple yet can appear very complicated, we will see how they work and practice programming <em>production</em> cryptography code.</p> |
203 | <p>This server is the sandbox for the PA1, it's currently running the Gradecoin application. Gradecoin is the faux currency we will use to simulate a blockchain network. At the end of the simulation, the amount of Gradecoin you hold will be your PA1 grade.</p> | 215 | <p>This server is the sandbox for the PA1, it's currently running the Gradecoin application. Gradecoin is the faux currency we will use to simulate a blockchain network. At the end of the simulation, the amount of Gradecoin you hold will be your PA1 grade.</p> |
204 | <p><strong>A quick summary</strong>: authenticate yourself to the system using public key encryption. | 216 | <p><strong>A quick summary</strong>: authenticate yourself to the system using public key encryption. |
@@ -299,7 +311,7 @@ The server is programmed in <a href="https://www.service-architecture.com/articl | |||
299 | <li><a href="https://xkcd.com/2314/">Built</a>, <a href="https://lofi.cafe/">with</a> <a href="https://xkcd.com/2418/">Rust</a></li> | 311 | <li><a href="https://xkcd.com/2314/">Built</a>, <a href="https://lofi.cafe/">with</a> <a href="https://xkcd.com/2418/">Rust</a></li> |
300 | </ul> | 312 | </ul> |
301 | 313 | ||
302 | 314 | ||
303 | </div> | 315 | </div> |
304 | 316 | ||
305 | 317 | ||
diff --git a/site/public/site.css b/site/public/site.css index 3c9bc03..6c79aa9 100644 --- a/site/public/site.css +++ b/site/public/site.css | |||
@@ -11,3 +11,47 @@ | |||
11 | li p { | 11 | li p { |
12 | margin: 2px; | 12 | margin: 2px; |
13 | } | 13 | } |
14 | |||
15 | /* OUTER CONTAINER */ | ||
16 | .tcontainer { | ||
17 | width: 100%; | ||
18 | overflow: hidden; /* Hide scroll bar */ | ||
19 | } | ||
20 | |||
21 | /* MIDDLE CONTAINER */ | ||
22 | .ticker-wrap { | ||
23 | width: 100%; | ||
24 | padding-left: 100%; /* Push contents to right side of screen */ | ||
25 | background-color: #eee; | ||
26 | } | ||
27 | |||
28 | /* INNER CONTAINER */ | ||
29 | @keyframes ticker { | ||
30 | 0% { transform: translate3d(0, 0, 0); } | ||
31 | 100% { transform: translate3d(-100%, 0, 0); } | ||
32 | } | ||
33 | |||
34 | .ticker-move { | ||
35 | /* Basically move items from right side of screen to left in infinite loop */ | ||
36 | display: inline-block; | ||
37 | white-space: nowrap; | ||
38 | padding-right: 100%; | ||
39 | animation-iteration-count: infinite; | ||
40 | animation-timing-function: linear; | ||
41 | animation-name: ticker; | ||
42 | animation-duration: 30s; | ||
43 | } | ||
44 | |||
45 | .ticker-move:hover{ | ||
46 | animation-play-state: paused; /* Pause scroll on mouse hover */ | ||
47 | } | ||
48 | |||
49 | /* ITEMS */ | ||
50 | .ticker-item { | ||
51 | display: inline-block; /* Lay items in a horizontal line */ | ||
52 | padding: 0 5px; | ||
53 | } | ||
54 | |||
55 | .ticker-item::before { | ||
56 | content: " ✑ "; | ||
57 | } | ||
diff --git a/site/static/site.css b/site/static/site.css index 3c9bc03..6c79aa9 100644 --- a/site/static/site.css +++ b/site/static/site.css | |||
@@ -11,3 +11,47 @@ | |||
11 | li p { | 11 | li p { |
12 | margin: 2px; | 12 | margin: 2px; |
13 | } | 13 | } |
14 | |||
15 | /* OUTER CONTAINER */ | ||
16 | .tcontainer { | ||
17 | width: 100%; | ||
18 | overflow: hidden; /* Hide scroll bar */ | ||
19 | } | ||
20 | |||
21 | /* MIDDLE CONTAINER */ | ||
22 | .ticker-wrap { | ||
23 | width: 100%; | ||
24 | padding-left: 100%; /* Push contents to right side of screen */ | ||
25 | background-color: #eee; | ||
26 | } | ||
27 | |||
28 | /* INNER CONTAINER */ | ||
29 | @keyframes ticker { | ||
30 | 0% { transform: translate3d(0, 0, 0); } | ||
31 | 100% { transform: translate3d(-100%, 0, 0); } | ||
32 | } | ||
33 | |||
34 | .ticker-move { | ||
35 | /* Basically move items from right side of screen to left in infinite loop */ | ||
36 | display: inline-block; | ||
37 | white-space: nowrap; | ||
38 | padding-right: 100%; | ||
39 | animation-iteration-count: infinite; | ||
40 | animation-timing-function: linear; | ||
41 | animation-name: ticker; | ||
42 | animation-duration: 30s; | ||
43 | } | ||
44 | |||
45 | .ticker-move:hover{ | ||
46 | animation-play-state: paused; /* Pause scroll on mouse hover */ | ||
47 | } | ||
48 | |||
49 | /* ITEMS */ | ||
50 | .ticker-item { | ||
51 | display: inline-block; /* Lay items in a horizontal line */ | ||
52 | padding: 0 5px; | ||
53 | } | ||
54 | |||
55 | .ticker-item::before { | ||
56 | content: " ✑ "; | ||
57 | } | ||
diff --git a/site/templates/index.html b/site/templates/index.html index 4bd9867..a374d60 100644 --- a/site/templates/index.html +++ b/site/templates/index.html | |||
@@ -6,6 +6,7 @@ | |||
6 | {% endblock head %} | 6 | {% endblock head %} |
7 | 7 | ||
8 | {% block hero %} | 8 | {% block hero %} |
9 | |||
9 | <section class="text-center"> | 10 | <section class="text-center"> |
10 | <h1 class="heading-text animate__animated animate__jackInTheBox" style="font-size: 50px"> | 11 | <h1 class="heading-text animate__animated animate__jackInTheBox" style="font-size: 50px"> |
11 | Mine your own grades | 12 | Mine your own grades |
@@ -22,6 +23,7 @@ | |||
22 | onclick="document.getElementById('features').scrollIntoView({behavior: 'smooth'})"> | 23 | onclick="document.getElementById('features').scrollIntoView({behavior: 'smooth'})"> |
23 | ⇩ Learn How ⇩ | 24 | ⇩ Learn How ⇩ |
24 | </div> | 25 | </div> |
26 | |||
25 | <style> | 27 | <style> |
26 | 28 | ||
27 | .hero section { | 29 | .hero section { |
@@ -44,6 +46,21 @@ footer { | |||
44 | </style> | 46 | </style> |
45 | {% endblock hero %} | 47 | {% endblock hero %} |
46 | 48 | ||
49 | {% block content %} | ||
50 | <div class="tcontainer"> | ||
51 | <div class="ticker-wrap"> | ||
52 | <div class="ticker-move"> | ||
53 | <div class="ticker-item"><b>News:</b></div> | ||
54 | <div class="ticker-item">Gradecoin is in testnet mode, API is not stable, everything might reset at any time.</div> | ||
55 | <div class="ticker-item">Someone managed to authenticate themselves in less than 24 hours!</div> | ||
56 | <div class="ticker-item">Transactions now have saner amount limits.</div> | ||
57 | <div class="ticker-item">Blocks now properly require 10 transactions in them.</div> | ||
58 | </div> | ||
59 | </div> | ||
60 | </div> | ||
61 | {{ section.content | safe }} | ||
62 | {% endblock content %} | ||
63 | |||
47 | {% block footer %} | 64 | {% block footer %} |
48 | <footer> | 65 | <footer> |
49 | Built For ⁂ CENG489 ⁂ Introduction to Computer Security | 66 | Built For ⁂ CENG489 ⁂ Introduction to Computer Security |