This is an automated email from the ASF dual-hosted git repository.

potiuk pushed a commit to branch staging
in repository https://gitbox.apache.org/repos/asf/airflow-site.git


The following commit(s) were added to refs/heads/staging by this push:
     new 00480cc5eb Apply staging watermark
00480cc5eb is described below

commit 00480cc5ebbc3eba68dcec8fc56dc5b037b7e387
Author: Jarek Potiuk <ja...@potiuk.com>
AuthorDate: Tue May 13 01:54:41 2025 +0200

    Apply staging watermark
---
 .github/workflows/build.yml                  |  23 ++++++++++++++++++++++-
 landing-pages/site/static/images/staging.png | Bin 0 -> 17612 bytes
 2 files changed, 22 insertions(+), 1 deletion(-)

diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index 484e51d71a..0e577ef1f2 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -140,11 +140,32 @@ jobs:
           path: './dist'
           if-no-files-found: error
           retention-days: 14
-      - name: Replace cloudfront url for staging branch
+      - name: Apply staging modifications
         run: |
           sed -i 
's/d7fnmbhf26p21.cloudfront.net/d3a2du7x0n8ydr.cloudfront.net/' .htaccess
           echo "Updated .htaccess"
           cat .htaccess
+          echo
+          echo "Adding watermark"
+          cat <<EOF >> ./dist/scss/main-custom.min.*.css
+          body {
+              position: relative; /* Ensures the pseudo-element is positioned 
relative to the body */
+              z-index: 0; /* Keeps the content above the pseudo-element */
+          }
+
+          body::before {
+              content: "";
+              position: fixed;
+              top: 0;
+              left: 0;
+              width: 100%;
+              height: 100%;
+              background: url(/images/staging.png) repeat center center fixed; 
/* Sets the background image */
+              opacity: 0.2; /* Makes the watermark semi-transparent */
+              pointer-events: none; /* Ensures the watermark doesn't interfere 
with user interactions */
+              z-index: -1; /* Places the pseudo-element behind all other 
elements */
+          }
+          EOF
         working-directory: ./dist
         if: github.ref == 'refs/heads/staging'
       - name: 👷 Copy .asf.yaml to /dist/
diff --git a/landing-pages/site/static/images/staging.png 
b/landing-pages/site/static/images/staging.png
new file mode 100644
index 0000000000..a7cbaf306b
Binary files /dev/null and b/landing-pages/site/static/images/staging.png differ

Reply via email to