浏览代码

test

master
Paritosh Singh 4 年前
当前提交
239c0d115c
共有 58 个文件被更改,包括 25835 次插入0 次删除
  1. +23
    -0
      .gitignore
  2. +15
    -0
      .vscode/launch.json
  3. +68
    -0
      README.md
  4. 二进制
      images/images/bhim.png
  5. 二进制
      images/images/coffee_tea_icon.png
  6. 二进制
      images/images/google_pay.png
  7. 二进制
      images/images/logo.png
  8. 二进制
      images/images/paytm.png
  9. 二进制
      images/images/phone_pe.png
  10. 二进制
      images/images/price_badge_bg.png
  11. 二进制
      images/images/products/coffee_tea/black_coffee.jpg
  12. 二进制
      images/images/products/coffee_tea/coffe_with_sugar.jpg
  13. 二进制
      images/images/products/coffee_tea/coffee_with_out_sugar.jpg
  14. 二进制
      images/images/products/coffee_tea/cold_coffee.jpg
  15. 二进制
      images/images/products/coffee_tea/hot_coffee.jpg
  16. 二进制
      images/images/products/coffee_tea/ice_tea.jpg
  17. 二进制
      images/images/products/coffee_tea/tea.jpg
  18. 二进制
      ).jpg
  19. 二进制
      images/images/qr_code.png
  20. 二进制
      images/images/rounded_backarrow.png
  21. 二进制
      images/images/transparent_bg.png
  22. +14074
    -0
      package-lock.json
  23. +39
    -0
      package.json
  24. +7
    -0
      public/css/bootstrap.min.css
  25. 二进制
      public/favicon.ico
  26. 二进制
      public/images/bhim.png
  27. 二进制
      public/images/coffee_tea_icon.png
  28. 二进制
      public/images/google_pay.png
  29. 二进制
      public/images/logo.png
  30. 二进制
      public/images/paytm.png
  31. 二进制
      public/images/phone_pe.png
  32. 二进制
      public/images/price_badge_bg.png
  33. 二进制
      public/images/products/coffee_tea/black_coffee.jpg
  34. 二进制
      public/images/products/coffee_tea/coffe_with_sugar.jpg
  35. 二进制
      public/images/products/coffee_tea/coffee_with_out_sugar.jpg
  36. 二进制
      public/images/products/coffee_tea/cold_coffee.jpg
  37. 二进制
      public/images/products/coffee_tea/hot_coffee.jpg
  38. 二进制
      public/images/products/coffee_tea/ice_tea.jpg
  39. 二进制
      public/images/products/coffee_tea/tea.jpg
  40. 二进制
      public/images/qr_code.png
  41. 二进制
      public/images/rounded_backarrow.png
  42. 二进制
      public/images/transparent_bg.png
  43. +46
    -0
      public/index.html
  44. +7
    -0
      public/js/bootstrap.min.js
  45. +2
    -0
      public/js/jquery-3.5.1.slim.min.js
  46. +5
    -0
      public/js/popper.min.js
  47. 二进制
      public/logo192.png
  48. 二进制
      public/logo512.png
  49. +25
    -0
      public/manifest.json
  50. +3
    -0
      public/robots.txt
  51. +21
    -0
      src/App.js
  52. +45
    -0
      src/Components/HomePage.js
  53. +58
    -0
      src/Components/ScanPage.js
  54. +65
    -0
      src/Components/ViewItem.js
  55. +9
    -0
      src/Util/ImageUtil.js
  56. +447
    -0
      src/css/layout.css
  57. +15
    -0
      src/index.js
  58. +10861
    -0
      yarn.lock

+ 23
- 0
.gitignore 查看文件

@@ -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*

+ 15
- 0
.vscode/launch.json 查看文件

@@ -0,0 +1,15 @@
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"type": "pwa-chrome",
"request": "launch",
"name": "Launch Chrome against localhost",
"url": "http://localhost:8080",
"webRoot": "${workspaceFolder}"
}
]
}

+ 68
- 0
README.md 查看文件

@@ -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

二进制
images/images/bhim.png 查看文件

之前 之后
宽度: 88  |  高度: 88  |  大小: 5.6 KiB

二进制
images/images/coffee_tea_icon.png 查看文件

