This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<Capabilities xmlns="https://www.opengis.net/wmts/1.0" | |
xmlns:ows="https://www.opengis.net/ows/1.1" | |
xmlns:xlink="https://www.w3.org/1999/xlink" | |
xmlns:xsi="https://www.w3.org/2001/XMLSchema-instance" | |
xmlns:gml="https://www.opengis.net/gml" | |
xsi:schemaLocation="https://www.opengis.net/wmts/1.0 https://schemas.opengis.net/wmts/1.0/wmtsGetCapabilities_response.xsd" | |
version="1.0.0"> | |
<ows:ServiceIdentification> | |
<ows:Title>Web Map Tile Service</ows:Title> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React, { Component } from "react"; | |
import styled from "styled-components"; | |
import { Formik } from "formik"; | |
import { Form, Input, Title, Text, Button, Label } from "./theme.js"; | |
class App extends Component { | |
render() { | |
return ( | |
<div> | |
<Title>Form</Title> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
validate={values => { | |
let errors = {}; | |
// REGEX | |
let regex = !/^[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,4}$/i; | |
// VALIDATION | |
if (!values.email) { | |
errors.email = "Email is required"; | |
} else if (regex.test(values.email)) { | |
errors.email = "Invalid email address"; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React, { Component } from "react"; | |
import styled from "styled-components"; | |
import { Formik } from "formik"; | |
import { Form, Input, Title, Text, Button, Label } from "./theme.js"; | |
class App extends Component { | |
render() { | |
return ( | |
<div> | |
<Title>Form</Title> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React, { Component } from "react"; | |
import styled from "styled-components"; | |
import { Formik } from "formik"; | |
import { Form, Input, Title, Text, Button, Label } from "./theme.js"; | |
class App extends Component { | |
render() { | |
return ( | |
<div> | |
<Title>Form</Title> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React, { Component } from "react"; | |
import styled from "styled-components"; | |
import { Form, Input, Title, Text, Button } from "./theme.js"; | |
const Label = styled.label` | |
display: flex; | |
flex-direction: column; | |
color: #777; | |
font-family: "Raleway", sans-serif; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React, {Component} from 'react'; | |
import styled from 'styled-components'; | |
import {Form, Input, Title, Button} from './theme.js'; | |
class App extends Component { | |
render() { | |
return ( | |
<div> | |
<Title>Form</Title> | |
<Form> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import styled from 'styled-components'; | |
export const Input = styled.input` | |
width: 300px; | |
height: 35px; | |
border: ${props => props.border || '1px solid #ccc'}; | |
background-color: #fff; | |
`; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React, {Component} from 'react'; | |
import styled from 'styled-components'; | |
import {Form, Input, Title, Button} from './theme.js'; | |
class App extends Component { | |
render() { | |
return ( | |
<div> | |
<Title>Form</Title> | |
<Form> |
NewerOlder