diff --git a/pages/_app.tsx b/pages/_app.tsx
index 443055f..2539ee5 100644
--- a/pages/_app.tsx
+++ b/pages/_app.tsx
@@ -3,11 +3,13 @@ import '../styles/transitions.scss';
import type { AppProps } from 'next/app';
import Footer from './components/Footer';
import Header from './components/Header';
+import { Logo } from './components/Logo';
function Runosaari({ Component, pageProps }: AppProps) {
return (
<>
+
diff --git a/pages/components/Header.tsx b/pages/components/Header.tsx
index 2f9cbd0..becbd27 100644
--- a/pages/components/Header.tsx
+++ b/pages/components/Header.tsx
@@ -1,14 +1,7 @@
import Link from 'next/link';
-import React, { useEffect, useState } from 'react';
import styles from '../../styles/Header.module.scss';
const Header = () => {
- const [isDesktop, setIsDesktop] = useState(true);
-
- useEffect(() => {
- setIsDesktop(window.innerWidth > 768);
- }, []);
-
return (
<>
@@ -33,26 +26,6 @@ const Header = () => {
-
-
- {isDesktop ? (
-

- ) : (
-

- )}
-
-
-
>
);
};
diff --git a/pages/components/Logo.tsx b/pages/components/Logo.tsx
new file mode 100644
index 0000000..7e7287b
--- /dev/null
+++ b/pages/components/Logo.tsx
@@ -0,0 +1,33 @@
+import React, { useEffect, useState } from 'react';
+import styles from '../../styles/Logo.module.scss';
+
+export const Logo = () => {
+ const [isDesktop, setIsDesktop] = useState(true);
+
+ useEffect(() => {
+ setIsDesktop(window.innerWidth > 768);
+ }, []);
+
+ return (
+
+
+ {isDesktop ? (
+

+ ) : (
+

+ )}
+
+
+
+ );
+};
diff --git a/styles/Header.module.scss b/styles/Header.module.scss
index 633035c..5d5b6ec 100644
--- a/styles/Header.module.scss
+++ b/styles/Header.module.scss
@@ -39,29 +39,3 @@
margin-top: 1rem;
}
}
-
-.logoContainer {
- display: flex;
- flex-direction: column;
- align-items: center;
-}
-
-.logo {
- width: 80%;
- max-width: 1000px;
- border-radius: 3px 3px 0px 0px;
- padding-top: 3px;
-}
-
-.logoImage {
- width: 100%;
-}
-
-.logoCredits {
- font-size: 90%;
- display: flex;
- justify-content: right;
- max-width: 990px;
- padding-right: 10px;
- margin-top: -5px;
-}
diff --git a/styles/Logo.module.scss b/styles/Logo.module.scss
new file mode 100644
index 0000000..0959259
--- /dev/null
+++ b/styles/Logo.module.scss
@@ -0,0 +1,25 @@
+.logoContainer {
+ display: flex;
+ flex-direction: column;
+ align-items: center;
+}
+
+.logo {
+ width: 80%;
+ max-width: 1000px;
+ border-radius: 3px 3px 0px 0px;
+ padding-top: 3px;
+}
+
+.logoImage {
+ width: 100%;
+}
+
+.logoCredits {
+ font-size: 90%;
+ display: flex;
+ justify-content: right;
+ max-width: 990px;
+ padding-right: 10px;
+ margin-top: -5px;
+}