diff --git a/package.json b/package.json index b432e566..cd7d7706 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "gatsby-starter-i18n-bulma", "description": "Gatsby example site using i18n and bulma for CSS", - "version": "v1.1.3", + "version": "v1.1.5", "author": "Walter Perdan (www.kalwaltart.com)", "dependencies": { "@babel/parser": "^7.9.4", diff --git a/src/data/messages/en.js b/src/data/messages/en.js index 1aa2eea8..42bdad82 100644 --- a/src/data/messages/en.js +++ b/src/data/messages/en.js @@ -44,8 +44,8 @@ module.exports = { 'contact': 'Contacts', 'contact.infos': 'Contact informations', 'contact.fill-the-form': 'Fill the form to send a message', - 'contact.firstName': 'Name', - 'contact.lastName': 'Surname', + 'contact.name': 'Name', + 'contact.surname': 'Surname', 'contact.email': 'Email', 'contact.subject': 'Subject', 'contact.gender.male': 'Male', diff --git a/src/data/messages/it.js b/src/data/messages/it.js index a9696246..7e0a8a6a 100644 --- a/src/data/messages/it.js +++ b/src/data/messages/it.js @@ -44,8 +44,8 @@ module.exports = { 'contact': 'Contatti', 'contact.infos': 'Informazioni di contatto', 'contact.fill-the-form': 'Riempi la scheda per inviare un messaggio', - 'contact.firstName': 'Nome', - 'contact.lastName': 'Cognome', + 'contact.name': 'Nome', + 'contact.surname': 'Cognome', 'contact.email': 'Email', 'contact.subject': 'Soggetto', 'contact.gender.male': 'Maschio', diff --git a/src/templates/contacts.js b/src/templates/contacts.js index 05c21569..847b0f0d 100644 --- a/src/templates/contacts.js +++ b/src/templates/contacts.js @@ -1,15 +1,15 @@ import React from "react" import * as PropTypes from "prop-types" import { graphql } from 'gatsby' +import { navigate } from "gatsby-link"; import Layout from "../components/Layout" import SEO from '../components/SEO/SEO' import Content, { HTMLContent } from "../components/Content" import ContactDetails from "../components/ContactDetails" import OsmMap from '../components/OsmMap' import FollowUs from '../components/FollowUs' -import ContactForm from '../components/ContactForm/ContactForm' -import { getCurrentLangKey } from 'ptz-i18n' -import { FormattedMessage } from 'react-intl' +import { getCurrentLangKey } from 'ptz-i18n'; +import { FormattedMessage } from 'react-intl'; function encode(data) { @@ -48,7 +48,108 @@ const ContactPageTemplate = ({ />

- +
+ {/* The `form-name` hidden field is required to support form submissions without JavaScript */} + + +
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+
+ + +
+
+
+ +
+
+ +
+