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
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.
- 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.
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 hascomponents/
,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.
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.
To run this project locally, follow these steps:
- Clone the repository:
git clone https://github.com/Ozziekins/hs-frontend-challenge.git
- Install dependencies:
cd hs-frontend-challenge && npm install
- 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!
- I made use of the API for populating the Frequently Asked Questions.
- I added the sound play with one tone for the clickable elements. It may sound funny when you click a lot.
- I was not sure the interpretation of the Bottom Sticky Bar but I implemented it.
- The colours are not precisely the same as what's shown in FIgma but are close enough.
- The animations are not precisely the same as what's shown in Google slides but are close enough.
- 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! ๐