This project is like the Google UI and created using NextJS. Tailwind CSS with(2.1 JIT) is being used and it's mobile responsive as well. It has the pagination funcionality for showing the search results. The NextJS features such as Server Side Rendering (SSR) has been implemented.
View Demo Β· Documentation Β· Report Bug Β· Request Feature
- Application Home page & Demo
Google.Clone.Demo.-.Made.with.Clipchamp.mp4
- Home Page
- Search Page
Client
Search APIs
To run this project, you will need to add the following environment variables to your keys file
- Frontend
API_KEY
CONTEXT_KEY
Install my-project with npm
npx create-next-app my-project
cd my-project
Install dependencies
Install tailwindcss and its peer dependencies via npm, and then run the init command to generate both tailwind.config.js
and postcss.config.js
.
npm install -D tailwindcss@latest postcss@latest autoprefixer@latest
npx tailwindcss init -p
Add the paths to all of your template files in your tailwind.config.js
file.
/** @type {import('tailwindcss').Config} */
module.exports = {
mode: 'jit',
content: ["./app/**/*.{js,ts,jsx,tsx}", "./components/**/*.{js,ts,jsx,tsx}"],
theme: {
extend: {},
},
plugins: [],
};
Add the @tailwind
directives for each of Tailwindβs layers to your ./styles/globals.css
file.
@tailwind base;
@tailwind components;
@tailwind utilities;
npm i @tailwindcss/line-clamp
Install dependencies
Clone the project
git clone https://github.com/Priyanshu88/Google-Web.git
cd Google-Web
Install dependencies
This is a Next.js project bootstrapped with create-next-app
.
npm install
Start the server First, run the development server:
npm run dev
This is a Next.js project bootstrapped with create-next-app
.
Open http://localhost:3000 with your browser to see the result.
You can start editing the page by modifying pages/index.js
. The page auto-updates as you edit the file.
API routes can be accessed on http://localhost:3000/api/hello. This endpoint can be edited in pages/api/hello.ts
.
The pages/api
directory is mapped to /api/*
. Files in this directory are treated as API routes instead of React pages.
This project uses heroicons
for icons.
To deploy this project
The easiest way to deploy your Next.js app is to use the Vercel Platform from the creators of Next.js.
Check out our Vercel deployment documentation for more details.
Your Name - @twitter_handle - 2040020@sliet.ac.in
Project Link: https://github.com/Priyanshu88/Google-Web.git