diff --git a/.github/workflows/deploy.yaml b/.github/workflows/deploy.yaml index b30d198..355c668 100644 --- a/.github/workflows/deploy.yaml +++ b/.github/workflows/deploy.yaml @@ -2,9 +2,9 @@ name: Deploy on: push: - branches: - - main - - dev + branches: + - main + - dev workflow_dispatch: jobs: @@ -19,12 +19,12 @@ jobs: - name: Setup Node uses: actions/setup-node@v4 with: - node-version: 22 - cache: 'npm' + node-version: 22 + cache: "npm" - name: Create .env run: | - echo "${{ secrets.DOT_ENV }}" > .env + echo "${{ secrets.DOT_ENV }}" > .env - name: Install Dependencies run: npm ci @@ -34,31 +34,31 @@ jobs: - name: Setup SSH run: | - mkdir -p ~/.ssh - echo "${{ secrets.SSH_PRIVATE_KEY }}" > ~/.ssh/id_rsa - chmod 600 ~/.ssh/id_rsa - ssh-keyscan -H ${{ secrets.REMOTE_HOST }} >> ~/.ssh/known_hosts + mkdir -p ~/.ssh + echo "${{ secrets.SSH_PRIVATE_KEY }}" > ~/.ssh/id_rsa + chmod 600 ~/.ssh/id_rsa + ssh-keyscan -H ${{ secrets.REMOTE_HOST }} >> ~/.ssh/known_hosts - name: Deploy with rsync run: | - TIMESTAMP=$(date +"%Y-%m-%d_%H-%M-%S") - RELEASE_DIR="${{ secrets.REMOTE_PATH }}/releases/$TIMESTAMP" - CURRENT_LINK="${{ secrets.REMOTE_PATH }}/current" + TIMESTAMP=$(date +"%Y-%m-%d_%H-%M-%S") + RELEASE_DIR="${{ secrets.REMOTE_PATH }}/releases/$TIMESTAMP" + CURRENT_LINK="${{ secrets.REMOTE_PATH }}/current" - ssh ${{ secrets.REMOTE_USER }}@${{ secrets.REMOTE_HOST }} << EOF - mkdir -p $RELEASE_DIR - EOF + ssh ${{ secrets.REMOTE_USER }}@${{ secrets.REMOTE_HOST }} << EOF + mkdir -p $RELEASE_DIR + EOF - rsync -avz --delete \ - ./dist/ ${{ secrets.REMOTE_USER }}@${{ secrets.REMOTE_HOST }}:$RELEASE_DIR + rsync -avz --delete \ + ./dist/ ${{ secrets.REMOTE_USER }}@${{ secrets.REMOTE_HOST }}:$RELEASE_DIR - ssh ${{ secrets.REMOTE_USER }}@${{ secrets.REMOTE_HOST }} << EOF - ln -sfn $RELEASE_DIR $CURRENT_LINK - EOF + ssh ${{ secrets.REMOTE_USER }}@${{ secrets.REMOTE_HOST }} << EOF + ln -sfn $RELEASE_DIR $CURRENT_LINK + EOF - - name: Cleanup Old Releases (Keep Last 25) + - name: Cleanup Old Releases run: | - ssh ${{ secrets.REMOTE_USER }}@${{ secrets.REMOTE_HOST }} << EOF - cd ${{ secrets.REMOTE_PATH }}/releases - ls -dt */ | tail -n +26 | xargs rm -rf -- - EOF + ssh ${{ secrets.REMOTE_USER }}@${{ secrets.REMOTE_HOST }} << EOF + cd ${{ secrets.REMOTE_PATH }}/releases + ls -dt */ | tail -n +26 | xargs rm -rf -- + EOF diff --git a/public/images/logo/apple-touch-180.old.png b/public/images/logo/apple-touch-180.old.png new file mode 100644 index 0000000..26ae1b2 Binary files /dev/null and b/public/images/logo/apple-touch-180.old.png differ diff --git a/public/images/logo/apple-touch-180.png b/public/images/logo/apple-touch-180.png index 26ae1b2..bd4e491 100644 Binary files a/public/images/logo/apple-touch-180.png and b/public/images/logo/apple-touch-180.png differ diff --git a/src/pages/index/index.ts b/src/pages/index/index.ts index 6ebd169..96fe1d9 100644 --- a/src/pages/index/index.ts +++ b/src/pages/index/index.ts @@ -20,9 +20,9 @@ import ImgController from './components/ImgController/ImgController'; * - Ability to change img opacity for each image? */ -const initialImg = 'https://preview.giggster.com/images/media/hp4/hero/intro1@2500.jpg?width=1200' +const initialImg = 'https://www.fastly.io/image.jpg?width=1440' const initialImgs = [ - `${initialImg}&quality=80`, + `${initialImg}`, `${initialImg}&format=jpg&saturation=100&quality=70`, `${initialImg}&format=webp&quality=65`, `${initialImg}&format=avif&sharpen=a4,r2,t1&quality=30`,