diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml new file mode 100644 index 0000000..ada9154 --- /dev/null +++ b/.github/workflows/deploy.yml @@ -0,0 +1,53 @@ +# Simple workflow for deploying static content to GitHub Pages +name: Deploy static content to Github Pages + +on: + # Runs on pushes targeting the default branch + push: + branches: ['main'] + + # Allows you to run this workflow manually from the Actions tab + workflow_dispatch: + +# Sets the GITHUB_TOKEN permissions to allow deployment to GitHub Pages +permissions: + contents: read + pages: write + id-token: write + +# Allow one concurrent deployment +concurrency: + group: 'pages' + cancel-in-progress: true + +jobs: + # Single deploy job since we're just deploying + deploy: + environment: + name: github-pages + url: ${{ steps.deployment.outputs.page_url }} + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + with: + lfs: true + - name: Set up Node + uses: actions/setup-node@v4 + with: + node-version: 20 + cache: 'npm' + - name: Install dependencies + run: npm ci + - name: Build + run: npm run build + - name: Setup Pages + uses: actions/configure-pages@v4 + - name: Upload artifact + uses: actions/upload-pages-artifact@v3 + with: + # Upload dist folder + path: './dist' + - name: Deploy to GitHub Pages + id: deployment + uses: actions/deploy-pages@v4 diff --git a/index.html b/index.html index 7c2c89a..c4012d5 100644 --- a/index.html +++ b/index.html @@ -8,7 +8,7 @@ name="description" content="A perfect challenge for beginners, this project will get you working with a two column layout." /> - + Huddle Landing Page with Single Introductory Section diff --git a/src/assets/css/style.css b/src/assets/css/style.css index a7b3e9b..942c518 100644 --- a/src/assets/css/style.css +++ b/src/assets/css/style.css @@ -13,7 +13,7 @@ body { background-color: var(--violet); - background-image: url(/images/bg-desktop.svg); + background-image: url(./images/bg-desktop.svg); background-repeat: no-repeat; background-size: cover; background-position: center; @@ -127,7 +127,7 @@ footer * { @media screen and (max-width: 700px) { body { - background-image: url(/images/bg-mobile.svg); + background-image: url(./images/bg-mobile.svg); text-align: center; } section { diff --git a/src/components/LandingPage.jsx b/src/components/LandingPage.jsx index d5668fc..e14928a 100644 --- a/src/components/LandingPage.jsx +++ b/src/components/LandingPage.jsx @@ -9,13 +9,13 @@ const LandingPage = () => { return ( <>
- Huddle Logo + Huddle Logo
Illustration Mockup
diff --git a/vite.config.js b/vite.config.js index 5a33944..9a107c1 100644 --- a/vite.config.js +++ b/vite.config.js @@ -3,5 +3,6 @@ import react from '@vitejs/plugin-react' // https://vitejs.dev/config/ export default defineConfig({ + base: '/huddle-landing-page-with-single-introductory-section/', plugins: [react()], })