Google-Web Tailwind Templates

Google Web

It is not the Google 馃槄 but just like the google UI and search functionality through API. The website is fully responsive, suitable for mobile phones too as it has been made using Tailwind CSS and heroicons are used for the icons. The pagination functionality is implemented for every search result. It has NextJS on top of ReactJS and SSR pages.

logo

Google with TailwindCSS and NEXT.JS!

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


:notebook_with_decorative_cover: Table of Contents

:star2: About the Project

:camera: Screenshots

  • Application Home page & Demo
image

https://user-images.githubusercontent.com/86107841/229701821-ed69eb8d-91d7-4865-8bef-de8c96c32e3a.mp4


  • Home Page
image

  • Search Page
image

LIVE DEMO 馃挜

:space_invader: Tech Stack

Client
Search APIs

Google

:toolbox: Getting Started

:bangbang: Prerequisites

  • Sign up for Google developers account HERE
  • Install Node JS in your computer HERE

:key: Environment Variables

To run this project, you will need to add the following environment variables to your keys file

  • Frontend

API_KEY

CONTEXT_KEY

:gear: Installation

Install my-project with npm

npx create-next-app my-project
cd my-project

Install dependencies

:test_tube: Install Tailwind CSS and Next.js

Install Tailwind CSS

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

Configure your template paths

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 to your CSS

Add the @tailwind directives for each of Tailwind鈥檚 layers to your ./styles/globals.css file.

@tailwind base;
@tailwind components;
@tailwind utilities;

:test_tube: Install Line Clamp

Install TailwindCSS Line Clamp

npm i @tailwindcss/line-clamp

Install dependencies

馃敹 Other Dependency Info

:running: Run Locally

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.

Learn More

This project uses heroicons for icons.

:triangular_flag_on_post: Deployment

To deploy this project

Frontend
Deploy on Vercel

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.

:handshake: Contact

Your Name - @twitter_handle - 2040020@sliet.ac.in

Project Link: https://github.com/Priyanshu88/Google-Web.git



Don't forget to leave a star 猸愶笍

Top categories

Loading Svelte Themes