diff --git a/_layouts/eip.html b/_layouts/eip.html index 1a7bdd661e..0289d3d38e 100644 --- a/_layouts/eip.html +++ b/_layouts/eip.html @@ -2,6 +2,28 @@ layout: default --- +{% if page.status == "Draft" %} +
+ ⚠️ This EIP is not recommended for general use or implementation as it is likely to change. +
+{% elsif page.status == "Review" %} +
+ 📖 This EIP is in the review stage. It is subject to changes and feedback is appreciated. +
+{% elsif page.status == "Last Call" %} +
+ 📢 This EIP is in the last call for review stage. The authors wish to finalize the EIP and appreciate feedback. +
+{% elsif page.status == "Stagnant" %} +
+ 🚧 This EIP had no activity for at least 6 months. +
+{% elsif page.status == "Withdrawn" %} +
+ 🛑 This EIP has been withdrawn. +
+{% endif %} +

EIP-{{ page.eip | xml_escape }}: {{ page.title | xml_escape }} diff --git a/assets/css/style.scss b/assets/css/style.scss index 21c33881af..7467811834 100644 --- a/assets/css/style.scss +++ b/assets/css/style.scss @@ -21,3 +21,42 @@ main.page-content { max-width: unset; } } + +.status { + border-radius: 6px; + line-height: 18px; + overflow: hidden; + padding: 12px; + display: inline-block; + margin-bottom: 15px; +} + +.draft { + @extend .status; + background-color: #fffbea; + border: solid 1px #f1c40f; +} + +.review { + @extend .status; + background-color: #f0f7fb; + border: solid 1px #3498db; +} + +.lastcall { + @extend .status; + background-color: #e7f6f0; + border: solid 1px #27ae60; +} + +.stagnant { + @extend .status; + background-color: #ffdead; + border: solid 1px #ff6700; +} + +.withdrawn { + @extend .status; + background-color: #f9e7e5; + border: solid 1px #c0392b; +}