之前 之后
宽度: 100  |  高度: 100  |  大小: 4.2 KiB

二进制
images/images/google_pay.png 查看文件

之前 之后
宽度: 88  |  高度: 88  |  大小: 6.2 KiB

二进制
images/images/logo.png 查看文件

之前 之后
宽度: 491  |  高度: 260  |  大小: 11 KiB

二进制
images/images/paytm.png 查看文件

之前 之后
宽度: 88  |  高度: 88  |  大小: 3.2 KiB

二进制
images/images/phone_pe.png 查看文件

之前 之后
宽度: 88  |  高度: 88  |  大小: 3.8 KiB

二进制
images/images/price_badge_bg.png 查看文件

之前 之后
宽度: 102  |  高度: 99  |  大小: 884 B

二进制
images/images/products/coffee_tea/black_coffee.jpg 查看文件

之前 之后
宽度: 500  |  高度: 400  |  大小: 114 KiB

二进制
images/images/products/coffee_tea/coffe_with_sugar.jpg 查看文件

之前 之后
宽度: 500  |  高度: 400  |  大小: 25 KiB

二进制
images/images/products/coffee_tea/coffee_with_out_sugar.jpg 查看文件

之前 之后
宽度: 500  |  高度: 400  |  大小: 123 KiB

二进制
images/images/products/coffee_tea/cold_coffee.jpg 查看文件

之前 之后
宽度: 500  |  高度: 400  |  大小: 95 KiB

二进制
images/images/products/coffee_tea/hot_coffee.jpg 查看文件

之前 之后
宽度: 500  |  高度: 400  |  大小: 86 KiB

二进制
images/images/products/coffee_tea/ice_tea.jpg 查看文件

之前 之后
宽度: 500  |  高度: 400  |  大小: 128 KiB

二进制
images/images/products/coffee_tea/tea.jpg 查看文件

之前 之后
宽度: 500  |  高度: 400  |  大小: 112 KiB

二进制
images/images/products/lassi_buttermilk/download → ).jpg 查看文件


二进制
images/images/qr_code.png 查看文件

之前 之后
宽度: 300  |  高度: 344  |  大小: 49 KiB

二进制
images/images/rounded_backarrow.png 查看文件

之前 之后
宽度: 300  |  高度: 300  |  大小: 9.2 KiB

二进制
images/images/transparent_bg.png 查看文件

之前 之后
宽度: 500  |  高度: 400  |  大小: 23 KiB

+ 14074
- 0
package-lock.json
文件差异内容过多而无法显示
查看文件


+ 39
- 0
package.json 查看文件

@@ -0,0 +1,39 @@
{
"name": "roboto_client",
"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",
"axios": "^0.20.0",
"bootstrap": "^4.5.3",
"react": "^16.14.0",
"react-bootstrap": "^1.3.0",
"react-dom": "^16.14.0",
"react-router": "^5.2.0",
"react-router-dom": "^5.2.0",
"react-scripts": "^3.4.3"
},
"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"
]
}
}

+ 7
- 0
public/css/bootstrap.min.css
文件差异内容过多而无法显示
查看文件


二进制
public/favicon.ico 查看文件

之前 之后

二进制
public/images/bhim.png 查看文件

之前 之后
宽度: 88  |  高度: 88  |  大小: 5.6 KiB

二进制
public/images/coffee_tea_icon.png 查看文件

之前 之后
宽度: 100  |  高度: 100  |  大小: 4.2 KiB

二进制
public/images/google_pay.png 查看文件

之前 之后
宽度: 88  |  高度: 88  |  大小: 6.2 KiB

二进制
public/images/logo.png 查看文件

之前 之后
宽度: 491  |  高度: 260  |  大小: 11 KiB

二进制
public/images/paytm.png 查看文件

之前 之后
宽度: 88  |  高度: 88  |  大小: 3.2 KiB

二进制
public/images/phone_pe.png 查看文件

之前 之后
宽度: 88  |  高度: 88  |  大小: 3.8 KiB

二进制
public/images/price_badge_bg.png 查看文件

之前 之后
宽度: 102  |  高度: 99  |  大小: 884 B

二进制
public/images/products/coffee_tea/black_coffee.jpg 查看文件

