mirror of
https://github.com/sergeyyarkov/devthread.ru.git
synced 2026-10-11 10:19:13 +03:00
name
This commit is contained in:
parent
55681f0d84
commit
938c1b33dd
@ -1,12 +1,12 @@
|
|||||||
import React from 'react';
|
import React from 'react';
|
||||||
import ContactsFrom from './ContactsForm/ContactsForm';
|
import ContactsFrom from './ContactsForm/ContactsForm';
|
||||||
import useSiteMetadata from '../../hooks/useSiteMetadata'
|
import useSiteMetadataQuery from '../../hooks/useSiteMetadataQuery'
|
||||||
import './Contacts.scss'
|
import './Contacts.scss'
|
||||||
|
|
||||||
import MemoIcon from '../../images/memo-icon.svg'
|
import MemoIcon from '../../images/memo-icon.svg'
|
||||||
|
|
||||||
const Contacts = () => {
|
const Contacts = () => {
|
||||||
const { siteMetadata: { email } } = useSiteMetadata()
|
const { siteMetadata: { email } } = useSiteMetadataQuery()
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="contacts">
|
<div className="contacts">
|
||||||
|
|||||||
@ -1,10 +1,10 @@
|
|||||||
import React from 'react'
|
import React from 'react'
|
||||||
import useSiteMetadata from '../../hooks/useSiteMetadata'
|
import useSiteMetadataQuery from '../../hooks/useSiteMetadataQuery'
|
||||||
import Header from '../Header/Header'
|
import Header from '../Header/Header'
|
||||||
import Footer from '../Footer/Footer'
|
import Footer from '../Footer/Footer'
|
||||||
|
|
||||||
const Layout = ({ children }) => {
|
const Layout = ({ children }) => {
|
||||||
const { siteMetadata } = useSiteMetadata()
|
const { siteMetadata } = useSiteMetadataQuery()
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
|
|||||||
@ -1,12 +1,12 @@
|
|||||||
import React from 'react';
|
import React from 'react';
|
||||||
import useSiteMetadata from '../../hooks/useSiteMetadata'
|
import useSiteMetadataQuery from '../../hooks/useSiteMetadataQuery'
|
||||||
import PropTypes from 'prop-types'
|
import PropTypes from 'prop-types'
|
||||||
import { Helmet } from 'react-helmet'
|
import { Helmet } from 'react-helmet'
|
||||||
import { useLocation } from '@reach/router'
|
import { useLocation } from '@reach/router'
|
||||||
|
|
||||||
const SEO = ({ title, description }) => {
|
const SEO = ({ title, description }) => {
|
||||||
const { pathname } = useLocation()
|
const { pathname } = useLocation()
|
||||||
const { siteMetadata } = useSiteMetadata()
|
const { siteMetadata } = useSiteMetadataQuery()
|
||||||
|
|
||||||
const seo = {
|
const seo = {
|
||||||
title: title || siteMetadata.title,
|
title: title || siteMetadata.title,
|
||||||
|
|||||||
@ -1,12 +1,12 @@
|
|||||||
import React from 'react';
|
import React from 'react';
|
||||||
import useSiteMetadata from '../hooks/useSiteMetadata'
|
import useSiteMetadataQuery from '../hooks/useSiteMetadataQuery'
|
||||||
import SEO from '../components/SEO/SEO'
|
import SEO from '../components/SEO/SEO'
|
||||||
import Layout from '../components/Layout/Layout'
|
import Layout from '../components/Layout/Layout'
|
||||||
import Offers from '../components/Offers/Offers'
|
import Offers from '../components/Offers/Offers'
|
||||||
import About from '../components/About/About'
|
import About from '../components/About/About'
|
||||||
|
|
||||||
const AboutPage = () => {
|
const AboutPage = () => {
|
||||||
const { siteMetadata: { title, menuLinks, email } } = useSiteMetadata()
|
const { siteMetadata: { title, menuLinks, email } } = useSiteMetadataQuery()
|
||||||
return (
|
return (
|
||||||
<Layout>
|
<Layout>
|
||||||
<SEO title='О сайте' description='Этот сайт придуман для того, чтобы помочь вам разобраться с вашей проблемой и решить её. Сайт содержит в себе статьи и руководства.' />
|
<SEO title='О сайте' description='Этот сайт придуман для того, чтобы помочь вам разобраться с вашей проблемой и решить её. Сайт содержит в себе статьи и руководства.' />
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user