-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of github.com:deriv-com/p2p into shayan/feq-233…
…6/redirect-guest-users-to-login-page
- Loading branch information
Showing
27 changed files
with
196 additions
and
56 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
name: Build Production and Deploy to Cloudflare Pages | ||
|
||
on: | ||
push: | ||
tags: | ||
- production_* | ||
|
||
concurrency: | ||
group: cloudflare-pages-build-production | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
build_to_cloudflare_pages: | ||
timeout-minutes: 30 | ||
runs-on: ubuntu-latest | ||
environment: Production | ||
steps: | ||
- name: Checkout to main branch | ||
uses: actions/checkout@v3 | ||
|
||
- name: Setup node | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 20.x | ||
cache: 'npm' | ||
|
||
- name: Get cached dependencies | ||
id: cache-npm | ||
uses: actions/cache/restore@e12d46a63a90f2fae62d114769bbf2a179198b5c | ||
with: | ||
path: node_modules | ||
key: npm-${{ hashFiles('./package-lock.json') }} | ||
|
||
- name: Install dependencies | ||
if: ${{ steps.cache-npm.outputs.cache-hit != 'true' }} | ||
run: npm ci | ||
shell: bash | ||
|
||
- name: Build | ||
run: npm run build | ||
|
||
- name: Run tests for Eslint | ||
run: npm run test:lint | ||
|
||
- name: Publish to Cloudflare Pages | ||
uses: "deriv-com/shared-actions/.github/actions/publish_to_pages_branch@master" | ||
with: | ||
CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }} | ||
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }} | ||
project_name: ${{ secrets.CLOUDFLARE_PROJECT_NAME }} | ||
branch_name: master | ||
output_dir: dist | ||
cname_url: p2p.deriv.com | ||
send_slack_success: | ||
name: Send Release Slack notification success | ||
runs-on: ubuntu-latest | ||
if: success() | ||
needs: [build_to_cloudflare_pages] | ||
steps: | ||
- name: Send Slack Notification | ||
uses: "deriv-com/shared-actions/.github/actions/send_slack_notification@master" | ||
with: | ||
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} | ||
MESSAGE: "Production Release succeeded for p2p.deriv.com with version ${{ github.head_ref }}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
src/components/FullPageMobileWrapper/FullPageMobileWrapper.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,19 @@ | ||
.advertiser { | ||
position: absolute; | ||
top: 8rem; | ||
top: 12rem; | ||
background-color: #fff; | ||
width: 95.2rem; | ||
|
||
@include mobile { | ||
top: 4rem; | ||
top: 8rem; | ||
overflow: overlay; | ||
height: calc(100vh - 4rem); | ||
width: 100%; | ||
} | ||
|
||
& .page-return { | ||
@include mobile { | ||
padding: 0.5rem 1.6rem; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.