From 6b5a9601c4b7e0cd6b9bdca096e22b5e2be89e72 Mon Sep 17 00:00:00 2001 From: b1ek Date: Sun, 20 Oct 2024 17:38:15 +1000 Subject: [PATCH] add: amber banner --- content/_index.md | 1 + sass/amber-banner.scss | 60 ++++++++++++++++++++++++++ static/amber.svg | 1 + templates/shortcodes/amber_banner.html | 29 +++++++++++++ 4 files changed, 91 insertions(+) create mode 100644 sass/amber-banner.scss create mode 100644 static/amber.svg create mode 100644 templates/shortcodes/amber_banner.html diff --git a/content/_index.md b/content/_index.md index 6dbe54c..8c36a30 100644 --- a/content/_index.md +++ b/content/_index.md @@ -42,6 +42,7 @@ Also you can view it [here](https://umami.blek.codes/share/ucLh7hS5xcXCpklV/worl ## Projects +{{ amber_banner() }} You can find the list of my projects [here](/projects). ## Blog diff --git a/sass/amber-banner.scss b/sass/amber-banner.scss new file mode 100644 index 0000000..8b26f31 --- /dev/null +++ b/sass/amber-banner.scss @@ -0,0 +1,60 @@ +.amber-banner { + background: #0005; + border: 1px solid #000; + border-radius: 8px; + + height: 5rem; + width: fit-content; + padding: 1rem; + + display: flex; + align-items: center; + gap: 1rem; + + margin-bottom: 2rem; + + * { + margin: 0; padding: 0; + } + h1 { + font-size: 1.5rem; + } + ul { + list-style: none; + display: flex; + margin-top: 0.5rem; + gap: 0.5rem; + } + small { + display: block; + color: #555555; + } + + .amber-banner-icon { + height: 100%; + padding: 0 1rem; + @keyframes amber-banner-icon-breathe { + 0%, 30% { + transform: scale(1); + } + 56% { + transform: scale(1.1); + } + 70%, to { + transform: scale(1); + } + } + animation: amber-banner-icon-breathe 6s ease infinite; + } +} +.amber-banner-title { + width: fit-content; + border-radius: 8px 8px 0 0; + padding: 0.2em 0.5em; + margin: 0; + margin-left: 1rem; + + background: #0003; + border: 1px solid #000; + border-bottom: 0; +} \ No newline at end of file diff --git a/static/amber.svg b/static/amber.svg new file mode 100644 index 0000000..444a3ae --- /dev/null +++ b/static/amber.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/templates/shortcodes/amber_banner.html b/templates/shortcodes/amber_banner.html new file mode 100644 index 0000000..86bc721 --- /dev/null +++ b/templates/shortcodes/amber_banner.html @@ -0,0 +1,29 @@ + + +
+ Open source promotion +
+
+ +
+

Amber: the TypeScript for bash

+

+ A type safe, easy to use language compiled to bash +

+ +
+
\ No newline at end of file