diff --git a/@types/defaults.d.ts b/@types/defaults.d.ts index 1efca40..7ad137d 100644 --- a/@types/defaults.d.ts +++ b/@types/defaults.d.ts @@ -29,5 +29,5 @@ interface IParams { } interface CSSStyleProps extends React.CSSProperties { - "--min-column-size": string; + "--min-col-size": string; } diff --git a/README.md b/README.md index f4da3c4..fbd5af2 100644 --- a/README.md +++ b/README.md @@ -1,8 +1,81 @@ +# Countries of the World + +This application uses the REST Countries API to get info about countries on planet earth. + +## Table of contents + +- [Countries of the World](#countries-of-the-world) + - [Table of contents](#table-of-contents) + - [Overview](#overview) + - [The challenge](#the-challenge) + - [Screenshot](#screenshot) + - [Links](#links) + - [Project Development](#project-development) + - [Running the App](#running-the-app) + - [Deploying the App](#deploying-the-app) + - [My process](#my-process) + - [Built with](#built-with) + - [What I learned](#what-i-learned) + - [Continued development](#continued-development) + - [Useful resources](#useful-resources) + - [Author](#author) + - [Acknowledgments](#acknowledgments) + +## Overview + This is a [Next.js](https://nextjs.org/) project bootstrapped with [`create-next-app`](https://github.com/vercel/next.js/tree/canary/packages/create-next-app). -## Getting Started +### The challenge + +Users should be able to: + +- See all countries from the API on the homepage +- Search for a country using an `input` field +- Filter countries by region +- Click on a country to see more detailed information on a separate page +- Click through to the border countries on the detail page +- Toggle the color scheme between light and dark mode _(optional)_ + +### Screenshot + +![](./screenshot.jpg) + +### Links + +Press . on the keyboard to view this project's code in the _`github.dev`_ code editor just like in _`Visual Studio Code`_ -First, run the development server: +- Code: [Github Repository](https://github.com/princemuel/rest-countries) +- Live Site: [REST Countries of the World](https://rest-countries-mocha.vercel.app/) + +## Project Development + +### Running the App + +- Clone the repo by running the command: + +```bash +git clone https://github.com/princemuel/rest-countries.git +``` + +- Enter into the project folder: + +```bash +cd rest-countries +``` + +- Install the project's dependencies: + +```bash +# NOTE: This project uses pnpm as package manager but that's optional. You may delete the lockfile and install the deps using your choice of package manager + +npm install +# or +yarn install +# or +pnpm install +``` + +- Then, run the development server: ```bash npm run dev @@ -12,23 +85,60 @@ yarn dev pnpm dev ``` -Open [http://localhost:3000](http://localhost:3000) with your browser to see the result. +Open [http://localhost:3000](http://localhost:3000) to view it in the browser. You can start editing the page by modifying `app/page.tsx`. The page auto-updates as you edit the file. -This project uses [`next/font`](https://nextjs.org/docs/basic-features/font-optimization) to automatically optimize and load Inter, a custom Google Font. +### Deploying the App + +Your app is ready to be deployed! The easiest way to deploy your Next.js app is to use the [Vercel Platform](https://vercel.com/new?utm_medium=default-template&filter=next.js&utm_source=create-next-app&utm_campaign=create-next-app-readme) from the creators of Next.js. + +Check out the [Next.js deployment documentation](https://nextjs.org/docs/deployment) for more details. + +## My process + +### Built with + +- Semantic HTML5 markup +- CSS custom properties +- Flexbox +- CSS Grid +- Mobile-first workflow +- [React](https://react.dev/) - JS library +- [Next.js](https://nextjs.org/docs) - React framework +- [Tailwind CSS](https://tailwindcss.com/docs) - For composing component styles using utility classes + +### What I learned + +```html +