之前 之后
宽度: 500  |  高度: 400  |  大小: 114 KiB

二进制
public/images/products/coffee_tea/coffe_with_sugar.jpg 查看文件

之前 之后
宽度: 500  |  高度: 400  |  大小: 25 KiB

二进制
public/images/products/coffee_tea/coffee_with_out_sugar.jpg 查看文件

之前 之后
宽度: 500  |  高度: 400  |  大小: 123 KiB

二进制
public/images/products/coffee_tea/cold_coffee.jpg 查看文件

之前 之后
宽度: 500  |  高度: 400  |  大小: 95 KiB

二进制
public/images/products/coffee_tea/hot_coffee.jpg 查看文件

之前 之后
宽度: 500  |  高度: 400  |  大小: 86 KiB

二进制
public/images/products/coffee_tea/ice_tea.jpg 查看文件

之前 之后
宽度: 500  |  高度: 400  |  大小: 128 KiB

二进制
public/images/products/coffee_tea/tea.jpg 查看文件

之前 之后
宽度: 500  |  高度: 400  |  大小: 112 KiB

二进制
public/images/qr_code.png 查看文件

之前 之后
宽度: 300  |  高度: 344  |  大小: 49 KiB

二进制
public/images/rounded_backarrow.png 查看文件

之前 之后
宽度: 300  |  高度: 300  |  大小: 9.2 KiB

二进制
public/images/transparent_bg.png 查看文件

之前 之后
宽度: 500  |  高度: 400  |  大小: 23 KiB

+ 46
- 0
public/index.html 查看文件

@@ -0,0 +1,46 @@
<!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="Web site created using create-react-app" />
<link rel="apple-touch-icon" href="%PUBLIC_URL%/logo192.png" />
<link href="https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@400;500&display=swap" rel="stylesheet">

<link href="https://fonts.googleapis.com/css2?family=Nunito+Sans:wght@400;600;700&display=swap" rel="stylesheet">
<!--
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>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>

+ 7
- 0
public/js/bootstrap.min.js
文件差异内容过多而无法显示
查看文件


+ 2
- 0
public/js/jquery-3.5.1.slim.min.js
文件差异内容过多而无法显示
查看文件


+ 5
- 0
public/js/popper.min.js
文件差异内容过多而无法显示
查看文件


二进制
public/logo192.png 查看文件

之前 之后
宽度: 192  |  高度: 192  |  大小: 5.2 KiB

二进制
public/logo512.png 查看文件

之前 之后
宽度: 512  |  高度: 512  |  大小: 9.4 KiB

+ 25
- 0
public/manifest.json 查看文件

@@ -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
- 0
public/robots.txt 查看文件

@@ -0,0 +1,3 @@
# https://www.robotstxt.org/robotstxt.html
User-agent: *
Disallow:

+ 21
- 0
src/App.js 查看文件

@@ -0,0 +1,21 @@
import React from 'react';
import {BrowserRouter, Route, Switch} from 'react-router-dom'
import HomePage from './Components/HomePage'
import Scan from './Components/ScanPage';
import ViewItem from './Components/ViewItem'

const App = () => {
return(
<BrowserRouter>
<div className="App">
<Switch>
<Route exact path="/" component={HomePage} />
<Route exact path="/:name" component={ViewItem} />
<Route path="/:name/:item" component={Scan} />
</Switch>
</div>
</BrowserRouter>
)
}

export default App;

+ 45
- 0
src/Components/HomePage.js 查看文件

@@ -0,0 +1,45 @@
import React, { useEffect, useState } from 'react'
import { Link } from 'react-router-dom'
import axios from 'axios'
import ArrayBufferToBase64 from '../Util/ImageUtil'


