Coder Social home page Coder Social logo

search-frontend's Introduction

Search Engine (Frontend)

Project Description

Search is a frontend clone of Google Search.

This project was started so that I could familiarise myself with the basics of HTML, CSS, and SCSS. Hence, the actual implementation of the search was done using Google's own search engine. Throughout the project, I found it daunting to mimic Google's own CSS. This is because Google had appeared to encrypt the exact CSS properties they were using, preventing me from using it as reference.

Content

Implemented Google Search, Google Image Search, and Google Advanced Search. There is also a navigation bar implemented on the top right corner of all 3 Pages that allows the User to traverse between the 3 types of Searches.

1. Google Search

Picture of Google Search Clone

Typing in a query like "Cats" and clicking Enter will redirect the User to the Google Search Results Page for "Cats". Using SASS and CSS, the Input Field and Buttons have been modified to resemble Google's very own as close as possible.

Moreover, an "I am feeling lucky" button has been added to the Search Page as well, which will bring the User to the first search result instead of a page of results.

2. Google Image Search

Picture of Google Image Search Clone

Similarly, a "Cats" query will bring us to the Google Image Search Results Page for "Cats".

3. Google Advanced Search

Picture of Google Advanced Search Clone

Using Advanced Search, a User is able to provide filters for the types of queries they are making:

  • "All these words" will include all the words in the query.
  • "Exact word or phrase" will include results with the particular word or phrase.
  • "Any of these words" will include results that includes 1 or more of such words.
  • "None of these words" will exclude results that contains 1 or more of such words.

Picture of Advanced Search Results

Additionally, the layout of the page have been made to be similar to that of Google's as well.

How to Use

Install all of the files hosted on Github and install Python3 and http-server. Use python3 -m http.server to run the webpage on your local machine.

Learning Outcomes

  • Learnt about the Document Object Model in HTML.
  • Learnt about HTML Attributes and Properties.
  • Learnt Basic HTML Tags.
  • Learnt Basic CSS Properties and CSS Selectors.
  • Learnt about Inheritance and Variables in Syntactically Awesome Style Sheets.
  • Learnt how to convert SASS into CSS.

Video Link

https://youtu.be/FDMuz3w-KUo

search-frontend's People

Contributors

xuanniee 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.