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
9 changes: 1 addition & 8 deletions build/index.js

Large diffs are not rendered by default.

6,643 changes: 6,643 additions & 0 deletions package-lock.json

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,9 @@
},
"dependencies": {
"@babel/preset-env": "^7.5.4",
"@fortawesome/fontawesome-svg-core": "^1.2.27",
"@fortawesome/free-solid-svg-icons": "^5.12.1",
"@fortawesome/react-fontawesome": "^0.1.9",
"axios": "^0.19.0"
}
}
36 changes: 34 additions & 2 deletions src/App.css
Original file line number Diff line number Diff line change
@@ -1,19 +1,51 @@
.error {
border: red 2.7px solid;
src: url(/src/images/tick.png);

}
/* Chrome, Safari, Edge, Opera */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
-webkit-appearance: none;
margin: 0;
margin: 0;

}

/* Firefox */
input[type=number] {
-moz-appearance: textfield;



}

.error-display{
color: red;
font-size: 14px;
}

}

.styles
{

box-sizing: border-box;
display: block;
border-color: #3f72af;
padding: 20px;
width: 300px;
margin: 40px auto;
font-size: 18px;
outline: none;
text-align: center;
box-shadow:inset 0 0 5px 5px ghostwhite;
text-transform: uppercase;
background-color:#bbded6;

}
input:focus
{
background-color: white;
outline: none;
border: 3px solid rgba(81, 203, 238, 1);
}

Binary file added src/images/tick.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 6 additions & 4 deletions src/index.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
import React, { Component } from "react";
import axios from "axios";
import "./App.css";

class Pincode extends Component {
constructor(props) {
super(props);

this.state = {
pincode: "",
city: "",
Expand Down Expand Up @@ -50,8 +51,9 @@ class Pincode extends Component {
{this.state.error ? (
<span className="error-display">{this.state.error}</span>
) : null}

<div style={this.props.pincodeContainer}>
<input
<input className='styles'
maxLength={6}
minLength={6}
onChange={e => this.onChange(e)}
Expand All @@ -64,7 +66,7 @@ class Pincode extends Component {
/>
</div>
<div style={this.props.cityContainer}>
<input
<input className='styles'
type="String"
disabled={true}
placeholder="City"
Expand All @@ -73,7 +75,7 @@ class Pincode extends Component {
/>
</div>
<div style={this.props.stateContainer}>
<input
<input className='styles'
type="String"
placeholder="State"
disabled={true}
Expand Down
Loading