Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pagination added to mainsite #5

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
.idea/
.vscode/
node_modules/
build
.DS_Store
*.tgz
my-app*
template/src/__tests__/__snapshots__/
lerna-debug.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
/.changelog
.npm/
yarn.lock
4 changes: 4 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
package.json
package-lock.json
yarn.lock
assets
1 change: 1 addition & 0 deletions .prettierrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{}
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
15,815 changes: 15,815 additions & 0 deletions package-lock.json

Large diffs are not rendered by default.

50 changes: 50 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
{
"name": "generative-art",
"version": "0.1.0",
"private": true,
"dependencies": {
"@material-ui/core": "^4.11.0",
"@material-ui/icons": "^4.9.1",
"@testing-library/jest-dom": "^5.11.4",
"@testing-library/react": "^11.1.0",
"@testing-library/user-event": "^12.1.10",
"axios": "^0.21.0",
"bootstrap": "^4.5.3",
"dat.gui": "^0.7.7",
"noisejs": "^2.1.0",
"p5": "^1.1.9",
"react": "^17.0.1",
"react-bootstrap": "^1.4.0",
"react-dom": "^17.0.1",
"react-icons": "^4.1.0",
"react-p5-wrapper": "^2.3.0",
"react-router-dom": "^5.2.0",
"react-scripts": "4.0.0",
"web-vitals": "^0.2.4"
},
"scripts": {
"start": "react-scripts start",
"build": "react-scripts build",
"test": "react-scripts test",
"eject": "react-scripts eject",
"format": "npx prettier --write ."
},
"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"
]
}
}
210 changes: 210 additions & 0 deletions public/data.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,210 @@
[
{
"name": "Beyond Binary",
"desc": "Lorem ipsum dolor sit amet consectetur, adipisicing elit. Fuga, amet?",
"linkUrl": "/art/beyond_binary",
"codeUrl": "https://github.com/rt1301/generative-art/blob/redux_implementation/assets/beyond_binary/sketch.js",
"image": "./static/images/beyond_binary.png",
"author": "Tanvi Kumar"
},
{
"name": "Border Radius",
"desc": "Lorem ipsum dolor sit amet consectetur, adipisicing elit. Fuga, amet?",
"linkUrl": "/art/border_radius",
"codeUrl": "https://github.com/rt1301/generative-art/blob/redux_implementation/assets/border_radius/sketch.js",
"image": "./static/images/border_radius.png",
"author": "Tanvi Kumar"
},
{
"name": "Card",
"desc": "Lorem ipsum dolor sit amet consectetur, adipisicing elit. Fuga, amet?",
"linkUrl": "/art/card",
"codeUrl": "https://github.com/rt1301/generative-art/blob/redux_implementation/assets/card/sketch.js",
"image": "./static/images/card.png",
"author": "Tanvi Kumar"
},
{
"name": "Cross",
"desc": "Lorem ipsum dolor sit amet consectetur, adipisicing elit. Fuga, amet?",
"linkUrl": "/art/cross",
"codeUrl": "https://github.com/rt1301/generative-art/blob/redux_implementation/assets/cross/sketch.js",
"image": "./static/images/cross.png",
"author": "Tanvi Kumar"
},
{
"name": "Cross2",
"desc": "Lorem ipsum dolor sit amet consectetur, adipisicing elit. Fuga, amet?",
"linkUrl": "/art/cross2",
"codeUrl": "https://github.com/rt1301/generative-art/blob/redux_implementation/assets/cross2/sketch.js",
"image": "./static/images/cross2.png",
"author": "Tanvi Kumar"
},
{
"name": "Dinner Light",
"desc": "Lorem ipsum dolor sit amet consectetur, adipisicing elit. Fuga, amet?",
"linkUrl": "/art/dinner_light",
"codeUrl": "https://github.com/rt1301/generative-art/blob/redux_implementation/assets/dinner_light/sketch.js",
"image": "./static/images/dinner_light.png",
"author": "Tanvi Kumar"
},
{
"name": "Fade",
"desc": "Lorem ipsum dolor sit amet consectetur, adipisicing elit. Fuga, amet?",
"linkUrl": "/art/fade",
"codeUrl": "https://github.com/rt1301/generative-art/blob/redux_implementation/assets/fade/sketch.js",
"image": "./static/images/fade.png",
"author": "Tanvi Kumar"
},
{
"name": "Flower Tree",
"desc": "Lorem ipsum dolor sit amet consectetur, adipisicing elit. Fuga, amet?",
"linkUrl": "/art/flower_tree",
"codeUrl": "https://github.com/rt1301/generative-art/blob/redux_implementation/assets/flower_tree/sketch.js",
"image": "./static/images/flower_tree.png",
"author": "Tanvi Kumar"
},
{
"name": "Hazy Pyramids",
"desc": "Lorem ipsum dolor sit amet consectetur, adipisicing elit. Fuga, amet?",
"linkUrl": "/art/hazy_pyramids",
"codeUrl": "https://github.com/rt1301/generative-art/blob/redux_implementation/assets/hazy_pyramids/sketch.js",
"image": "./static/images/hazy_pyramid.png",
"author": "Tanvi Kumar"
},
{
"name": "Pentaplex",
"desc": "Lorem ipsum dolor sit amet consectetur, adipisicing elit. Fuga, amet?",
"linkUrl": "/art/pentaplex",
"codeUrl": "https://github.com/rt1301/generative-art/blob/redux_implementation/assets/pentaplex/sketch.js",
"image": "./static/images/pentaplex.png",
"author": "Tanvi Kumar"
},
{
"name": "Pyramid Grid",
"desc": "Lorem ipsum dolor sit amet consectetur, adipisicing elit. Fuga, amet?",
"linkUrl": "/art/pyramid_grid",
"codeUrl": "https://github.com/rt1301/generative-art/blob/redux_implementation/assets/pyramid_grid/sketch.js",
"image": "./static/images/pyramid_grid.png",
"author": "Tanvi Kumar"
},
{
"name": "Random Walker",
"desc": "Lorem ipsum dolor sit amet consectetur, adipisicing elit. Fuga, amet?",
"linkUrl": "/art/random_walker",
"codeUrl": "https://github.com/rt1301/generative-art/blob/redux_implementation/assets/random_walker/sketch.js",
"image": "./static/images/random_walker.png",
"author": "Tanvi Kumar"
},
{
"name": "Sakura",
"desc": "Lorem ipsum dolor sit amet consectetur, adipisicing elit. Fuga, amet?",
"linkUrl": "/art/sakura",
"codeUrl": "https://github.com/rt1301/generative-art/blob/redux_implementation/assets/sakura/sketch.js",
"image": "./static/images/sakura.png",
"author": "Tanvi Kumar"
},
{
"name": "Soft Ten Print",
"desc": "Lorem ipsum dolor sit amet consectetur, adipisicing elit. Fuga, amet?",
"linkUrl": "/art/soft_ten_print",
"codeUrl": "https://github.com/rt1301/generative-art/blob/redux_implementation/assets/soft_ten_print/sketch.js",
"image": "./static/images/soft_ten_print.png",
"author": "Tanvi Kumar"
},
{
"name": "Square Circle",
"desc": "Lorem ipsum dolor sit amet consectetur, adipisicing elit. Fuga, amet?",
"linkUrl": "/art/square_circle",
"codeUrl": "https://github.com/rt1301/generative-art/blob/redux_implementation/assets/square_circle/sketch.js",
"image": "./static/images/square_circle.png",
"author": "Tanvi Kumar"
},
{
"name": "Squiggles",
"desc": "Lorem ipsum dolor sit amet consectetur, adipisicing elit. Fuga, amet?",
"linkUrl": "/art/squiggles",
"codeUrl": "https://github.com/rt1301/generative-art/blob/redux_implementation/assets/squiggles/sketch.js",
"image": "./static/images/squiggles.png",
"author": "Tanvi Kumar"
},
{
"name": "Ten Print 1",
"desc": "Lorem ipsum dolor sit amet consectetur, adipisicing elit. Fuga, amet?",
"linkUrl": "/art/ten_print_1",
"codeUrl": "https://github.com/rt1301/generative-art/blob/redux_implementation/assets/ten_print_1/sketch.js",
"image": "./static/images/ten_print_1.png",
"author": "Tanvi Kumar"
},
{
"name": "Ten Print Hex",
"desc": "Lorem ipsum dolor sit amet consectetur, adipisicing elit. Fuga, amet?",
"linkUrl": "/art/ten_print_hex",
"codeUrl": "https://github.com/rt1301/generative-art/blob/redux_implementation/assets/ten_print_hex/sketch.js",
"image": "./static/images/ten_print_hex.png",
"author": "Tanvi Kumar"
},
{
"name": "Thick Hex Ten Print",
"desc": "Lorem ipsum dolor sit amet consectetur, adipisicing elit. Fuga, amet?",
"linkUrl": "/art/thick_hex_ten_print",
"codeUrl": "https://github.com/rt1301/generative-art/blob/redux_implementation/assets/thick_hex_ten_print/sketch.js",
"image": "./static/images/thick_hex_ten_print.png",
"author": "Tanvi Kumar"
},
{
"name": "Tuls 1",
"desc": "Lorem ipsum dolor sit amet consectetur, adipisicing elit. Fuga, amet?",
"linkUrl": "/art/tuls1",
"codeUrl": "https://github.com/rt1301/generative-art/blob/redux_implementation/assets/tuls1/sketch.js",
"image": "./static/images/tuls1.png",
"author": "Tanvi Kumar"
},
{
"name": "Tuls 2",
"desc": "Lorem ipsum dolor sit amet consectetur, adipisicing elit. Fuga, amet?",
"linkUrl": "/art/tuls2",
"codeUrl": "https://github.com/rt1301/generative-art/blob/redux_implementation/assets/tuls2/sketch.js",
"image": "./static/images/tuls2.png",
"author": "Tanvi Kumar"
},
{
"name": "Tuls 3",
"desc": "Lorem ipsum dolor sit amet consectetur, adipisicing elit. Fuga, amet?",
"linkUrl": "/art/tuls3",
"codeUrl": "https://github.com/rt1301/generative-art/blob/redux_implementation/assets/tuls3/sketch.js",
"image": "./static/images/tuls3.png",
"author": "Tanvi Kumar"
},
{
"name": "Tuls 4",
"desc": "Lorem ipsum dolor sit amet consectetur, adipisicing elit. Fuga, amet?",
"linkUrl": "/art/tuls4",
"codeUrl": "https://github.com/rt1301/generative-art/blob/redux_implementation/assets/tuls4/sketch.js",
"image": "./static/images/tuls4.png",
"author": "Tanvi Kumar"
},
{
"name": "Tuls 5",
"desc": "Lorem ipsum dolor sit amet consectetur, adipisicing elit. Fuga, amet?",
"linkUrl": "/art/tuls5",
"codeUrl": "https://github.com/rt1301/generative-art/blob/redux_implementation/assets/tuls5/sketch.js",
"image": "./static/images/tuls5.png",
"author": "Tanvi Kumar"
},
{
"name": "Vera Molnar",
"desc": "Lorem ipsum dolor sit amet consectetur, adipisicing elit. Fuga, amet?",
"linkUrl": "/art/vera_molnar",
"codeUrl": "https://github.com/rt1301/generative-art/blob/redux_implementation/assets/vera_molnar/sketch.js",
"image": "./static/images/vera_molnar.png",
"author": "Tanvi Kumar"
},
{
"name": "Waves",
"desc": "Lorem ipsum dolor sit amet consectetur, adipisicing elit. Fuga, amet?",
"linkUrl": "/art/waves",
"codeUrl": "https://github.com/rt1301/generative-art/blob/redux_implementation/assets/waves/sketch.js",
"image": "./static/images/waves.png",
"author": "Tanvi Kumar"
}
]
Binary file added public/favicon.ico
Binary file not shown.
41 changes: 41 additions & 0 deletions public/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
<!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`.
-->
<title>Generative Art for All</title>
</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>
Binary file added public/logo192.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/logo512.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
25 changes: 25 additions & 0 deletions public/manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"short_name": "React App",
"name": "Create React App Sample",
"icons": [
{
"src": "favicon.ico",
"sizes": "64x64 32x32 24x24 16x16",
"type": "image/x-icon"
},
{
"src": "logo192.png",
"type": "image/png",
"sizes": "192x192"
},
{
"src": "logo512.png",
"type": "image/png",
"sizes": "512x512"
}
],
"start_url": ".",
"display": "standalone",
"theme_color": "#000000",
"background_color": "#ffffff"
}
3 changes: 3 additions & 0 deletions public/robots.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# https://www.robotstxt.org/robotstxt.html
User-agent: *
Disallow:
Binary file added public/static/images/beyond_binary.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/static/images/border_radius.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/static/images/card.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/static/images/cross.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/static/images/cross2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/static/images/dinner_light.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/static/images/fade.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/static/images/flower_tree.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/static/images/hazy_pyramid.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/static/images/pentaplex.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/static/images/pyramid_grid.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/static/images/random_walker.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/static/images/sakura.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/static/images/soft_ten_print.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/static/images/square_circle.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/static/images/squiggles.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/static/images/ten_print_1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/static/images/ten_print_hex.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/static/images/thick_hex_ten_print.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/static/images/tuls1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/static/images/tuls2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/static/images/tuls3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/static/images/tuls4.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/static/images/tuls5.png
Binary file added public/static/images/vera_molnar.png
Binary file added public/static/images/waves.png
38 changes: 38 additions & 0 deletions src/App.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
.App {
text-align: center;
}

* {
box-sizing: border-box;
margin: 0;
padding: 0;
}
:root {
--dark-bluecolor: #221b3a;
--bg-themecolor: #e3e1f0;
}
h1 {
text-transform: uppercase;
font-size: 40px;
}

.leaf {
height: 160px;
width: 60px;
position: absolute;
top: 28px;
right: 0px;
}
.leaf .sq1 {
height: 60px;
width: 60px;
border-radius: 0px 50px;
background-color: #665aae;
}

.leaf .sq2 {
height: 60px;
width: 60px;
border-radius: 50px 0px 50px 20px;
background-color: #a89cf2;
}
Loading