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

Maple C16 Karishma Johnson, Juliana Ruiz, Jesse, Grace(Jiajia Wang) #4

Open
wants to merge 69 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
69 commits
Select commit Hold shift + click to select a range
009d7ca
project setup
jessepope Dec 17, 2021
38023c7
added component file structure
jessepope Dec 22, 2021
75174ab
set up iimports
Jruiz9312 Dec 22, 2021
93b60e4
defined Board form
Jruiz9312 Dec 22, 2021
1e7e7f3
defined selection menu SUCCESSFULLY :) added to do list in comments
karishmacarterjohnson Dec 23, 2021
84dedaa
lifted state and added catch for Board
jessepope Dec 23, 2021
fe41639
moved component hierarchy
karishmacarterjohnson Dec 23, 2021
e14523c
selection list updates when new board is made
karishmacarterjohnson Dec 23, 2021
e52b61c
removed preset react css
karishmacarterjohnson Dec 23, 2021
d9828ce
removed getBoards since it was only used once
karishmacarterjohnson Dec 23, 2021
b32af52
card.js add form, API
wangjiajia95 Dec 24, 2021
e6fd955
card form with API
wangjiajia95 Dec 24, 2021
46cc584
pull then push
wangjiajia95 Dec 24, 2021
0b782ac
added Card to forms component
jessepope Dec 27, 2021
52c8080
added headings
jessepope Dec 27, 2021
b4c9b07
added Display functionality, code not functional because it is in pro…
jessepope Dec 27, 2021
d9758da
debugged Card form; component renders
karishmacarterjohnson Dec 28, 2021
7a04ec8
likecard, deletecard
wangjiajia95 Dec 28, 2021
0337edc
lifted state for display rendering and boardSelect
karishmacarterjohnson Dec 29, 2021
9d7cd2d
cleaned comments
karishmacarterjohnson Dec 29, 2021
9145584
cleaned imports
karishmacarterjohnson Dec 29, 2021
5ef3422
added feature: cards render when page first loads
karishmacarterjohnson Dec 29, 2021
56f3f98
added current value as onChange parameter
karishmacarterjohnson Dec 29, 2021
e6cb184
started updating card submit to pair with specific board
karishmacarterjohnson Dec 29, 2021
74a823b
add default to display display heading
karishmacarterjohnson Dec 29, 2021
10e89ee
imported css for app
karishmacarterjohnson Dec 29, 2021
83bc579
defined forms flexbox; centered headings
karishmacarterjohnson Dec 29, 2021
2a0dca0
cleanup committee
karishmacarterjohnson Dec 29, 2021
efad9ee
css for forms
karishmacarterjohnson Dec 29, 2021
1e8f91f
resolved typo in css
karishmacarterjohnson Dec 29, 2021
156ccda
added functionality to retrieving a boards cards based on selection
karishmacarterjohnson Dec 29, 2021
6aa4427
updated display heading format
karishmacarterjohnson Dec 29, 2021
d387364
debugged so cards successfully render in display
karishmacarterjohnson Dec 29, 2021
c937b61
added css classes to cards display
karishmacarterjohnson Dec 29, 2021
ec70565
gave buttons css
karishmacarterjohnson Dec 29, 2021
0d682fa
updated cards button text
karishmacarterjohnson Dec 29, 2021
b1c307a
updated cards button text
karishmacarterjohnson Dec 29, 2021
e7a8112
changed onSubmit to onClick, card posting is successful now
jessepope Dec 29, 2021
e52dcf8
refactored to merge Cards with Display; purges all cards when loading…
karishmacarterjohnson Dec 29, 2021
c3ea29b
repaired so liking / deleting a card button only does it once, deleti…
karishmacarterjohnson Dec 29, 2021
f4ff167
removed testing data
karishmacarterjohnson Dec 29, 2021
9d6cf68
removed console logs
karishmacarterjohnson Dec 29, 2021
91dbb02
removed Cards.js after being successfully merged into Display.js
karishmacarterjohnson Dec 29, 2021
09d1120
added styling into app.css, added component css files
jessepope Dec 30, 2021
e7458a6
give character requirements to input forms
karishmacarterjohnson Dec 30, 2021
cb099dc
added functional button for hiding and showing the make board form
karishmacarterjohnson Dec 30, 2021
e55a324
added red border when empty input message is being submitted; does no…
karishmacarterjohnson Dec 30, 2021
603eac1
removed comments
karishmacarterjohnson Dec 30, 2021
1c66c54
added visual effect for empty inputs
karishmacarterjohnson Dec 30, 2021
d390431
gave select element an id
karishmacarterjohnson Dec 30, 2021
7f0bc59
added comments on edge case for first load
karishmacarterjohnson Dec 30, 2021
ef71a3a
organized app.css file into sections, added header gif, matched color…
jessepope Dec 31, 2021
20b45b4
debugged display not re-rendering after card is deleted
karishmacarterjohnson Jan 1, 2022
30bd9de
Merge branch 'main' of https://github.com/jessepope/front-end-inspira…
karishmacarterjohnson Jan 1, 2022
5975a4d
lifted Display state to App
karishmacarterjohnson Jan 1, 2022
6258fcb
lifted Card state to App
karishmacarterjohnson Jan 1, 2022
f164a25
removed unused imports
karishmacarterjohnson Jan 1, 2022
a08586a
updated css
Jruiz9312 Jan 3, 2022
80d3bf3
deleted extra css files and modified Board.js
Jruiz9312 Jan 3, 2022
dfff512
removed css import statements
Jruiz9312 Jan 3, 2022
cad0f0c
added sort button
karishmacarterjohnson Jan 3, 2022
ac7a3fe
removed package-lock
karishmacarterjohnson Jan 3, 2022
921e87a
fixed flexbox wrap fucss on components and added preview text wrap
jessepope Jan 4, 2022
f0ced9b
updated css stylings deployment
karishmacarterjohnson Jan 4, 2022
2240c66
Merge branch 'main' of https://git.heroku.com/train-inspiration-station
karishmacarterjohnson Jan 4, 2022
4cf8716
updated CSS to fix border padding and card sizing
jessepope Jan 6, 2022
e7d78ed
Merge branch 'main' of https://github.com/jessepope/front-end-inspira…
karishmacarterjohnson Jan 6, 2022
15815ee
added train favicon; debugged red border on title in menu
karishmacarterjohnson Jan 7, 2022
99f7c73
updated content description
karishmacarterjohnson Jan 7, 2022
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
25 changes: 25 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
garbagepile.txt

