Giter VIP home page Giter VIP logo

hs-frontend-challenge's Introduction

Harbour Space Frontend Challenge

React badge NextJS Jest Typescript Javascript react workflow

Welcome to my solution for the Harbour Space Frontend Challenge! I've successfully completed the challenge by building an adapted version of the Template Page for the Apprenticeship Programme. You can view the deployed application on Vercel: Harbour Space Frontend Challenge

Challenge Overview

The challenge involved building a responsive web application with micro-interactions, a slider, and API integration. I successfully implemented the following features:

  • Static Design: I created the UI components based on the provided design in the Figma template.
  • Footer: I implemented the sticky footer section as per the design guidelines.
  • Animations: I added some of the specified animations from the google slides to the application.
  • Sound Integration: I included a ping sound effect ton click of button and pointer elements.
  • Carousel/Slider: I created a responsive carousel/slider component using motion.div which is a component from the framer-motion library.
  • API Integration: I made API calls to fetch and display the FAQ data dynamically.
  • State Management: I managed component states.
  • Unit Testing: I wrote test cases using Jest for all components to check their functionality.
  • Responsive Design: I made sure the application is responsive and works well on various device sizes.

Technologies Used

  • React: I used React as the frontend JavaScript library to build the components and manage state.
  • Next.js: I utilized Next.js for server-side rendering and efficient routing in the application.
  • Jest: I wrote unit tests for all components to check their functionality.
  • GitHub Actions: I set up CI/CD using GitHub Actions to automate the testing process.
  • Vercel: The application is deployed on Vercel and you can find the demo here.

Project Structure

The project follows a modularized way, here is a brief overview of the folder structure:

  • .github/workflows: Includes the GitHub Actions workflow configuration for CI/CD setup.
  • public: Has the static assets such as images and sound files.
  • src: Contains app/ which has components/, styles/ and __tests__/.
  • components: Contains all React components, including Header, FirstSection, SecondSection, Grid, TestimonialSection, FAQTitle, FAQ, and Footer.
  • styles: Includes CSS modules for styling the components.
  • tests: Contains Jest test files for component testing.

CI/CD Pipeline

The project includes a CI/CD pipeline that runs tests automatically whenever there is a new push or pull request. The CI/CD status badge indicates the current status of the build.

How to Run Locally

To run this project locally, follow these steps:

  1. Clone the repository: git clone https://github.com/Ozziekins/hs-frontend-challenge.git
  2. Install dependencies: cd hs-frontend-challenge && npm install
  3. Start the development server: npm run dev

This will start the application locally, and you can access it at http://localhost:3000.

Feel free to explore the application and let me know if you have any questions or feedback!

Notes

  1. I made use of the API for populating the Frequently Asked Questions.
  2. I added the sound play with one tone for the clickable elements. It may sound funny when you click a lot.
  3. I was not sure the interpretation of the Bottom Sticky Bar but I implemented it.
  4. The colours are not precisely the same as what's shown in FIgma but are close enough.
  5. The animations are not precisely the same as what's shown in Google slides but are close enough.
  6. I enjoyed the challenge so thank you!

Thank you for considering my submission. I look forward to discussing the details further in a one-on-one call. Good luck with the review! ๐Ÿ˜Š

hs-frontend-challenge's People

Contributors

ozziekins avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.