-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Al-Tirah
authored and
Al-Tirah
committed
Dec 16, 2020
1 parent
ebe03cb
commit b5a8ccd
Showing
17 changed files
with
16,871 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
[{"/Users/stuartdaniells/Desktop/W-D/React/robo_people/src/index.js":"1","/Users/stuartdaniells/Desktop/W-D/React/robo_people/src/smart_components/App.js":"2","/Users/stuartdaniells/Desktop/W-D/React/robo_people/src/pure_components/CardList.js":"3","/Users/stuartdaniells/Desktop/W-D/React/robo_people/src/pure_components/SearchBar.js":"4","/Users/stuartdaniells/Desktop/W-D/React/robo_people/src/pure_components/Scroll.js":"5","/Users/stuartdaniells/Desktop/W-D/React/robo_people/src/pure_components/card.js":"6"},{"size":417,"mtime":1608108189044,"results":"7","hashOfConfig":"8"},{"size":2085,"mtime":1608112890227,"results":"9","hashOfConfig":"8"},{"size":441,"mtime":1608108268264,"results":"10","hashOfConfig":"8"},{"size":463,"mtime":1608113950750,"results":"11","hashOfConfig":"8"},{"size":181,"mtime":1608107960438,"results":"12","hashOfConfig":"8"},{"size":341,"mtime":1608109214285,"results":"13","hashOfConfig":"8"},{"filePath":"14","messages":"15","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"p4ums4",{"filePath":"16","messages":"17","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"18","messages":"19","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"20","messages":"21","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"22","messages":"23","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"24","messages":"25","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"/Users/stuartdaniells/Desktop/W-D/React/robo_people/src/index.js",[],"/Users/stuartdaniells/Desktop/W-D/React/robo_people/src/smart_components/App.js",[],"/Users/stuartdaniells/Desktop/W-D/React/robo_people/src/pure_components/CardList.js",[],"/Users/stuartdaniells/Desktop/W-D/React/robo_people/src/pure_components/SearchBar.js",[],"/Users/stuartdaniells/Desktop/W-D/React/robo_people/src/pure_components/Scroll.js",[],"/Users/stuartdaniells/Desktop/W-D/React/robo_people/src/pure_components/card.js",[]] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files. | ||
|
||
# dependencies | ||
/node_modules | ||
/.pnp | ||
.pnp.js | ||
|
||
# testing | ||
/coverage | ||
|
||
# production | ||
/build | ||
|
||
# misc | ||
.DS_Store | ||
.env.local | ||
.env.development.local | ||
.env.test.local | ||
.env.production.local | ||
|
||
npm-debug.log* | ||
yarn-debug.log* | ||
yarn-error.log* |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
{ | ||
"name": "robo_people", | ||
"version": "0.1.0", | ||
"private": true, | ||
"dependencies": { | ||
"@testing-library/jest-dom": "^5.11.6", | ||
"@testing-library/react": "^11.2.2", | ||
"@testing-library/user-event": "^12.5.0", | ||
"react": "^17.0.1", | ||
"react-dom": "^17.0.1", | ||
"react-scripts": "4.0.1", | ||
"tachyons": "^4.12.0", | ||
"web-vitals": "^0.2.4" | ||
}, | ||
"scripts": { | ||
"start": "react-scripts start", | ||
"build": "react-scripts build", | ||
"test": "react-scripts test", | ||
"eject": "react-scripts eject" | ||
}, | ||
"eslintConfig": { | ||
"extends": [ | ||
"react-app", | ||
"react-app/jest" | ||
] | ||
}, | ||
"browserslist": { | ||
"production": [ | ||
">0.2%", | ||
"not dead", | ||
"not op_mini all" | ||
], | ||
"development": [ | ||
"last 1 chrome version", | ||
"last 1 firefox version", | ||
"last 1 safari version" | ||
] | ||
} | ||
} |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="utf-8" /> | ||
<link rel="icon" href="%PUBLIC_URL%/favicon.ico" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1" /> | ||
<meta name="theme-color" content="#000000" /> | ||
<meta | ||
name="description" | ||
content="Web site created using create-react-app" | ||
/> | ||
<!-- | ||
manifest.json provides metadata used when your web app is installed on a | ||
user's mobile device or desktop. See https://developers.google.com/web/fundamentals/web-app-manifest/ | ||
--> | ||
<link rel="manifest" href="%PUBLIC_URL%/manifest.json" /> | ||
<!-- | ||
Notice the use of %PUBLIC_URL% in the tags above. | ||
It will be replaced with the URL of the `public` folder during the build. | ||
Only files inside the `public` folder can be referenced from the HTML. | ||
Unlike "/favicon.ico" or "favicon.ico", "%PUBLIC_URL%/favicon.ico" will | ||
work correctly both with client-side routing and a non-root public URL. | ||
Learn how to configure a non-root public URL by running `npm run build`. | ||
--> | ||
<!-- MY CSS STYLE FOR SEARCH BAR - ICON PACK--> | ||
<title>React App</title> | ||
|
||
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.3.1/css/all.css" /> | ||
</head> | ||
<body> | ||
<noscript>You need to enable JavaScript to run this app.</noscript> | ||
<div id="root"></div> | ||
<!-- | ||
This HTML file is a template. | ||
If you open it directly in the browser, you will see an empty page. | ||
You can add webfonts, meta tags, or analytics to this file. | ||
The build step will place the bundled scripts into the <body> tag. | ||
To begin the development, run `npm start` or `yarn start`. | ||
To create a production bundle, use `npm run build` or `yarn build`. | ||
--> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
{ | ||
"short_name": "React App", | ||
"name": "Create React App Sample", | ||
"icons": [ | ||
{ | ||
"src": "favicon.ico", | ||
"sizes": "64x64 32x32 24x24 16x16", | ||
"type": "image/x-icon" | ||
} | ||
], | ||
"start_url": ".", | ||
"display": "standalone", | ||
"theme_color": "#000000", | ||
"background_color": "#ffffff" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
body{ | ||
background: linear-gradient(to right, rgb(118, 16, 244), rgb(150, 60, 156), rgb(36, 212, 223)); | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import React from 'react'; | ||
import ReactDOM from 'react-dom'; | ||
import App from './smart_components/App'; | ||
import './index.css'; | ||
import 'tachyons'; | ||
|
||
|
||
ReactDOM.render(<App/>,document.getElementById('root')); | ||
|
||
// If you want to start measuring performance in your app, pass a function | ||
// to log results (for example: reportWebVitals(console.log)) | ||
// or send to an analytics endpoint. Learn more: https://bit.ly/CRA-vitals | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import React from "react"; | ||
import Card from "./card"; | ||
|
||
const CL = ({robo}) => { | ||
return( | ||
<> | ||
{ | ||
robo.map(item => { | ||
return(<Card key={item.id} id={item.id} name={item.name} email={item.email}/>); | ||
}) | ||
} | ||
</> | ||
); | ||
} | ||
|
||
export default CL; | ||
|
||
|
||
// instead of direct destructuring, we can do: | ||
// const {id, name, email} = props | ||
// (can be any name for props) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
const scrollBar = (props) => { | ||
return( | ||
<div style={{overflowY: 'scroll', height: '72vh'}}> | ||
{props.children} | ||
</div> | ||
) | ||
} | ||
|
||
export default scrollBar; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import React from 'react'; | ||
import "./styledBar.css"; | ||
|
||
const searchBox = ({searchChanged}) => { | ||
return( | ||
// class names used here are not part of tachyons but custom css | ||
<div className="main"> | ||
<input | ||
type="search" | ||
placeholder="Search Robot names.." | ||
onChange = {searchChanged} | ||
/> | ||
<i className="fa fa-search"></i> | ||
</div> | ||
) | ||
} | ||
|
||
export default searchBox; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import React from "react"; | ||
|
||
const c1 = ({id,name,email}) => { | ||
return( | ||
<div className="tc bg-light-green dib br3 pas3 ma2 grow bw2 shadow-5"> | ||
<img alt ="robos" src={`https://robohash.org/bgset_bg1/${id}?size=200x200`}/> | ||
<h2>{name}</h2> | ||
<p>{email}</p> | ||
</div> | ||
); | ||
} | ||
|
||
export default c1; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
/* CSS search bar - credits*/ | ||
/* https://codepen.io/menelaosly */ | ||
|
||
.main{ | ||
position: relative; | ||
top: 50%; | ||
left: 50%; | ||
transform: translate(-50%,-50%); | ||
transition: all 1s; | ||
width: 50px; | ||
height: 50px; | ||
background: white; | ||
box-sizing: border-box; | ||
border-radius: 25px; | ||
border: 4px solid white; | ||
padding: 5px; | ||
} | ||
|
||
input{ | ||
position: absolute; | ||
top: 0; | ||
left: 0; | ||
width: 100%;; | ||
height: 42.5px; | ||
line-height: 30px; | ||
outline: 0; | ||
border: 0; | ||
display: none; | ||
font-size: 1em; | ||
border-radius: 20px; | ||
padding: 0 20px; | ||
} | ||
|
||
.fa{ | ||
box-sizing: border-box; | ||
padding: 10px; | ||
width: 42.5px; | ||
height: 42.5px; | ||
position: absolute; | ||
top: 0; | ||
right: 0; | ||
border-radius: 50%; | ||
color: #07051a; | ||
text-align: center; | ||
font-size: 1.2em; | ||
transition: all 1s; | ||
} | ||
|
||
.main:hover{ | ||
width: 300px; | ||
cursor: pointer; | ||
} | ||
|
||
.main:hover input{ | ||
display: block; | ||
} | ||
|
||
.main:hover .fa{ | ||
background: #07051a; | ||
color: white; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
/* #### Generated By: http://www.cufonfonts.com #### */ | ||
|
||
@font-face { | ||
font-family: 'SEGA LOGO FONT'; | ||
font-style: normal; | ||
font-weight: normal; | ||
src: local('SEGA LOGO FONT'), url('./SEGA.woff') format('woff'); | ||
} | ||
/* Font SEGA */ | ||
h1{ | ||
font-family: 'SEGA LOGO FONT'; | ||
font-weight: 400; | ||
color: #2c0a36; | ||
} | ||
|
||
|
||
/* Loading bar - credits*/ | ||
/* https://codepen.io/brpereyra/pens/public */ | ||
|
||
:root { | ||
--loading-bg: #ddd; | ||
--loading-timer: 2s; | ||
--loading-bar-color:orange; | ||
--loading-height: 1em; | ||
--loading-width:300px; | ||
} | ||
|
||
.container { | ||
/*center content*/ | ||
height: 100vh; | ||
width: 100%; | ||
display: flex; | ||
justify-content: center; | ||
align-items: center; | ||
} | ||
.container .loading { | ||
position: relative; | ||
background-color: var(--loading-bg); | ||
min-width: var(--loading-width); | ||
min-height: var(--loading-height); | ||
border-radius: 1em; | ||
} | ||
.container .loading:after { | ||
content: ''; | ||
height: 100%; | ||
border-radius: 1em; | ||
position: absolute; | ||
top: 0; | ||
width: 0%; | ||
background-color: var(--loading-bar-color); | ||
animation: after-animation var(--loading-timer) ease-out 0s infinite; | ||
} | ||
|
||
@keyframes after-animation { | ||
0% { | ||
width: 8%; | ||
} | ||
50% { | ||
width: 100%; | ||
transform: rotateZ(180deg); | ||
} | ||
100% { | ||
width: 8%; | ||
transform: rotateZ(180deg); | ||
} | ||
} |
Oops, something went wrong.