Welcome to your first project! 🎉 This is your chance to recreate a simplified version of Google’s search interface while adding your own touches. Follow the instructions below, and don’t forget to unleash your creativity along the way!
This project involves building three main pages:
- Google Search (index.html) - Your main search page.
- Google Image Search - A dedicated page for image search.
- Google Advanced Search - An advanced search page with additional query options.
These pages should mimic Google’s basic layout and functionality, so aim for a similar look and feel!
-
Pages:
- Your website should include three pages:
index.htmlfor Google Search- A page for Google Image Search
- A page for Google Advanced Search
- Your website should include three pages:
-
Navigation:
- On the Google Search page, include links in the upper-right corner to go to Image Search and Advanced Search.
- On the Image Search and Advanced Search pages, add a link in the upper-right corner to go back to the Google Search page.
-
Search Bar and Button:
- Create a centered search bar with rounded corners.
- Center the Google Search button below the search bar.
-
Search Functionality:
- Allow users to type a query, click “Google Search,” and be taken to the Google search results for their query.
-
I’m Feeling Lucky Button:
- Add an I’m Feeling Lucky button that directly takes the user to the first search result for their query.
- Note: You may encounter a redirect notice from Google. This is normal.
- Search Bar and Button:
- Include a search bar where users can type a query.
- Add a Search button that, when clicked, takes users to the Google Image search results page for their query.
-
Advanced Search Options:
- Create input fields for:
- All these words
- This exact word or phrase
- Any of these words
- None of these words
- Create input fields for:
-
Layout:
- Stack all four options vertically, with the input fields left-aligned.
-
Advanced Search Button:
- Style the Advanced Search button with blue background and white text.
- When clicked, it should direct users to the search results page based on the query parameters.
- Your CSS should resemble Google’s minimalist style:
- Clean, spacious design.
- Rounded corners for input fields.
- Consistent alignment and spacing.
- Bonus Challenge: Use
FlexboxorCSS Gridto help with layout alignment.
If you’re looking for an extra challenge, consider adding one (or both) of the following features:
- Automatic Dark Mode: Detect the user's system theme and apply a dark theme if their system is set to dark mode.
- Dark Mode Toggle: Add a button that allows users to manually switch between light and dark themes.
- CSS Tip: Use CSS variables and the
prefers-color-schememedia query for this feature.
- Add a subtle hover animation to the search buttons on all pages. This could be a color change, scale, or shadow effect.
- Experiment with animations to add a bit of flair without sacrificing simplicity.
Here are some links to help you along the way:
- HTML Basics: W3Schools HTML Tutorial
- CSS Styling: CSS Basics on MDN
- Flexbox Guide: CSS Tricks Flexbox Guide
- CSS Grid Guide: CSS Tricks CSS Grid Guide
- Dark Mode Tips: MDN prefers-color-scheme
Once you’ve completed your project, it’s time to share it with the world! Follow these steps to deploy your website on GitHub Pages or Vercel:
-
Push Your Code:
- Make sure your code is pushed to your GitHub repository and organized in the
mainbranch (ormasterif that’s the default).
- Make sure your code is pushed to your GitHub repository and organized in the
-
Enable GitHub Pages:
- Go to your GitHub repository.
- Navigate to Settings > Pages in the sidebar.
- Under Source, select the branch (
mainormaster) and choose/rootas the directory. - Click Save.
-
View Your Site:
- GitHub will display a message with the URL where your site is live (usually
https://your-username.github.io/repo-name). - Note: GitHub Pages might take a few minutes to publish.
- GitHub will display a message with the URL where your site is live (usually
-
Share Your Link:
- Once published, share the link with the team or showcase it in the README file for easy access.
-
Sign Up on Vercel:
- Go to Vercel and sign up with your GitHub account.
-
Import Your GitHub Repository:
- After logging in, click New Project and select your GitHub repository.
- Follow the prompts to authorize Vercel to access your repo.
-
Configure Deployment:
- Vercel automatically detects static files, so no extra configuration is typically needed.
- Click Deploy to start the deployment process.
-
View and Share Your Site:
- Vercel will provide a live URL once the deployment is complete (usually in a format like
https://your-project.vercel.app). - Note: This deployment is automatic, so any changes you push to the
mainbranch will automatically update on Vercel.
- Vercel will provide a live URL once the deployment is complete (usually in a format like
Include the live link in your README file under a "Live Demo" section, so anyone viewing the repo can access your deployed site directly.
Good luck, and may the creative force be with you! ✌️