Skip to content

Commit

Permalink
First commit
Browse files Browse the repository at this point in the history
  • Loading branch information
nagarjunsonti committed Dec 28, 2019
0 parents commit 40d3374
Show file tree
Hide file tree
Showing 46 changed files with 16,985 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .gitignore
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*
34 changes: 34 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
## Vocabulary Test - React Redux

This application that lets the user manage vocabulary for a foreign language to be learned. It consists of a Form where the user can insert two words, one for the native language and one for the foreign language (German, French, Portuguese). The vocabulary pairs are appended to a List and can be deleted

User can start the test quiz after applaying vocabulary in his list. When the test is finished, application calculates the results
### Sign Up
<div align="center">
<img src="/screenshots/SinUp.PNG" height="300px"</img>
</div>

### Sign In
<div align="center">
<img src="/screenshots/SignIn.PNG" height="300px"</img>
</div>

### Landing Page
<div align="center">
<img src="/screenshots/overallTest.PNG" height="300px"</img>
</div>

### Results Page
<div align="center">
<img src="/screenshots/TestResults.PNG" height="300px"</img>
</div>

### Test Page
<div align="center">
<img src="/screenshots/StartTheTest.PNG" height="300px"</img>
</div>

### Limitations
1. Ony one user can register in this application at a time.
2. Only three languages supported as a foreign languages.

14,557 changes: 14,557 additions & 0 deletions package-lock.json

Large diffs are not rendered by default.

45 changes: 45 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
{
"name": "my-app",
"version": "0.1.0",
"private": true,
"dependencies": {
"@material-ui/core": "^4.8.0",
"@material-ui/icons": "^4.5.1",
"@testing-library/jest-dom": "^4.2.4",
"@testing-library/react": "^9.4.0",
"@testing-library/user-event": "^7.1.2",
"chart.js": "^2.9.3",
"material-table": "^1.54.2",
"moment": "^2.24.0",
"react": "^16.12.0",
"react-chartjs-2": "^2.8.0",
"react-dom": "^16.12.0",
"react-material-ui-form-validator": "^2.0.9",
"react-redux": "^7.1.3",
"react-router": "^5.1.2",
"react-router-dom": "^5.1.2",
"react-scripts": "3.3.0",
"redux": "^4.0.4"
},
"scripts": {
"start": "react-scripts start",
"build": "react-scripts build",
"test": "react-scripts test",
"eject": "react-scripts eject"
},
"eslintConfig": {
"extends": "react-app"
},
"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/SJ-ICON-FAV.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
43 changes: 43 additions & 0 deletions public/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<link rel="icon" href="%PUBLIC_URL%/SJ-ICON-FAV.png" />
<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"
/>
<link rel="apple-touch-icon" href="%PUBLIC_URL%/SJ-ICON-FAV.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>Vocabulary Learner</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"
}
2 changes: 2 additions & 0 deletions public/robots.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# https://www.robotstxt.org/robotstxt.html
User-agent: *
Binary file added screenshots/SignIn.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 screenshots/SinUp.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 screenshots/StartTheTest.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 screenshots/TestResults.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 screenshots/overallTest.PNG
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
199 changes: 199 additions & 0 deletions src/App.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,199 @@
.App {
/*text-align: center;*/
}
.App .MuiAppBar-colorPrimary{
background-color: #715728f5;
}
.disableLink{
pointer-events: none;
color: #ccc;
}
.alert-danger{
color: #a94442;
background-color: #f2dede;
border-color: #ebccd1;
}
.alert{
padding: 15px;
border: 1px solid transparent;
border-radius: 4px;
}
.tableToolbarIconDiv{
display:flex;
flex-direction:row;
padding-right:5px;
}
.MuiTableHead-root{
background-color:#675e4f;
}


.sideBarTitleDiv{
text-transform: capitalize;
width:60%;
}
.sidebarHeaderDiv .MuiToolbar-root{
display: flex;
flex-direction: row;
}

