From 2951f597b6cc8802c670a4af80cb416234cd94f7 Mon Sep 17 00:00:00 2001 From: Arina Date: Wed, 7 May 2025 16:43:39 +0300 Subject: [PATCH] contacts page --- src/App.js | 6 +- src/components/ContactPage.css | 146 +++++++++++++++++++++++++++++++++ src/components/ContactPage.js | 60 ++++++++++++++ 3 files changed, 210 insertions(+), 2 deletions(-) create mode 100644 src/components/ContactPage.css create mode 100644 src/components/ContactPage.js diff --git a/src/App.js b/src/App.js index af3f6ca..4e0c5a8 100644 --- a/src/App.js +++ b/src/App.js @@ -5,7 +5,8 @@ import HomePage from "./components/HomePage"; import LoginPage from "./components/LoginPage"; import RegisterPage from "./components/RegisterPage"; import CategoriesPage from "./components/CategoriesPage"; -import AdminPage from "./components/AdminPage"; // 1. Импортируем компонент AdminPage +import ContactPage from "./components/ContactPage"; +import AdminPage from "./components/AdminPage"; import "./App.css"; function App() { @@ -18,7 +19,8 @@ function App() { } /> } /> } /> - } /> {/* 2. Добавляем Route для AdminPage */} + } /> + } /> diff --git a/src/components/ContactPage.css b/src/components/ContactPage.css new file mode 100644 index 0000000..71d7da6 --- /dev/null +++ b/src/components/ContactPage.css @@ -0,0 +1,146 @@ +.contact-page { + font-family: "Arial", sans-serif; + margin: 0; + padding: 40px 20px; + background-color: #f9f5f0; + color: #543d2d; + display: flex; + justify-content: center; + align-items: center; + min-height: 80vh; + } + + .contact-container { + max-width: 1000px; + margin: 0 auto; + background-color: #fff; + border-radius: 12px; + box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); + padding: 40px; + } + + .contact-container h1 { + text-align: center; + margin-bottom: 30px; + color: #8b4513; + font-size: 2.5em; + font-weight: bold; + text-transform: uppercase; + letter-spacing: 1px; + } + + .contact-info { + margin-bottom: 30px; + } + + .contact-details { + display: flex; + flex-direction: column; + } + + .contact-item { + display: flex; + align-items: center; + margin-bottom: 15px; + } + + .contact-item i { + margin-right: 15px; + font-size: 1.5em; + color: #a8571d; + } + + .contact-item p { + line-height: 1.6; + margin: 0; + font-size: 1.1em; + } + + .contact-form h2 { + font-size: 2em; + margin-bottom: 20px; + color: #8b4513; + } + + .form-group { + margin-bottom: 20px; + } + + .form-group label { + display: block; + font-size: 1.2em; + margin-bottom: 8px; + color: #543d2d; + } + + .form-group input, + .form-group textarea { + width: 100%; + padding: 12px; + border: 1px solid #d3b48c; + border-radius: 7px; + font-size: 1em; + color: #543d2d; + background-color: #fff8f0; + } + + .form-group textarea { + resize: vertical; + min-height: 150px; + } + + .form-group input:focus, + .form-group textarea:focus { + outline: none; + border-color: #a8571d; + box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); + } + + .contact-form button { + display: inline-block; + padding: 14px 28px; + background-color: #a8571d; + color: white; + text-decoration: none; + border-radius: 7px; + font-weight: bold; + transition: background-color 0.3s ease; + box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); + cursor: pointer; + border: none; + font-size: 1.1em; + width: 100%; + } + + .contact-form button:hover { + background-color: #70380e; + } + + @media (max-width: 768px) { + .contact-page { + padding: 20px 10px; + } + + .contact-container { + width: 95%; + padding: 20px; + } + + .contact-container h1 { + font-size: 2em; + } + + .contact-item { + flex-direction: column; + align-items: flex-start; + } + + .contact-item i { + margin-bottom: 5px; + margin-right: 0; + } + + .form-group label { + font-size: 1em; + } + } \ No newline at end of file diff --git a/src/components/ContactPage.js b/src/components/ContactPage.js new file mode 100644 index 0000000..77cce00 --- /dev/null +++ b/src/components/ContactPage.js @@ -0,0 +1,60 @@ +import React from 'react'; +import './ContactPage.css'; + +function ContactPage() { + return ( +
+
+

Свяжитесь с нами

+ +
+

+ Если у вас есть вопросы, предложения или вы хотите связаться с нами, + пожалуйста, используйте следующую информацию: +

+ +
+
+ +

Email: recipe-arina@bk.com

+
+ +
+ +

Телефон: +7 (904) 783-43-67

+
+ +
+ +

Адрес: Ухта, ул. Ленина, д. 10

+
+
+
+ +
+

Напишите нам

+
+
+ + +
+ +
+ + +
+ +
+ + +
+ + +
+
+
+
+ ); +} + +export default ContactPage; \ No newline at end of file