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

C17 Otters | Inspotters (Tori, Jodi, Andrea, Elaine) #26

Open
wants to merge 63 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
63 commits
Select commit Hold shift + click to select a range
261c2ee
ES: Project set-up w/ Yarn & React; added .env
elainesmith Jun 27, 2022
369d185
Create slack-notify.yml
J-J-D Jun 27, 2022
9480362
Update slack-notify.yml
J-J-D Jun 27, 2022
9c1cb26
<jd> testing slack notification
J-J-D Jun 28, 2022
17ad01e
ES: Front End Scaffold; update Favicon & title
elainesmith Jun 29, 2022
6b98fa1
ES: Front End Scaffold; update Favicon & title
elainesmith Jun 29, 2022
3bd5b3c
deleting slack comment
J-J-D Jun 29, 2022
10adc3e
<jd>cleaning up app.js
J-J-D Jun 29, 2022
1c4e8c0
Update slack-notify.yml
J-J-D Jun 29, 2022
dafde1c
ES: Added component BoardList
elainesmith Jun 30, 2022
674e418
started building Board. Doesnt work yet
J-J-D Jun 30, 2022
df8ce3d
Merge branch 'main' of https://github.com/elainesmith/front-end-inspi…
J-J-D Jun 30, 2022
185499d
<jd>Board WORKS! Displays info from board_id passed down. Next up ne…
J-J-D Jun 30, 2022
1461733
<jd>changed Board to match new Get One Board route
J-J-D Jun 30, 2022
087f67e
<jd>Updated Board to point to heroku and added Proptype
J-J-D Jun 30, 2022
bc59d50
ES: Render button components; small CSS changes
elainesmith Jul 1, 2022
5a73063
ES: Restructure components & state according to new wireframe
elainesmith Jul 1, 2022
75222c2
TS: Card and CardList Components in progress - though updates comment…
ToriShade Jul 1, 2022
5bb784d
added Delete Board Button and Back Button on Board. . Still need setB…
J-J-D Jul 18, 2022
ebe40ac
solving merge confloct
J-J-D Jul 18, 2022
dc5a5bb
forms on app without css
andrygzt Jul 19, 2022
705e43e
forms on app no css yet
andrygzt Jul 19, 2022
f2748d3
fixed import statements
J-J-D Jul 19, 2022
0afa33d
ES: changeBoardCallback
elainesmith Jul 19, 2022
1e9dd28
TS: Card CSS and CardAPI calls WIP
ToriShade Jul 19, 2022
748d3cb
<jd> toggle display worksgit add .
J-J-D Jul 19, 2022
358a0c4
Merge branch 'main' of https://github.com/elainesmith/front-end-inspi…
J-J-D Jul 19, 2022
2ba67ef
JD,ES, TS, AGZ: integrate card list and board
J-J-D Jul 19, 2022
f48d5a7
ES, JD, TS, AGZ: delter board button still not getting change board C…
J-J-D Jul 19, 2022
569fc35
<jd>delete board and back button working! Note: you cannot run change…
J-J-D Jul 19, 2022
c2eda48
TS & ES: Get Cards For Board Troubleshooting
ToriShade Jul 19, 2022
f0b307b
<jd>Board.css
J-J-D Jul 19, 2022
31d6968
Merge branch 'main' of https://github.com/elainesmith/front-end-inspi…
J-J-D Jul 19, 2022
dd48760
Board.css and fixed back button duplicate
J-J-D Jul 19, 2022
86adef5
board form working on boardlist
andrygzt Jul 19, 2022
b3ff03f
TS: Cards now functioning properly with exception of makeNewCard
ToriShade Jul 19, 2022
2ac55c7
card form is working
andrygzt Jul 19, 2022
3466178
TS: Minor CSS updates made within Card.css
ToriShade Jul 19, 2022
2efecb3
forms working and conected to API
andrygzt Jul 19, 2022
ceb3db7
Merge branch 'main' of https://github.com/elainesmith/front-end-inspi…
andrygzt Jul 19, 2022
4083d5d
new card and new board forms working and conected to API
andrygzt Jul 20, 2022
074391b
<jd>small edit to Board
J-J-D Jul 20, 2022
e8834cb
Merge branch 'main' of https://github.com/elainesmith/front-end-inspi…
J-J-D Jul 20, 2022
680e3fe
<jd> Delete board and back button CSS
J-J-D Jul 20, 2022
a022b65
working on css for forms.
andrygzt Jul 20, 2022
ac01679
Merge branch 'main' of https://github.com/elainesmith/front-end-inspi…
andrygzt Jul 20, 2022
e84a76a
ES: App.css changes
elainesmith Jul 20, 2022
5873bda
Board CSS
J-J-D Jul 20, 2022
0724506
Merge branch 'main' of https://github.com/elainesmith/front-end-inspi…
J-J-D Jul 20, 2022
0d52e12
Merge branch 'main' of https://github.com/elainesmith/front-end-inspi…
andrygzt Jul 20, 2022
48d96f6
ES: Move CSS elements
elainesmith Jul 20, 2022
001f7ed
Merge branch 'main' of https://github.com/elainesmith/front-end-inspi…
J-J-D Jul 20, 2022
10c50dc
<jd> Jodi's final push
J-J-D Jul 20, 2022
bfee8da
ES: CSS format Title & Owner BoardList; fixed positioning of some elems
elainesmith Jul 20, 2022
cc92722
working on css
andrygzt Jul 20, 2022
b83f5ed
Merge branch 'main' of https://github.com/elainesmith/front-end-inspi…
andrygzt Jul 20, 2022
45a057c
forms totally working
andrygzt Jul 20, 2022
4c46a86
ES & AGZ: hide board form in-progress
elainesmith Jul 20, 2022
c494ac3
ES & AGZ: Hide form button works
elainesmith Jul 20, 2022
1f25a9a
first attempt at deployment
J-J-D Jul 20, 2022
b46e45b
add jsonn to gitignore
J-J-D Jul 20, 2022
5e49ace
remove npm lock file
J-J-D Jul 20, 2022
dc52f07
adding env.js
J-J-D Jul 21, 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
12 changes: 12 additions & 0 deletions .github/workflows/slack-notify.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
on: push
name: INSPO FRONT END REPO
jobs:
slackNotification:
name: Slack Notification
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Slack Notification
uses: rtCamp/action-slack-notify@v2
env:
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
25 changes: 25 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -48,3 +48,28 @@ 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*

