Skip to content
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
21 changes: 21 additions & 0 deletions notepad/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# See https://help.github.com/ignore-files/ for more about ignoring files.

# dependencies
/node_modules

# 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*
2,486 changes: 2,486 additions & 0 deletions notepad/README.md

Large diffs are not rendered by default.

19 changes: 19 additions & 0 deletions notepad/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"name": "notepad",
"version": "0.1.0",
"private": true,
"dependencies": {
"axios": "^0.18.0",
"react": "^16.5.2",
"react-dom": "^16.5.2",
"react-router-dom": "^4.3.1",
"react-scripts": "1.1.5",
"reactstrap": "^6.4.0"
},
"scripts": {
"start": "react-scripts start",
"build": "react-scripts build",
"test": "react-scripts test --env=jsdom",
"eject": "react-scripts eject"
}
}
Binary file added notepad/public/favicon.ico
Binary file not shown.
40 changes: 40 additions & 0 deletions notepad/public/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="theme-color" content="#000000">
<!--
manifest.json provides metadata used when your web app is added to the
homescreen on Android. See https://developers.google.com/web/fundamentals/engage-and-retain/web-app-manifest/
-->
<link rel="manifest" href="%PUBLIC_URL%/manifest.json">
<link rel="shortcut icon" href="%PUBLIC_URL%/favicon.ico">
<!--
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>React App</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>
15 changes: 15 additions & 0 deletions notepad/public/manifest.json
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": "./index.html",
"display": "standalone",
"theme_color": "#000000",
"background_color": "#ffffff"
}
251 changes: 251 additions & 0 deletions notepad/src/App.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,251 @@
.App {
text-align: left;
display: flex;
margin: 0 auto;
max-width: 1028px;
}

.App-logo {
animation: App-logo-spin infinite 20s linear;
height: 80px;
}

.App-header {
background-color: #222;
height: 150px;
padding: 20px;
color: white;
}

.App-title {
font-size: 1.5em;
}

.App-intro {
font-size: large;
}

@keyframes App-logo-spin {
from {
transform: rotate(0deg);
}
to {
transform: rotate(360deg);
}
}

.links {
text-decoration: none;
}

.side-bar {
padding: 10px;
width: 25%;
background: #d3d2d3;
height: 100vh;
}

.view-notes {
background: #24b8bd;
color: white;
margin: 0 0 10px 0;
height: 50px;
display: flex;
justify-content: center;
align-items: center;
}

.new-note {
background: #24b8bd;
color: white;
height: 50px;
display: flex;
justify-content: center;
align-items: center;
}

.notes-container {
width: 75%;
background: #f2f1f2;
padding: 0 0 0 10px;
}

.note-container-title {
margin: 30px 0 0 10px;
}

.note-cards {
display: flex;
flex-wrap: wrap;
/* justify-content: space-evenly; */
margin: 10px;
}

.note-link {
text-decoration: none;
color: #4a494a;
}

.note {
display: flex;
flex-direction: column;
height: 250px;
width: 250px;
margin: 5px;
background: white;
text-decoration: none;
padding: 0 30px;
border-radius: 10px;
}

.note-header {
display: flex;
align-items: flex-start;
font-weight: bold;
border-bottom: 1px solid lightgray;
padding: 20px;
}

.note-content {
padding: 10px;
display: flex;
/* align-items: */
padding: 20px;
}

.notecard-title {
font-weight: bold;
}

/* .notecard-content {
font-weight: bold;
} */

.note-content {
display: flex;
align-items: flex-end;
}

.e_d-buttons {
display: flex;
justify-content: flex-end;
margin: 20px;
}

.edit-button {
margin: 0 10px 0 0;
}

.edit-link {
color: #4a494a;
font-weight: bold;
}

.delete-link {
color: #4a494a;
font-weight: bold;
}

.editNote-container {
margin: 0 0 0 10px;
}

.note-title-input {
display: block;
width: 400px;
height: 40px;
margin: 0 0 10px;
}

.note-content-input {
width: 700px;
height: 500px;
}
.save-button {
background: #24b8bd;
color: white;
height: 40px;
text-align: center;
width: 200px;
margin: 10px 0 0 0;
display: flex;
justify-content: center;
align-items: center;
}

.delete-container {
position: fixed;
top: 0;
left: 0;
width: 100vw;
height: 100vh;
background-color: rgba(29, 29, 29, 0.3);
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
}

.delete-modal {
background-color: white;
justify-content: center;
align-items: center;
z-index: 10;
height: 200px;
width: 500px;
border: 1px solid black;
}

.delete-modal h4 {
display: flex;
justify-content: center;
}

.d-link {
text-decoration: none;
color: white;
}

.d-modal-buttons {
display: flex;
justify-content: center;
}

.delete-button {
background-color: #d0011b;
width: 200px;
height: 45px;
color: white;
font-weight: bold;
display: flex;
align-items: center;
justify-content: center;
}
.no-button {
display: flex;
align-items: center;
justify-content: center;
background: #24b8bd;
color: white;
height: 45px;
width: 200px;
margin: 0 0 0 10px;
font-weight: bold;
}

.newNote-Form {
display: flex;
flex-direction: column;
}

.new-title {
display: block;
width: 400px;
height: 40px;
margin: 0 0 10px;
}

.new-content {
width: 700px;
height: 500px;
}
Loading