.DS_Store
.vscode
.env
Expand Down Expand Up @@ -48,3 +50,26 @@ yarn-error.log*
npm-debug.log*
yarn-debug.log*
yarn-error.log*
# 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*
71 changes: 68 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,70 @@
# Inspiration Board: Front-end Layer
# Getting Started with Create React App

This scaffold only includes a `.gitignore` file.
This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app).

To get started, follow the setup directions described in the project.
## Available Scripts

In the project directory, you can run:

### `npm start`

Runs the app in the development mode.\
Open [http://localhost:3000](http://localhost:3000) to view it in your browser.

The page will reload when you make changes.\
You may also see any lint errors in the console.

### `npm test`

Launches the test runner in the interactive watch mode.\
See the section about [running tests](https://facebook.github.io/create-react-app/docs/running-tests) for more information.

### `npm run build`

Builds the app for production to the `build` folder.\
It correctly bundles React in production mode and optimizes the build for the best performance.

The build is minified and the filenames include the hashes.\
Your app is ready to be deployed!

See the section about [deployment](https://facebook.github.io/create-react-app/docs/deployment) for more information.

### `npm run eject`

**Note: this is a one-way operation. Once you `eject`, you can't go back!**

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.

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.

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.

## Learn More

You can learn more in the [Create React App documentation](https://facebook.github.io/create-react-app/docs/getting-started).

To learn React, check out the [React documentation](https://reactjs.org/).

### Code Splitting

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)

### Analyzing the Bundle Size

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)

### Making a Progressive Web App

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)

### Advanced Configuration

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)

### Deployment

This section has moved here: [https://facebook.github.io/create-react-app/docs/deployment](https://facebook.github.io/create-react-app/docs/deployment)

### `npm run build` fails to minify

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)
5 changes: 5 additions & 0 deletions README.old.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Inspiration Board: Front-end Layer

This scaffold only includes a `.gitignore` file.

To get started, follow the setup directions described in the project.
39 changes: 39 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
{
"name": "front-end-inspiration-board",
"version": "0.1.0",
"private": true,
"dependencies": {
"@testing-library/jest-dom": "^5.16.1",
"@testing-library/react": "^12.1.2",
"@testing-library/user-event": "^13.5.0",
"axios": "^0.24.0",
"react": "^17.0.2",
"react-dom": "^17.0.2",
"react-scripts": "5.0.0",
"web-vitals": "^2.1.2"
},
"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 added public/favicon.ico
Binary file not shown.
44 changes: 44 additions & 0 deletions public/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
<!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="Train Emoji's Inspiration Station; credit to: Jesse, Juliana, Grace & Karishma"
/>
<link rel="apple-touch-icon" href="%PUBLIC_URL%/logo192.png" />
<!--
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>Inspiration Station</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:
167 changes: 167 additions & 0 deletions src/App.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,167 @@
html {
background-color: rgb(138,169,208);
}

main {
padding: 1%;
}

.display-component {
padding-top: 50px;
}


/* buttons */
button, .submit-button {
appearance: none;
background-color: rgb(44,76,124);
border: none;
border-radius: 15px;
box-sizing: border-box;
color: #FFFFFF;
cursor: pointer;
display: inline-block;
font-family: Roobert,-apple-system,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol";
font-weight: 600;
line-height: normal;
outline: none;
text-align: center;
transition: all 300ms cubic-bezier(.23, 1, 0.32, 1);
user-select: none;
-webkit-user-select: none;
touch-action: manipulation;
width: 100%;
will-change: transform;
}

button:disabled, .submit-button:disabled {
pointer-events: none;
}

button:hover, .submit-button:hover {
box-shadow: rgba(0, 0, 0, 0.25) 0 8px 15px;
transform: translateY(-2px);
}

button:active, .submit-button:active {
box-shadow: none;
transform: translateY(0);
}

#boardVisibilityButton{
margin: 2px;
}

.submit-button {
margin: 2px;
}

.card-buttons {
text-align: center;
padding: 10px;
border-radius: 15px;
margin-top: auto;
}

/* puts buttons next to each other */
.like, .delete {
margin-top: auto;
height: 30%;
width: 50%;
}


/* headers and titles */

h2 {
text-align: center;
font-size: 25px;
}

header {
display: flex;
overflow: hidden;
justify-content: center;
margin-left: 50px;
}

header img {
height: 20%;
width: 50%;
}

.board-title {
color: black;
font-size: 30px;
border: 15px;
}

span {
padding: 5px;
border-bottom: 3px dashed black;
border-radius: 15px 15px 5px 5px ;
}

/* forms */
.form {
display: flex;
flex-direction: column;
}

.forms-component, .c {
display: flex;
flex-direction: row;
flex-wrap: wrap;
justify-content: space-evenly;
}

#board-title, #board-owner {
margin: 2px;
}

#board-select-menu {
margin-bottom: 20px;
}

#card-form, #board-form {
margin-top: auto;
}

#preview {
background-color: rgb(203,218,235);
overflow-wrap: break-word;
inline-size: 300px;
}


/* cards */
.cards-display {
display: flex;
margin: 10px;
flex-direction: row;
flex-basis: 25%;
flex-wrap: wrap;
border-radius: 15px 30px 50px 5px ;
background-color: black;
opacity: 90%;
}

.card-view {
display: inline-flex;
flex-direction: column;
margin: 10px;
background-color: rgb(91,162,242);
border-radius: 15px;
max-width: 150px;
}

.card-message {
inline-size: 120px;
overflow-wrap: break-word;
margin: 10px;
padding: 5px;
}




Loading