diff --git a/src/components/Footer/index.tsx b/src/components/Footer/index.tsx index cfc5b7fe..47308e12 100644 --- a/src/components/Footer/index.tsx +++ b/src/components/Footer/index.tsx @@ -6,6 +6,7 @@ import { Author } from './Author' import { Block } from '../Block' import { Spacer } from '../Spacer' import { Contacts } from '../Contacts' +import { Gosuslugi } from '../Gosuslugi' export interface IFooterProps { showAuthor: boolean @@ -19,6 +20,15 @@ export const Footer: React.FC = props => ( +
+ +
+ diff --git a/src/components/Gosuslugi/index.tsx b/src/components/Gosuslugi/index.tsx new file mode 100644 index 00000000..26ab1706 --- /dev/null +++ b/src/components/Gosuslugi/index.tsx @@ -0,0 +1,51 @@ +import Head from 'next/head' +import { useEffect } from 'react' +import { Html } from '../Html' +import { getCode } from './lib' + +export type GosuslugiProps = {} + +export const Gosuslugi: React.FC = () => { + useEffect(() => { + const code = getCode() + try { + document.head.innerHTML = document.head.innerHTML + code + console.log('Gosuslugi injected') + } catch (error) { + console.log('Failed to inject Gosuslugi') + } + }) + + return ( +
+
+
+
+ Госуслуги +
Решаем вместе
+
+
+
+
+ Есть предложения по организации учебного процесса или знаете, как сделать школу лучше? +
+ +
+
+ {/* */} + +
+
+
+
+
+ ) +} diff --git a/src/components/Gosuslugi/lib.ts b/src/components/Gosuslugi/lib.ts new file mode 100644 index 00000000..5e7308a6 --- /dev/null +++ b/src/components/Gosuslugi/lib.ts @@ -0,0 +1,17 @@ +export const getCode = () => ` + + + + + + +` \ No newline at end of file