mirror of
https://git.rdcenter.ru/RDCenter/skb-kit.git
synced 2026-12-05 01:59:45 +00:00
Footer
This commit is contained in:
1 parent
fb6c40f280
commit
6ac4d14e8b
11 files changed
+119
-1
No files matched your search
@@ -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 (
|
||||
<footer className="footer">
|
||||
<div className="logo-container">
|
||||
<img className="logo" alt="logo" src={ logo } />
|
||||
</div>
|
||||
<FooterContacts contacts={ contacts } />
|
||||
<div className="links">
|
||||
{ links.map(link => <FooterLink link={link} />) }
|
||||
</div>
|
||||
</footer>
|
||||
);
|
||||
}
|
||||
|
||||
export default Footer;
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
function FooterContacts({ contacts }) {
|
||||
return (
|
||||
<div className="contacts">
|
||||
<p>{ contacts.email }</p>
|
||||
<p>{ contacts.address }</p>
|
||||
<p>{ contacts.phone }</p>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
export default FooterContacts;
|
||||
@@ -0,0 +1,11 @@
|
||||
import { Link } from "react-router-dom";
|
||||
|
||||
function FooterLink({ link }) {
|
||||
return (
|
||||
<Link to={ link.to } className="link">
|
||||
<img src={ link.icon } alt='icon' className='icon'/>
|
||||
</Link>
|
||||
);
|
||||
}
|
||||
|
||||
export default FooterLink;
|
||||
@@ -0,0 +1 @@
|
||||
export { default } from './Footer';
|
||||
@@ -4,7 +4,6 @@ $primary-text-color: white;
|
||||
.navbar {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
width: 80%;
|
||||
height: 80px;
|
||||
max-height: 80px;
|
||||
padding: 1em 10%;
|
||||
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 6.6 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 436 KiB |
@@ -0,0 +1,3 @@
|
||||
<svg width="22" height="13" viewBox="0 0 22 13" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<path d="M12.0462 12.5637C12.0462 12.5637 12.4312 12.5217 12.6284 12.3138C12.8089 12.1233 12.8027 11.7638 12.8027 11.7638C12.8027 11.7638 12.7787 10.0851 13.5727 9.83727C14.3553 9.59351 15.3601 11.4606 16.4265 12.1786C17.232 12.7215 17.8434 12.6026 17.8434 12.6026L20.693 12.5637C20.693 12.5637 22.183 12.4736 21.4766 11.3234C21.4181 11.2292 21.0644 10.4723 19.3584 8.91753C17.5711 7.29006 17.8111 7.55328 19.9626 4.73772C21.2731 3.02319 21.7969 1.97645 21.6331 1.52887C21.4776 1.10075 20.5135 1.21444 20.5135 1.21444L17.3061 1.2339C17.3061 1.2339 17.0682 1.20214 16.8918 1.30559C16.7197 1.40699 16.608 1.64358 16.608 1.64358C16.608 1.64358 16.1009 2.96993 15.4237 4.09862C13.9953 6.47888 13.4246 6.60486 13.1908 6.45738C12.6472 6.11222 12.7829 5.07264 12.7829 4.33418C12.7829 2.02664 13.1397 1.0649 12.089 0.816017C11.7405 0.733056 11.4838 0.678773 10.5917 0.669555C9.44705 0.658288 8.47877 0.673652 7.92993 0.936874C7.56474 1.11201 7.28301 1.50326 7.45518 1.5258C7.66699 1.55345 8.14696 1.6528 8.40155 1.99284C8.73023 2.43222 8.71875 3.41752 8.71875 3.41752C8.71875 3.41752 8.90761 6.13372 8.27739 6.47069C7.84541 6.70216 7.25275 6.23 5.97875 4.06994C5.32661 2.96379 4.83412 1.74088 4.83412 1.74088C4.83412 1.74088 4.73917 1.51248 4.56909 1.38958C4.36354 1.24106 4.0766 1.19498 4.0766 1.19498L1.02879 1.21444C1.02879 1.21444 0.57073 1.22673 0.40274 1.42235C0.253532 1.59544 0.391262 1.95494 0.391262 1.95494C0.391262 1.95494 2.77755 7.4355 5.47999 10.1978C7.9581 12.7296 10.7711 12.5637 10.7711 12.5637H12.0462Z" fill="#222222"/>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 1.6 KiB |
@@ -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';
|
||||
@@ -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() {
|
||||
<Outlet />
|
||||
</div>
|
||||
<UsersWP contacts={ contacts } />
|
||||
<Footer />
|
||||
</>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user