fix(front) добавлена страница контаксты
This commit is contained in:
@@ -5,6 +5,7 @@ import AuthForm from "./components/AuthForm";
|
||||
import About from "./pages/About";
|
||||
import Shop from "./pages/Shop";
|
||||
import NotFoundPage from "./pages/NotFoundPage";
|
||||
import Contact from "./pages/Contact";
|
||||
|
||||
const PrivateRoute = ({ children }) => {
|
||||
const token = localStorage.getItem("token");
|
||||
@@ -24,6 +25,7 @@ export default function App() {
|
||||
<Route path="/add_item" element={<AddItem />} />
|
||||
<Route path="/about" element={<About />} />
|
||||
<Route path="/shop" element={<Shop />} />
|
||||
<Route path="/contact" element={<Contact />} />
|
||||
|
||||
<Route path="*" element={<NotFoundPage />} />
|
||||
</Routes>
|
||||
|
||||
@@ -51,7 +51,7 @@ export default function BurgerMenu({ isOpen, onClose }) {
|
||||
</svg>
|
||||
<button
|
||||
className="hover:text-gold duration-200 transition uppercase"
|
||||
onClick={() => navigate("/about")}
|
||||
onClick={() => navigate("/contact")}
|
||||
>
|
||||
контакты
|
||||
</button>
|
||||
|
||||
@@ -17,7 +17,7 @@ export default function FooterDesktop() {
|
||||
<div className="flex items-center gap-8 text-lg uppercase tracking-wider text-light-gray">
|
||||
<button
|
||||
className="hover:text-gold duration-200 transition uppercase"
|
||||
onClick={() => navigate("/")}
|
||||
onClick={() => navigate("/about")}
|
||||
>
|
||||
fish fish
|
||||
</button>
|
||||
@@ -47,7 +47,7 @@ export default function FooterDesktop() {
|
||||
</svg>
|
||||
<button
|
||||
className="hover:text-gold duration-200 transition uppercase"
|
||||
onClick={() => navigate("/about")}
|
||||
onClick={() => navigate("/contact")}
|
||||
>
|
||||
контакты
|
||||
</button>
|
||||
|
||||
@@ -47,7 +47,7 @@ export default function HeaderDesktop() {
|
||||
</svg>
|
||||
<button
|
||||
className="hover:text-gold duration-200 transition uppercase"
|
||||
onClick={() => navigate("/about")}
|
||||
onClick={() => navigate("/contact")}
|
||||
>
|
||||
контакты
|
||||
</button>
|
||||
|
||||
@@ -0,0 +1,17 @@
|
||||
import PageLayout from "../components/PageLayout";
|
||||
|
||||
export default function Contact() {
|
||||
return (
|
||||
<PageLayout>
|
||||
<main className="px-6 md:px-16 grow w-full mb-6">
|
||||
<div className="w-full overflow-hidden rounded shadow-md ">
|
||||
<iframe
|
||||
src="https://yandex.ru/map-widget/v1/?um=constructor%3Aaee46827fd51e482587f99245635b92b3d473b8d2aef2b4e36f83ddfaaf77cb9&source=constructor"
|
||||
className="w-full h-127.5 border-0 "
|
||||
title="Yandex Map"
|
||||
/>
|
||||
</div>
|
||||
</main>
|
||||
</PageLayout>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user