diff --git a/src/components/Footer/Footer.jsx b/src/components/Footer/Footer.jsx new file mode 100644 index 0000000..ff6eb2f --- /dev/null +++ b/src/components/Footer/Footer.jsx @@ -0,0 +1,42 @@ +import FooterLink from './FooterLink'; +import { scb as logo } from '../../images'; +import { iconIctis, iconSfedu, iconVK } from '../../images/footer'; +import './Footer.styles.scss'; +import FooterContacts from './FooterContacts'; + +const mockLinks = [ + { + icon: iconIctis, + to: "https://ictis.sfedu.ru", + }, + { + icon: iconSfedu, + to: "https://sfedu.ru", + }, + { + icon: iconVK, + to: "https://vk.com/skbkit", + }, +]; + +const mockContacts = { + email: "skb@sfedu.ru", + address: "г. Таганрог, пер. Тургеневский, 44", + phone: "+7 (911) 8888-88-88", +}; + +function Footer({ links = mockLinks, contacts = mockContacts }) { + return ( + + ); +} + +export default Footer; \ No newline at end of file diff --git a/src/components/Footer/Footer.styles.scss b/src/components/Footer/Footer.styles.scss new file mode 100644 index 0000000..2cbb592 --- /dev/null +++ b/src/components/Footer/Footer.styles.scss @@ -0,0 +1,46 @@ +.footer { + display: flex; + justify-content: space-between; + align-items: center; + + height: 242px; + padding: 0 10%; + background: #222222; + + .logo-container { + height: 90px; + max-width: 30%; + + .logo { + height: 100%; + width: 100%; + } + } + + .contacts { + color: white; + font-size: 20px; + font-weight: 400; + line-height: 24px; + } + + .links { + display: flex; + gap: 20px; + + .link { + display: flex; + + width: 40px; + aspect-ratio: 1; + border-radius: 100%; + background-color: white; + + .icon { + width: 80%; + height: 80%; + object-fit: contain; + } + } + } +} \ No newline at end of file diff --git a/src/components/Footer/FooterContacts.jsx b/src/components/Footer/FooterContacts.jsx new file mode 100644 index 0000000..bcb2495 --- /dev/null +++ b/src/components/Footer/FooterContacts.jsx @@ -0,0 +1,11 @@ +function FooterContacts({ contacts }) { + return ( +
+

{ contacts.email }

+

{ contacts.address }

+

{ contacts.phone }

+
+ ); +} + +export default FooterContacts; \ No newline at end of file diff --git a/src/components/Footer/FooterLink.jsx b/src/components/Footer/FooterLink.jsx new file mode 100644 index 0000000..cc25252 --- /dev/null +++ b/src/components/Footer/FooterLink.jsx @@ -0,0 +1,11 @@ +import { Link } from "react-router-dom"; + +function FooterLink({ link }) { + return ( + + icon + + ); +} + +export default FooterLink; \ No newline at end of file diff --git a/src/components/Footer/index.js b/src/components/Footer/index.js new file mode 100644 index 0000000..b12f605 --- /dev/null +++ b/src/components/Footer/index.js @@ -0,0 +1 @@ +export { default } from './Footer'; \ No newline at end of file diff --git a/src/components/Navbar/Navbar.styles.scss b/src/components/Navbar/Navbar.styles.scss index bb95a2d..8cc89f0 100755 --- a/src/components/Navbar/Navbar.styles.scss +++ b/src/components/Navbar/Navbar.styles.scss @@ -4,7 +4,6 @@ $primary-text-color: white; .navbar { position: absolute; top: 0; - width: 80%; height: 80px; max-height: 80px; padding: 1em 10%; diff --git a/src/images/footer/iconIctis.png b/src/images/footer/iconIctis.png new file mode 100644 index 0000000..bab2383 Binary files /dev/null and b/src/images/footer/iconIctis.png differ diff --git a/src/images/footer/iconSfedu.png b/src/images/footer/iconSfedu.png new file mode 100644 index 0000000..ff94762 Binary files /dev/null and b/src/images/footer/iconSfedu.png differ diff --git a/src/images/footer/iconVK.svg b/src/images/footer/iconVK.svg new file mode 100644 index 0000000..308d4f9 --- /dev/null +++ b/src/images/footer/iconVK.svg @@ -0,0 +1,3 @@ + + + \ No newline at end of file diff --git a/src/images/footer/index.js b/src/images/footer/index.js new file mode 100644 index 0000000..e70926c --- /dev/null +++ b/src/images/footer/index.js @@ -0,0 +1,3 @@ +export { default as iconIctis } from './iconIctis.png'; +export { default as iconSfedu } from './iconSfedu.png'; +export { default as iconVK } from './iconVK.svg'; \ No newline at end of file diff --git a/src/pages/Root/Root.jsx b/src/pages/Root/Root.jsx index 4be55e8..43620ae 100755 --- a/src/pages/Root/Root.jsx +++ b/src/pages/Root/Root.jsx @@ -3,6 +3,7 @@ import { Outlet, useLoaderData } from "react-router-dom"; import { getContacts } from "../../api"; import Navbar from '../../components/Navbar'; import UsersWP from "../../components/UsersWP"; +import Footer from "../../components/Footer"; import './Root.styles.scss'; async function loader() { @@ -19,6 +20,7 @@ function Root() { +