Put everything in its right place

This commit is contained in:
2022-02-24 14:38:17 +01:00
parent 8777be462d
commit e31ebc1799
9 changed files with 20 additions and 24 deletions

View File

@@ -1,4 +1,4 @@
import styles from "../styles/Home.module.css"; import styles from "../../styles/Home.module.css";
export default function Content() { export default function Content() {
return ( return (

View File

@@ -1,10 +1,10 @@
import Head from "next/head"; import Head from "next/head";
import styles from "../styles/Home.module.css"; import styles from "../styles/Home.module.css";
import Header from "../templates/header"; import Header from "../components/templates/header";
import Generator from "../templates/generator"; import Generator from "../components/templates/generator";
import Nav from "../templates/nav"; import Nav from "../components/templates/nav";
import UserTop from "../templates/userTop"; import UserTop from "../components/templates/userTop";
import Footer from "../templates/footer"; import Footer from "../components/templates/footer";
import { useState } from "react"; import { useState } from "react";
import { useSession, signIn, signOut } from "next-auth/react"; import { useSession, signIn, signOut } from "next-auth/react";
import { Button } from "evergreen-ui"; import { Button } from "evergreen-ui";

View File

@@ -1,9 +1,10 @@
import Head from "next/head"; import Head from "next/head";
import styles from "../styles/Home.module.css"; import styles from "../styles/Home.module.css";
import Header from "../templates/header"; import Header from "../components/templates/header";
import Nav from "../templates/nav"; import Nav from "../components/templates/nav";
import Content from "../templates/content"; import Content from "../components/templates/content";
import Footer from "../templates/footer"; import Footer from "../components/templates/footer";
import axios from "axios";
import { useState } from "react"; import { useState } from "react";
@@ -21,14 +22,11 @@ export default function Kontakt() {
email, email,
message message
} }
fetch('/api/contact', { axios
method: 'POST', .post("/api/contact", {
headers: { message: data
'Accept': 'application/json, text/plain, */*', })
'Content-Type': 'application/json' .then((res) => {
},
body: JSON.stringify(data)
}).then((res) => {
console.log('Response received') console.log('Response received')
if (res.status === 200) { if (res.status === 200) {
console.log('Response succeeded!') console.log('Response succeeded!')
@@ -68,7 +66,6 @@ export default function Kontakt() {
</form> </form>
</div> </div>
</main> </main>
<Footer />
</div> </div>
); );
} }

View File

@@ -1,9 +1,9 @@
import Head from "next/head"; import Head from "next/head";
import styles from "../styles/Home.module.css"; import styles from "../styles/Home.module.css";
import Header from "../templates/header"; import Header from "../components/templates/header";
import Nav from "../templates/nav"; import Nav from "../components/templates/nav";
import Content from "../templates/content"; import Content from "../components/templates/content";
import Footer from "../templates/footer"; import Footer from "../components/templates/footer";
export default function Onas() { export default function Onas() {
return ( return (
@@ -15,7 +15,6 @@ export default function Onas() {
</Head> </Head>
<Nav /> <Nav />
<Footer />
<main className={styles.main}> <main className={styles.main}>
<p className="font-bold"> <p className="font-bold">
Głównym profilem działalności firmy jest projektowanie instalacji Głównym profilem działalności firmy jest projektowanie instalacji