.sidebarHeaderDiv .closeButtonDiv{
width: 40%;
text-align: right;
}
.sidebarHeaderDiv .MuiIconButton-label{
display: unset;
}
.sidebarTitle{
background-color: #675e4f;
padding-left: 10px;
}
.sidebarTitleDescription{
padding:10px 15px 15px 15px;
}
.countClass{
font-weight: 600;
padding:5px;
margin-right:5px;
background-color: #e4e4d3;
border-radius: 200px 200px 200px 200px;
-moz-border-radius: 200px 200px 200px 200px;
-webkit-border-radius: 200px 200px 200px 200px;
border: 0px solid #000000;
}
.testButtonDiv{
text-align:center;
padding-bottom:12px;
}
.donutChartDive{
margin-bottom: 10px;
}
.searchTextField{
margin-right:8px !important;
}
.resultsDiv{
display: flex;
flex-direction: row;
padding: 10px;
margin-bottom:20px;
}
.resultTextField{
padding-right:30px;
}
.notAttempeted{
opacity: 0.8;
}
.correct{
color:#067332;
}
.inCorrect{
color:#ff0000;
}
.resultTextField .MuiInputBase-input{
font-weight: 400;
color: #8a8686;

}
.sidebarContainer{
-webkit-box-shadow: 13px -2px 17px -9px rgba(208, 204, 204, 0.75);
-moz-box-shadow: 13px -2px 17px -9px rgba(208, 204, 204, 0.75);
box-shadow: 13px -2px 17px -9px rgba(208, 204, 204, 0.75);
}
.resultsContainer{
height:500px;
margin:0;
overflow-y: scroll;
-webkit-box-shadow: -13px -2px 17px -9px rgba(208, 204, 204, 0.75);
-moz-box-shadow: -13px -2px 17px -9px rgba(208, 204, 204, 0.75);
box-shadow: -13px -2px 17px -9px rgba(208, 204, 204, 0.75);
background-color: #fff;
padding:15px;
}
.homeContainerDiv{
-webkit-box-shadow: -2px 2px 5px 0px rgba(208, 204, 204, 0.75);
-moz-box-shadow: -2px 2px 5px 0px rgba(208, 204, 204, 0.75);
box-shadow: -2px 2px 5px 0px rgba(208, 204, 204, 0.75);
}
.legendsDiv{
padding: 10px;
display: flex;
flex-direction: row;
}
.testLegends{
padding:2px 30px 0 2px;
}
.resultsContainerDiv .donutChartDive{
margin-top:27px;
}
.sidebarTitle h6{
font-weight: 500;
color:#f5f5f5;
}
.MuiContainer-maxWidthXs{
-webkit-box-shadow: -1px -1px 5px 3px #ca9e4f;
-moz-box-shadow: -1px -1px 5px 3px #ca9e4f;
box-shadow: -1px -1px 5px 3px #ca9e4f;
}
.navHeader{
display:flex;
}
.userProfile{
padding-top:22px;
text-transform: capitalize;
}
.MuiTableSortLabel-root, .MuiTableCell-root, legend span:first-child {
text-transform: capitalize;
}
.addButtonDiv{
text-align: right;
padding-bottom: 20px;
padding-right: 20px;
display: flex;
flex-direction: row;
justify-content: flex-end;
}
.addiConTitle{
padding-top: 16px;
padding-right: 10px;
}
.AddTextFields{
display:flex;
}
.submitButton{
height:55px;
}
.testContainerDiv{
padding-top: 21px;
align-items: center;
display: flex;
justify-content: center;
}
.MuiTableCell-head span{
color:#f5f5f5;
}
.MuiFab-primary{
background-color: #1e2971;
}
.testContainerDiv button{

margin-left:15px;
}
.testContainerDiv .Mui-disabled{
margin-right:10px;
}
.testPageContainer{
-webkit-box-shadow: 3px 6px 10px -1px rgba(0,0,0,0.75);
-moz-box-shadow: 3px 6px 10px -1px rgba(0,0,0,0.75);
box-shadow: 3px 6px 10px -1px rgba(0,0,0,0.75);
height: 100%;
min-height: 330px;
margin-top: 5%;
padding: 20px;
width:100%;
}
.mainContainerDiv{
padding-top:20px;
}
.MuiContainer-maxWidthXs .MuiOutlinedInput-root:hover .MuiOutlinedInput-notchedOutline, .homeContainerDiv .MuiOutlinedInput-root:hover .MuiOutlinedInput-notchedOutline{
border-color: rgb(183, 122, 9) !important;
}
Loading

0 comments on commit 40d3374

Please sign in to comment.