diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml index 7d0c65d..3cf87ae 100644 --- a/.github/workflows/cd.yml +++ b/.github/workflows/cd.yml @@ -7,6 +7,8 @@ jobs: Deploy: runs-on: ubuntu-latest steps: + - name: Update package information with default mirror + run: sudo sed -i 's|mirror+file:/etc/apt/apt-mirrors.txt|http://archive.ubuntu.com/ubuntu|' /etc/apt/sources.list && sudo apt-get update - name: Install libvips run: sudo apt-get install libvips - uses: actions/checkout@v2 @@ -51,7 +53,7 @@ jobs: TYPESENSE_COLLECTION: ${{ secrets.TYPESENSE_COLLECTION }} TYPESENSE_API_KEY: ${{ secrets.TYPESENSE_API_KEY }} TYPESENSE_SEARCH_API_KEY: ${{ secrets.TYPESENSE_SEARCH_API_KEY }} - + - name: Start Gatsby server run: npm run develop & env: @@ -76,4 +78,3 @@ jobs: - name: Stop Gatsby server run: lsof -i :8001 -t | xargs kill - diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 409b560..e505271 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,11 +1,13 @@ name: 'CI' on: pull_request: - types: [ opened, synchronize, reopened ] + types: [opened, synchronize, reopened] jobs: CI: runs-on: ubuntu-latest steps: + - name: Update package information with default mirror + run: sudo sed -i 's|mirror+file:/etc/apt/apt-mirrors.txt|http://archive.ubuntu.com/ubuntu|' /etc/apt/sources.list && sudo apt-get update - name: Install libvips run: sudo apt-get install libvips - uses: actions/checkout@v2 diff --git a/.github/workflows/staging-cd.yml b/.github/workflows/staging-cd.yml index b36a534..82d7eb8 100644 --- a/.github/workflows/staging-cd.yml +++ b/.github/workflows/staging-cd.yml @@ -7,6 +7,8 @@ jobs: StagingDeploy: runs-on: ubuntu-latest steps: + - name: Update package information with default mirror + run: sudo sed -i 's|mirror+file:/etc/apt/apt-mirrors.txt|http://archive.ubuntu.com/ubuntu|' /etc/apt/sources.list && sudo apt-get update - name: Install libvips run: sudo apt-get install libvips - uses: actions/checkout@v2 @@ -38,7 +40,7 @@ jobs: echo TYPESENSE_SEARCH_API_KEY=${{ secrets.WEBSITE_STAGING_TYPESENSE_SEARCH_API_KEY }} >> .env cat .env - name: Set environment - run : sed -i 's/localhost/website.testsigma.com/g' src/environment.ts + run: sed -i 's/localhost/website.testsigma.com/g' src/environment.ts - name: Build run: | PREFIX_PATHS=true npm run build && npm run deploy @@ -53,7 +55,7 @@ jobs: TYPESENSE_COLLECTION: ${{ secrets.WEBSITE_STAGING_TYPESENSE_COLLECTION }} TYPESENSE_API_KEY: ${{ secrets.WEBSITE_STAGING_TYPESENSE_API_KEY }} TYPESENSE_SEARCH_API_KEY: ${{ secrets.WEBSITE_STAGING_TYPESENSE_SEARCH_API_KEY }} - + - name: Start Gatsby server run: npm run develop & env: diff --git a/src/templates/page.scss b/src/templates/page.scss index 74b1e8b..cc4998d 100644 --- a/src/templates/page.scss +++ b/src/templates/page.scss @@ -18,6 +18,8 @@ body{ //overflow: auto; overflow-x: hidden; height: 100%; + scroll-behavior: smooth; + scroll-padding-top: 90px; } #root_header{ @@ -679,14 +681,16 @@ table{ // Cookie banner #hs-banner-parent{ .hs-cookie-notification-position-bottom{ - width: calc(min(28em, 100%)); - left: 14%; + width: calc(min(28em, 100%)) !important; + left: calc(min(15em, 100%)) !important; @media only screen and (max-width: 767px) { left: 3%; + bottom: 2%; width: 95%; } @media only screen and (min-width:768px) and (max-width: 1023px) { left: 20%; + bottom: 10%; width: 35%; } #hs-eu-cookie-confirmation-inner{ @@ -702,4 +706,50 @@ table{ } } } +} + +//Black-friday hello bar design +#leadinModal-4801049{ + .leadinModal-content { + background: linear-gradient( + 92deg, + #4dd795 37.61%, + rgba(96, 217, 188, 0.83) 76.64% + ) !important; + .leadinModal-content-wrapper { + .leadin-content-body { + .leadin-preview-wrapper { + h4 { + @apply font-bold; + font-size: 16px; + line-height: normal; + color: #000000 !important; + margin: 0 auto; + margin-left: auto !important; + margin-right: auto; + text-align: center !important; + font-style: normal; + } + .advance-wrapper { + @media (max-width: 767px) { + @apply mt-8; + } + .leadin-button { + @apply font-bold text-center; + font-size: 14px; + color: #fff !important; + border-radius: 3px; + background-color: #191919 !important; + font-style: normal; + } + } + } + } + } + .leadinModal-close{ + &::before{ + color: #000000 !important; + } + } + } } \ No newline at end of file