diff --git a/package-lock.json b/package-lock.json index f7ae6c0..728dd6a 100644 --- a/package-lock.json +++ b/package-lock.json @@ -21,6 +21,7 @@ "react-dom": "^18.2.0", "react-headless-accordion": "^1.0.2", "react-modal": "^3.16.1", + "react-router-dom": "^6.7.0", "react-scripts": "5.0.1", "sass": "^1.57.1", "scss": "^0.2.4", @@ -3086,6 +3087,14 @@ } } }, + "node_modules/@remix-run/router": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/@remix-run/router/-/router-1.3.0.tgz", + "integrity": "sha512-nwQoYb3m4DDpHTeOwpJEuDt8lWVcujhYYSFGLluC+9es2PyLjm+jjq3IeRBQbwBtPLJE/lkuHuGHr8uQLgmJRA==", + "engines": { + "node": ">=14" + } + }, "node_modules/@rollup/plugin-babel": { "version": "5.3.1", "resolved": "https://registry.npmjs.org/@rollup/plugin-babel/-/plugin-babel-5.3.1.tgz", @@ -14312,6 +14321,36 @@ "node": ">=0.10.0" } }, + "node_modules/react-router": { + "version": "6.7.0", + "resolved": "https://registry.npmjs.org/react-router/-/react-router-6.7.0.tgz", + "integrity": "sha512-KNWlG622ddq29MAM159uUsNMdbX8USruoKnwMMQcs/QWZgFUayICSn2oB7reHce1zPj6CG18kfkZIunSSRyGHg==", + "dependencies": { + "@remix-run/router": "1.3.0" + }, + "engines": { + "node": ">=14" + }, + "peerDependencies": { + "react": ">=16.8" + } + }, + "node_modules/react-router-dom": { + "version": "6.7.0", + "resolved": "https://registry.npmjs.org/react-router-dom/-/react-router-dom-6.7.0.tgz", + "integrity": "sha512-jQtXUJyhso3kFw430+0SPCbmCmY1/kJv8iRffGHwHy3CkoomGxeYzMkmeSPYo6Egzh3FKJZRAL22yg5p2tXtfg==", + "dependencies": { + "@remix-run/router": "1.3.0", + "react-router": "6.7.0" + }, + "engines": { + "node": ">=14" + }, + "peerDependencies": { + "react": ">=16.8", + "react-dom": ">=16.8" + } + }, "node_modules/react-scripts": { "version": "5.0.1", "resolved": "https://registry.npmjs.org/react-scripts/-/react-scripts-5.0.1.tgz", @@ -19372,6 +19411,11 @@ "source-map": "^0.7.3" } }, + "@remix-run/router": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/@remix-run/router/-/router-1.3.0.tgz", + "integrity": "sha512-nwQoYb3m4DDpHTeOwpJEuDt8lWVcujhYYSFGLluC+9es2PyLjm+jjq3IeRBQbwBtPLJE/lkuHuGHr8uQLgmJRA==" + }, "@rollup/plugin-babel": { "version": "5.3.1", "resolved": "https://registry.npmjs.org/@rollup/plugin-babel/-/plugin-babel-5.3.1.tgz", @@ -27388,6 +27432,23 @@ "resolved": "https://registry.npmjs.org/react-refresh/-/react-refresh-0.11.0.tgz", "integrity": "sha512-F27qZr8uUqwhWZboondsPx8tnC3Ct3SxZA3V5WyEvujRyyNv0VYPhoBg1gZ8/MV5tubQp76Trw8lTv9hzRBa+A==" }, + "react-router": { + "version": "6.7.0", + "resolved": "https://registry.npmjs.org/react-router/-/react-router-6.7.0.tgz", + "integrity": "sha512-KNWlG622ddq29MAM159uUsNMdbX8USruoKnwMMQcs/QWZgFUayICSn2oB7reHce1zPj6CG18kfkZIunSSRyGHg==", + "requires": { + "@remix-run/router": "1.3.0" + } + }, + "react-router-dom": { + "version": "6.7.0", + "resolved": "https://registry.npmjs.org/react-router-dom/-/react-router-dom-6.7.0.tgz", + "integrity": "sha512-jQtXUJyhso3kFw430+0SPCbmCmY1/kJv8iRffGHwHy3CkoomGxeYzMkmeSPYo6Egzh3FKJZRAL22yg5p2tXtfg==", + "requires": { + "@remix-run/router": "1.3.0", + "react-router": "6.7.0" + } + }, "react-scripts": { "version": "5.0.1", "resolved": "https://registry.npmjs.org/react-scripts/-/react-scripts-5.0.1.tgz", diff --git a/package.json b/package.json index ca1658d..4de4a93 100644 --- a/package.json +++ b/package.json @@ -16,6 +16,7 @@ "react-dom": "^18.2.0", "react-headless-accordion": "^1.0.2", "react-modal": "^3.16.1", + "react-router-dom": "^6.7.0", "react-scripts": "5.0.1", "sass": "^1.57.1", "scss": "^0.2.4", diff --git a/src/App.tsx b/src/App.tsx deleted file mode 100644 index def5054..0000000 --- a/src/App.tsx +++ /dev/null @@ -1,17 +0,0 @@ -import { Header } from "./components/header/header"; -import { MainContent } from "./components/main/main-content"; -import { Footer } from "./components/footer/footer"; -import { FloatingButtons } from "./components/floating-buttons/floating-buttons"; - -function App() { - return ( -
-
- -
- ); -} - -export default App; diff --git a/src/components/footer/footer.tsx b/src/components/footer/footer.tsx index 585d047..96cd0d9 100644 --- a/src/components/footer/footer.tsx +++ b/src/components/footer/footer.tsx @@ -1,7 +1,7 @@ import style from "./footer.module.scss"; import { InfoAgencia } from "./info-agencia/info-agencia"; -import { Newsletter } from "../newsletter/newsletter"; +import { Newsletter } from "./newsletter/newsletter"; import { InfoAgenciaMobile } from "./info-agencia-mobile/info-agencia-mobile"; import boleto from "./assets/Boleto.png"; diff --git a/src/components/newsletter/newsletter.module.scss b/src/components/footer/newsletter/newsletter.module.scss similarity index 100% rename from src/components/newsletter/newsletter.module.scss rename to src/components/footer/newsletter/newsletter.module.scss diff --git a/src/components/newsletter/newsletter.tsx b/src/components/footer/newsletter/newsletter.tsx similarity index 100% rename from src/components/newsletter/newsletter.tsx rename to src/components/footer/newsletter/newsletter.tsx diff --git a/src/components/header/header-menu/header-menu.tsx b/src/components/header/header-menu/header-menu.tsx index b7b4d91..12893b7 100644 --- a/src/components/header/header-menu/header-menu.tsx +++ b/src/components/header/header-menu/header-menu.tsx @@ -1,12 +1,16 @@ import style from "./header-menu.module.scss"; +import { BrowserRouter as Router, Routes, Route, Link } from "react-router-dom"; + export function HeaderMenu() { return ( -
-
- CURSOS - SAIBA MAIS - INSTITUCIONAIS + +
+
+ CURSOS + SAIBA MAIS + INSTITUCIONAIS +
-
+ ); } diff --git a/src/components/header/header.module.scss b/src/components/header/header.module.scss index 4c016a5..c540eec 100644 --- a/src/components/header/header.module.scss +++ b/src/components/header/header.module.scss @@ -79,13 +79,14 @@ align-items: center; gap: 55px; - & span { + & a { font-family: "Roboto"; font-style: normal; font-weight: 400; font-size: 14px; line-height: 16px; color: #ffffff; + text-decoration: none; @media (min-width: 2500px) { font-size: 28px; diff --git a/src/components/header/header.tsx b/src/components/header/header.tsx index 4685a89..93c6563 100644 --- a/src/components/header/header.tsx +++ b/src/components/header/header.tsx @@ -3,6 +3,7 @@ import { HeaderRoute } from "./header-route/header-route"; import { HeaderHamburger } from "./header-hamburger/header-hamburger"; import { MenuAberto } from "./header-hamburger/menu-aberto"; import { useState } from "react"; +import { BrowserRouter as Router, Routes, Route, Link } from "react-router-dom"; import style from "./header.module.scss"; import logoM3 from "./assets/logo.png"; @@ -13,30 +14,32 @@ export function Header() { const [openModal, setOpenModal] = useState(false); return ( <> -
-
-
-
- -
-
- - - {" "} + +
+
+
+ +
+ - -
-
- ENTRAR - +
+
+ ENTRAR + +
-
-
+ + setOpenModal(true)} /> - + ); diff --git a/src/pages/Home.tsx b/src/pages/Home.tsx new file mode 100644 index 0000000..98903ef --- /dev/null +++ b/src/pages/Home.tsx @@ -0,0 +1,15 @@ +import { Header } from "../components/header/header"; +import { MainContent } from "../components/main/main-content"; +import { Footer } from "../components/footer/footer"; +import { FloatingButtons } from "../components/floating-buttons/floating-buttons"; + +export function Home() { + return ( +
+
+ +
+ ); +}