diff --git a/.github/workflows/e2e.yml b/.github/workflows/e2e.yml index 27cc1f4..f7d3601 100644 --- a/.github/workflows/e2e.yml +++ b/.github/workflows/e2e.yml @@ -1,30 +1,30 @@ name: End-to-end Tests on: push: - branches: [main, develop] + branches: [main, develop, prod] pull_request: - branches: [main, develop] + branches: [main, develop, prod] jobs: e2e: timeout-minutes: 60 runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v6 - name: Prepare .env file run: | rm -f .env && touch .env echo "NEXT_PUBLIC_FORMSPREE_ID=fake123" >> .env echo "NEXT_PUBLIC_RECAPTCHA_SITE_KEY=123fAkE" >> .env - - uses: actions/setup-node@v3 + - uses: actions/setup-node@v6 with: - node-version: '18.x' + node-version: '24.x' - name: Install dependencies run: npm ci - name: Install Playwright Browsers run: npx playwright install --with-deps - name: Run Playwright tests run: npm run test - - uses: actions/upload-artifact@v3 + - uses: actions/upload-artifact@v5 if: always() with: name: playwright-report diff --git a/.github/workflows/validate.yml b/.github/workflows/validate.yml index c1f2e4d..8df40d5 100644 --- a/.github/workflows/validate.yml +++ b/.github/workflows/validate.yml @@ -1,18 +1,18 @@ name: Lint, Format and Build on: push: - branches: [main, develop] + branches: [main, develop, prod] pull_request: - branches: [main, develop] + branches: [main, develop, prod] jobs: validate: timeout-minutes: 60 runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 - - uses: actions/setup-node@v3 + - uses: actions/checkout@v6 + - uses: actions/setup-node@v6 with: - node-version: '14.x' + node-version: '24.x' - name: Install dependencies run: npm ci - name: Run code validation (includes linting, prettier and building) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 00338e5..2260db7 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -28,7 +28,6 @@ Please note we have a [code of conduct](https://github.com/reactdeveloperske/rea If you're ready to contribute and create your PR, it will help to set up a local environment so you can see your changes. 1. Set up your development environment - - install your favorite text editor/IDE - install [Nodejs](nodejs.org) diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..e99a4e2 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,36 @@ + +# minimal alpine image for quick dev build +# FROM mhart/alpine-node + + +FROM node:alpine +WORKDIR /app +COPY . . +RUN yarn install +RUN yarn build +EXPOSE 3000 +CMD ["yarn", "start"] + + + +#For production environment +# FROM node:alpine as BUILD_IMAGE +# WORKDIR /app +# COPY package.json yarn.lock ./ +# # install dependencies +# RUN yarn install --frozen-lockfile +# COPY . . +# # build +# RUN yarn build +# # remove dev dependencies +# RUN npm prune --production + +# FROM node:alpine +# WORKDIR /app +# # copy from build image +# COPY --from=BUILD_IMAGE /app/package.json ./package.json +# COPY --from=BUILD_IMAGE /app/node_modules ./node_modules +# COPY --from=BUILD_IMAGE /app/.next ./.next +# COPY --from=BUILD_IMAGE /app/public ./public +# EXPOSE 3000 +# CMD ["yarn", "start"] \ No newline at end of file diff --git a/README.md b/README.md index 0d3e0fd..c6e7796 100644 --- a/README.md +++ b/README.md @@ -1,20 +1,137 @@
Welcome to Reactjs Developer Community Kenya Website!
React Developers Community — Kenya
- We are a vibrant community of developers passionate about React NextJs React Native and the powerful ecosystem. Our mission is to empower developers—from full-stack - experts to frontend enthusiasts—to grow, collaborate, and create meaningful - solutions. Join us to connect, learn, and contribute to the future of web development. + We are a vibrant community of developers passionate about React NextJs + React Native and the powerful ecosystem. Our mission is to empower + developers—from full-stack experts to frontend enthusiasts—to grow, + collaborate, and create meaningful solutions. Join us to connect, learn, + and contribute to the future of web development.
); diff --git a/src/components/ContactUs/ContactUs.tsx b/src/components/ContactUs/ContactUs.tsx index b02da20..42d961a 100644 --- a/src/components/ContactUs/ContactUs.tsx +++ b/src/components/ContactUs/ContactUs.tsx @@ -1,21 +1,23 @@ -import React, { useEffect, useState } from 'react'; +import { useEffect, useState } from 'react'; import DesktopVersion from './DesktopVersion'; -import MobileVersion from './MobileVersion'; import Footer from './Footer'; export default function ContactUs() { const [screenWidth, setScreenWidth] = useState