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
6 changes: 5 additions & 1 deletion CONTRIBUTORS.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,8 @@ https://github.com/vaibhav-26199

Swara Bhatt

https://github.com/webmobtechnologies
https://github.com/webmobtechnologies

Anjal Bam

https://github.com/anjalbam
25 changes: 25 additions & 0 deletions covidstatsnepal/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# 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*

.netlify/
68 changes: 68 additions & 0 deletions covidstatsnepal/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app).

## Available Scripts

In the project directory, you can run:

### `yarn start`

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

The page will reload if you make edits.<br />
You will also see any lint errors in the console.

### `yarn test`

Launches the test runner in the interactive watch mode.<br />
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.<br />
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.<br />
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

### Analyzing the Bundle Size

This section has moved here: 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

### Advanced Configuration

This section has moved here: 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

### `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
38 changes: 38 additions & 0 deletions covidstatsnepal/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
{
"name": "covidstats-nepal",
"version": "0.1.0",
"private": true,
"dependencies": {
"@testing-library/jest-dom": "^4.2.4",
"@testing-library/react": "^9.3.2",
"@testing-library/user-event": "^7.1.2",
"react": "^16.13.1",
"react-dom": "^16.13.1",
"react-loader-spinner": "^3.1.14",
"react-router-dom": "^5.2.0",
"react-scripts": "3.4.1",
"recharts": "^1.8.5",
"styled-components": "^5.1.0"
},
"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 covidstatsnepal/public/favicon.ico
Binary file not shown.
46 changes: 46 additions & 0 deletions covidstatsnepal/public/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
<!DOCTYPE html>
<html lang="en">
<head>
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-118010832-2"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());

gtag('config', 'UA-118010832-2');
</script>

<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="theme-color" content="#000000" />
<meta
name="description"
content="Corona virus live updates. The data gets regularly udated and the data can be viewed graphically as well as numerically as well. Made by Anjal Bam."
/>
<link rel="icon" href="%PUBLIC_URL%/favicon.ico" />
<title>CovidSTATS Nepal</title>
<link
href="https://fonts.googleapis.com/css?family=Jost|Lato:300,400&display=swap"
rel="stylesheet"
/>
<script
src="https://kit.fontawesome.com/9904296e39.js"
crossorigin="anonymous"
></script>
</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>
147 changes: 147 additions & 0 deletions covidstatsnepal/src/App.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,147 @@
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
a {
text-decoration: none;
color: #f1f1f1;
}
body {
background-color: #262e42;
font-family: "Jost", sans-serif;
padding-top: 100px;
display: flex;
min-height: 100vh;
flex-direction: column;
position: relative;
padding-bottom: 80px;
}
.wrapper {
display: block;
}
.choice {
color: #141b2b;
}
.App {
text-align: center;
}

.header-wrapper {
padding: 1.5rem 0rem;
background-color: #0e1118;
color: #f1f1f1;
display: flex;
flex-wrap: wrap;
align-items: center;
justify-content: space-evenly;
position: fixed;
z-index: 999;
top: 0;
left: 0;
right: 0;
}
@media screen and (max-width: 600px) {
.header-wrapper {
padding: 1rem 0rem;
}
body {
padding-top: 84px;
}
}
nav ul {
list-style: none;
display: flex;
}
.navButton {
padding: 1rem 1.5rem;
}
.main-wrapper p {
font-size: 2rem;
font-weight: bold;
}
.main-wrapper p span {
font-weight: 300;
}
.main-wrapper p small {
font-size: 0.75rem;
}
.menu {
display: flex;
flex-direction: column;
padding: 0.5rem 1.25rem;
align-items: center;
justify-content: center;
border-radius: 50%;
position: relative;
}
.menu:hover {
background-color: #141b2b;
}

.menu div {
background: #f4f4f4;
height: 0.5rem;
width: 0.5rem;
margin: 2px;
border-radius: 50%;
}

.navLinks {
position: absolute;
top: 100%;
left: 0;
display: flex;
flex-direction: column;
background-color: #1f2635;
color: rgb(240, 240, 240);
padding: 10px;
min-width: 160px;
align-items: flex-start;
border-radius: 5px;
}
@media screen and (max-width: 680px) {
.main-wrapper p {
font-size: 1.5rem;
font-weight: bold;
}
}
@media screen and (max-width: 400px) {
.navLinks {
left: -100px;
}
body {
padding-bottom: 80px;
}
}
@media screen and (max-width: 400px) {
body {
padding-bottom: 60px;
}
}
.navLinks li {
display: block;
width: 100%;
}

.navLinks li .nav-link {
padding: 0.5rem;
display: block;
text-align: left;
border-radius: 3px;
}
.navLinks li .nav-link:hover {
background-color: #0e1118;
}

.colortest {
color: #314166;
}

.inputField {
padding: 0.5rem;
border: none;
background-color: #314166;
color: #c7bebe;
font-size: 1.5rem;
}
23 changes: 23 additions & 0 deletions covidstatsnepal/src/App.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
import React from "react";
import "./App.css";
import Header from "./Components/Header";
import Footer from "./Components/Footer";
import Routes from "./Components/Routes";

import { BrowserRouter as Router } from "react-router-dom";

const App = () => {
return (
<div className="App">
<Router>
<Header />

<Routes />

<Footer />
</Router>
</div>
);
};

export default App;
9 changes: 9 additions & 0 deletions covidstatsnepal/src/App.test.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import React from 'react';
import { render } from '@testing-library/react';
import App from './App';

test('renders learn react link', () => {
const { getByText } = render(<App />);
const linkElement = getByText(/learn react/i);
expect(linkElement).toBeInTheDocument();
});
Loading