Add Codersrank activity

This commit is contained in:
2021-05-03 23:13:12 +02:00
parent 9d98c4a96a
commit 858bbee41c
3 changed files with 24 additions and 1 deletions

View File

@@ -3,6 +3,7 @@ layout: default
home: true
---
{% include anchor_headings.html html=content anchorClass="anchor-head" beforeHeading=true h_min=1 h_max=4 %}
{%- if site.length > 0 -%}
<h3 class="posts-item-note" aria-label="Recent Posts">Recent Posts</h3>
{%- endif -%}

View File

@@ -39,3 +39,22 @@
position: absolute;
}
}
// Codersrank
codersrank-activity {
--bg-color-0: #f5f5f5;
--bg-color-1: #{lighten(#660000, 60%)};
--bg-color-2: #{lighten(#660000, 40%)};
--bg-color-3: #{lighten(#660000, 20%)};
--bg-color-4: #{lighten(#660000, 00%)};
}
body[data-theme="dark"] {
codersrank-activity {
--bg-color-4: #{lighten(#660000, 60%)};
--bg-color-3: #{lighten(#660000, 40%)};
--bg-color-2: #{lighten(#660000, 20%)};
--bg-color-1: #{lighten(#660000, 00%)};
--bg-color-0: #{ darken(#660000, 20%)};
}
}

View File

@@ -1,3 +1,6 @@
---
layout: home
---
<codersrank-activity username="Siphalor" legend="false" labels branding="false" tooltip step="5" ></codersrank-activity>
<script src="https://unpkg.com/@codersrank/activity/codersrank-activity.min.js"></script>