From dafcd237890055f9c3a49147a0bdf04092c6e995 Mon Sep 17 00:00:00 2001 From: happppi <102276917+hhbb0081@users.noreply.github.com> Date: Fri, 17 Nov 2023 14:04:12 +0900 Subject: [PATCH 1/6] =?UTF-8?q?Style:=20=ED=99=88=20=ED=99=94=EB=A9=B4=20?= =?UTF-8?q?=EC=8A=A4=ED=83=80=EC=9D=BC=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/main_merge.yml | 73 --------------------- .github/workflows/main_pr.yml | 91 -------------------------- .github/workflows/test_merge.yml | 80 ---------------------- .github/workflows/test_pr.yml | 83 ----------------------- src/assets/icons/cherry.svg | 23 ------- src/components/views/Header/Header.css | 14 ++-- src/components/views/Header/Header.jsx | 4 +- src/components/views/NavBar/NavBar.css | 1 + src/components/views/NavBar/NavBar.jsx | 22 +++---- src/index.css | 6 ++ src/pages/Home/Receipt.css | 20 +++--- 11 files changed, 37 insertions(+), 380 deletions(-) delete mode 100644 .github/workflows/main_merge.yml delete mode 100644 .github/workflows/main_pr.yml delete mode 100644 .github/workflows/test_merge.yml delete mode 100644 .github/workflows/test_pr.yml delete mode 100644 src/assets/icons/cherry.svg diff --git a/.github/workflows/main_merge.yml b/.github/workflows/main_merge.yml deleted file mode 100644 index 078f0e0..0000000 --- a/.github/workflows/main_merge.yml +++ /dev/null @@ -1,73 +0,0 @@ -name: Main Server Merge -on: - push: - branches: [ "main" ] - -jobs: - build: - runs-on: ubuntu-latest - steps: - - name: Checkout source code. # Repo checkout - uses: actions/checkout@v3 - - - name: Check Node v # Node v 확인 - run: node -v - - - name: Install dependencies # 의존 파일 설치 - run: npm install - - - name: Set .env from secrets - run: | - echo "PORT=${{ secrets.MAIN_PORT }}" > .env - echo "WDS_SOCKET_PORT=0" >> .env - echo "NODE_PATH=src/" >> .env - echo "REACT_APP_API_ROOT=${{ secrets.MAIN_REACT_APP_API_ROOT }}" >> .env - echo "REACT_APP_HOME_URL=${{ secrets.MAIN_REACT_APP_HOME_URL }}" >> .env - - - name: cat env file - run: cat .env - - - name: Generate build # React Build - run: npm run build - - - name: file copy - uses: actions/upload-artifact@v3 - with: - name: build - path: build - deploy: - needs: build - runs-on: ubuntu-latest - steps: - - name: file download - uses: actions/download-artifact@v3 - with: - name: build - path: build - - name: Upload to S3 - env: - AWS_ACCESS_KEY_ID: ${{ secrets.S3_MAIN_ACCESS_KEY_ID }} - AWS_SECRET_ACCESS_KEY: ${{ secrets.S3_MAIN_SECRET_ACCESS_KEY }} - AWS_DEFAULT_REGION: ap-northeast-2 - BUCKET_NAME: ${{ secrets.S3_BUCKET_NAME }} - run: | - aws s3 sync build s3://$BUCKET_NAME/ --delete \ - --exact-timestamps - # - name: Cloufront cache invalidation - # env: - # AWS_ACCESS_KEY_ID: ${{ secrets.CF_ACCESS_KEY_ID }} - # AWS_SECRET_ACCESS_KEY: ${{ secrets.CF_SECRET_ACCESS_KEY }} - # AWS_DEFAULT_REGION: us-east-1 - # DISTRIBUTION_ID: ${{ secrets.CF_DISTRIBUTION_ID }} - # run: | - # aws cloudfront create-invalidation --distribution-id $DISTRIBUTION_ID --paths "/*" - - name: Discordbot alert # 디스코드 알림 - uses: sarisia/actions-status-discord@v1.13.0 - with: - webhook: ${{ secrets.DISCORD_WEBHOOK }} - content: ${{ (github.actor == 'marinesnow34' && '<@392607023495118862>') || - (github.actor == '1223v' && '<@368775981667844098>') || - (github.actor == 'imi21123' && '<@999337351799128115>') || - (github.actor == 'marina-yhm' && '<@946431150614794240>') || - (github.actor == 'hhhhyelim' && '<@1076887091427946496>') }} - if: always() diff --git a/.github/workflows/main_pr.yml b/.github/workflows/main_pr.yml deleted file mode 100644 index 0ec251a..0000000 --- a/.github/workflows/main_pr.yml +++ /dev/null @@ -1,91 +0,0 @@ -name: Main Server Pull-request - -on: - pull_request: - branches: [ "main" ] - -jobs: - build: - runs-on: ubuntu-latest - steps: - - name: Check branch - run: | - echo "Head branch is: ${{ github.head_ref }}" - echo "Base branch is: ${{ github.base_ref }}" - if [[ "${{ github.head_ref }}" != "test" ]]; then - echo "test 브랜치가 아님" - exit 1 - fi - - name: Checkout source code. # Repo checkout - uses: actions/checkout@v3 - - - name: Check Node v # Node v 확인 - run: node -v - - - name: Install dependencies # 의존 파일 설치 - run: npm install - - - name: Set .env from secrets - run: | - echo "PORT=${{ secrets.MAIN_PORT }}" > .env - echo "WDS_SOCKET_PORT=0" >> .env - echo "NODE_PATH=src/" >> .env - echo "REACT_APP_API_ROOT=${{ secrets.MAIN_REACT_APP_API_ROOT }}" >> .env - echo "REACT_APP_HOME_URL=${{ secrets.MAIN_REACT_APP_HOME_URL }}" >> .env - - - name: cat env file - run: cat .env - - - name: Generate build # React Build - run: npm run build - - name: Discordbot alert # 디스코드 알림 - uses: sarisia/actions-status-discord@v1.13.0 - with: - webhook: ${{ secrets.DISCORD_WEBHOOK }} - content: ${{ (github.actor == 'marinesnow34' && '<@392607023495118862>') || - (github.actor == '1223v' && '<@368775981667844098>') || - (github.actor == 'imi21123' && '<@999337351799128115>') || - (github.actor == 'marina-yhm' && '<@946431150614794240>') || - (github.actor == 'hhhhyelim' && '<@1076887091427946496>') }} - if: always() - - after: - runs-on: ubuntu-latest - needs: build - if: always() - permissions: - contents: read - pull-requests: write - steps: - - name: Comment on failure and close PR - if: needs.build.result == 'failure' - uses: actions/github-script@v6 - with: - github-token: ${{ github.token }} - script: | - github.rest.issues.createComment({ - issue_number: context.issue.number, - owner: context.repo.owner, - repo: context.repo.repo, - body: '빌드 실패' - }); - - github.rest.pulls.update({ - owner: context.repo.owner, - repo: context.repo.repo, - pull_number: context.payload.pull_request.number, - state: 'closed' - }); - - - name: Auto approve pull request - if: needs.build.result == 'success' - uses: actions/github-script@v6 - with: - github-token: ${{ github.token }} - script: | - github.rest.pulls.createReview({ - owner: context.repo.owner, - repo: context.repo.repo, - pull_number: context.payload.pull_request.number, - event: 'APPROVE' - }); diff --git a/.github/workflows/test_merge.yml b/.github/workflows/test_merge.yml deleted file mode 100644 index 1f31915..0000000 --- a/.github/workflows/test_merge.yml +++ /dev/null @@ -1,80 +0,0 @@ -name: Test Server Merge -on: - push: - branches: [ "test" ] - -jobs: - build: - runs-on: ubuntu-latest - steps: - - name: Checkout source code. # Repo checkout - uses: actions/checkout@v3 - - - name: Check Node v # Node v 확인 - run: node -v - - - name: Install dependencies # 의존 파일 설치 - run: npm install - - - name: Set .env from secrets - run: | - echo "PORT=${{ secrets.TEST_PORT }}" > .env - echo "WDS_SOCKET_PORT=0" >> .env - echo "NODE_PATH=src/" >> .env - echo "REACT_APP_API_ROOT=${{ secrets.TEST_REACT_APP_API_ROOT }}" >> .env - echo "REACT_APP_HOME_URL=${{ secrets.TEST_REACT_APP_HOME_URL }}" >> .env - - - name: cat env file - run: cat .env - - - name: Generate build # React Build - run: npm run build - - - name: file copy - uses: actions/upload-artifact@v3 - with: - name: build - path: build - deploy: - needs: build - runs-on: ubuntu-latest - steps: - - name: file download - uses: actions/download-artifact@v3 - with: - name: build - path: build - - name: Upload to Cloudflare - env: - AWS_ACCESS_KEY_ID: ${{ secrets.CF_ACCESS_KEY_ID }} - AWS_SECRET_ACCESS_KEY: ${{ secrets.CF_SECRET_ACCESS_KEY }} - AWS_DEFAULT_REGION: us-east-1 - BUCKET_NAME: ${{ secrets.CF_BUCKET_NAME }} - ENDPOINT_URL: ${{ secrets.CF_ENDPOINT_URL }} - run: | - aws s3 sync build s3://$BUCKET_NAME/build_ceo \ - --endpoint-url $ENDPOINT_URL --delete \ - --exact-timestamps - - - name: SSH and deploy - uses: appleboy/ssh-action@v1.0.0 - with: - host: ${{ secrets.HOST }} - username: ${{ secrets.USERNAME }} - key: ${{ secrets.SSH_KEY }} - port: ${{ secrets.PORT }} - timeout: 40s # 30초 기본 - script: | - aws s3 sync s3://readyvery-dev-server/build_ceo ./docker/react/build_boss \ - --endpoint-url https://29c6e4b55b1ddb8d2b6e69df21141caa.r2.cloudflarestorage.com --delete \ - --exact-timestamps - - name: Discordbot alert # 디스코드 알림 - uses: sarisia/actions-status-discord@v1.13.0 - with: - webhook: ${{ secrets.DISCORD_WEBHOOK }} - content: ${{ (github.actor == 'marinesnow34' && '<@392607023495118862>') || - (github.actor == '1223v' && '<@368775981667844098>') || - (github.actor == 'imi21123' && '<@999337351799128115>') || - (github.actor == 'marina-yhm' && '<@946431150614794240>') || - (github.actor == 'hhhhyelim' && '<@1076887091427946496>') }} - if: always() diff --git a/.github/workflows/test_pr.yml b/.github/workflows/test_pr.yml deleted file mode 100644 index c1f34fa..0000000 --- a/.github/workflows/test_pr.yml +++ /dev/null @@ -1,83 +0,0 @@ -name: Test Server Pull-request # Workflow 이름 - -on: - pull_request: - branches: [ "test" ] - -jobs: - build: - runs-on: ubuntu-latest - steps: - - name: Checkout source code. # Repo checkout - uses: actions/checkout@v3 - - - name: Check Node v # Node v 확인 - run: node -v - - - name: Install dependencies # 의존 파일 설치 - run: npm install - - - name: Set .env from secrets - run: | - echo "PORT=${{ secrets.TEST_PORT }}" > .env - echo "WDS_SOCKET_PORT=0" >> .env - echo "NODE_PATH=src/" >> .env - echo "REACT_APP_API_ROOT=${{ secrets.TEST_REACT_APP_API_ROOT }}" >> .env - echo "REACT_APP_HOME_URL=${{ secrets.TEST_REACT_APP_HOME_URL }}" >> .env - - - name: cat env file - run: cat .env - - - name: Generate build # React Build - run: npm run build - - name: Discordbot alert # 디스코드 알림 - uses: sarisia/actions-status-discord@v1.13.0 - with: - webhook: ${{ secrets.DISCORD_WEBHOOK }} - content: ${{ (github.actor == 'marinesnow34' && '<@392607023495118862>') || - (github.actor == '1223v' && '<@368775981667844098>') || - (github.actor == 'imi21123' && '<@999337351799128115>') || - (github.actor == 'marina-yhm' && '<@946431150614794240>') || - (github.actor == 'hhhhyelim' && '<@1076887091427946496>') }} - if: always() - - after: - runs-on: ubuntu-latest - needs: build - if: always() - permissions: - contents: read - pull-requests: write - steps: - - name: Comment on failure and close PR - if: needs.build.result == 'failure' - uses: actions/github-script@v6 - with: - github-token: ${{ github.token }} - script: | - github.rest.issues.createComment({ - issue_number: context.issue.number, - owner: context.repo.owner, - repo: context.repo.repo, - body: '빌드 실패' - }); - - github.rest.pulls.update({ - owner: context.repo.owner, - repo: context.repo.repo, - pull_number: context.payload.pull_request.number, - state: 'closed' - }); - - - name: Auto approve pull request - if: needs.build.result == 'success' - uses: actions/github-script@v6 - with: - github-token: ${{ github.token }} - script: | - github.rest.pulls.createReview({ - owner: context.repo.owner, - repo: context.repo.repo, - pull_number: context.payload.pull_request.number, - event: 'APPROVE' - }); diff --git a/src/assets/icons/cherry.svg b/src/assets/icons/cherry.svg deleted file mode 100644 index 3981ec8..0000000 --- a/src/assets/icons/cherry.svg +++ /dev/null @@ -1,23 +0,0 @@ - diff --git a/src/components/views/Header/Header.css b/src/components/views/Header/Header.css index f6e34b8..bed1fd1 100644 --- a/src/components/views/Header/Header.css +++ b/src/components/views/Header/Header.css @@ -1,5 +1,7 @@ .header { - width: 100%; + /* width: 100%; */ + min-width: 73.75rem; + /* min-width: 64rem; */ height: 5.5rem; background-color: #2e2d2d; } @@ -19,13 +21,15 @@ align-items: center; } +.store-img__wrapper{ + margin: 0 0.5625rem; +} + .font { + /* line-height: 100%; 1.875rem */ color: #fff; - font-family: Pretendard; font-size: 1.875rem; - font-style: normal; - font-weight: 600; - line-height: 100%; /* 1.875rem */ + font-family: "SemiBold"; } .head-container { diff --git a/src/components/views/Header/Header.jsx b/src/components/views/Header/Header.jsx index 02170c8..244622e 100644 --- a/src/components/views/Header/Header.jsx +++ b/src/components/views/Header/Header.jsx @@ -27,12 +27,12 @@ const Header = () => {
기본 정보
+