package-lock.json
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:

### `yarn 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.

### `yarn 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.

### `yarn 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.

### `yarn 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)

### `yarn 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.14.1",
"@testing-library/react": "^13.0.0",
"@testing-library/user-event": "^13.2.1",
"axios": "^0.27.2",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-scripts": "5.0.1",
"web-vitals": "^2.1.0"
},
"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"
]
}
}
47 changes: 47 additions & 0 deletions public/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<link rel="icon" href="data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 100 100%22><text y=%22.9em%22 font-size=%2290%22>🦦</text></svg>">
<link
href="https://fonts.googleapis.com/css?family=Permanent Marker"
rel="stylesheet"
/>
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="theme-color" content="#000000" />
<meta
name="description"
content="Inspiration board web site created using React & JavaScript. 2022 Ada Developers Academy C17 Student Project"
/>
<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>InspOtters</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>
8 changes: 8 additions & 0 deletions public/manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"short_name": "Inspotters App",
"name": "C17 Inspotters Full Stack Demo",
"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:
50 changes: 50 additions & 0 deletions src/App.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
.App {
display: grid;
grid-template-rows: auto 1fr auto;
text-align: center;
}

header {
background-image: url(https://source.unsplash.com/GtgdYsl2TV0);
box-shadow: 0px 5px 5px black;
min-height: 5vh;
background-repeat: no-repeat;
background-position: center;
background-size: cover;
font-size: calc(5px + 2vmin);
padding: 5px;
}

header h1 {
color: rgb(30, 30, 30);
text-shadow: 0px 1px 0px rgba(255,255,255,.5);
}

main {
min-height: 100vh;
background-image: url(https://source.unsplash.com/KsAo8ouBn8A);
background-repeat: no-repeat;
background-position: center;
background-size: cover;
position: relative;
padding: 50px;
}

#woodPattern {
background-image: url(https://source.unsplash.com/GtgdYsl2TV0);
background-repeat: no-repeat;
background-position: center;
background-size: cover;
box-shadow: 0px -5px 5px black;
height: 5vh;
position:absolute;
width:100%;
bottom:-20px;
left: 0px;
}

footer {
color: black;
font-size: smaller;
padding: 10px;
}
39 changes: 39 additions & 0 deletions src/App.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
import React, { useState } from "react";
import "./App.css";
import Board from "./components/Board";
import BoardList from "./components/BoardList";

function App() {
const [display, setDisplay] = useState(null);

const toggleDisplay = () => {
if (display) {
console.log("you have display of", display);
console.log(typeof changeDisplay);
return <Board board_id={display} changeBoardCallback={changeDisplay} />;
} else {
return <BoardList changeBoardCallback={changeDisplay} />;
}
};

const changeDisplay = ({ id }) => {
setDisplay(id);
};

return (
<div className="App">
<header className="App-header">
<h1>InspOtters</h1>
</header>
<main>
{toggleDisplay()}
<div id="woodPattern"></div>
</main>
<footer>
©2022 C17 Otters students: Jodi D., Elaine S., Tori S., Andrea G.Z.
</footer>
</div>
);
}

export default App;
21 changes: 21 additions & 0 deletions src/components/Board.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@


.btn {
border: 2px solid black;
border-radius: 5px;
background-color: rgb(233, 161, 161);
color: black;
padding: 8px 10px;
font-size: 10px;
font-weight: bold;
cursor: pointer;
}


.delete:hover {
background: #da190b;
}

.back:hover {
background: #2196F3;
}
Loading