const HomePage = () => {
const [categories, setCategories] = useState([])
useEffect(() => {
axios.get('https://robotocafedev.herokuapp.com/server/categories')
.then(res => {
setCategories(res.data)
})
}, [])
const Cats = !categories.length ? (<div><img src="./images/loadiner_animation.gif" alt="loading gif"/></div>) :

(categories.map((cat, ind) => {
const img = ArrayBufferToBase64(cat.image.data.data)
const data = `data:${cat.image.contentType};base64,`
return(
<div className="col-6 category_box" key={ind}>
<Link to={'/' + cat.name}>
<div className="column_box text-center">
<img src={data + img} alt="Category" className="category-image" width="90" chieght="90"/>
<p>{cat.name}</p>
</div>
</Link>
</div>
)}))
return (
<section className="h-100 landing_bg">
<div className="logo text-center">
<img src="images/logo.png" className="img-fluid" alt="logo"/>
<p>Select your preference and place order</p>
</div>
<div className="">
<div className="row m-0 h-100 category_height" >
{Cats}
</div>
</div>
</section>
)
}

export default HomePage

+ 58
- 0
src/Components/ScanPage.js 查看文件

@@ -0,0 +1,58 @@
import React, { useEffect, useState } from 'react'
import {Link} from 'react-router-dom'
import axios from 'axios'
import ArrayBufferToBase64 from '../Util/ImageUtil'

const Scan = (props) => {
const [item, setItem] = useState()
const [data, setData] = useState('')

useEffect(() => {
axios.get('https://robotocafedev.herokuapp.com/server' + '/item/'+ props.match.params.item)
.then(res => {
setItem(res.data)
setData(`data:${res.data.image.contentType};base64,` + ArrayBufferToBase64(res.data.image.data.data))
})
}, [])
const Item = item ? (
<div className="data_content">
<div className="row m-0 col-12 text-center scan">

<h1>You have selected <span>{item.name}</span></h1>
<h2>Total Amount: ₹{item.price}</h2>
<div className="col-12">
<div className="qr_box">
<a href="payment_success.html"><img src={data} alt="image here"/></a>
</div>
</div>
<h4>You can use following UPI apps for payment</h4>

<div className="col-12">
<div className="upi_box">
<img src="/images/phone_pe.png" />
</div>
<div className="upi_box">
<img src="/images/google_pay.png" />
</div>
<div className="upi_box">
<img src="/images/paytm.png" />
</div>
<div className="upi_box">
<img src="/images/bhim.png" />
</div>
</div>

</div>
</div>) : (<div>No item found</div>)
return (
<section className="inner_bg">
<div className="navbar_mobile">
<Link to={'/'}><span className="backarrow"><img src="/images/rounded_backarrow.png" /></span></Link>
<p>Scan</p>
</div>
{Item}
</section>
)
}

export default Scan

+ 65
- 0
src/Components/ViewItem.js 查看文件

@@ -0,0 +1,65 @@
import React, { useEffect, useState } from 'react'
import {Link} from 'react-router-dom'
import axios from 'axios'
import ArrayBufferToBase64 from '../Util/ImageUtil'

const ViewItems = (props) => {
const [items, setItems] = useState([])
const [name, setName] = useState('')

useEffect(() => {
axios.get('https://robotocafedev.herokuapp.com/server/items/' + props.match.params.name)
.then(data => {
setItems(data.data)
})
setName(props.match.params.name)
}, [])
const itemsJS = items.length ? (
items.map((item, map) =>{
const data = `data:${item.image.contentType};base64,` + ArrayBufferToBase64(item.image.data.data)
return (
<div className="col-6 category_box" key={item.name}>
<Link to={'/' + name + '/' + item.name}>
<div className="column_box text-center p-0">
<div className="col_box_data">
<div className="price_badge">
<img src="images/price_badge_bg.png" alt="price-bg" />
<span>₹{item.price}</span>
</div>

<img src="images/transparent_bg.png" className="trans_bg" alt="transparent-bg"/>
<img src={data} alt="Menu Items"/>
<p>{item.name}</p>
</div>
</div>
</Link>
</div>
)}
)
) :(<div>No items here</div>)

return (
<section className="inner_bg">
<div className="navbar_mobile">
<Link to={"/"}>
<span className="backarrow">
<img src='images/rounded_backarrow.png' />
</span>
</Link>
<p>{name}</p>
</div>
<div className="data_content">
<div className="row m-0 col-12 p-0 text-center category_view">
<h1>Select What do want</h1>
<div className="col-12">
<div className="row">
{itemsJS}
</div>
</div>
</div>
</div>
</section>
)
}

export default ViewItems

+ 9
- 0
src/Util/ImageUtil.js 查看文件

