commit e0d40450d252576dfba993a19ee52666df2ea66a
Author: joker
Date: Sat Feb 25 08:01:36 2023 +0300
first commit
diff --git a/.eslintrc.json b/.eslintrc.json
new file mode 100644
index 0000000..bffb357
--- /dev/null
+++ b/.eslintrc.json
@@ -0,0 +1,3 @@
+{
+ "extends": "next/core-web-vitals"
+}
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..ee1c92b
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,39 @@
+# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
+
+# dependencies
+/node_modules
+/.pnp
+.pnp.js
+
+# testing
+/coverage
+
+# next.js
+/.next/
+/out/
+
+# production
+/build
+
+# misc
+.DS_Store
+*.pem
+
+# debug
+npm-debug.log*
+yarn-debug.log*
+yarn-error.log*
+.pnpm-debug.log*
+
+# local env files
+.env*.local
+
+# vercel
+.vercel
+
+# typescript
+*.tsbuildinfo
+next-env.d.ts
+
+#sourse
+/public/informatica
\ No newline at end of file
diff --git a/.history/components/Head_20221008164656.tsx b/.history/components/Head_20221008164656.tsx
new file mode 100644
index 0000000..e69de29
diff --git a/.history/components/Head_20221008164704.tsx b/.history/components/Head_20221008164704.tsx
new file mode 100644
index 0000000..288da04
--- /dev/null
+++ b/.history/components/Head_20221008164704.tsx
@@ -0,0 +1,45 @@
+import NextHead from 'next/head';
+import { useRouter } from 'next/router';
+import React from 'react';
+import { MetaProps } from '../types/layout';
+
+export type WithYandexMetrikaProps = {
+ children: React.ReactNode;
+}
+
+export const WEBSITE_HOST_URL = 'https://robotop.krasnikov.pro';
+
+const Head = ({ customMeta }: { customMeta?: MetaProps }): JSX.Element => {
+ const router = useRouter();
+ const meta: MetaProps = {
+ title: 'РоботТоп - робототехнический фестиваль',
+ description:
+ 'РоботТОП – это робототехнические соревнования, в которых могут принять участие молодые любители робототехники, объединившись в команды.',
+ image: `${WEBSITE_HOST_URL}/images/site-preview.png`,
+ type: 'website',
+ ...customMeta,
+ };
+
+ return (
+
+ {meta.title}
+
+
+
+
+
+
+
+
+
+
+
+
+ {meta.date && (
+
+ )}
+
+ );
+};
+
+export default Head;
diff --git a/.history/components/Layout_20221008164630.tsx b/.history/components/Layout_20221008164630.tsx
new file mode 100644
index 0000000..e69de29
diff --git a/.history/components/Layout_20221008165202.tsx b/.history/components/Layout_20221008165202.tsx
new file mode 100644
index 0000000..302824b
--- /dev/null
+++ b/.history/components/Layout_20221008165202.tsx
@@ -0,0 +1,45 @@
+import React from 'react';
+import { MetaProps } from '../types/layout';
+import Head from './Head';
+import Navigation from './Navigation';
+import ThemeSwitch from './ThemeSwitch';
+type LayoutProps = {
+ children: React.ReactNode;
+ customMeta?: MetaProps;
+};
+
+export const WEBSITE_HOST_URL = 'https://robotop.krasnikov.pro/';
+
+const Layout = ({ children, customMeta }: LayoutProps): JSX.Element => {
+ return (
+ <>
+
+
+
+
+ {children}
+
+
+
+ >
+ );
+};
+
+export default Layout;
diff --git a/.history/components/Layout_20221008170318.tsx b/.history/components/Layout_20221008170318.tsx
new file mode 100644
index 0000000..302824b
--- /dev/null
+++ b/.history/components/Layout_20221008170318.tsx
@@ -0,0 +1,45 @@
+import React from 'react';
+import { MetaProps } from '../types/layout';
+import Head from './Head';
+import Navigation from './Navigation';
+import ThemeSwitch from './ThemeSwitch';
+type LayoutProps = {
+ children: React.ReactNode;
+ customMeta?: MetaProps;
+};
+
+export const WEBSITE_HOST_URL = 'https://robotop.krasnikov.pro/';
+
+const Layout = ({ children, customMeta }: LayoutProps): JSX.Element => {
+ return (
+ <>
+