Skip to content

Commit 77efbcd

Browse files
committed
Google-UI First Commit
1 parent c1b5d9f commit 77efbcd

23 files changed

+414
-161
lines changed

README.md

Lines changed: 16 additions & 59 deletions
Original file line numberDiff line numberDiff line change
@@ -1,70 +1,27 @@
1-
# Getting Started with Create React App
1+
# Google
22

3-
This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app).
3+
A simple google-UI clone (only frontend) but who knows maybe in the future I'll add searching functionality
44

5-
## Available Scripts
5+
## Usage
66

7-
In the project directory, you can run:
7+
Clone the repository and run this command in the terminal:
88

9-
### `npm start`
9+
```javascript
10+
npm install
11+
```
1012

11-
Runs the app in the development mode.\
12-
Open [http://localhost:3000](http://localhost:3000) to view it in the browser.
13+
after that simply run this command to start the website on localhost:
1314

14-
The page will reload if you make edits.\
15-
You will also see any lint errors in the console.
15+
```javascript
16+
npm start
17+
```
1618

17-
### `npm test`
19+
## Contributing
1820

19-
Launches the test runner in the interactive watch mode.\
20-
See the section about [running tests](https://facebook.github.io/create-react-app/docs/running-tests) for more information.
21+
Pull requests are welcome. please open an issue first to discuss what you would like to change.
2122

22-
### `npm run build`
23+
Please make sure to update tests as appropriate.
2324

24-
Builds the app for production to the `build` folder.\
25-
It correctly bundles React in production mode and optimizes the build for the best performance.
25+
# 🚀
2626

27-
The build is minified and the filenames include the hashes.\
28-
Your app is ready to be deployed!
29-
30-
See the section about [deployment](https://facebook.github.io/create-react-app/docs/deployment) for more information.
31-
32-
### `npm run eject`
33-
34-
**Note: this is a one-way operation. Once you `eject`, you can’t go back!**
35-
36-
If you aren’t satisfied with the build tool and configuration choices, you can `eject` at any time. This command will remove the single build dependency from your project.
37-
38-
Instead, it will copy all the configuration files and the transitive dependencies (webpack, Babel, ESLint, etc) right into your project so you have full control over them. All of the commands except `eject` will still work, but they will point to the copied scripts so you can tweak them. At this point you’re on your own.
39-
40-
You don’t have to ever use `eject`. The curated feature set is suitable for small and middle deployments, and you shouldn’t feel obligated to use this feature. However we understand that this tool wouldn’t be useful if you couldn’t customize it when you are ready for it.
41-
42-
## Learn More
43-
44-
You can learn more in the [Create React App documentation](https://facebook.github.io/create-react-app/docs/getting-started).
45-
46-
To learn React, check out the [React documentation](https://reactjs.org/).
47-
48-
### Code Splitting
49-
50-
This section has moved here: [https://facebook.github.io/create-react-app/docs/code-splitting](https://facebook.github.io/create-react-app/docs/code-splitting)
51-
52-
### Analyzing the Bundle Size
53-
54-
This section has moved here: [https://facebook.github.io/create-react-app/docs/analyzing-the-bundle-size](https://facebook.github.io/create-react-app/docs/analyzing-the-bundle-size)
55-
56-
### Making a Progressive Web App
57-
58-
This section has moved here: [https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app](https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app)
59-
60-
### Advanced Configuration
61-
62-
This section has moved here: [https://facebook.github.io/create-react-app/docs/advanced-configuration](https://facebook.github.io/create-react-app/docs/advanced-configuration)
63-
64-
### Deployment
65-
66-
This section has moved here: [https://facebook.github.io/create-react-app/docs/deployment](https://facebook.github.io/create-react-app/docs/deployment)
67-
68-
### `npm run build` fails to minify
69-
70-
This section has moved here: [https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify](https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify)
27+
If you like my work then be sure to drop a ⭐.

package-lock.json

Lines changed: 96 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
"@testing-library/user-event": "^12.8.3",
99
"react": "^17.0.2",
1010
"react-dom": "^17.0.2",
11+
"react-router-dom": "^5.3.0",
1112
"react-scripts": "4.0.3",
1213
"web-vitals": "^1.1.2"
1314
},

public/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<meta name="theme-color" content="#000000" />
88
<meta
99
name="description"
10-
content="Web site created using create-react-app"
10+
content="Just a simple google ui clone by codestargm"
1111
/>
1212
<link rel="apple-touch-icon" href="%PUBLIC_URL%/logo192.png" />
1313
<!--
@@ -24,7 +24,7 @@
2424
work correctly both with client-side routing and a non-root public URL.
2525
Learn how to configure a non-root public URL by running `npm run build`.
2626
-->
27-
<title>React App</title>
27+
<title>Google</title>
2828
</head>
2929
<body>
3030
<noscript>You need to enable JavaScript to run this app.</noscript>

src/App.css

Lines changed: 1 addition & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,5 @@
1-
.App {
2-
text-align: center;
3-
}
4-
5-
.App-logo {
6-
height: 40vmin;
7-
pointer-events: none;
8-
}
9-
10-
@media (prefers-reduced-motion: no-preference) {
11-
.App-logo {
12-
animation: App-logo-spin infinite 20s linear;
13-
}
14-
}
15-
16-
.App-header {
17-
background-color: #282c34;
18-
min-height: 100vh;
1+
.center {
192
display: flex;
20-
flex-direction: column;
213
align-items: center;
224
justify-content: center;
23-
font-size: calc(10px + 2vmin);
24-
color: white;
25-
}
26-
27-
.App-link {
28-
color: #61dafb;
29-
}
30-
31-
@keyframes App-logo-spin {
32-
from {
33-
transform: rotate(0deg);
34-
}
35-
to {
36-
transform: rotate(360deg);
37-
}
385
}

src/App.js

Lines changed: 15 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,20 @@
1-
import logo from './logo.svg';
2-
import './App.css';
3-
1+
import { Switch, Route } from "react-router";
2+
import Home from "./pages/Home";
3+
import Gmail from "./pages/Gmail";
4+
import Images from "./pages/Images";
5+
import Navbar from "./components/Navbar";
46
function App() {
57
return (
6-
<div className="App">
7-
<header className="App-header">
8-
<img src={logo} className="App-logo" alt="logo" />
9-
<p>
10-
Edit <code>src/App.js</code> and save to reload.
11-
</p>
12-
<a
13-
className="App-link"
14-
href="https://reactjs.org"
15-
target="_blank"
16-
rel="noopener noreferrer"
17-
>
18-
Learn React
19-
</a>
20-
</header>
21-
</div>
8+
<>
9+
<Navbar />
10+
<Switch>
11+
<Route path="/" exact component={Home} />
12+
13+
<Route path="/gmail" exact component={Gmail} />
14+
15+
<Route path="/images" exact component={Images} />
16+
</Switch>
17+
</>
2218
);
2319
}
2420

src/App.test.js

Lines changed: 0 additions & 8 deletions
This file was deleted.

src/components/Center.js

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
import React from "react";
2+
import "../styles/Center.css";
3+
const Center = () => {
4+
return (
5+
<div className="center">
6+
<img
7+
src="https://www.google.com/images/branding/googlelogo/1x/googlelogo_color_272x92dp.png"
8+
alt="google-logo"
9+
/>
10+
<div className="searchBar">
11+
<svg
12+
focusable="false"
13+
xmlns="http://www.w3.org/2000/svg"
14+
viewBox="0 0 24 24"
15+
fill="#9AA0A6"
16+
>
17+
<path d="M15.5 14h-.79l-.28-.27A6.471 6.471 0 0 0 16 9.5 6.5 6.5 0 1 0 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"></path>
18+
</svg>
19+
<input type="text" />
20+
<svg
21+
focusable="false"
22+
viewBox="0 0 24 24"
23+
xmlns="http://www.w3.org/2000/svg"
24+
>
25+
<path
26+
fill="#4285f4"
27+
d="m12 15c1.66 0 3-1.31 3-2.97v-7.02c0-1.66-1.34-3.01-3-3.01s-3 1.34-3 3.01v7.02c0 1.66 1.34 2.97 3 2.97z"
28+
></path>
29+
<path fill="#34a853" d="m11 18.08h2v3.92h-2z"></path>
30+
<path
31+
fill="#fbbc05"
32+
d="m7.05 16.87c-1.27-1.33-2.05-2.83-2.05-4.87h2c0 1.45 0.56 2.42 1.47 3.38v0.32l-1.15 1.18z"
33+
></path>
34+
<path
35+
fill="#ea4335"
36+
d="m12 16.93a4.97 5.25 0 0 1 -3.54 -1.55l-1.41 1.49c1.26 1.34 3.02 2.13 4.95 2.13 3.87 0 6.99-2.92 6.99-7h-1.99c0 2.92-2.24 4.93-5 4.93z"
37+
></path>
38+
</svg>
39+
</div>
40+
<div className="buttons">
41+
<button className="google-search">Google Search</button>
42+
43+
<button className="google-lucky">I'm Feeling Lucky</button>
44+
</div>
45+
</div>
46+
);
47+
};
48+
49+
export default Center;

0 commit comments

Comments
 (0)