@@ -0,0 +1,9 @@

const ArrayBufferToBase64 = (buffer) => {
var binary = ""
var bytes = [].slice.call(new Uint8Array(buffer))
bytes.forEach(b => {binary += String.fromCharCode(b)});
return window.btoa(binary)
}

export default ArrayBufferToBase64

+ 447
- 0
src/css/layout.css 查看文件

@@ -0,0 +1,447 @@
body,
html{
height:100%;
background:#eaeaea;
}


/* Landing */


.landing_bg{
background:#eaeaea;
padding:0px 20px;
}



.h-20{
height:20%;
}

.h-80{
height:80%;
}

.logo{
margin: 0px 0px 20px 0px;
}
.logo img{
height:130px;
padding:15px 0px;
margin-bottom:20px;
}

.logo p{
font-size:22px;
font-weight: 400;
font-family: 'Nunito Sans', sans-serif;
color:#000;
margin:0px;
padding:0px;
line-height:27px;
}


.category_height .category_box,
.category_view .category_box{
padding-bottom:20px;
}

.category_view .category_box .column_box .col_box_data img {
height:auto;
width:100%;
border-radius: 15px;
margin-bottom:0px;
}


.category_view .category_box .column_box .col_box_data img.trans_bg{
position:absolute;
z-index:3;
}

.price_badge{
position: absolute;
color: #fff;
right: 0;
font-size:20px;
z-index:4;
}

.price_badge img{
width:75px !important;
border-top-left-radius:0px !important;
border-bottom-right-radius:0px !important;
}

.price_badge span{
position: absolute;
top: 30%;
left: 65%;
transform: translate(-50%, -50%);

font-size: 18px;
font-weight: 400;
font-family: 'Nunito Sans', sans-serif;
}



.category_view .category_box .column_box .col_box_data p {
font-size: 15px;
margin: 0px;
padding: 0px;
font-weight: 400;
color: #fff;
position: absolute;
z-index: 5;
bottom: 0;
width: 100%;
font-size: 20px;
font-family: 'Nunito Sans', sans-serif;
}

.category_view .category_box:nth-child(even){
padding-left:10px;
padding-right:0px;
}

.category_view .category_box:nth-child(odd){
padding-left:0px;
padding-right:10px;
}

.category_height .category_box:nth-child(1){
padding-left:0px;
padding-right:10px;
}


.category_height .category_box:nth-child(2){
padding-left:10px;
padding-right:0px;
}

.category_height .category_box:nth-child(3){
padding-left:0px;
padding-right:10px;
}


.category_height .category_box:nth-child(4){
padding-left:10px;
padding-right:0px;
}

.category_height .category_box:nth-child(5){
padding-left:5px;
padding-right:5px;
margin-left:25%;
}

.category_box{
height:33.33%;
}

.category_box .column_box{
height:100%;
width:100%;
background:#fff;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.15);
border-radius:15px;
padding:20px;
display:table;
vertical-align:middle;
}

.category_box .column_box .col_box_data{
display:table-cell;
vertical-align:middle;
position: relative;
}

.category_box .column_box .col_box_data img {
height: 90px;
width: 90px;
margin-bottom:10px;
}

.category_box .column_box .col_box_data p{
font-size:20px;
margin:0px;
padding:0px;
font-weight:600;
color:#161114;
}

/* End Landing */


/* Other */


.inner_bg{
background:#eaeaea;
padding:0px;
}

.navbar_mobile{
height: 100px;
background: #f49e05;
position: fixed;
color: #000;
display: table;
float: left;
width: 100%;
font-family: 'Barlow Condensed', sans-serif;
font-weight:500;
font-size: 36px;
z-index: 10;
}

.navbar_mobile p {
display: table-cell;
vertical-align: middle;
text-align: center;
}

.navbar_mobile span.backarrow{
position:absolute;
width:40px;
height:40px;
top:30px;
left:20px;
}

.navbar_mobile span.backarrow img{
width:40px;
height:40px;
vertical-align:top;
}



.data_content{
padding:120px 20px 20px 20px;
}

.data_content h1{
font-family:'Nunito Sans', sans-serif;
font-size:36px;
font-weight:600;
color:#000;
padding:0px;
line-height:45px;
width:100%;
}

