From b5633ca851334e2bcadc151e6d21d591bd3169c4 Mon Sep 17 00:00:00 2001 From: SavageCore Date: Thu, 21 Sep 2023 09:21:13 +0100 Subject: [PATCH] Show current git commit in footer s --- .github/workflows/release.yml | 7 +++++++ src/Components/Footer/index.svelte | 18 ++++++++++++++---- src/Components/Footer/style.scss | 29 ++++++++++++++++++++++++----- src/Components/Icons/Git.svelte | 12 ++++++++++++ src/Components/Icons/Github.svelte | 1 + src/Components/Icons/Help.svelte | 1 + 6 files changed, 59 insertions(+), 9 deletions(-) create mode 100644 src/Components/Icons/Git.svelte diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index b077e4a..157c8c5 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -23,6 +23,13 @@ jobs: - name: Update node-gyp 🔨 run: npm install -g node-gyp@latest + - name: Find and Replace + uses: jacobtomlinson/gha-find-replace@v3 + with: + find: "#{GH_COMMIT_HASH}#" + replace: "${{ github.sha }}" + regex: false + - name: Install and Build 🔧 run: | npm ci diff --git a/src/Components/Footer/index.svelte b/src/Components/Footer/index.svelte index 89a508b..b8ca230 100644 --- a/src/Components/Footer/index.svelte +++ b/src/Components/Footer/index.svelte @@ -1,5 +1,7 @@
- diff --git a/src/Components/Footer/style.scss b/src/Components/Footer/style.scss index 1c6b059..a166d92 100644 --- a/src/Components/Footer/style.scss +++ b/src/Components/Footer/style.scss @@ -1,14 +1,14 @@ .footer { font-family: "Roboto", sans-serif; - display: flex; - justify-content: center; - align-items: center; - padding: 10px 20px; + padding: 0.5rem 1rem; color: #fff; background-color: #1c1b22; width: 100%; - position: fixed; /* Change to fixed */ + position: fixed; bottom: 0; + display: flex; + justify-content: space-between; + align-items: center; } .footer a { @@ -16,3 +16,22 @@ color: #fff; font-weight: bold; } + +.made_by { + display: flex; + align-items: center; + margin: 0 auto; +} + +.version { + display: flex; + align-items: center; +} + +.version .icon { + fill: #f14e32; + width: 24px; + margin-right: 0.5rem; + display: flex; + align-items: center; +} diff --git a/src/Components/Icons/Git.svelte b/src/Components/Icons/Git.svelte new file mode 100644 index 0000000..d2b6087 --- /dev/null +++ b/src/Components/Icons/Git.svelte @@ -0,0 +1,12 @@ + + + + diff --git a/src/Components/Icons/Github.svelte b/src/Components/Icons/Github.svelte index eee27c7..41230b5 100644 --- a/src/Components/Icons/Github.svelte +++ b/src/Components/Icons/Github.svelte @@ -1,3 +1,4 @@ +