.data_content .category_view h1{
margin:0px 0px 20px 0px;
}

.data_content .scan h1{
margin:20px 0px 20px 0px;
}

.data_content .payment h1{
margin:0px 0px 20px 0px;
}


.data_content .payment h1.success{
color:#1d8a0e;
font-weight:700;
margin:20px 0px 20px 0px;
}

.data_content h1 span{
font-weight:700;
}

.data_content h2{
font-family: 'Nunito Sans', sans-serif;
font-size:36px;
font-weight:600;
color:#000;
padding:0px;
line-height:40px;
width:100%;
}

.data_content .scan h2{
margin:0px 0px 20px 0px;
}

.qr_box{
width: 280px;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.15);
border-radius: 10px;
padding: 15px;
background: #fff;
margin:0px auto 20px auto;
}

.loader_box {
width: 200px;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.15);
border-radius: 10px;
padding: 15px;
background: #fff;
margin: 0px auto 20px auto;
height: 300px;
position: relative;
}


.loader_box .handle{
position:absolute;
width:50px;
height:100px;
border:solid 6px #350f12;
right:-50px;
top:30px;
border-top-right-radius:35px;
border-bottom-right-radius:35px;
}


.loader_box img{
width:100%;
}


.qr_box img{
width:100%;
}


.data_content h4{
font-family: 'Nunito Sans', sans-serif;
font-size:25px;
font-weight:600;
color:#000;
padding:0px;
line-height:30px;
width:100%;
}

.data_content .scan h4{
margin:0px 0px 20px 0px;
}


.upi_box{
width:21.25%;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.15);
border-radius: 10px;
padding: 10px;
background: #fff;
display: inline-block;
float: left;
margin-right:5%;
}

.scan .upi_box:nth-last-child(1){
margin-right:0%;
}

.upi_box img{
width:100%;
}

.mb-10{
margin-bottom:10px !important;
}

.loading_gif{
margin:20px 0px;
}


.box .percent {
position: absolute;
left: 0;
top: 0;
z-index: 3;
width: 100%;
height: 100%;
display: -webkit-box;
display: flex;
display: -webkit-flex;
-webkit-box-align: center;
align-items: center;
-webkit-box-pack: center;
justify-content: center;
color:#010400;
font-size: 64px;
}

.box {
height:300px;
width:200px;
position: absolute;
top: 50%;
left: 50%;
-webkit-transform: translate(-50%, -50%);
transform: translate(-50%, -50%);
background: #eaeaea;
border-radius:15px;
overflow: hidden;
border-top-left-radius:5px;
border-top-right-radius:5px;
border:solid 6px #eaeaea;
border-top:solid 6px transparent;
box-shadow:0 0 0 6px #350f12, 0px 20px 35px rgba(0,0,0,0.5);
}



.box .water {
position: absolute;
left: 0;
top: 0;
z-index: 2;
width: 100%;
height: 100%;
-webkit-transform: translate(0, 100%);
transform: translate(0, 100%);
background: #f49e05;
-webkit-transition: all .3s;
transition: all .3s;
}

.box .water_wave {
width: 200%;
position: absolute;
bottom: 100%;
}

.box .water_wave_back {
right: 0;
fill: #f6cb7d;
-webkit-animation: wave-back 1.4s infinite linear;
animation: wave-back 1.4s infinite linear;
}

.box .water_wave_front {
left: 0;
fill:#f49e05;
margin-bottom: -1px;
-webkit-animation: wave-front .7s infinite linear;
animation: wave-front .7s infinite linear;
}

@keyframes wave-front {
100% {
transform: translate(-50%, 0);
}
}

@keyframes wave-back {
100% {
transform: translate(50%, 0);
}
}



+ 15
- 0
src/index.js 查看文件

@@ -0,0 +1,15 @@
import React from 'react';
import ReactDOM from 'react-dom';
import App from './App';

import 'bootstrap/dist/css/bootstrap.min.css';
import './css/layout.css'

ReactDOM.render(

<React.StrictMode>
<App />
</React.StrictMode>,
document.getElementById('root')
);


+ 10861
- 0
yarn.lock
文件差异内容过多而无法显示
查看文件


正在加载...
取消
保存